Hi all,

I have an object which when editing, checks for some attributes in the parents containing folder by using the following type of code: (this is called during a form.Editform call)

   def _completeValues(self):
       if self.a is None  and  self.__parent__.def_c == self.c:
               my_a  = self.__parent__.def_c * 2

Of course, for edits, this all works fine. However, how should I examine values in the containing object during an Adding process, where __parent__ would be None?

Thanks and Regards,

Zope3-users mailing list

Reply via email to