[Zope] initlevel at initialization of product with aq_parent

Nico de Boer nico@nfg.nl
19 Jul 2002 16:44:47 +0200


Hi,

Sounds fine to me, use manage_afterAdd. But how do I do this?

I think about the following:

def __init__(self, id, title='', initlevel= 0):
		"""initialise a new instance of SiteNav"""
		self.id = id
		self.title = title
		self.initlevel = initlevel

def manage_afterAdd(self):
        self.initlevel = self.getInitlevel()
        return self.initlevel

Or something like that, because I don't have an idea how this method
manage_afterAdd works.

Greetz Nico