[Zope] manage_addProperty(...) failure on DTMLDocuments
Dieter Maurer
dieter@handshake.de
Mon, 7 Apr 2003 19:15:23 +0200
Felipe Barousse Bou=E9 wrote at 2003-4-4 18:50 -0600:
> ...
> Troubled Example "B":
>=20
> <dtml-call "REQUEST.set('item',REQUEST.field1)">
> <dtml-with "manage_addProduct['OFSP'].manage_addDTMLDocument(item,
> nombre)">
> <dtml-call "REQUEST.item.propertysheets.manage_addProperty('costo_frec=
',
> costo_frec, 'string', REQUEST=3DNone)">
> </dtml-with>
>=20
>=20
> Every time in case "A", the outcome is the same:
> =20
> Error Type: AttributeError
> Error Value: propertysheets
You seem to confuse "A" and "B" :-)
"REQUEST.item" is probably a string and a string does not have
an attribute "propertysheets".
Omit it altogether. Use:
<dtml-call "manage_addProperty(...)">
By the way, a DTML Document does not have a "propertysheets", either.
Therefore, I removed it above.
Dieter