5/19/2023 0 Comments Gnucash docs packageObjects of type cls (uses the sqlalchemy session.query(cls).all()). If no kwargs is given, it returns the list of all Generic getter for a GnuCash object in the GncSession. Any changes not yet saved are rolled back. Save the changes to the file/DB (=commit transaction) close ( ) ¶Ĭlose a session. Save the changes to the file/DB (=commit transaction) flush ( ) ¶Ĭancel all the changes that have not been saved (=rollback transaction) is_saved ¶ “Use Trading Accounts” is enabled, create it on the fly add ( obj ) ¶Īdd an object to the book (to be used if object not linked in any way to the book) delete ( obj ) ¶ĭelete an object from the book (to remove permanently an object) save ( ) ¶ Return the trading account related to the commodity. Record in session._all_changes the objects that have been modified before each flush trading_account ( cdty ) ¶ Int – counter for id (link to slot “counters/gncOrder”) static track_dirty ( session, flush_context, instances ) ¶ Int – counter for id (link to slot “counters/gncExpVoucher”) counter_order ¶ Int – counter for id (link to slot “counters/gncBill”) counter_exp_voucher ¶ Int – counter for id (link to slot “counters/gncJob”) counter_bill ¶ Int – counter for id (link to slot “counters/gncInvoice”) counter_job ¶ Int – counter for id (link to slot “counters/gncEmployee”) counter_invoice ¶ Int – counter for id (link to slot “counters/gncVendor”) counter_employee ¶ Int – counter for id (link to slot “counters/gncCustomer”) counter_vendor ¶ List(str – list of allowed non-standard operations like : “allow-root-subaccounts” counter_customer ¶ Int – value of Day Threshold for Read-Only Transactions (red line) control_mode ¶ – the sqlalchemy session encapsulating the book use_trading_accounts ¶īool – true if option “Use trading accounts” is enabled use_split_action_field ¶īool – true if option “Use Split Action Field for Number” is enabled RO_threshold_day ¶ Str – connection string of the book (set by the GncSession when accessing the book) session ¶ – the root template of the book (usage not yet clear.) uri ¶ – the root account of the book root_template ¶ # save a session if it is no saved (saving a unchanged session is a no-op) if not book.
0 Comments
Leave a Reply. |