[Zope] Product development

Dieter Maurer dieter@handshake.de
Fri, 20 Jul 2001 21:33:10 +0200 (CEST)


Stefan Heimann writes:
 > 1.) I can select my product from the add list, but
 > whenever I try to add it to the folder (after submitting the add form)
 > I get an error message: KeyError: manage_page_header
 > When I access manage_main via the 'edit' tab of an already created
 > product, this error does not appear.
 > 
 > 2.) I want to add some properties to my product. So I defined the
 > _properties variable, but my property 'color' does not appear on the
 > property manage interface.
 > ....
 > def addMethod(self, id, REQUEST=None):
 >      """
 >      Create a new article
 >      """
 >      a = Article(id) 
 >      self._setObject(id, a)
 >      if REQUEST is not None:
 >           return a.edit(REQUEST)
Here, the "a" is not yet "wrapped" into the site hierarchy.
Therefore, acquisition can not yet help to find
"manage_page_header".

Add (before the return):

	    a= a.__of__(self)

I do not understand why you property handling does not work.
You code seems good.


Dieter