appypod-rattail/gen/plone25/wrappers/ToolWrapper.py

13 lines
521 B
Python
Raw Normal View History

2009-06-29 07:06:01 -05:00
# ------------------------------------------------------------------------------
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()
2009-06-29 07:06:01 -05:00
return res
# ------------------------------------------------------------------------------