[Zope] Having problem with accessing zclass property sheets

Dieter Maurer dieter@handshake.de
Mon, 24 Feb 2003 21:08:49 +0100


Sridevi Vanka wrote at 2003-2-23 20:08 -0800:
 > ...
 > <dtml-with "manage_addProduct[ 'xxxxx' ]">
 > <dtml-call "Newcommit.createInObjectManager(REQUEST[ 'id' ], REQUEST
 > )">
 > ...
 > So I tried the change properties using the following
 > line under the <dtml-with> tag: 
 > 
 > <dtml-call "propertysheets.public.manage_editProperties(REQUEST)">
 > 
 > But it gives me an error saying 
 > 
 >      Error Type: Attribute error
 >      Error Value: Public

Your "dtml-with" refers to the product and it does not know
about propertysheets.

You need an additional "dtml-with" for the newly created instance

   <dtml-with "manage_addProduct[ 'xxxxx' ]">
     <dtml-with "Newcommit.createInObjectManager(REQUEST[ 'id' ], REQUEST)">
       <dtml-call "propertysheets....">


Dieter