Hi all,
I'm installing tmda-cgi, but has run into some problems:
I've installed it 'system-wide', and would like to tighten it a bit - so
I've done the following in defaults.ini:
1. Removed "/etc/tmdarc" from the AccessPaths - but I'm still able to view
this config-file. :(
2. Used "MayEditLocalConfig = No", but I can still change the local
configuration.
Furthermore, if I view the pending queue, and delete evere pending mail by
pressing the "X" button, I get an error when I delete the last mail in the
queue (the errormessage is attached below)
Also, if I specify "CONFIG_EXEC = 0" in /etc/tmdarc I cannot login to
tmda-cgi (the errormessage is attached below) - this might be a problem
with tmda itself, I'm not sure...
Regards,
Kent B. Hansen
Errormessage when deleting the last message in the pending queue:
TypeError Python 2.2: /usr/bin/python2
Tue Nov 25 12:22:14 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.
/var/www/intranet-cgi-bin/tmda-cgi-0.12/tmda-cgi.py
184 import View
185 try:
186 Call(View)
187 except Errors.MessageError: # No messages left?
188 import PendList
Call = <function Call>, View = <module 'View' from 'View.pyc'>
/var/www/intranet-cgi-bin/tmda-cgi-0.12/tmda-cgi.py in
Call(Library=<module 'View' from 'View.pyc'>, Str=None)
73 Library.Show(Str)
74 else:
75 Library.Show()
76
77 # Capture WebUID
Library = <module 'View' from 'View.pyc'>, Library.Show = <function Show>
/usr/lib/python2.2/site-packages/TMDA/Errors.py in
__init__(self=<TMDA.Errors.MessageError instance>, errmsg='Unknown error')
58 class QueueError(TMDAError):
59 def __init__(self, errmsg = 'Unknown error'):
60 TMDAError.__init__(errmsg)
61
62 class MessageError(QueueError):
global TMDAError = <class TMDA.Errors.TMDAError>, TMDAError.__init__ =
<unbound method TMDAError.__init__>, errmsg = 'Unknown error'
TypeError: unbound method __init__() must be called with TMDAError
instance as first argument (got str instance instead)
__doc__ = 'Inappropriate argument type.'
__getitem__ = <bound method TypeError.__getitem__ of
<exceptions.TypeError instance at 0x82b04bc>>
__init__ = <bound method TypeError.__init__ of <exceptions.TypeError
instance at 0x82b04bc>>
__module__ = 'exceptions'
__str__ = <bound method TypeError.__str__ of <exceptions.TypeError
instance at 0x82b04bc>>
args = ('unbound method __init__() must be called with T...nce as
first argument (got str instance instead)',)
Errormessage when "CONFIG_EXEC = 0" is specified:
MissingSectionHeaderError Python 2.2: /usr/bin/python2
Tue Nov 25 12:25:44 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.
/var/www/intranet-cgi-bin/tmda-cgi-0.12/tmda-cgi.py
102 try:
103 try:
104 PVars = Session.Session(Form)
105 CgiUtil.ErrTemplate = "error.html"
106 except CgiUtil.NotInstalled, (ErrStr, PVars):
PVars undefined, Session = <module 'Session' from 'Session.pyc'>,
Session.Session = <class Session.Session>, Form = FieldStorage(None, None,
[MiniFieldStorage('user...rd', 'kvasar'), MiniFieldStorage('cmd',
'init')])
/var/www/intranet-cgi-bin/tmda-cgi-0.12/Session.py in
__init__(self=<Session.Session instance>, Form=FieldStorage(None, None,
[MiniFieldStorage('user...rd', 'kvasar'), MiniFieldStorage('cmd',
'init')]))
469
470 # Become the user
471 self.BecomeUser()
472
473 # Signal main program
self = <Session.Session instance>, self.BecomeUser = <bound method
Session.BecomeUser of <Session.Session instance at 0x8266f7c>>
/var/www/intranet-cgi-bin/tmda-cgi-0.12/Session.py in
BecomeUser(self=<Session.Session instance>)
266 from TMDA import Errors
267 try:
268 from TMDA import Defaults
269 except Errors.ConfigError, (ErrStr):
270 if self[("NoOverride", "MayInstall")][0].lower() == "y":
TMDA undefined, Defaults undefined
/var/www/intranet-cgi-bin/tmda-cgi-0.12/tmda-cgi.py in
NewImport(name='TMDA', globals={'BufferType': <type 'buffer'>,
'BuiltinFunctionType': <type 'builtin_function_or_method'>,
'BuiltinMethodType': <type 'builtin_function_or_method'>, 'CgiUtil':
<module 'CgiUtil' from 'CgiUtil.pyc'>, 'ClassType': <type 'class'>,
'CodeType': <type 'code'>, 'ComplexType': <type 'complex'>,
'ConfigParser': <module 'ConfigParser' from
'/usr/lib/python2.2/ConfigParser.pyc'>, 'DictProxyType': <type
'dict-proxy'>, 'DictType': <type 'dict'>, ...}, 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
= {'BufferType': <type 'buffer'>, 'BuiltinFunctionType': <type
'builtin_function_or_method'>, 'BuiltinMethodType': <type
'builtin_function_or_method'>, 'CgiUtil': <module 'CgiUtil' from
'CgiUtil.pyc'>, 'ClassType': <type 'class'>, 'CodeType': <type 'code'>,
'ComplexType': <type 'complex'>, 'ConfigParser': <module 'ConfigParser'
from '/usr/lib/python2.2/ConfigParser.pyc'>, 'DictProxyType': <type
'dict-proxy'>, 'DictType': <type 'dict'>, ...}, locals = None, fromlist =
('Defaults',)
/usr/lib/python2.2/site-packages/TMDA/Defaults.py
91 import ConfigParser
92 cf = ConfigParser.ConfigParser()
93 cf.read(TMDARC)
94 cf_section = 'TMDA_CONFIG'
95 for option in cf.options(cf_section):
cf = <ConfigParser.ConfigParser instance>, cf.read = <bound method
ConfigParser.read of <ConfigParser.ConfigParser instance at 0x830b8d4>>,
TMDARC = '/home/nia59/.tmda/config'
? in read(self=<ConfigParser.ConfigParser instance>,
filenames=['/home/nia59/.tmda/config'])
? in __read(self=<ConfigParser.ConfigParser instance>, fp=<open file
'/home/nia59/.tmda/config', mode 'r'>, fpname='/home/nia59/.tmda/config')
MissingSectionHeaderError: File contains no section headers. file:
/home/nia59/.tmda/config, line: 1 'FULLNAME = "Kent B. Hansen"\n'
__doc__ = None
__getitem__ = <bound method
MissingSectionHeaderError.__getite.../config, line: 1 'FULLNAME = "Kent B.
Hansen"\n'>
__init__ = <bound method
MissingSectionHeaderError.__init__.../config, line: 1 'FULLNAME = "Kent B.
Hansen"\n'>
__module__ = 'ConfigParser'
__repr__ = <bound method
MissingSectionHeaderError.__repr__.../config, line: 1 'FULLNAME = "Kent B.
Hansen"\n'>
__str__ = <bound method
MissingSectionHeaderError.__repr__.../config, line: 1 'FULLNAME = "Kent B.
Hansen"\n'>
_msg = 'File contains no section headers.\nfile: /home/...fig, line:
1\n\'FULLNAME = "Kent B. Hansen"\\n\''
append = <bound method MissingSectionHeaderError.append o.../config,
line: 1 'FULLNAME = "Kent B. Hansen"\n'>
args = ('File contains no section headers.\nfile: /home/...fig,
line: 1\n\'FULLNAME = "Kent B. Hansen"\\n\'',)
filename = '/home/nia59/.tmda/config'
line = '\'FULLNAME = "Kent B. Hansen"\\n\''
lineno = 1
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users