Commit graph

65 commits

Author SHA1 Message Date
Priit Laes
d578395a65 Fix python demo: EUROPEAN was changed to DECIMAL_COMMA
Signed-off-by: Priit Laes <plaes@plaes.org>
2010-06-13 17:49:56 -04:00
John Wiegley
b0b29a54c8 Default to 40 transactions per screen in server.py 2009-11-21 02:16:07 -05:00
John Wiegley
635660579c server.py now wants a query string 2009-11-21 02:12:04 -05:00
John Wiegley
9e01d3948c Removed an explicit path reference 2009-11-21 02:08:53 -05:00
John Wiegley
5d4a0a39be The Python web server now uses jQuery Tablesorter 2009-11-21 02:06:01 -05:00
John Wiegley
92d2310548 Extended python/server.py, which now uses Cheetah 2009-11-20 23:23:05 -05:00
John Wiegley
b00e7ac19a Added more documentation to python/demo.py 2009-11-20 05:56:24 -05:00
John Wiegley
4e30fcdf40 Many improvements to Ledger's Python bindings 2009-11-19 22:24:24 -05:00
John Wiegley
91e8378f04 Fixes to Python importing; removed "hello" precommand 2009-11-10 14:16:40 -05:00
John Wiegley
ba9efa3ab9 Removed python/interp.py, for "ledger python" 2009-03-03 14:40:36 -04:00
John Wiegley
e012917ceb Created some new Python scripts under python/ 2009-02-24 19:33:03 -04:00
John Wiegley
1799ed3a2a Moved python/*.cc files into src/
This is because soon, I intend to have real Python source files in
python/.
2009-02-24 16:08:49 -04:00
John Wiegley
07fcc3a08a Build Python module using automake, not setup.py 2009-02-24 12:48:11 -04:00
John Wiegley
9f9381db64 Restored the py_amount and py_balance mappings 2009-02-24 12:41:52 -04:00
John Wiegley
944c63e6f2 The Great Renaming, Part II
The last commit did not contain the majority of changes because of a
slight mishap.  This contains the real changeset.
2009-02-23 19:07:30 -04:00
John Wiegley
fc349389e3 Restored the --budget option 2009-02-20 23:12:23 -04:00
John Wiegley
d0a664d102 Fixed several unused value and param warnings 2009-02-16 16:55:18 -04:00
John Wiegley
aa69b273de Changed some value_t method names
- simplify -> simplified
 - cast -> casted

This is to differentiate them from in_place_cast and in_place_simplify.
2009-02-16 04:00:01 -04:00
John Wiegley
fcd7f4f73b Removed "total_cost" valexpr, and value_t::cost
Since cost reports are now calculated by setting the amount_ expression,
there is no need to track a separate "total cost" entity.
2009-02-15 16:26:26 -04:00
John Wiegley
e0e181d2af Made (un)reduce rvalue methods more consistent
They names were changed from reduce/unreduce to reduced/unreduced, since
they return the modified value.  This is more consistent with the naming
of rounded/rounded.
2009-02-12 20:44:46 -04:00
John Wiegley
3f7104e9be Removed the balance_pair_t type, since it's now an unneeded abstraction.
This type was a holdback from the days before the amount_expr was used
everywhere to determine a transaction's value.
2009-02-09 14:54:42 -04:00
John Wiegley
f8a623d547 Conditionalized some boost::filesystem calls that were too new. 2009-02-09 00:00:57 -04:00
John Wiegley
fccf7e1cb5 Fixes to the new Python/scope integration code. 2009-02-08 23:56:28 -04:00
John Wiegley
e0b108ff3a Attribute lookup on a Value object which is a Scope now searches the scope. 2009-02-08 21:17:23 -04:00
John Wiegley
3924a3da10 pyinterp.cc shares global session; accept full paths passed to --import. 2009-02-08 21:16:29 -04:00
John Wiegley
e003502193 Moved several #includes to facilitate the use of pre-compiled headers. 2009-02-08 19:05:06 -04:00
John Wiegley
cb0faac58d Removed a great many unnecessary Boost.Python files. 2009-02-07 22:49:53 -04:00
John Wiegley
19a59079fa Removed an unused file. 2009-02-07 19:36:06 -04:00
John Wiegley
589eabd8e6 Threw away the "multiple parser" infrastructure. 2009-02-07 17:45:48 -04:00
John Wiegley
eb98e0da8b More revision to the way options are handled; reworked CSV command. 2009-02-07 04:26:30 -04:00
John Wiegley
e8d2409430 Removed --reconcile and --reconcile-date. 2009-02-07 00:03:58 -04:00
John Wiegley
68d5bc1f32 Added #if 0'd Python stub code from 2.x days. It needs to be ported. 2009-02-06 14:31:38 -04:00
John Wiegley
ff2f3d23d4 Added stubs for all the Python integration classes. 2009-02-06 14:26:51 -04:00
John Wiegley
b6d83f3c23 Fixed a long-standing g++ warning. 2009-02-04 20:45:34 -04:00
John Wiegley
2d941730b1 Largely removed all of Ledger's use of global variables, for the REPL's sake. 2009-02-04 19:55:27 -04:00
John Wiegley
c6d3cce6d5 Added __str__ and __repr__ methods for ledger.Value. 2009-02-03 19:06:56 -04:00
John Wiegley
3434650848 Removed the binary caching code, and the XML, QIF and Gnucash parsers. 2009-02-03 12:22:10 -04:00
John Wiegley
b027961b96 Removed unnecessary #ifdef block. pyinterp.h now guards itself. 2009-01-31 16:04:21 -04:00
John Wiegley
e9ff5caa13 Rationals based math is now passing the unit tests. 2009-01-31 04:25:05 -04:00
John Wiegley
75f1cd727c Corrected Python reference to the AmountParse enum. 2009-01-31 01:20:34 -04:00
John Wiegley
e0dd2cd0a4 Changed to using rational numbers instead of integer approximations.
As a result, dependency on the gdtoa was dropped, and dependency on mpfr was
added.
2009-01-30 19:30:16 -04:00
John Wiegley
f1257cbc3e Removed all dependency on gdtoa. 2009-01-30 16:19:31 -04:00
John Wiegley
8b75b5cbfb Revised the way that parsing flags get passed around. 2009-01-29 02:24:25 -04:00
John Wiegley
e851c02d27 Unit test for Python are now auto-generated from the C++ tests. 2009-01-28 20:49:26 -04:00
John Wiegley
1aa1ff1977 Fully exported the value_t type to Python.
Now this code works from a value expression:

  def myvalue(incoming):
      import ledger
      x = ledger.Value("100.23")
      print x.type()
      return incoming + x
2009-01-28 17:17:44 -04:00
John Wiegley
23117a58f2 Expose the commodity type to python as "Commodity". 2009-01-28 17:16:47 -04:00
John Wiegley
08c7a530f8 Extended the amount_t Python mapping to handle the 3rd case of value(). 2009-01-28 17:16:37 -04:00
John Wiegley
2541c4cd26 Handle the VERSION more gracefully, and uninstall the Python Egg file. 2009-01-26 17:16:59 -04:00
John Wiegley
082614a086 Pass $(srcdir) down to python/setup.py, so it can find pyledger.cc. 2009-01-26 14:13:10 -04:00
John Wiegley
dff450ab3d Only initialize Python if it's used. 2009-01-24 01:46:59 -04:00