[Zope] Use properties of a product?

Lars Heber Lars.Heber@t-systems.de
Thu, 04 Oct 2001 10:05:45 +0200


OK, second try:

> 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
> actual location?
Yepp.

> If this is the case - (AFAIK) you cannot access the property of the
ZClass
> instance until you have created it.
Yes, that's clear.
> Thus you will have to hard code your
> default location into the addForm.
That's what I wanted to avoid.
What I want to use is a property "location" of the product AA, which
contains the ZClass AAClass.
In the addForm of that AAClass I'd like to use this "location" of the
product AA, but not some property in the propertysheet of the ZClass to
be created!

>> 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
>> location>"></td>

>> does not work.

>> Any suggestions? Thanks!

--
Lars Heber, mailto:Lars.Heber@t-systems.de

T-Systems, debis Systemhaus GEI GmbH, Geschaeftsstelle Sachsen