Commit graph

539 commits

Author SHA1 Message Date
John Wiegley
c0285de46b Moved `format_xml_entries' to xml.cc. 2008-04-13 02:41:03 -04:00
John Wiegley
e6a0e86235 (export_datetime): Exposed "parse_date" function. 2008-04-13 02:41:03 -04:00
John Wiegley
230143478a *** empty log message *** 2008-04-13 02:41:03 -04:00
John Wiegley
3ddd46c307 (format_xml_entries): Moved the stream finalization to flush(), where
it belongs.
2008-04-13 02:41:03 -04:00
John Wiegley
a9c7a86ffa *** empty log message *** 2008-04-13 02:41:03 -04:00
John Wiegley
720042084d Added code for using reconcile_transactions, but it still need som
eporting.
2008-04-13 02:41:02 -04:00
John Wiegley
2d3e852d30 (chain_xact_handlers): Chain the reconcile_transactions handler the
same way as everything else.
2008-04-13 02:41:02 -04:00
John Wiegley
9bdd1ea9f6 (export_config): Added export entries for the reconcile_balance and
reconcile_date options.
2008-04-13 02:41:02 -04:00
John Wiegley
41a66cb0bf (initialize_ledger_for_python): Added initialization call for the
reconciler.
2008-04-13 02:41:02 -04:00
John Wiegley
51ca2ca08d (transaction_xdata_t): Added a `ptr' void *, for general use. The
reconcile_transactions handler uses it.
2008-04-13 02:41:02 -04:00
John Wiegley
5ac4ab2fd5 Converted the reconciler into an item_handler, so that it interacts
with the core the same way as everything else.
2008-04-13 02:41:02 -04:00
John Wiegley
7eafc0d9ca bug fix 2008-04-13 02:41:02 -04:00
John Wiegley
fa8f20884b *** empty log message *** 2008-04-13 02:41:02 -04:00
John Wiegley
e474b0ed62 Added calls for `export_emacs', to expose FormatEmacsTransactions. 2008-04-13 02:41:02 -04:00
John Wiegley
5671243045 Changed the script ot rely on the C++ output formatters, rather than
the Python versions of before.
2008-04-13 02:41:02 -04:00
John Wiegley
16e449dc05 Added pystream_handler_wrap class, which wraps an item_handler taking
a std::ostream so that it can take a PyObject* instead.  Relies on
pyfstream.h, which allows Python file objects to be treating as I/O
streams.
2008-04-13 02:41:02 -04:00
John Wiegley
bb444b740f (truncated): Added "style" argument, so that at least Python users can
choose which output style they want (truncation at beginning, middle
or end of the string).  (export_format): Expose following handlers to
Python: FormatTransactions, FormatEntries, FormatXmlEntries,
FormatAccount, FormatEquity.
2008-04-13 02:41:01 -04:00
John Wiegley
6b50c85f01 Expose FormatEmacsTransactions to Python. 2008-04-13 02:41:01 -04:00
John Wiegley
7dea4f2c80 *** empty log message *** 2008-04-13 02:41:01 -04:00
John Wiegley
11dc5b17d8 *** empty log message *** 2008-04-13 02:41:01 -04:00
John Wiegley
396491c568 (truncate_entries::flush): Fix so that --head and --tail can be used
at the same time.  (export_walk): Added TruncateEntries for Python.
2008-04-13 02:41:01 -04:00
John Wiegley
4faed720b5 Whitespace changes. 2008-04-13 02:41:01 -04:00
John Wiegley
7a48610f42 Added OFX library support. 2008-04-13 02:41:01 -04:00
John Wiegley
6e5996e3d0 Updated the Python driver to mostly match the C++ driver again. 2008-04-13 02:41:01 -04:00
John Wiegley
74456d89b5 (parse_and_report): Rearranged some code for efficiency's sake. 2008-04-13 02:41:01 -04:00
John Wiegley
7a38b49048 Added -lpython$PYTHON_VERSION to the LIBS line. The way things were,
the boost test would always fail.
2008-04-13 02:41:01 -04:00
John Wiegley
1c0a061675 (export_config): Added missing config members for Python. 2008-04-13 02:41:01 -04:00
John Wiegley
b4ba11ac12 (HAVE_LIBOFX_VALUE): Added LIBOFX support to the Python build. 2008-04-13 02:41:00 -04:00
John Wiegley
5e52cd0904 *** empty log message *** 2008-04-13 02:41:00 -04:00
John Wiegley
d0997fa821 Changed truncate_entries so that --head and --tail can be used at the
same time.
2008-04-13 02:41:00 -04:00
John Wiegley
547be3056d *** empty log message *** 2008-04-13 02:41:00 -04:00
John Wiegley
8fd5f4ee57 Added support for "--pager PROGRAM". A likely way to define it in
your login file would be: "export LEDGER_PAGER=$PAGER".
2008-04-13 02:41:00 -04:00
John Wiegley
219492564c *** empty log message *** 2008-04-13 02:41:00 -04:00
John Wiegley
1895ae6653 (test): Check for <?xml only, not the full version string. 2008-04-13 02:41:00 -04:00
John Wiegley
dc4c2b8d50 Added the new transaction handler `truncate_entries' which can be used
to trim a number of entries from the beginning or end of a transction
stream.  (push_to_transactions_list): Removed unneeded "handler"
argument.
2008-04-13 02:41:00 -04:00
John Wiegley
962e17c1a9 (chain_xact_handlers): Added head or tail handlers, using the
transaction handler `truncate_entries'.
2008-04-13 02:41:00 -04:00
John Wiegley
22beb86239 (test), gnucash.cc (test): Check for <?xml only, not the full version
string.
2008-04-13 02:41:00 -04:00
John Wiegley
38b126edbd (truncated): Simplified this method, and added schemes for truncating
at the beginning and middle of a string (neither of which seems better
than truncating at the front).  (output_xml_string): Change xml_string
to output_xml_string, for simplicity's sake.  Also, < and > are now
output as &lt; and &gt;.  (format_last_entry): Use output_xml_string
for the account name as well as the code, payee and note.
2008-04-13 02:40:59 -04:00
John Wiegley
65b2181860 Added new --head and --tail options, which control how many *entries*
are displayed in a register report or print report.  The UNIX commands
"head" and "tail" can be used to control how many transactions are
displayed.
2008-04-13 02:40:59 -04:00
John Wiegley
873c68b234 *** empty log message *** 2008-04-13 02:40:59 -04:00
John Wiegley
83f0d1455b Added the capability for value expression regexps targetted at
specific parts of a transaction: c// (entry code), p// (payee), w//
(short account name), W// (full account name), and e// (transaction
note).
2008-04-13 02:40:59 -04:00
John Wiegley
ff48992067 *** empty log message *** 2008-04-13 02:40:59 -04:00
John Wiegley
9f28189cea Added a fix for FreeBSD, so that Ledger can compile there. 2008-04-13 02:40:59 -04:00
John Wiegley
b831ee1832 (ledger-reconcile-save): Call `save-buffer', instead of trying to
write the file directly.
2008-04-13 02:40:59 -04:00
John Wiegley
a12f4cdab7 *** empty log message *** 2008-04-13 02:40:59 -04:00
John Wiegley
10c78678bc (parse): When an entry does not balance, print the entry so the user
can see what Ledger saw.
2008-04-13 02:40:59 -04:00
John Wiegley
32df4dd563 (format_equity::flush): If the equity balance uses multiple
commodities, then multiple "Equity" lines need to be printed, one for
each.  (format_equity::operator()): Same, but for individual accounts.
2008-04-13 02:40:59 -04:00
John Wiegley
76f0d00f40 doc update 2008-04-13 02:40:58 -04:00
John Wiegley
e0a4109856 (reconcile_transactions): Added an error message, to make it easier to
know when the commodity is wrong to --reconcile (such as using $
instead of \$ in the UNIX shell).
2008-04-13 02:40:58 -04:00
John Wiegley
4df96ff13b *** empty log message *** 2008-04-13 02:40:58 -04:00