#6 Unexpected exception

closed-fixed
nobody
None
5
2003-12-10
2003-09-04
Anonymous
No

I'm trying to show a query to a database with MySQL
and module MySQLdb.
It works fine on Apache 2.0.44 mod_python 3.0.3 and
python2.3.0. (Windows 2000)
But, it doesn't work on Apache 1.3.28 mod_pyhon 2.7.8
and python 2.1. (Unix)
Spyce version 1.3.11

Unexpected exception: (please report!)
Traceback (most recent call last):
File "/usr/share/spyce/spyce.py", line 169, in
commonHandler
thespyce.spyceDestroy(theError)
File "/usr/share/spyce/spyce.py", line 442, in
spyceDestroy
try: mod.finish(theError)
File "/usr/share/spyce/modules/error.py", line 24, in
finish
self.handler(self)
File "/usr/share/spyce/modules/error.py", line 19, in
<lambda>
self.handler = lambda self: spyceHandler(self,
pageerrorData, pageerrorType)
NameError: global name 'pageerrorData' is not defined

Discussion

  • batripler

    batripler - 2003-12-10
    • status: open --> closed
     
  • batripler

    batripler - 2003-12-10
    • status: closed --> closed-fixed
     
  • batripler

    batripler - 2003-12-10

    Logged In: YES
    user_id=371556

    Have not replicated this bug, but I think I've fixed it. Please
    verify in Spyce v1.3.12. Suspected cause: In earlier versions
    of Python, lambda expressions do not inherit the namespace
    of the enclosing functions. Added default parameters to the
    lambda expressions in the error module, so it should now be
    backwards compatible with Python 1.5.2.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks