![]() ![]() So on to why it may have worked in 2.x and doesn't in 3.x:Īny support of GVFS in the past was entirely accidental and due to our use of GLib and GIO path resolution functions. The real problem is that "/run/user/1000/gvfs/smb-share:server=diskstation.local,share=public/Accounts/SCGE&EO.gnucash" doesn't define a real path that can be traversed without the assistance of the Gvfs module in Gio (part of GLib). That's not particularly germane, GnuCash doesn't use file URLs internally, it's just used in that error message to provide consistency with the MySQL and Postgresql backends which do use URLs. The tl dr is that there's only one colon allowed, immediately following the word "file" except on Microsoft Windows. The file URL is defined by and the one you're attempting to use doesn't comply with it. Files in the work directory with the new. gnucash file open (possibley library versions are relevant) Files in the work directory with a new. Processes with NO other gnucash runningĢ) After the run with the Dialog still displayed The attached console log ("GnuCash failure to launch.txt") shows: (see attached "Screenshot from 11-02-40.png" of the dialog) GnuCash could not obtain the lock for file:///run/user/1000/gvfs/smb-share:server=diskstation.local,share=public/Accounts/SCGE&EO.gnucash query ( cls ) def transactions ( self ): """ gives easy access to all transactions in the book through a :class:`piecash.model_common.CallableList` of :class:` colt 4.17.86_64 #1 SMP Mon Jun 18 20:09: x86_64 x86_64 x86_64 ~]$ gnucash -version To save or cancel changes, use ``book.save()`` or ``book.cancel()``:: # save a session if it is no saved (saving a unchanged session is a no-op) if not book.is_saved: book.save() Attributes: root_account (:class:``): the root account of the book root_template (:class:``): the root template of the book (usage not yet clear.) uri (str): connection string of the book (set by the GncSession when accessing the book) session (:class:``): the sqlalchemy session encapsulating the book use_trading_accounts (bool): true if option "Use trading accounts" is enabled use_split_action_field (bool): true if option "Use Split Action Field for Number" is enabled RO_threshold_day (int): value of Day Threshold for Read-Only Transactions (red line) control_mode (list(str)) : list of allowed non-standard operations like : "allow-root-subaccounts" counter_customer (int) : counter for :class:`` id (link to slot "counters/gncCustomer") counter_vendor (int) : counter for :class:`` id (link to slot "counters/gncVendor") counter_employee (int) : counter for :class:`` id (link to slot "counters/gncEmployee") counter_invoice (int) : counter for :class:`` id (link to slot "counters/gncInvoice") counter_job (int) : counter for :class:`` id (link to slot "counters/gncJob") counter_bill (int) : counter for :class:`` id (link to slot "counters/gncBill") counter_exp_voucher (int) : counter for :class:`` id (link to slot "counters/gncExpVoucher") counter_order (int) : counter for :class:`` id (link to slot "counters/gncOrder") """ _tablename_ = 'books' _table_args_ = )". The book puts at disposal several attributes to access the main objects of the GnuCash document:: # to get the book and the root_account ra = book.root_account # to get the list of accounts, commodities or transactions for acc in book.accounts: # or modities or ansactions # do something with acc # to get a specific element of these lists EUR = modities(namespace="CURRENCY", mnemonic="EUR") # to get a list of all objects of some class (even non core classes) budgets = book.get(Budget) # or a specific object budget = book.get(Budget, name="my first budget") You can check a session has changes (new, deleted, changed objects) by getting the ``book.is_saved`` property. ![]() ![]() note:: If you do not use the context manager, do not forget to close the session explicitly (``book.close()``) to release any lock on the file/DB. Canonical use is as a context manager like (the book is automatically closed at the end of the with block):: with create_book() as book. It is created through one of the two factory functions :func:`create_book` and :func:`open_book`. Class Book ( DeclarativeBaseGuid ): """ A Book represents a GnuCash document.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |