Attachment 'traceback.html'

Download

--> -->

AttributeError

'module' object has no attribute 'datetime'

If you want to report a bug, please save this page and attach it to your bug report.

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

  1. /usr/lib/python2.3/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestTwisted object>)

    1. 1135 from MoinMoin.wikiaction import getHandler
    2. 1136 handler = getHandler(self, action)
    3. 1137 handler(self.page.page_name, self)
    4. 1138
    5. 1139 # 5. Or redirect to another page
    • handler = <function do_edit>
    • self = <MoinMoin.request.RequestTwisted object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'Liste des entr\xe9es du glossaire'
  2. /usr/lib/python2.3/site-packages/MoinMoin/wikiaction.py in do_edit (pagename=u'Liste des entr\xe9es du glossaire', request=<MoinMoin.request.RequestTwisted object>)

    1. 636 else:
    2. 637 try:
    3. 638 savemsg = pg.saveText(savetext, rev, trivial=trivial, comment=comment)
    4. 639 except pg.EditConflict, msg:
    5. 640 # Handle conflict and send editor
    • savemsg undefined
    • pg = <MoinMoin.PageEditor.PageEditor instance>
    • pg.saveText = <bound method PageEditor.saveText of <MoinMoin.PageEditor.PageEditor instance>>
    • savetext = u"Cette page contient l'inventaire de toutes les e...lus simple :)\n\n[[GoTo]]\n\n----\nCat\xe9gorieCat\xe9gorie\n"
    • rev = 15
    • trivial = 0
    • comment = u''
  3. /usr/lib/python2.3/site-packages/MoinMoin/PageEditor.py in saveText (self=<MoinMoin.PageEditor.PageEditor instance>, newtext=u"Cette page contient l'inventaire de toutes les e...lus simple :)\n\n[[GoTo]]\n\n----\nCat\xe9gorieCat\xe9gorie\n", rev=15, **kw={'comment': u'', 'trivial': 0})

    1. 846
    2. 847 msg = ""
    3. 848 if not self.request.user.may.save(self, newtext, rev, **kw):
    4. 849 msg = _('You are not allowed to edit this page!')
    5. 850 raise self.AccessDenied, msg
    • self = <MoinMoin.PageEditor.PageEditor instance>
    • self.request = <MoinMoin.request.RequestTwisted object>
    • self.request.user = <MoinMoin.user.User at 0x914656c name:u'JeanPhilippeGu\xe9rard' id:1121712278.49.42394 valid:1>
    • 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"Cette page contient l'inventaire de toutes les e...lus simple :)\n\n[[GoTo]]\n\n----\nCat\xe9gorieCat\xe9gorie\n"
    • rev = 15
    • kw = {'comment': u'', 'trivial': 0}
  4. /usr/lib/python2.3/site-packages/MoinMoin/util/antispam.py in save (self=<MoinMoin.util.antispam.SecurityPolicy instance>, editor=<MoinMoin.PageEditor.PageEditor instance>, newtext=u"Cette page contient l'inventaire de toutes les e...lus simple :)\n\n[[GoTo]]\n\n----\nCat\xe9gorieCat\xe9gorie\n", rev=15, **kw={'comment': u'', 'trivial': 0})

    1. 166 for pn in BLACKLISTPAGES:
    2. 167 do_update = (pn != "LocalBadContent")
    3. 168 invalidate_cache_necessary, blacklist_entries = getblacklist(request, pn, do_update)
    4. 169 blacklist += blacklist_entries
    5. 170 invalidate_cache |= invalidate_cache_necessary
    • invalidate_cache_necessary undefined
    • blacklist_entries undefined
    • global getblacklist = <function getblacklist>
    • request = <MoinMoin.request.RequestTwisted object>
    • pn = 'BadContent'
    • do_update = True
  5. /usr/lib/python2.3/site-packages/MoinMoin/util/antispam.py in getblacklist (request=<MoinMoin.request.RequestTwisted object>, pagename='BadContent', do_update=True)

    1. 110 masterdate = response['lastModified']
    2. 111
    3. 112 if isinstance(masterdate, datetime.datetime):
    4. 113 # for python 2.5a
    5. 114 mydate = datetime.datetime(*tuple(time.gmtime(mymtime))[0:6])
    • builtin isinstance = <built-in function isinstance>
    • masterdate = <DateTime u'20060426T21:15:22' at 9153cec>
    • global datetime = <module 'MoinMoin.util.datetime' from '/usr/lib/python2.3/site-packages/MoinMoin/util/datetime.py'>
    • datetime.datetime undefined

AttributeError

'module' object has no attribute 'datetime'

  • args = ("'module' object has no attribute 'datetime'",)

System Details

  • Date: Thu, 27 Apr 2006 20:10:13 +0000
  • Platform: Linux benji1 2.4.27-grsec #1 Thu Sep 16 23:07:27 CEST 2004 i686
  • Python: Python 2.3.5 (/usr/bin/python2.3)
  • MoinMoin: Release 1.5.3 (release)

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.
  • [get | view] (2006-04-27 20:30:51, 10.7 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.