I'm working on a product that does a similar thing (except the object is a "font manager"). I'd be very interested to see how you're doing it Martijn... Martijn Pieters wrote:
-----Original Message----- From: Martijn Faassen [mailto:m.faassen@vet.uu.nl]
Chris McDonough wrote:
Others might disagree. What about products just going right ahead and creating instances of their classes within the ZODB upon installation?
Can this actually be done?
I do this in my mythical ZScheduler. O need a central object to manage the scheduling of the different Event objects, so on Product initialisation, ZScheduler creates a ZScheduler object in the Zope root. Even better, it adds this object to the protected objects list, so a user cannot delete it. I do provide a way of removing it when you remove the Product though, and plan to document the procedure thoroughly, if I ever get to get to work on it again.
-- Martijn Pieters, Software Engineer | Digital Creations http://www.digicool.com | Creators of Zope http://www.zope.org | mailto:mj@digicool.com ICQ: 4532236 | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 -------------------------------------------
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
-- Chris McDonough - Digital Creations, Inc. Publishers of Zope - http://www.zope.org