[Zope-CMF] method aliases

Chris McDonough chrism@zope.com
29 Jul 2003 11:25:03 -0400


What is the purpose of the machinery for "method aliases" in the current
CMF core types tool?  Can anyone give a 10-word summary? 

The _guessMethodAliases method in CMFCore TypeInformation attempts to
evaluate FTI action expressions in the context of the types tool, which
really doesn't work for many actions.  For instance, there may be
objects which expect to reliably have a parent object of a certain kind;
their actions depend on the object having this context.

The upshot of this magic is that you can't create content types for
objects that can't have a factory type information which includes
actions that don't work at type creation time, although they would work
fine during normal operation.

The workaround is to specify an empty dict as the 'alias' of an fti, but
why is this necessary?

-- 
Chris McDonough <chrism@zope.com>
Zope Corporation