[Zope] Cataloging and uncataloging...

Loren Stafford lstafford@morphics.com
Thu, 19 Apr 2001 12:23:48 -0700


There's an example at http://www.zope.org/Members/lstaffor/zProperties that
is similar to what you want to do. That example is getting yellow around the
edges, so if you did all the steps in that example but still got an error,
maybe it's the example that need to be corrected.

-- Loren

> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of After
> Dark
> Sent: Thursday, April 19, 2001 11:49
> To: Casey Duncan
> Cc: zope@zope.org
> Subject: Re: [Zope] Cataloging and uncataloging...
>
>
> I did that, creates a ZClass of ZCatalogAware and OFS.file,
> but when I try to add a new element gives the following
> error:
>
> type error
> unsliceable object
>
> But I did the same as others examples that worked, the only
> diference was that they were just ZCatalogAware.
>
> Thanks.
>
> On Thu, 19 Apr 2001 12:19:11 -0600
> Casey Duncan <cduncan@kaivo.com> wrote:
> >After Dark wrote:
> >>
> >> Can I build a ZClass of the type of ZCatalogAware and
> >> OFS.file?
> >> Should I use it like a file then, or I have to make a
> >> property called file, title...
> >>
> >> Thanks.
> >>
> >
> >Yes, and make sure CatalogAware is the first base class.
> >It's picky
> >about that.
> >
> >You will then get an object that looks like a file, but is
> >CatalogAware
> >and you can make custom methods and property sheets for
> >it.
> >
> >--
> >| Casey Duncan
> >| Kaivo, Inc.
> >| cduncan@kaivo.com
> >`------------------>
>
> --
> --Ricardo Kohler
>           Costa
> ________________________________________________
> Don't E-Mail, ZipMail! http://www.zipmail.com/
>
>
> _______________________________________________
> 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 )
>