Sandbox

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.

      /home/centuria/sheep/moin-1.6.0/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object>)
         1. 1246 # Use localized FrontPage if pagename is empty
         2. 1247 if not pagename:
         3. 1248 self.page = wikiutil.getFrontPage(self)
         4. 1249 else:
         5. 1250 self.page = Page(self, pagename)
          * self = <MoinMoin.request.request_cgi.Request object>
          * self.page = None
          * global wikiutil = <module 'MoinMoin.wikiutil' from '/home/centuria/sheep/moin-1.6.0/MoinMoin/wikiutil.pyc'>
          * wikiutil.getFrontPage = <function getFrontPage>
   2.

      /home/centuria/sheep/moin-1.6.0/MoinMoin/wikiutil.py in getFrontPage (request=<MoinMoin.request.request_cgi.Request object>)
         1. 781 @return localized page_front_page, if there is a translation
         2. 782 """
         3. 783 return getLocalizedPage(request, request.cfg.page_front_page)
         4. 784
         5. 785
          * global getLocalizedPage = <function getLocalizedPage>
          * request = <MoinMoin.request.request_cgi.Request object>
          * request.cfg = <wikiconfig.Config instance>
          * request.cfg.page_front_page = u'Dlaczego'
   3.

      /home/centuria/sheep/moin-1.6.0/MoinMoin/wikiutil.py in getLocalizedPage (request=<MoinMoin.request.request_cgi.Request object>, pagename=u'Dlaczego')
         1. 750 """
         2. 751 from MoinMoin.Page import Page
         3. 752 i18n_name = request.getText(pagename, formatted=False)
         4. 753 pageobj = None
         5. 754 if i18n_name != pagename:
          * i18n_name undefined
          * request = <MoinMoin.request.request_cgi.Request object>
          * request.getText = <function <lambda>>
          * pagename = u'Dlaczego'
          * formatted undefined
          * builtin False = False
   4.

      /home/centuria/sheep/moin-1.6.0/MoinMoin/request/__init__.py in (text=u'Dlaczego', i18n=<module 'MoinMoin.i18n' from '/home/centuria/sheep/moin-1.6.0/MoinMoin/i18n/__init__.pyc'>, request=<MoinMoin.request.request_cgi.Request object>, lang=None, **kv={'formatted': False})
         1. 271 # but generated content like search results should use the user language.
         2. 272 self.content_lang = self.cfg.language_default
         3. 273 self.getText = lambda text, i18n=self.i18n, request=self, lang=self.lang, **kv: i18n.getText(text, request, lang, **kv)
         4. 274
         5. 275 self.reset()
          * self undefined
          * text = u'Dlaczego'
          * i18n = <module 'MoinMoin.i18n' from '/home/centuria/sheep/moin-1.6.0/MoinMoin/i18n/__init__.pyc'>
          * request = <MoinMoin.request.request_cgi.Request object>
          * lang = None
          * kv = {'formatted': False}
          * i18n.getText = <function getText>
   5.

      /home/centuria/sheep/moin-1.6.0/MoinMoin/i18n/__init__.py in getText (original=u'Dlaczego', request=<MoinMoin.request.request_cgi.Request object>, lang=None, **kw={'formatted': False})
         1. 232 if not lang in translations: # load translation if needed
         2. 233 t = Translation(lang)
         3. 234 t.loadLanguage(request)
         4. 235 translations[lang] = t
         5. 236
          * t = <MoinMoin.i18n.Translation object>
          * t.loadLanguage = <bound method Translation.loadLanguage of <MoinMoin.i18n.Translation object>>
          * request = <MoinMoin.request.request_cgi.Request object>
   6.

      /home/centuria/sheep/moin-1.6.0/MoinMoin/i18n/__init__.py in loadLanguage (self=<MoinMoin.i18n.Translation object>, request=<MoinMoin.request.request_cgi.Request object>)
         1. 176 cache = caching.CacheEntry(request, arena='i18n', key=self.language, scope='farm', use_pickle=True)
         2. 177 langfilename = po_filename(request, self.language, self.domain)
         3. 178 needsupdate = cache.needsUpdate(langfilename)
         4. 179 if not needsupdate:
         5. 180 try:
          * needsupdate undefined
          * cache = <MoinMoin.caching.CacheEntry instance>
          * cache.needsUpdate = <bound method CacheEntry.needsUpdate of <MoinMoin.caching.CacheEntry instance>>
          * langfilename = '/home/centuria/sheep/moin-1.6.0/MoinMoin/i18n/None.MoinMoin.po'
   7.

      /home/centuria/sheep/moin-1.6.0/MoinMoin/caching.py in needsUpdate(self=<MoinMoin.caching.CacheEntry instance>, filename='/home/centuria/sheep/moin-1.6.0/MoinMoin/i18n/None.MoinMoin.po', attachdir=None)
         1. 90
         2. 91 try:
         3. 92 ctime = os.path.getmtime(self._filename())
         4. 93 ftime = os.path.getmtime(filename)
         5. 94 except os.error:
          * ctime undefined
          * global os = <module 'os' from '/usr/share/python2.4/os.pyc'>
          * os.path = <module 'posixpath' from '/usr/share/python2.4/posixpath.pyc'>
          * os.path.getmtime = <function getmtime>
          * self = <MoinMoin.caching.CacheEntry instance>
          * self._filename = <bound method CacheEntry._filename of <MoinMoin.caching.CacheEntry instance>>
   8.

      /home/centuria/sheep/moin-1.6.0/MoinMoin/caching.py in _filename (self=<MoinMoin.caching.CacheEntry instance>)
         1. 73
         2. 74 def _filename(self):
         3. 75 return os.path.join(self.arena_dir, self.key)
         4. 76
         5. 77 def exists(self):
          * global os = <module 'os' from '/usr/share/python2.4/os.pyc'>
          * os.path = <module 'posixpath' from '/usr/share/python2.4/posixpath.pyc'>
          * os.path.join = <function join>
          * self = <MoinMoin.caching.CacheEntry instance>
          * self.arena_dir = '/home/centuria/sheep/marciniak/data/cache/__common__/i18n'
          * self.key = None
   9.

      /usr/share/python2.4/posixpath.py in join (a='/home/centuria/sheep/marciniak/data/cache/__common__/i18n', *p=(None,))

AttributeError

'NoneType' object has no attribute 'startswith'

    * args = ("'NoneType' object has no attribute 'startswith'",)