14 lines
563 B
Python
14 lines
563 B
Python
|
# ------------------------------------------------------------------------------
|
||
|
class ToolWrapper:
|
||
|
|
||
|
def getInitiator(self):
|
||
|
'''Retrieves the object that triggered the creation of the object
|
||
|
being currently created (if any).'''
|
||
|
res = None
|
||
|
initiatorUid = self.session['initiator']
|
||
|
if initiatorUid:
|
||
|
res = self.o.uid_catalog(UID=initiatorUid)[0].getObject().\
|
||
|
_appy_getWrapper(force=True)
|
||
|
return res
|
||
|
# ------------------------------------------------------------------------------
|