[Zope] Not a clue....

Andy McKay andy@agmweb.ca
Sat, 31 Aug 2002 20:22:40 -0700


When you create the object call the zCatalog constructor to create a
catalog, something like:

from Products.ZCatalog import ZCatalog

def manage_addDraftFolder(etc.....)
    ...
    # where obj is the newly added Draft Folder
    ZCatalog.manage_addZCatalog(obj, 'Catalog', 'Draft Catalog')

--
  Andy McKay
  Agmweb Consulting
  http://www.agmweb.ca

----- Original Message -----
From: "wphewitt" <wphewitt@attbi.com>
To: <zope@zope.org>
Sent: Saturday, August 31, 2002 1:52 PM
Subject: [Zope] Not a clue....


> I am building/(cobbling together in Python) a Product called
> "DraftFolder"  that holds Draft Documents.... These draft documents are
> catalog aware and I am trying to programmitcally add a Custom Catalog
> called "Draft Catalog" that will catalog them inside DraftFolder....
>
> The Draft Catalog has a bunch of static attributes (I havent been able
> to make a ZClass successfully....) and I have an instance of it in the
> regular file hierarchy.....
>
> What I need to do is get that static instance of the Draft Catalog to
> automatically install inside of DraftFolder whenever I create an
> instance of DraftFolder....
>
> I have been trying for about three days now - but to no avail
>
>
> Is there a simple way of adding static Files to an instance
> programatically? IF it's there and obvious, I am not seeing it....
>
> WPH
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>