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 |
|
John Wiegley
|
fc8dd14467
|
Create a py_value module, for translating value_t objects to/from Python.
|
2009-01-23 15:59:01 -04:00 |
|
John Wiegley
|
7aa42aa8b3
|
Report the name of a Python function if we have difficulties calling it.
|
2009-01-23 15:57:20 -04:00 |
|
John Wiegley
|
bd64e83e46
|
Added tracing statements to the Python interpreter binding code.
|
2009-01-23 15:45:08 -04:00 |
|
John Wiegley
|
f0d13734b4
|
Look up definitions in the Python evaluator directly, not with eval.
|
2009-01-23 01:57:37 -04:00 |
|
John Wiegley
|
617dd0c261
|
When Python support is present, use a session_t object which is derived from
python_interpreter_t, so that Python can provide value expression definitions.
|
2009-01-23 01:53:19 -04:00 |
|
John Wiegley
|
887828a40c
|
Increased copyright range to include 2009.
|
2009-01-20 01:53:31 -04:00 |
|
John Wiegley
|
d9197fc2e5
|
Changed COMMODITY_STYLE_NOMARKET TO COMMODITY_NOMARKET.
|
2009-01-19 22:24:56 -04:00 |
|
John Wiegley
|
5cc99a6972
|
Changed COMMODITY_STYLE_BUILTIN to COMMODITY_BUILTIN, and added new flag
COMMODITY_WALKED, for avoiding infinite recursions during price lookups.
|
2009-01-19 19:58:47 -04:00 |
|
John Wiegley
|
6fe833bb9b
|
Moved sources which I did not write from src/ into lib/.
|
2008-08-09 19:48:23 -04:00 |
|
John Wiegley
|
3c6a466219
|
'make distcheck' now works with Python support enabled.
|
2008-08-09 07:56:41 -04:00 |
|
John Wiegley
|
d6fd0cd24f
|
Removed a redundant comment.
|
2008-08-08 18:49:50 -04:00 |
|
John Wiegley
|
925387d7c0
|
The Python interface code is now building again and passes its unit tests.
|
2008-08-07 03:28:48 -04:00 |
|
John Wiegley
|
0eda1ad2c6
|
The Python interface layer is building again.
|
2008-08-07 02:53:35 -04:00 |
|
John Wiegley
|
54f2a8012f
|
Moved several tests around again (python/test -> test/python).
|
2008-08-06 18:23:50 -04:00 |
|
John Wiegley
|
f6f4a46cf5
|
Moved around most of the files so that source code is in src/, documentation
is in doc/, etc.
|
2008-08-05 18:05:49 -04:00 |
|