I have a method (A) which creates another method (B) to be executed later by Xron. Since it will be executed later the new method needs proxy permission (Xron runs things as anonymous). That means that method A needs to set the proxy role on B. However this doesn't seem to be possible since the security machinery seems to check the users roles not the proxy roles of method A. Is there anyway out of this mess? ---- Dylan Jay mailto:djay@avaya.com Avaya Communication Tel: +61-2-9352-8642 Level 3, 123 Epping Road FAX: +61-2-9352 9224 Nth Ryde NSW 2113 Mobile: 0409 606 171 AUSTRALIA
Jay, Dylan wrote at 2003-1-16 14:45 +1100:
I have a method (A) which creates another method (B) to be executed later by Xron. Since it will be executed later the new method needs proxy permission (Xron runs things as anonymous). That means that method A needs to set the proxy role on B. However this doesn't seem to be possible since the security machinery seems to check the users roles not the proxy roles of method A.
Is there anyway out of this mess? When you are ready to use an External Method (or other code not restricted by Zope security subsystem), then yes.
Look at the source of the "proxy role setting code". Move it out in your code but omit the security checks). Dieter
participants (2)
-
Dieter Maurer -
Jay, Dylan