Thanks for the help. I got rid of the error but it never showed me the property sheet to enter the values. It created the instance but its just gives me a blank page instead of property view of the zclass instance. Am I calling it right? <dtml-call "propertysheets.public.managechangeProperties(REQUEST)"> here public is a propertysheet. If I go back and click the instance it shows me the public propertysheet. thanks, Sridevi --- Dieter Maurer <dieter@handshake.de> wrote:
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
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/