Re: Python 2.5 nested auth functions in publisher.

2006-10-29 Thread Graham Dumpleton
Got access to Python 2.5 finally. My test script works on it so they have fixed the ordering issue. 2.5 (r25:51908, Oct 29 2006, 01:52:52) [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] () ('req', '__auth__', '__access__', '__auth_realm__') 1 __auth__ (1, line 7>) __access__ (1, line 9>) __aut

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

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

Re: Python 2.5 nested auth functions in publisher.

2006-10-27 Thread Dan Eloff
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 lot of the publisher code to break in other ways as

Re: Python 2.5 nested auth functions in publisher.

2006-10-27 Thread Graham Dumpleton
On 27/10/2006, at 9:31 PM, Dan Eloff wrote: On 10/27/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote: Jim sent this to me when the python-dev list was down for maintenance. Can anyone with Python 2.5 who knows something about function internals enlighten us about what may have changed here.

Re: Python 2.5 nested auth functions in publisher.

2006-10-27 Thread Dan Eloff
On 10/27/06, Graham Dumpleton <[EMAIL PROTECTED]> wrote: Jim sent this to me when the python-dev list was down for maintenance. Can anyone with Python 2.5 who knows something about function internals enlighten us about what may have changed here. Previously the names of nested functions appeared