[Zope-CMF] Re: guard expression on workflow transition

2007-12-20 Thread Laurence Rowe
Put the pdb code in an external method, as shown in this article: http://www.zopemag.com/Issue009/Section_Articles/article_ZopeAndFlash.html?printit=1 You'll then be able to step into the guard checking. Laurence Marie Robichon wrote: Sorry, I omitted to point out that I am using Plone

[Zope-CMF] Re: guard expression on workflow transition

2007-12-19 Thread Laurence Rowe
I use a view like this: from zope.publisher.browser import BrowserView from zope.component import getMultiAdapter from AccessControl.SecurityManagement import getSecurityManager import transaction class PDBView(BrowserView): def __call__(self): sm = getSecurityManager() user

[Zope-CMF] Re: guard expression on workflow transition

2007-12-19 Thread Marie Robichon
Sorry, I omitted to point out that I am using Plone 2.1.4. The solution you kindly pointed out to me is Zope3ish isn't it?? It is sort of chinese to me;-) I don't suppose with my version of Plone I can do this ? If I can where do I put this code ? I have tried other syntaxes in the guard