[Zope] Use properties of a product?
Tue, 2 Oct 2001 12:40:20 -0500
I am not sure I understand totally about your problem, but this is what I
think you want:
When the user has an addForm for that ZClass - you want a default value for
If this is the case - (AFAIK) you cannot access the property of the ZClass
instance until you have created it. Thus you will have to hard code your
default location into the addForm.
<td><input type=text name=actualLocation size=60
btw, I still haven't quite worked out how to use default properties yet i.e.
the ones that are defined when you create a property sheet in a ZClass!
From: firstname.lastname@example.org [mailto:email@example.com]On Behalf Of Lars
Sent: Tuesday, October 02, 2001 11:57 AM
Subject: [Zope] Use properties of a product?
OK, I have a product, lets say AA. It has a property location.
Within this product, I have a ZClass. In the addForm, I'd like to pass a
standard value, which is the "location" property of AA, to the user
within the form.
He can change that value, and that value becomes a property of the
ZClass, let's say "actualLocation".
I could not find a possibility to access the location prop of AA.
<td><input type=text name=actualLocation size=60 value="<dtml-var
does not work.
Any suggestions? Thanks!
Lars Heber, mailto:Lars.Heber@t-systems.de
T-Systems, debis Systemhaus GEI GmbH, Geschaeftsstelle Sachsen
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -