Hi Casey, --On Mittwoch, August 14, 2002 23:38:52 -0400 Casey Duncan <casey@zope.com> wrote:
The Item class mixes in Traversable, which is probably responsible for making this work TTW. It also gives you a bunch of other stuff that many Zope classes need, like DAV support, copy support, ZMI tab support and security. It doen't mix-in acquisition tho.
If you need support for acquistion machinery (including __of__ which creates wrappers), then you need to mix-in Acquisition.Implicit. The SimpleItem class mixes this and Persistence in for you (along with Item), so many Zope classes derive form SimpleItem. You need Persistence to store instances of your class in the ZODB, and implicit acquisition is the standard for Zope objects.
I actually don't know, if I need acquisition. The items are stored in the btree of the table, and I experienced no problems till now. I can copy and export/import AixtraTable instances and the data is preserved.
In short I would recommend mixing in SimpleItem or you may find that your objects are not stored properly in the ZODB.
Is that also true, if I store them in a btree ?
-Casey
BTW: People will take you a lot more seriously on this list if you loose the # {{{ ... #}}} crutches ;^)
I use a folding editor (jed) and these are the folding marks. Folding makes your editing live much easier. ;-)) Mit freundlichen Grüßen Joachim Schmitz -------------------------------------------------------------------- AixtraWare Ingenieurbüro für Internetanwendungen Hüsgenstr. 33a, D-52457 Aldenhoven Telefon: +49-2464-8851, FAX: +49-2464-905163 -------------------------------------------------------------------- Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6 Keyserver: http://www.keyserver.net/en/