[Zope] Packing a DBTab database

Small Business Services toolkit at magma.ca
Mon May 31 20:02:03 EDT 2004


Dieter,

The unrestrictedTraverse(...).manage_pack worked perfectly!

Thank you very much!

Jonathan


----- Original Message -----
From: "Dieter Maurer" <dieter at handshake.de>
To: "Small Business Services" <toolkit at magma.ca>
Cc: <zope at zope.org>
Sent: May 31, 2004 1:46 PM
Subject: Re: [Zope] Packing a DBTab database


> 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