applyTcdl(self,
tcdl,
resolveConstraints=1,
includingGateways=1,
inbackground=0,
includingRelations=1,
status=None,
raiseExceptions=1)
Processes a community description and distributes the knowledge to
the local managers.
The parameter includingRelations is for a 2 step application of
community descriptions. The first step write through a dummy community
with the required community id - no relations will be applied.
Afterwards, all the referencing objects are applied - this way, they
are able to back-reference the community. Finally, the community
description is applied again (the 2nd time) - but now properly with all
relations. Since all related objects should have been download and
applied, the shouldn't be any more problems with referencing.
-
- Parameters:
tcdl -
Community description in XML format
(type=String )
resolveConstraints -
Shall required descriptions (member descriptions for
authorities) be downloaded during the process
(type=Boolean )
includingGateways -
Indicates, whether gateways shall be processed as well
(necessary e.g. when two new TCs reference each other by GWs)
(type=Boolean )
raiseExceptions -
Only raise exceptions when we are in the main thread.
(type=Boolean )
- Returns:
-
Reference to the new (or updated) community instance
(type=communitymanager.Community )
|