[Zope] Zope product dictionary ?
Dieter Maurer
dieter@handshake.de
Wed, 9 Jan 2002 21:50:26 +0100
=?ISO-8859-1?Q?Juli=E1n_Mu=F1oz_Dom=EDnguez?= writes:
> Hum, a Zope object has his own dictionary ???
> How do I store an element in it ?
>
> container.foldername['test']={'a':'123', 'b':[1,2,3]}
>
> works from a python script ?
Probably not -- because of security restrictions:
o.x= dict
would work in an External Method (or a file system based product method)
when "o" is an object, "x" a (attribute) name and "dict" a dictionary.
However, you need to be careful, when you later modify the dictionary.
You may foul Zope's persistence machinery and your modifications
may get lost.
Dieter