summaryrefslogtreecommitdiff
path: root/src/py_journal.cc
Commit message (Collapse)AuthorAgeFilesLines
* Refactor python related types into ledger::python namespaceAlexis Hildebrandt2023-04-121-6/+6
|
* Update copyright yearAlexis Hildebrandt2023-02-021-1/+1
| | | | [skip ci]
* Update copyright statement for 2022Alexis Hildebrandt2022-07-021-1/+1
|
* fileinfo_t: remove size memberMaximilian Eschenbacher2022-02-221-3/+0
| | | | | | | | | | | it is currently not required but set. Incidentally, calling file_size() on a bash pipe e.g. /proc/self/fd/11 fails with: Error: boost::filesystem::file_size: Operation not permitted: "/proc/self/fd/11" when executing ledger as ledger -f <(cat journal)
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2018-01-271-1/+1
| | | | [ci skip]
* journal: Expose register_account to PythonKyle Fuller2018-01-231-0/+9
|
* Expose journal expand_aliases to PythonKyle Fuller2017-12-241-0/+4
|
* [misc] Update year in copyright notice to 2017Alexis Hildebrandt2017-01-051-1/+1
| | | | [ci skip]
* Revert "[python] Add fix for Boost.Python compile errors"Alexis Hildebrandt2016-06-221-3/+0
| | | | This reverts commit 11590e134eafa768ccc4a171cc7fb216e906095f.
* [python] Add fix for Boost.Python compile errorsAlexis Hildebrandt2016-01-021-0/+3
| | | | when using boost version 1.60.0.
* [misc] Update year in copyright notice to 2016Alexis Hildebrandt2016-01-021-1/+1
| | | | [ci skip]
* Bump copyright notice to 2015Alexis Hildebrandt2014-12-271-1/+1
| | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
* Bump copyright information to 2014Alexis Hildebrandt2014-02-021-1/+1
|
* Bump copyright information to 2013John Wiegley2013-02-181-1/+1
|
* Added --verify-memory and missing TRACE_[CD]TOR callsJohn Wiegley2012-03-181-1/+4
|
* Started writing Python unit testsJohn Wiegley2012-03-011-49/+44
|
* Refactored the notion of "the current parsing context"John Wiegley2012-03-011-4/+7
|
* Increased file copyrights to 2012John Wiegley2012-02-291-1/+1
|
* Fixed many Clang type conversion warnings with static_castJohn Wiegley2012-02-171-5/+6
|
* #if 0'd some unused Python bridge codeJohn Wiegley2012-02-171-0/+4
|
* Use Boost iterator_facade to create new iteratorsJohn Wiegley2011-07-191-1/+1
|
* Fixes for compilation as C++0x codeJohn Wiegley2011-02-041-2/+1
|
* Untabified all source filesJohn Wiegley2010-06-111-43/+43
|
* Reworked the way that <Rounding> entries are shownJohn Wiegley2010-06-061-2/+2
| | | | Fixes #188 / 53BCED29-F3B9-4E02-9A35-6C739ABB9662
* Updated to Boost 1.43John Wiegley2010-05-271-9/+10
|
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Many improvements to Ledger's Python bindingsJohn Wiegley2009-11-191-8/+0
|
* Fixed an internal reference issue with PythonJohn Wiegley2009-11-141-12/+28
|
* Added a Journal.collect method to PythonJohn Wiegley2009-11-121-0/+106
| | | | | | | | | | | | | | | | | | | | This lets you run standard report queries against a Ledger journal and get back a collection of postings, for example: import ledger journal = ledger.Journal("sample.dat") posts = journal.collect("-M assets") for post in posts: print post.account However, this code is not really working yet for a large variety of reasons, having to do with object life-time, shallow copying, and lack of reference counting where it should be. For instance, calling ledger.Journal().collect() fails because the temporary journal object is destroyed and the collection now has a host of bad pointers. Using "for post in journal.collect()" fails too with other bad pointers. And the whole lot of it crashes on exit at the moment.
* Removed unnecessary codeJohn Wiegley2009-11-121-1/+1
|
* Added has_xdata() methods for journal_t and xact_tJohn Wiegley2009-11-121-0/+1
|
* Did away with the "finalizer" abstractionJohn Wiegley2009-11-111-46/+0
| | | | | This was from an earlier time, when it was intended to be used by Python. But it's not needed anymore.
* Automated postings defer amount expression calculationJohn Wiegley2009-11-111-4/+4
| | | | | | | | | | | | | | | | | This allows for value expressions to be used which reference the incoming posting, for example: = Income:Clients: (Liabilities:Taxes:VAT1) (floor(amount) * 1) (Liabilities:Taxes:VAT2) 0.19 2009/07/27 * Invoice Assets:Bank:Checking $1,190.45 Income:Clients:ACME_Inc The automated posting for VAT1 will use the floored amount multiplied by a factor, while the posting for VAT2 multiples the whole amount as before.
* Expose journal_t::read to PythonJohn Wiegley2009-11-071-0/+7
|
* Renamed journal_t::basket to bucketJohn Wiegley2009-11-071-3/+3
|
* Simplified usage of Boost.Python in several casesJohn Wiegley2009-11-051-6/+6
|
* Moved journal reading code into journal_tJohn Wiegley2009-11-051-0/+5
|
* Moved xdata clearing code into each type properJohn Wiegley2009-11-051-0/+2
|
* Transactions, etc., are now accessed by iteratorsJohn Wiegley2009-11-051-1/+11
|
* Added Python interface for journal_tJohn Wiegley2009-11-031-327/+129
|
* Removed some dead codeJohn Wiegley2009-06-271-11/+0
|
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-2/+0
|
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-3/+3
| | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install".
* Moved python/*.cc files into src/John Wiegley2009-02-241-0/+437
This is because soon, I intend to have real Python source files in python/.