--> -->

AttributeError

'NoneType' object has no attribute 'get'

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. /srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object>)

    1. 1305 self.page.send_page()
    2. 1306 else:
    3. 1307 handler(self.page.page_name, self)
    4. 1308
    5. 1309 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show>
    • self = <MoinMoin.request.request_cgi.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'143_battle-of-mendacious'
  2. /srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/action/__init__.py in do_show (pagename=u'143_battle-of-mendacious', request=<MoinMoin.request.request_cgi.Request object>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. /srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1167 media=media, pi_refresh=pi.get('refresh'),
    2. 1168 allow_doubleclick=1, trail=trail,
    3. 1169 html_head=html_head,
    4. 1170 )
    5. 1171
    • html_head = ''
  4. /srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/theme/__init__.py in send_title (self=<MoinMoin.theme.modern.Theme instance>, text=u'143_battle-of-mendacious', **keywords={'allow_doubleclick': 1, 'html_head': '', 'media': 'screen', 'page': <MoinMoin.Page.Page object>, 'pi_refresh': None, 'print_mode': 0, 'trail': []})

    1. 1722 exists = pagename and page.exists(includeDeleted=True)
    2. 1723 # prepare dict for theme code:
    3. 1724 d = {
    4. 1725 'theme': self.name,
    5. 1726 'script_name': scriptname,
    • d undefined
    • self = <MoinMoin.theme.modern.Theme instance>
    • self.name = 'modern'
    • scriptname = '/wiki/moin.py'
    • text = u'143_battle-of-mendacious'
    • request = <MoinMoin.request.request_cgi.Request object>
    • request.cfg = <wikiconfig.Config object>
    • request.cfg.logo_string = u'<img src="http://www.spyderware.nl/moin_static172/common/spyder.gif" alt="Spyder Logo">'
    • request.cfg.sitename = u'Spyder'
    • page = <MoinMoin.Page.Page object>
    • rev = None
    • pagename = u'143_battle-of-mendacious'
    • page.size = <bound method Page.size of <MoinMoin.Page.Page object>>
    • exists = True
    • page.lastEditInfo = <bound method Page.lastEditInfo of <MoinMoin.Page.Page object>>
    • page_find_page = 'FindPage'
    • page_front_page = u'Spyder'
    • home_page = None
    • page_help_contents = 'HelpContents'
    • page_help_formatting = 'HelpOnFormatting'
    • page_parent_page = None
    • page_title_index = 'TitleIndex'
    • page_word_index = 'WordIndex'
    • request.user = <MoinMoin.user.User at 0x2aaab6157a70 name:'' valid:0>
    • request.user.name = ''
    • request.user.valid = 0
    • self._status = []
    • keywords = {'allow_doubleclick': 1, 'html_head': '', 'media': 'screen', 'page': <MoinMoin.Page.Page object>, 'pi_refresh': None, 'print_mode': 0, 'trail': []}
    • keywords.get = <built-in method get of dict object>
    • builtin None = None
  5. /srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/Page.py in lastEditInfo (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>)

    1. 584 if log:
    2. 585 request = self.request
    3. 586 editor = log.getEditor(request)
    4. 587 time = wikiutil.version2timestamp(log.ed_time_usecs)
    5. 588 time = request.user.getFormattedDateTime(time) # Use user time format
    • editor undefined
    • log = <MoinMoin.logfile.editlog.EditLogLine instance>
    • log.getEditor = <bound method EditLogLine.getEditor of <MoinMoin.logfile.editlog.EditLogLine instance>>
    • request = <MoinMoin.request.request_cgi.Request object>
  6. /srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/logfile/editlog.py in getEditor (self=<MoinMoin.logfile.editlog.EditLogLine instance>, request=<MoinMoin.request.request_cgi.Request object>)

    1. 105 else:
    2. 106 title = ""
    3. 107 kind, info = self.getInterwikiEditorData(request)
    4. 108 if kind == 'interwiki':
    5. 109 name = self._usercache[self.userid].name
    • kind undefined
    • info undefined
    • self = <MoinMoin.logfile.editlog.EditLogLine instance>
    • self.getInterwikiEditorData = <bound method EditLogLine.getInterwikiEditorData of <MoinMoin.logfile.editlog.EditLogLine instance>>
    • request = <MoinMoin.request.request_cgi.Request object>
  7. /srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/logfile/editlog.py in getInterwikiEditorData (self=<MoinMoin.logfile.editlog.EditLogLine instance>, request=<MoinMoin.request.request_cgi.Request object>)

    1. 87 if self.userid:
    2. 88 if self.userid not in self._usercache:
    3. 89 self._usercache[self.userid] = user.User(request, self.userid, auth_method="editlog:75")
    4. 90 userdata = self._usercache[self.userid]
    5. 91 if userdata.mailto_author and userdata.email:
    • self = <MoinMoin.logfile.editlog.EditLogLine instance>
    • self._usercache = {}
    • self.userid = u'1245195956.67.6567'
    • global user = <module 'MoinMoin.user' from '/srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/user.py'>
    • user.User = <class MoinMoin.user.User>
    • request = <MoinMoin.request.request_cgi.Request object>
    • auth_method undefined
  8. /srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/user.py in __init__ (self=<MoinMoin.user.User at 0x2aaab616eb00 name:'' valid:0>, request=<MoinMoin.request.request_cgi.Request object>, id=u'1245195956.67.6567', name='', password=None, auth_username='', **kw={'auth_method': 'editlog:75'})

    1. 350 check_pass = 1
    2. 351 if self.id:
    3. 352 self.load_from_id(check_pass)
    4. 353 elif self.name:
    5. 354 self.id = getUserId(self._request, self.name)
    • self = <MoinMoin.user.User at 0x2aaab616eb00 name:'' valid:0>
    • self.load_from_id = <bound method User.load_from_id of <MoinMoin.user.User at 0x2aaab616eb00 name:'' valid:0>>
    • check_pass = 0
  9. /srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/user.py in load_from_id (self=<MoinMoin.user.User at 0x2aaab616eb00 name:'' valid:0>, check_pass=0)

    1. 419 password in the user account file.
    2. 420 """
    3. 421 if not self.exists():
    4. 422 return
    5. 423
    • self = <MoinMoin.user.User at 0x2aaab616eb00 name:'' valid:0>
    • self.exists = <bound method User.exists of <MoinMoin.user.User at 0x2aaab616eb00 name:'' valid:0>>
  10. /srv/www-gebruikers/spyderware.nl/wiki/MoinMoin/user.py in exists (self=<MoinMoin.user.User at 0x2aaab616eb00 name:'' valid:0>)

    1. 406 @return: true, if we have a user account
    2. 407 """
    3. 408 return os.path.exists(self.__filename())
    4. 409
    5. 410 def load_from_id(self, check_pass=0):
    • global os = <module 'os' from '/usr/lib64/python2.4/os.pyc'>
    • os.path = <module 'posixpath' from '/usr/lib64/python2.4/posixpath.pyc'>
    • os.path.exists = <function exists>
    • self = <MoinMoin.user.User at 0x2aaab616eb00 name:'' valid:0>
    • self.__filename undefined
  11. /usr/lib64/python2.4/posixpath.py in exists (path=u'/srv/www-gebruikers/spyderware.nl/wiki/data/user/1245195956.67.6567')

    1. 169 """Test whether a path exists. Returns False for broken symbolic links"""
    2. 170 try:
    3. 171 st = os.stat(path)
    4. 172 except os.error:
    5. 173 return False
    • st undefined
    • global os = <module 'os' from '/usr/lib64/python2.4/os.pyc'>
    • os.stat = <built-in function stat>
    • path = u'/srv/www-gebruikers/spyderware.nl/wiki/data/user/1245195956.67.6567'
  12. /usr/lib64/python2.4/encodings/__init__.py in search_function (encoding='ansi_x3.4-1968')

    1. 70
    2. 71 # Cache lookup
    3. 72 entry = _cache.get(encoding, _unknown)
    4. 73 if entry is not _unknown:
    5. 74 return entry
    • entry undefined
    • global _cache = None
    • _cache.get undefined
    • encoding = 'ansi_x3.4-1968'
    • global _unknown = None

AttributeError

'NoneType' object has no attribute 'get'

  • args = ("'NoneType' object has no attribute 'get'",)

System Details