Hello boys!

I have some problems with tmda-cgi ...
 I'm using python 2.3,  tmda-1.0.1 and tmda-cgi-0.13 ...


This is my config file: ~johny/.tmda/config

MAIL_TRANSFER_AGENT = "postfix"

ECIPIENT_DELIMITER  = "-"
HOSTNAME = os.popen("hostname |cut -d . -f 2-").read().strip()

DELIVERY = "/var/mail/johny"

LOGFILE_INCOMING = os.path.expanduser("~/.tmda/in.log")
LOGFILE_OUTGOING = os.path.expanduser("~/.tmda/out.log")
LOGFILE_DEBUG = os.path.expanduser("~/.tmda/debug.log")
CONFIRM_APPEND = os.path.expanduser("~/.tmda/lists/confirmed")
PENDING_WHITELIST_APPEND = os.path.expanduser("~/.tmda/lists/whitelist")
PENDING_BLACKLIST_APPEND = os.path.expanduser("~/.tmda/lists/blacklist")

CGI_SETTINGS = "/home/johny/.tmda/MyCGISettings"
CGI_URL = "http://localhost/tmda/cgi-bin/tmda.cgi";
CGI_USER = "www-data"

os.umask(027)


And /etc/tmdarc content only: CONFIG_EXEC = 0

the errora are:
SyntaxError Python 2.3.3: /usr/local/bin/python2.3
  Fri May 28 17:59:51 2004

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/tmda-cgi-0.13/tmda-cgi.py
    132   PVars["InProcess"]   = {}
    133   PVars["LocalConfig"] = "Form"
    134   PVars.Save()
    135
    136 # Share "globals"
  PVars undefined

/usr/local/tmda-cgi-0.13/Session.py in __init__(self=<Session.Session instance>, Form=FieldStorage(None, None, [MiniFieldStorage('user...d',
'qtronix'), MiniFieldStorage('cmd', 'init')]))
471
472 # Become the user
473 self.BecomeUser()
474
475 # Signal main program
self = <Session.Session instance>, self.BecomeUser = <bound method Session.BecomeUser of <Session.Session instance>>


/usr/local/tmda-cgi-0.13/Session.py in BecomeUser(self=<Session.Session instance>)
279 T["ErrMsg"] = ErrStr
280 print T
281 sys.exit()
282
283 # Read in our PVars
global sys = <module 'sys' (built-in)>, sys.exit = <built-in function exit>


/usr/local/tmda-cgi-0.13/tmda-cgi.py in NewImport(name='TMDA', globals={'BooleanType': <type 'bool'>, 'BufferType': <type 'buffer'>,
'BuiltinFunctionType': <type 'builtin_function_or_method'>, 'BuiltinMethodType': <type 'builtin_function_or_method'>, 'CgiUtil': <module 'CgiUtil'
from '/usr/local/tmda-cgi-0.13/CgiUtil.py'>, 'ClassType': <type 'classobj'>, 'CodeType': <type 'code'>, 'ComplexType': <type 'complex'>,
'ConfigParser': <module 'ConfigParser' from '/usr/local/lib/python2.3/ConfigParser.pyc'>, 'DictProxyType': <type 'dictproxy'>, ...}, locals=None,
fromlist=('Defaults',))
37 from TMDA import Version
38 return Version
39 return OldImport(name, globals, locals, fromlist)
40 __builtins__.__import__ = NewImport
41
global OldImport = <built-in function __import__>, name = 'TMDA', globals = {'BooleanType': <type 'bool'>, 'BufferType': <type 'buffer'>,
'BuiltinFunctionType': <type 'builtin_function_or_method'>, 'BuiltinMethodType': <type 'builtin_function_or_method'>, 'CgiUtil': <module 'CgiUtil'
from '/usr/local/tmda-cgi-0.13/CgiUtil.py'>, 'ClassType': <type 'classobj'>, 'CodeType': <type 'code'>, 'ComplexType': <type 'complex'>,
'ConfigParser': <module 'ConfigParser' from '/usr/local/lib/python2.3/ConfigParser.pyc'>, 'DictProxyType': <type 'dictproxy'>, ...}, locals =
None, fromlist = ('Defaults',)


/usr/local/tmda-1.0.1/TMDA/Defaults.py


Can anyone to help me?







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

Reply via email to