Commit graph

1155 commits

Author SHA1 Message Date
John Wiegley
05d0f1a17f The binary cache is working again 2009-11-06 02:07:56 -05:00
John Wiegley
61f7d1295f Changed dividers output by --options 2009-11-06 02:05:39 -05:00
John Wiegley
b2e9cf4ebe Added disabled feature: "date" keyword in queries 2009-11-06 01:54:18 -05:00
John Wiegley
5e3f3d7f47 Report sought magnitude when balancing errors occur 2009-11-05 17:43:28 -05:00
John Wiegley
1bdb9330e5 Simplified passing of scope objects in Python 2009-11-05 17:16:59 -05:00
John Wiegley
09ace752d6 Added missing call to _dup() in value_t::in_place_cast 2009-11-05 05:11:50 -05:00
John Wiegley
deb674586c Added new account_total value expression
This is used for accessing an account's current total within one's
Ledger file.
2009-11-05 05:11:39 -05:00
John Wiegley
4464ed187b If a posting's amount is null, return 0L 2009-11-05 05:11:15 -05:00
John Wiegley
ab9fc6f9f0 Changed the type being throw of some exceptions 2009-11-05 05:11:01 -05:00
John Wiegley
060fc0e00b Made many object methods in Python properties 2009-11-05 02:27:42 -05:00
John Wiegley
8bd16b2e8e Simplified usage of Boost.Python in several cases 2009-11-05 02:27:42 -05:00
John Wiegley
34ee358f5e Moved journal reading code into journal_t 2009-11-05 02:27:42 -05:00
John Wiegley
817f1ae161 std::string now only intercepted if STRING_VERIFY_ON 2009-11-05 02:27:42 -05:00
John Wiegley
3dc200983d Moved xdata clearing code into each type proper 2009-11-05 02:27:39 -05:00
John Wiegley
40a430139e Transactions, etc., are now accessed by iterators 2009-11-05 02:22:17 -05:00
John Wiegley
78e6770c4c Segregated symbols into 5 separate namespaces
The different namespaces are:

  Function      Value expression functions, which receive a "context"
  Option        Command-line options
  Precommand    Commands which are invoked before reading the journal
  Command       Commands which are invoked after reading the journal
  Directive     Directives that occur at column 0 in a data file

This greatly eases the ability for Python uses to add intercept hooks to
change how the basic Ledger module functions.  An example of what should
be possible soon:

  import ledger

  def my_foo_handler(value):
      print "--foo received:", value

  ledger.add_handler(ledger.Option, "foo=", my_foo_handler)
2009-11-04 20:40:48 -05:00
John Wiegley
4a14f3224b Added value_t::push_front 2009-11-04 20:40:45 -05:00
John Wiegley
b14c814fec Whitespace fix 2009-11-04 20:40:42 -05:00
John Wiegley
fbd660af20 Removed several unneeded Python interface files 2009-11-04 20:01:04 -05:00
John Wiegley
a77d9fc261 Added error message if a predicate query is invalid 2009-11-03 15:34:08 -05:00
John Wiegley
bdb3ebca3f Initialize journal_t::basket to NULL 2009-11-03 15:33:52 -05:00
John Wiegley
6d835e52f5 Changed two callout comments 2009-11-03 14:51:36 -05:00
John Wiegley
d9963b0312 Removed an unnecessary comment 2009-11-03 14:51:22 -05:00
John Wiegley
1ef2274b3f Fixed a compiler warning 2009-11-03 14:51:11 -05:00
John Wiegley
f6f8ef1ba6 Added Python interface for account_t 2009-11-03 08:53:33 -05:00
John Wiegley
3d3d21150e Added Python interface for an item_t enum 2009-11-03 08:50:41 -05:00
John Wiegley
f86394d969 Added Python interface for xact_t 2009-11-03 08:49:18 -05:00
John Wiegley
682518fcee Added Python interface for journal_t 2009-11-03 08:48:30 -05:00
John Wiegley
7c79a745d3 Whitespace fix 2009-11-03 08:21:53 -05:00
John Wiegley
a462b93e30 Added Python interface for post_t 2009-11-03 02:25:25 -05:00
John Wiegley
ed0e01812a Added Python interface for item_t 2009-11-03 02:09:38 -05:00
John Wiegley
3043faf79f Completed Python bindings for value_t 2009-11-02 22:51:21 -05:00
John Wiegley
76fe7a5510 Added Python interface for annotated_commodity_t 2009-11-02 21:55:53 -05:00
John Wiegley
690e46117e Added Python interface for commodity_t 2009-11-02 21:55:53 -05:00
John Wiegley
4befcfa27d Added Python interface for commodity_pool_t 2009-11-02 21:55:47 -05:00
John Wiegley
ff5506801d Whitespace fix 2009-11-02 17:19:53 -05:00
John Wiegley
e663a13502 Changed protection level of many parts of commodity_t 2009-11-02 17:05:51 -05:00
John Wiegley
dea9530cb7 Renamed Python global "session" to "current_session" 2009-11-02 17:04:49 -05:00
John Wiegley
cec0f5ec49 Moved make_qualified_name into commodity_pool_t 2009-11-02 16:58:10 -05:00
John Wiegley
3f8c126c79 Use is_annotated() method rather than "annotated" 2009-11-02 16:57:53 -05:00
John Wiegley
ede73e8889 Corrected an incorrect call to remove_account 2009-11-02 16:00:32 -05:00
John Wiegley
c03fd75d09 Completed Python bindings for balance_t 2009-11-02 04:41:14 -05:00
John Wiegley
4e78dcff3f Fixes to the Python bindings for amount_t 2009-11-02 04:41:07 -05:00
John Wiegley
f9b833b685 Corrected balance_t's arithmetic interface 2009-11-02 04:40:51 -05:00
John Wiegley
60d016a21c Fleshed out the Python bindings for amount_t 2009-11-02 03:50:26 -05:00
John Wiegley
1d1b9465e4 Wire up the --european option 2009-11-02 03:44:32 -05:00
John Wiegley
a8db7bd303 Set default LESS options to -FRSX 2009-11-02 02:55:22 -05:00
John Wiegley
094794c640 Added a --european flag, to use commas for decimals
Ledger can often figure this out for itself, but this flag just makes it
the default behavior.  It is meant to be added to one's ~/.ledgerrc
file.
2009-11-02 02:39:31 -05:00
John Wiegley
4a249d6172 Fixed issues with period strings like "2009/10" 2009-11-02 01:59:24 -05:00
John Wiegley
3a0879aff0 Added "reported posts" into account xdata
This is necessary because sometimes, a post from one account will get
reported as though it were in another account (this happens with
--budget, to show child account postings within their parent account).
In that case, the account needs to remember which postings have been
reported as being within it, so that it can add these amounts to its own
total in the balance report.
2009-11-02 01:40:07 -05:00