[Zope-CMF] Adapting ZClass (Compound News Item) to CMF, but state isn't updating in catalog
Ivo van der Wijk
ivo@amaze.nl
Tue, 21 Jan 2003 14:27:25 +0100
On Mon, Jan 20, 2003 at 11:00:22PM -0000, ndegrootnl <ndegroot@ktu.nl> wrote:
> Using ZClass tutorials, I succeeded in getting the ZClass based
> product 'News item with Images' to update itself in the CMF
> portal_catalog. It now updates when 'Adding' the product and when
> editing the properties. But after 'Publish' the state-variable in the
> catalog does *not* get updated. I tried adding (variations of)
> reindex_object() like
>
> state_change.object.updateCatalog()
> here.reindex_object()
>
> to a DCWorkflow script, but without success. I also tried to call a
> ZClass method from the script.
> We use the Compound News Item a lot on our site and I would be happy
> to publish the revised version on the CMF Zope-site eventually.
> Rewriting the product into a Python-based product is not an option
> for me...
>
Which baseclasses are you using for your ZClass? As far as I know, if you
derive from a CMF Content type, workflow state cataloging shouldn't be a
problem.
Regards,
Ivo
--
Drs. I.R. van der Wijk -=-
Brouwersgracht 132 Amaze Internet Services V.O.F.
1013 HA Amsterdam, NL -=-
T +31-20-4688336 F +31-20-4688337 Linux/Web/Zope/SQL/MMBase
W http://www.amaze.nl E info@amaze.nl Network Solutions
W http://vanderwijk.info E ivo@amaze.nl Consultancy
PGP http://vanderwijk.info/pgp -=-