Attachment 'mointb.html'
Download--> -->
TypeErrorcan't compare datetime.datetime to instance | Please include this information in your bug reports!: Python Python 2.3.4: /usr/bin/python Linux orca.mojam.com 2.6.9-11.ELsmp #1 SMP Wed Jun 8 17:54:20 CDT 2005 i686 MoinMoin Release 1.3.5 [Revision 1.3.5 release] Sat Oct 15 18:41:52 2005 |
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/mojam/lib/python2.3/site-packages/MoinMoin/request.py in run(self=<MoinMoin.request.RequestCGI object>) |
914 else: |
915 try: |
916 cgitb.Hook(file=self).handle(saved_exc) |
917 # was: cgitb.handler() |
918 except: |
cgitb = <module 'MoinMoin.support.cgitb' from '/usr/loca...hon2.3/site-packages/MoinMoin/support/cgitb.pyc'>, cgitb.Hook = <class MoinMoin.support.cgitb.Hook>, file undefined, self = <MoinMoin.request.RequestCGI object>, ).handle undefined, saved_exc = (<class exceptions.TypeError>, <exceptions.TypeError instance>, <traceback object>) |
/usr/local/mojam/lib/python2.3/site-packages/MoinMoin/wikiaction.py in do_savepage(pagename=u'WikiSandBox', request=<MoinMoin.request.RequestCGI object>) |
628 except pg.SaveError, msg: |
629 # msg contain a unicode string |
630 savemsg = unicode(msg) |
631 |
632 # Send new page after save or after unsuccessful conflict merge. |
savemsg undefined, unicode undefined, msg undefined |
/usr/local/mojam/lib/python2.3/site-packages/MoinMoin/PageEditor.py in saveText(self=<MoinMoin.PageEditor.PageEditor instance>, newtext=u'Please feel free to experiment here, after the f...er\n\n=== Glossary ===\n Term:: Definition\n\nTest...\n', rev=5, **kw={'comment': u'', 'trivial': 0}) |
862 |
863 msg = "" |
864 if not self.request.user.may.save(self, newtext, rev, **kw): |
865 msg = _('You are not allowed to edit this page!') |
866 raise self.AccessDenied, msg |
self = <MoinMoin.PageEditor.PageEditor instance>, self.request = <MoinMoin.request.RequestCGI object>, self.request.user = <MoinMoin.user.User instance>, self.request.user.may = <MoinMoin.util.antispam.SecurityPolicy instance>, self.request.user.may.save = <bound method SecurityPolicy.save of <MoinMoin.util.antispam.SecurityPolicy instance>>, newtext = u'Please feel free to experiment here, after the f...er\n\n=== Glossary ===\n Term:: Definition\n\nTest...\n', rev = 5, kw = {'comment': u'', 'trivial': 0} |
/usr/local/mojam/lib/python2.3/site-packages/MoinMoin/util/antispam.py in save(self=<MoinMoin.util.antispam.SecurityPolicy instance>, editor=<MoinMoin.PageEditor.PageEditor instance>, newtext=u'Please feel free to experiment here, after the f...er\n\n=== Glossary ===\n Term:: Definition\n\nTest...\n', rev=5, **kw={'comment': u'', 'trivial': 0}) |
166 for pn in BLACKLISTPAGES: |
167 do_update = (pn != "LocalBadContent") |
168 invalidate_cache_necessary, blacklist_entries = getblacklist(request, pn, do_update) |
169 blacklist += blacklist_entries |
170 invalidate_cache |= invalidate_cache_necessary |
invalidate_cache_necessary undefined, blacklist_entries undefined, global getblacklist = <function getblacklist>, request = <MoinMoin.request.RequestCGI object>, pn = 'BadContent', do_update = True |
/usr/local/mojam/lib/python2.3/site-packages/MoinMoin/util/antispam.py in getblacklist(request=<MoinMoin.request.RequestCGI object>, pagename='BadContent', do_update=True) |
142 # In case of Error, we log the error and use the local |
143 # BadContent copy. |
144 dprint(str(err)) |
145 |
146 # set back socket timeout |
global dprint = <function dprint>, str undefined, err undefined |
TypeError: can't compare datetime.datetime to instance
__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 =
("can't compare datetime.datetime to instance",)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.