Re: Python 2.5 nested auth functions in publisher.

2006-10-28 Thread Graham Dumpleton
On 29/10/2006, at 12:05 PM, Graham Dumpleton wrote: On 28/10/2006, at 10:01 PM, Dan Eloff wrote: On 10/28/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote: Dan, the code that needs to be updated is: if "__auth__" in func_code.co_names: i = list(func_code.co_names).index

[jira] Commented: (MODPYTHON-198) Python 2.5 nested auth functions in publisher.

2006-10-28 Thread Graham Dumpleton (JIRA)
[ http://issues.apache.org/jira/browse/MODPYTHON-198?page=comments#action_12445424 ] Graham Dumpleton commented on MODPYTHON-198: Dan provides confirmation that something like: >>> def foo(a,b): d = 5 def __auth__(re

[jira] Work started: (MODPYTHON-198) Python 2.5 nested auth functions in publisher.

2006-10-28 Thread Graham Dumpleton (JIRA)
[ http://issues.apache.org/jira/browse/MODPYTHON-198?page=all ] Work on MODPYTHON-198 started by Graham Dumpleton. > Python 2.5 nested auth functions in publisher. > -- > > Key: MODPYTHON-198 > URL: http://issues.apa

Re: Python 2.5 nested auth functions in publisher.

2006-10-28 Thread Graham Dumpleton
On 28/10/2006, at 10:01 PM, Dan Eloff wrote: On 10/28/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote: Dan, the code that needs to be updated is: if "__auth__" in func_code.co_names: i = list(func_code.co_names).index("__auth__") __auth__ = func_code.co_const

Re: Python 2.5 nested auth functions in publisher.

2006-10-28 Thread Dan Eloff
On 10/28/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote: Dan, the code that needs to be updated is: if "__auth__" in func_code.co_names: i = list(func_code.co_names).index("__auth__") __auth__ = func_code.co_consts[i+1] if hasattr(__auth__, "co_nam

Re: Python 2.5 nested auth functions in publisher.

2006-10-28 Thread Graham Dumpleton
On 27/10/2006, at 11:03 PM, Dan Eloff wrote: On 10/27/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote: Unless they have really screwed things around, co_varnames is specifically for function argument names and is unlikely to contained nested constant names. If it did, then I would expect a l

[jira] Created: (MODPYTHON-198) Python 2.5 nested auth functions in publisher.

2006-10-28 Thread Graham Dumpleton (JIRA)
Python 2.5 nested auth functions in publisher. -- Key: MODPYTHON-198 URL: http://issues.apache.org/jira/browse/MODPYTHON-198 Project: mod_python Issue Type: Bug Components: publisher