When I attempt to validate dated addresses, I get an error saying "TypeError:
timestamp() takes exactly 1 argument (3 given)". I fixed it in the
past, but I can't remember how I did it. I think I just changed the
paramaters of timestamp, and added some date parsing line. It's python
2.2.2 under RH9
Anyone got a ready-made fix?
== Error Messages ==
| TypeError |
Python 2.2.2: /usr/bin/python2.2
Fri Nov 7 23:54:20 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/share/toaster/tmda-cgi/tmda-cgi.py
|
175 elif Cmd == "test_addr":
|
176 import TestAddr
|
177 Call(TestAddr)
|
178 elif Cmd == "theme":
|
179 import Theme
|
| Call =
<function Call>, TestAddr = <module
'TestAddr' from 'TestAddr.pyc'> |
| /usr/share/toaster/tmda-cgi/tmda-cgi.py
in Call(Library=<module 'TestAddr' from
'TestAddr.pyc'>, Str=None) |
55 Library.Show(Str)
|
56 else:
|
57 Library.Show()
|
58
|
59 # Capture WebUID
|
| Library =
<module 'TestAddr' from 'TestAddr.pyc'>, Library.Show =
<function Show> |
| /usr/share/toaster/tmda-cgi/TestAddr.py
in Show() |
67 T["Results"] = "Valid."
|
68 try:
|
69 T["Results"] = "Valid.<br>Expires: %s" % Addr.timestamp(1, None)
|
70 except AttributeError:
|
71 pass
|
| T =
<Template.Template instance>, Addr =
<TMDA.Address.DatedAddress instance>, Addr.timestamp =
<bound method DatedAddress.timestamp of
<TMDA.Address.DatedAddress instance>>, None undefined |
TypeError: timestamp() takes exactly 1 argument (3
given)
__doc__ =
'Inappropriate argument type.'
__getitem__ =
<bound method TypeError.__getitem__ of <exceptions.TypeError
instance>>
__init__ =
<bound method TypeError.__init__ of <exceptions.TypeError
instance>>
__module__ =
'exceptions'
__str__ =
<bound method TypeError.__str__ of <exceptions.TypeError
instance>>
args =
('timestamp() takes exactly 1 argument (3 given)',)
|
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users