[Zope-CMF] Re: monkey patching CMFCore.utils isn't working?!?

2006-06-22 Thread suresh
Tres Seaver wrote: Florent Guillaume wrote: It might be possible to monkey patch only _checkPermission.func_code, which seems to work on simple tests, but I've never tried it in real life: def f(a): ... print a+1 def g(b): ... print b+2 f(0) 1 f.func_code = g.func_code

[Zope-CMF] Re: monkey patching CMFCore.utils isn't working?!?

2006-06-02 Thread Tres Seaver
Matt Hahnfeld wrote: I am using Plone 2.1.2, w/ CMF 1.5.5. I'm having trouble using the overridden _checkPermission function in 1.5.5 to handle proxy roles on a FSPythonScript. After hacking around, I've determined the best method to repair this issue is to backport CMF 1.6.0's function and

[Zope-CMF] Re: monkey patching CMFCore.utils isn't working?!?

2006-06-02 Thread Tres Seaver
Florent Guillaume wrote: Tres Seaver wrote: Matt Hahnfeld wrote: I am using Plone 2.1.2, w/ CMF 1.5.5. I'm having trouble using the overridden _checkPermission function in 1.5.5 to handle proxy roles on a FSPythonScript. After hacking around, I've determined the best method to repair