|
| | __init__ (self, book=None, id=None, currency=None, name=None, instance=None) |
| |
Definition at line 49 of file gnucash_business.py.
◆ __init__()
| python.gnucash_business.GnuCashBusinessEntity.__init__ |
( |
|
self, |
|
|
|
book = None, |
|
|
|
id = None, |
|
|
|
currency = None, |
|
|
|
name = None, |
|
|
|
instance = None |
|
) |
| |
Definition at line 50 of file gnucash_business.py.
51 instance=None):
52 if instance == None:
53 if book==None or id==None or currency==None:
54 raise Exception(
55 "you must call GnuCashBusinessEntity.__init__ "
56 "with either a book, id, and currency, or an existing "
57 "low level swig proxy in the argument instance")
58 GnuCashCoreClass.__init__(self, book)
59 self.BeginEdit()
60 self.SetID(id)
61 self.SetCurrency(currency)
62 if name != None:
63 self.SetName(name)
64 self.CommitEdit()
65 else:
66 GnuCashCoreClass.__init__(self, instance=instance)
67
The documentation for this class was generated from the following file: