At 22:31 20/09/99 , Adam Feuer wrote:
michel, thanks for the help! i think i am still missing something, though-- if it's a hack, it's because i don't know what i'm doing! :-) :-)
i would like to make this a Zope object, but... how do i make a Zope object from inside of Zope...? specifically, what i think i need to do at the time my product is initialized, i need to check for this storage object, and if doesn't exist, create it. (this would be in the __init__.py file for the product, i think.)
then, when instances of my product are created, i want them to be able to add data to this storage object. how do they know where the storage object is, and how do they call its methods...??
please excuse me if these are elementary questions, i'm pretty new to working with Zope.
Just use acquisition. You give your object the id Foo, then you can address it with self.Foo (or just Foo in DTML). -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------