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/lib64/python2.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestFastCGI object>)

    1. 1110 from MoinMoin.wikiaction import getHandler
    2. 1111 handler = getHandler(self, action)
    3. 1112 handler(self.page.page_name, self)
    4. 1113
    5. 1114 # generate page footer (actions that do not want this footer use
    • handler = <function do_edit>
    • self = <MoinMoin.request.RequestFastCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'C/Macros'
  2. /usr/lib64/python2.4/site-packages/MoinMoin/wikiaction.py in do_edit (pagename=u'C/Macros', request=<MoinMoin.request.RequestFastCGI object>)

    1. 643 else:
    2. 644 try:
    3. 645 savemsg = pg.saveText(savetext, rev, trivial=trivial, comment=comment)
    4. 646 except pg.EditConflict, msg:
    5. 647 # 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'See KernighanRitchie Appendix A12.3 for full det..._language%29 m4].\n\n----\nCategoryProgrammingNotes\n'
    • rev = 7
    • trivial = 0
    • comment = u''
  3. /usr/lib64/python2.4/site-packages/MoinMoin/PageEditor.py in saveText (self=<MoinMoin.PageEditor.PageEditor instance>, newtext=u'See KernighanRitchie Appendix A12.3 for full det..._language%29 m4].\n\n----\nCategoryProgrammingNotes\n', rev=7, **kw={'comment': u'', 'trivial': 0})

    1. 898
    2. 899 msg = ""
    3. 900 if not self.request.user.may.save(self, newtext, rev, **kw):
    4. 901 msg = _('You are not allowed to edit this page!')
    5. 902 raise self.AccessDenied, msg
    • self = <MoinMoin.PageEditor.PageEditor instance>
    • self.request = <MoinMoin.request.RequestFastCGI object>
    • self.request.user = <MoinMoin.user.User at 0x2aaaad9c78c0 name:u'JamesAspnes' id:1071346758.99.22152 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'See KernighanRitchie Appendix A12.3 for full det..._language%29 m4].\n\n----\nCategoryProgrammingNotes\n'
    • rev = 7
    • kw = {'comment': u'', 'trivial': 0}
  4. /usr/lib64/python2.4/site-packages/MoinMoin/util/antispam.py in save (self=<MoinMoin.util.antispam.SecurityPolicy instance>, editor=<MoinMoin.PageEditor.PageEditor instance>, newtext=u'See KernighanRitchie Appendix A12.3 for full det..._language%29 m4].\n\n----\nCategoryProgrammingNotes\n', rev=7, **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.RequestFastCGI object>
    • pn = 'BadContent'
    • do_update = True
  5. /usr/lib64/python2.4/site-packages/MoinMoin/util/antispam.py in getblacklist (request=<MoinMoin.request.RequestFastCGI 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'20060713T10:31:51' at 2aaaad35f950>
    • global datetime = <module 'MoinMoin.util.datetime' from '/usr/lib6...hon2.4/site-packages/MoinMoin/util/datetime.pyc'>
    • datetime.datetime undefined

AttributeError

'module' object has no attribute 'datetime'

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

System Details

  • Date: Fri, 14 Jul 2006 16:51:24 +0000
  • Platform: Linux pine 2.6.13-15.10-smp #1 SMP Fri May 12 16:11:24 UTC 2006 x86_64
  • Python: Python 2.4.1 (/srv/www/moin/pinewiki/)
  • MoinMoin: Release 1.5.4 (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-07-14 17:02:43, 10.2 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.