[Zope-CMF] Re: Five and CMFDefault

Tres Seaver tseaver at palladion.com
Wed Oct 12 10:42:19 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lennart Regebro wrote:

> Not a Five problem, but a CMF problem, switching lists to zope-cmf at zope.org.
> 
> On 10/12/05, David Pratt <fairwinds at eastlink.ca> wrote:
> 
>>One thing I noticed is that there is no class
>>Products.CMFCore.interfaces.IWorkflowDefinition. It is
>>Products.CMFCore.interfaces.WorkflowDefinition  (no I in front of
>>WorkflowDefinition).  Perhaps this is where it is getting messed up
> 
> 
> Well, if you try to access
> Products.CMFCore.interfaces.IWorkflowDefinition and it doesn't exist
> you would get an error, yes. :) Besides, I have the feeling it should
> be Products.CMFCore.interfaces.portal_workflow.WorkflowDefinition,
> unless ther e is some magic going on. And I assume that the missing I
> is just a typo.
> 
> 
>>but why then is it not failing for CMFSite product?
> 
> 
> It probably never arrives at using this?

On the trunk, the "canonical" version of the interface is
Products.CMFCore.interfaces.IWorkflowDefinition (defined in
interfaces/_tool.py, imported into interfaces/__init__.py);  the Zope2
version,
'Products.CMFCore.interfaces.portal_workflow.WorkflowDefinition', is
created via a "reverse bridge" in interfaces/__init__.py.

On the 1.5 branch, the canonical version is the Zope2 one,
'Products.CMFCore.interfaces.portal_workflow.WorkflowDefinition', with
the Zope3 version created via a "forward bridge" in 'bridge.zcml'.

HTH (I'm missing context to know whether this was a curiosity, or
whether somebody saw an actual traceback),


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDTSDL+gerLs4ltQ4RAkZwAKDNgx5QX+4DBX+gexruGLfxUOIJegCgn3mm
rLtXBcG6uEHtEdQA/xuPTEw=
=1RJP
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list