[Zope] question on setting PropertySheet value from External Method

Dieter Maurer dieter@handshake.de
Fri, 14 Dec 2001 21:15:45 +0100


Tim Lynch writes:
 > But, when I try to change the Title property with:
 > 
 >    self.resources[recordID].propertysheets['Basic'].manage_changeProperties(Title = t)
 > 
 > I get TypeError -- sequence index must be integer
This probably comes from "propertysheets['Basic']".

Try the attribute access syntax: "propertysheets.Basic".

But, do you have a propertysheet named "Basic" ?.
If not, you will get an "AttributeError".


Dieter