When I click 'Lists' on the left hand nav bar I get a
Python error.

I would appreciate any help you can offer in debugging
it. Everything else with TMDA-CGI seems to be working
fine. I can view pending emails, add to white and
black lists, release mails etc. My whitelist,
blacklist, and confirmed are all in my user's .tmda
directory owned by the user with permission 600. But
clicking Lists shows this:


UnboundLocalError Python 2.3:
/usr/local/Python-2.3/python
Mon Sep 8 02:50:15 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/local/apache/share/htdocs/rydell/tmda/tmda-cgi-0.11/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
'/usr/local/apache/share/htdocs/rydell/tmda/tmda-cgi-0.11/EditList.pyc'>


/usr/local/apache/share/htdocs/rydell/tmda/tmda-cgi-0.11/tmda-cgi.py
in Call(Library=<module 'EditList' from
'/usr/local/apache/share/htdocs/rydell/tmda/tmda-cgi-0.11/EditList.pyc'>,
Str=None)
   55     Library.Show(Str)
   56   else:
   57     Library.Show()
   58 
   59 # Capture WebUID
Library = <module 'EditList' from
'/usr/local/apache/share/htdocs/rydell/tmda/tmda-cgi-0.11/EditList.pyc'>,
Library.Show = <function Show>


/usr/local/apache/share/htdocs/rydell/tmda/tmda-cgi-0.11/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
      args = ("local variable 'List' referenced before
assignment",)





Thanks for you help. And thanks for TMDA which is amazing!

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to