[Mailman-Developers] Bug in 2.1.7 edithtml.py

Joel P. Lord jpl at ilk.org
Fri Mar 31 18:15:42 CEST 2006

    I've got a listadmin who likes to customize things, and she ran in to a 
bug in 2.1.7 on line 160 of edithtml.py.  Here's the traceback from the 

admin(23994): [----- Mailman Version: 2.1.7 -----]
admin(23994): [----- Traceback ------]
admin(23994): Traceback (most recent call last):
admin(23994):   File "/mailman/mailman-sflovers/scripts/driver", line 101, 
in ru
admin(23994):     main()
admin(23994):   File "/mailman/mailman-sflovers/Mailman/Cgi/edithtml.py", 
line 1
25, in main
admin(23994):     ChangeHTML(mlist, cgidata, template_name, doc)
admin(23994):   File "/mailman/mailman-sflovers/Mailman/Cgi/edithtml.py", 
line 1
60, in ChangeHTML
admin(23994):     code = re.sub(r'<([/]?script.*?)>', r'&lt;\1&gt;', code)
admin(23994): NameError: global name 're' is not defined
admin(23994): [----- Python Information -----]
admin(23994): sys.version     =   2.4.2 (#2, Mar 15 2006, 15:40:10)
[GCC 3.4.2]
admin(23994): sys.executable  =   /usr/local/bin/python
admin(23994): sys.prefix      =   /usr/local
admin(23994): sys.exec_prefix =   /usr/local
admin(23994): sys.path        =   /usr/local
admin(23994): sys.platform    =   sunos5

    I can include the rest if necessary, but I'd rather not toss around the 
contents of the cookies and such if it isn't.

    Seems pretty clearcut to me, I just don't know what the global there 
*should* be.

Joel Lord
Sound Designer, Nine, Schenectady Light Opera
Chair, Albacon 2006
Web Master, Alpha Psi Omega Grand Cast
etc... etc... etc...

More information about the Mailman-Developers mailing list