--> -->

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. /var/kunden/webs/mp/MoinMoin/request.py in __init__ (self=<MoinMoin.request.RequestCGI object>, properties={})

    1. 1332 def __init__(self, properties={}):
    2. 1333 try:
    3. 1334 self._setup_vars_from_std_env(os.environ)
    4. 1335 RequestBase.__init__(self, properties)
    5. 1336
    • self = <MoinMoin.request.RequestCGI object>
    • self._setup_vars_from_std_env = <bound method RequestCGI._setup_vars_from_std_env of <MoinMoin.request.RequestCGI object>>
    • global os = <module 'os' from '/usr/lib/python2.3/os.pyc'>
    • os.environ = {'DOCUMENT_ROOT': '/var/kunden/webs/mp/', 'GATEWAY_INTERFACE': 'Python-CGI/1.1', 'HTTP_ACCEPT': 'image/gif, image/x-xbitmap, image/jpeg, image/pj...cation/vnd.ms-powerpoint, application/msword, */*', 'HTTP_ACCEPT_ENCODING': 'deflate, gzip, x-gzip, identity, *;q=0', 'HTTP_ACCEPT_LANGUAGE': 'de', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': 'AWSUSER_ID=awsuser_id1134653509734r2448; __utma=...ash/neue_offizielle_homepage.html|utmcmd=referral', 'HTTP_COOKIE2': '$Version=1', 'HTTP_HOST': 'www.domain.com', 'HTTP_REFERER': 'http://www.domain.com/wiki.py/FrontPage', ...}
  2. /var/kunden/webs/mp/MoinMoin/request.py in _setup_vars_from_std_env (self=<MoinMoin.request.RequestCGI object>, env={'DOCUMENT_ROOT': '/var/kunden/webs/mp/', 'GATEWAY_INTERFACE': 'Python-CGI/1.1', 'HTTP_ACCEPT': 'image/gif, image/x-xbitmap, image/jpeg, image/pj...cation/vnd.ms-powerpoint, application/msword, */*', 'HTTP_ACCEPT_ENCODING': 'deflate, gzip, x-gzip, identity, *;q=0', 'HTTP_ACCEPT_LANGUAGE': 'de', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': 'AWSUSER_ID=awsuser_id1134653509734r2448; __utma=...ash/neue_offizielle_homepage.html|utmcmd=referral', 'HTTP_COOKIE2': '$Version=1', 'HTTP_HOST': 'www.domain.com', 'HTTP_REFERER': 'http://www.domain.com/wiki.py/FrontPage', ...})

    1. 246
    2. 247 # Values that need more work
    3. 248 self.setHttpReferer(env.get('HTTP_REFERER'))
    4. 249 self.setIsSSL(env)
    5. 250 self.setHost(env.get('HTTP_HOST'))
    • self = <MoinMoin.request.RequestCGI object>
    • self.setHttpReferer = <bound method RequestCGI.setHttpReferer of <MoinMoin.request.RequestCGI object>>
    • env = {'DOCUMENT_ROOT': '/var/kunden/webs/mp/', 'GATEWAY_INTERFACE': 'Python-CGI/1.1', 'HTTP_ACCEPT': 'image/gif, image/x-xbitmap, image/jpeg, image/pj...cation/vnd.ms-powerpoint, application/msword, */*', 'HTTP_ACCEPT_ENCODING': 'deflate, gzip, x-gzip, identity, *;q=0', 'HTTP_ACCEPT_LANGUAGE': 'de', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_COOKIE': 'AWSUSER_ID=awsuser_id1134653509734r2448; __utma=...ash/neue_offizielle_homepage.html|utmcmd=referral', 'HTTP_COOKIE2': '$Version=1', 'HTTP_HOST': 'www.domain.com', 'HTTP_REFERER': 'http://www.domain.com/wiki.py/FrontPage', ...}
    • env.get = <built-in method get of dict object>
  3. /var/kunden/webs/mp/MoinMoin/request.py in setHttpReferer (self=<MoinMoin.request.RequestCGI object>, referer='http://www.domain.com/wiki.py/FrontPage')

    1. 262 if referer:
    2. 263 value = unicode(referer, 'ascii', 'replace')
    3. 264 value = value.encode('ascii', 'replace')
    4. 265 self.http_referer = value
    5. 266
    • value = u'http://www.domain.com/wiki.py/FrontPage'
    • value.encode = <built-in method encode of unicode object>
  4. /usr/lib/python2.3/encodings/__init__.py in search_function (encoding='ascii')

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

AttributeError

'NoneType' object has no attribute 'get'

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

System Details