Package Gnumed :: Package business :: Module gmOrganization :: Class cCompositeOrgImpl1
[frames] | no frames]

Class cCompositeOrgImpl1

source code

                                   object --+            
                                            |            
pycommon.gmBusinessDBObject.cBusinessDBObject --+        
                                                |        
                                             cOrg --+    
                                                    |    
                                            cOrgImpl1 --+
                                                        |
                                                       cCompositeOrgImpl1

this class behaves differently from cOrgImpl1 iff there is a parent org

Instance Methods
 
__init__(self, parent=None, helper=cOrgHelperImpl2())
Init business object.
source code
 
save(self)
if getParent() is None, then the behaviour is unchanged from cOrgImpl1, but if there is a parent org, then there will also sub-org information saved in the description
source code
 
getParent(self) source code
 
setParent(self, parent) source code

Inherited from cOrgImpl1: __getitem__, __setitem__, get, getAddress, getAddressDict, getHelper, getId, getPersonMap, linkNewAddress, linkPerson, load, set, setAddress, setId, shallow_del, unlinkPerson

Inherited from pycommon.gmBusinessDBObject.cBusinessDBObject: __del__, __str__, get_fields, get_patient, get_updatable_fields, is_modified, refetch_payload, same_payload, save_payload

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self, parent=None, helper=cOrgHelperImpl2())
(Constructor)

source code 
Init business object.

Call from child classes:

        super(cChildClass, self).__init__(aPK_obj = aPK_obj, row = row)

Overrides: object.__init__
(inherited documentation)

save(self)

source code 

if getParent() is None, then the behaviour is unchanged from cOrgImpl1, but if there is a parent org, then there will also sub-org information saved in the description

Overrides: pycommon.gmBusinessDBObject.cBusinessDBObject.save