[Zope] Packing a DBTab database
Dieter Maurer
dieter at handshake.de
Mon May 31 13:46:54 EDT 2004
Small Business Services wrote at 2004-5-31 08:00 -0400:
>I am trying to pack a DBTab mounted database via an external method. I have
>two separate db's mounted (Data.fs, MyDB.fs) and only want to pack MyDB.fs
>
>I have tried: self.Control_Panel.Database.MyDB.manage_pack() with no
>luck, it generates the following error:
>
>Error Type: AttributeError
>Error Value: MyDB
Try: "self.unrestrictedTraverse('Control_Panel/Database/MyDB').manage_pack(0)".
It is usually adviceable to use "[un]restrictedTraverse"
rather than explicit attribute traversal as many containers
provide a subscription access for subobjects.
--
Dieter
More information about the Zope
mailing list