[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 :
> >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...
I just follow the tutorial.
The result is that the object has
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
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