Roundup Tracker - Issues

Message543

Author wbd
Recipients
Date 2002-12-18.00:07:34
Message-id
In-reply-to
This error occurred during installation, with Solaris 2.7, 
ActivePython 2.2.2.

Python complained during roundup-admin initialise, and 
the culprit was TALPrefs.py

#near bottom
import cgi
def quote(s, escape=cgi.escape):
   return '"%s"' % escape(s, 1)
del cgi

It complains that cgi.escape does not exist.  I think this 
is related to the new lexical scoping in Python 2.2.  
Changing to this, it works:

#near top
from cgi import escape as __cgi_escape

#near bottom
def quote(s, escape=__cgi_escape):
   return '"%s"' % escape(s, 1)

History
Date User Action Args
2009-02-03 14:20:10adminlinkissue655492 messages
2009-02-03 14:20:10admincreate