Hello Whats the similar to context and container in a python class? How can I return a base for to call the next step? I need the folder how I'm in. my python script: ----------------- if container == context : return container # or different things else : return context Thanks for answer! Mit freundlichen GrĂ¼ssen Roger Ineichen ___________________________ Projekt01 GmbH www.projekt01.ch Langackerstrasse 8 6330 Cham phone +41 (0)41 781 01 78 mobile +41 (0)79 340 52 32 fax +41 (0)41 781 00 78 email r.ineichen@projekt01.ch ___________________________ END OF MESSAGE
Projekt01, Roger Ineichen writes:
Whats the similar to context and container in a python class? Strictly speaking there are no such objects.
But, when you are in a method of your product, you have a "self" and, usually, this is acquisition wrapped (this is not the case in "__init__" and some other special methods). In this case, you have "context" is similar to "self.aq_parent" and "container" is "self.aq_inner.aq_parent". Dieter
participants (2)
-
Dieter Maurer -
Projekt01, Roger Ineichen