[Zope] Cataloging and uncataloging...

After Dark afterz@zipmail.com
Thu, 19 Apr 2001 14:49:12 -0400


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/