[Zope-CMF] scriptable type information and workflow

Sune Brøndum Wøller sune at syntetisk.dk
Mon Dec 8 15:17:31 EST 2003

> -----Original Message-----
> From: Dieter Maurer [mailto:dieter at handshake.de]
> Sent: 8. december 2003 20:48
> To: Sune Brøndum Wøller
> Cc: Zope-Cmf at Zope. Org
> Subject: Re: [Zope-CMF] scriptable type information and workflow
> Sune Brøndum Wøller wrote at 2003-12-8 17:07 +0100:
> >I have defined an STI, (based on Document)
> >and removed it from any workflows (currently
> >using dc-workflow).
> >
> >The STI add script adds a document.
> >I followed the todo :
> >http://cmf.zope.org/Members/tseaver/how_tos/using_scriptable_type
> _info/view
> >,
> >but i use invokeFactory instead:
> >
> >  container.invokeFactory('Document', id)
> >  ob = getattr(container, id)
> But, this requests the creation of a "Document" instance and
> not of your new type instance...
> >When looking at the workflows-tab in the zmi
> >it says correctly that the object does not belong
> >to a workflow, but
> >when adding objects of this type, the security
> >settings are set just as if it was under workflow.
> Which would not be surprising for "Document" objects...
> --
> Dieter

I just follow the tutorial.

The result is that the object has
meta_type 'Document'
and portal_type 'myNewType'.
This should be the way to use STI's.
(Or what ? did I miss something ?)

I guess that an STI is really just
(for instance) a Document, with another

Everything works correctly so far,
except the permissions-setting with
no workflow.

Workflow should be working on the portal_type,
shouldn't it ?

(I'm new around here, so please enlighten me...)


More information about the Zope-CMF mailing list