Supposing that container is an instance of one zope product, called X... foldername is a dictionary defined on *__init__* method (in product X)... def __init__(self): "init method" ( ... ) foldername = {} ( ... ) so, container.foldername['test'] = {} container.foldername['test']['a'] ='123' container.foldername['test']['b'] = [1, 2, 3] works. And your container object has a dictionary like this: {'test': {'a': '123', 'b': [1, 2, 3]}, (...)} I hope this can help, Paula Mangas On Wed, 9 Jan 2002, Julián Muñoz Domínguez wrote:
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 ?
On Wed, 9 Jan 2002, Paula Mangas wrote:
Hi!
Maybe, i didn't understand your question but, a Zope object has his own dictionary.
Regards, Paula Mangas
On Wed, 9 Jan 2002, Julián Muñoz Domínguez wrote:
Is there an equivalent to a python dictionary, but in a zope object ??