Re: [Zope] ZODB or MySQL for form data?
kosh said:
Also while zope presents the db as hierarchical it really is not. If you want an item to be in multiple places without copying it is trivial to do from a python product. You just store the object reference like your normally would in a python program just make sure to remove the acquisition wrapper before storage. This gives you one real copy of the object in the db but in many locations.
This is something I have been very interested in know how to do, but haven't seen any good examples of it yet. How do you specify in which location the references show up? Thanks, Calvin -- S i x F e e t U p | "Taking your site to new heights" Silicon Valley: +1 (650) 401-8579 | Midwest: +1 (317) 861-5948 Toll-Free: 1-866-SIX-FEET mailto:calvin@sixfeetup.com http://www.sixfeetup.com | Hosting from $9.95/month
On Tuesday 09 September 2003 08:43 am, you wrote:
kosh said:
This is something I have been very interested in know how to do, but haven't seen any good examples of it yet. How do you specify in which location the references show up?
self.someobject = aq_base(self.somefolder.someotherfolder.someotherobject) Now self.someobject points to the same item as what is at another location If you want to do that with objects in a folder it is a little more complex object = aq_base(self.somefolder.someotherfolder.someotherobject) self.somefolder._setObject(idofobject, object) It is a very good idea to have the objects id the same in all locations you have it in since otherwise you can get some very hard to debug behavior since the id is part of the object.
participants (2)
-
Calvin Hendryx-Parker -
kosh