[Zope] ZCatalog, CatalogAware, and ZClasses

gtk gtk@well.com
Thu, 14 Oct 1999 07:28:48 +1000


> In your container class' constructor (MyContainerClass_add), you can
programatically
> create a ZCatalog instance as a subobject, and setup its indexes and
metadata
> automatically.

Cute technique!

I tried deriving a ZClass from ZCatalog to do the column and index
management itself -- the idea was that I could update all of the
FnordCatalogs' designs and methods just by touching one object -- but for
some reason it runs right into a wall. Yell if you can read tracebacks; I
can reproduce it pretty damn quickly.

> > Uh, fine. At the moment, I'm only editing my Fnords via their Properties
> > view. How do I doctor the view so that index_object is called?
>
> Havn't got that far yet - my objects are static though so that is for
> a future project :-) You will probably need to write your own form
> that submits the results to a DTML method that calls index_object and
> manage_editProperties.

Oh, so I can't use views if I want to do that kind of thing?

Regards,
Garth.

--
<gtk@well.com>