[Zope-CMF] purging of actions in CMF 1.6
Florent Guillaume
fg at nuxeo.com
Thu Jan 19 12:57:58 EST 2006
It seems that an extension profile can't add actions to an action
provide in CMF 1.6. Or, rather, if you do it all previous actions are
erased.
The actions exportimport code has:
def _initProviders(self, node):
...
# delete any actions that are auto-created
provider = getToolByName(self.context, provider_id)
num_actions = len(provider.listActions())
if num_actions:
provider.deleteActions(range(0,num_actions))
What is this for? It's harmful.
Also, it seems actions inside action providers aren't purged correctly.
Can someone shed light on what the code tries to do? Can I use
"newstyle" action profiles in CMF 1.6?
Florent
--
Florent Guillaume, Nuxeo (Paris, France) Director of R&D
+33 1 40 33 71 59 http://nuxeo.com fg at nuxeo.com
More information about the Zope-CMF
mailing list