7 Apr
2003
7 Apr
'03
5:15 p.m.
Felipe Barousse Boué wrote at 2003-4-4 18:50 -0600:
... Troubled Example "B":
<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=None)"> </dtml-with>
Every time in case "A", the outcome is the same:
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