There is a bug in the list editor...  If I have the line:

to-file -optional -autodbm ~/lists/revoked confirm

in my filter file AND the file does not exist (but it's got the -optional
flag), tmda-cgi will generated the following error when I try to edit it.
Even worse, if the list is element[0], and it tries to auto-load the file
for editing, you won't be able to get to any lists to edit.


UnboundLocalErrorPython 2.2.1: /usr/bin/python
Fri Aug 15 01:40:26 2003

A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.
 /usr/lib/python2.2/site-packages/TMDA/cgi/tmda-cgi.py
  140   elif Cmd[:8] == "editlist":

  141     import EditList

  142     Call(EditList)

  143   elif Cmd == "gen_addr":

  144     import GenAddr

Call = <function Call>, EditList = <module 'EditList' from 'EditList.py'>

 /usr/lib/python2.2/site-packages/TMDA/cgi/tmda-cgi.py in
Call(Library=<module 'EditList' from 'EditList.py'>, Str=None)
   55     Library.Show(Str)

   56   else:

   57     Library.Show()

   58

   59 # Capture WebUID

Library = <module 'EditList' from 'EditList.py'>, Library.Show = <function
Show>

 /usr/lib/python2.2/site-packages/TMDA/cgi/EditList.py in Show()
  144         "Change file permissions on <tt>%s</tt>" % EditFile)

  145

  146   # Display template

  147   T["FileContents"] = List

  148   print T

T = <Template.Template instance>, List undefined

UnboundLocalError: local variable 'List' referenced before assignment
      __doc__ = 'Local name referenced but not bound to a value.'
      __getitem__ = <bound method UnboundLocalError.__getitem__ of
<exceptions.UnboundLocalError instance at 0x82db854>>
      __init__ = <bound method UnboundLocalError.__init__ of
<exceptions.UnboundLocalError instance at 0x82db854>>
      __module__ = 'exceptions'
      __str__ = <bound method UnboundLocalError.__str__ of
<exceptions.UnboundLocalError instance at 0x82db854>>
      args = ("local variable 'List' referenced before assignment",)



_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to