| <type 'exceptions.ValueError'> | Python 2.6.5: /usr/bin/python Wed May 30 21:36:24 2012 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /usr/lib/pymodules/python2.6/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>) |
| 556 """Runs the handler, flushes the streams, and ends the request.""" |
| 557 try: |
| 558 protocolStatus, appStatus = self.server.handler(self) |
| 559 except: |
| 560 traceback.print_exc(file=self.stderr) |
| protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>> |
| /usr/lib/pymodules/python2.6/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>) |
| 1116 try: |
| 1117 try: |
| 1118 result = self.application(environ, start_response) |
| 1119 try: |
| 1120 for data in result: |
| result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <werkzeug.utils.SharedDataMiddleware object>, environ = {'DOCUMENT_ROOT': '/var/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.object-craft.com.au', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response> |
| /usr/lib/pymodules/python2.6/MoinMoin/support/werkzeug/utils.py in __call__(self=<werkzeug.utils.SharedDataMiddleware object>, environ={'DOCUMENT_ROOT': '/var/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.object-craft.com.au', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response>) |
| 246 break |
| 247 if file_loader is None or not self.is_allowed(real_filename): |
| 248 return self.app(environ, start_response) |
| 249 |
| 250 guessed_type = mimetypes.guess_type(real_filename) |
| self = <werkzeug.utils.SharedDataMiddleware object>, self.app = <MoinMoin.wsgiapp.Application object>, environ = {'DOCUMENT_ROOT': '/var/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.object-craft.com.au', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <function start_response> |
| /usr/lib/pymodules/python2.6/MoinMoin/wsgiapp.py in __call__(self=<MoinMoin.wsgiapp.Application object>, environ={'DOCUMENT_ROOT': '/var/www/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.object-craft.com.au', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<function start_response>) |
| 280 request = self.Request(environ) |
| 281 context = init(request) |
| 282 response = run(context) |
| 283 context.clock.stop('total') |
| 284 except HTTPException, e: |
| response undefined, global run = <function run>, context = <AllContext ['AllContext']> |
| /usr/lib/pymodules/python2.6/MoinMoin/wsgiapp.py in run(context=<AllContext ['AllContext']>) |
| 86 response = xmlrpc.xmlrpc2(XMLRPCContext(request)) |
| 87 else: |
| 88 response = dispatch(request, context, action_name) |
| 89 context.cfg.session_service.finalize(context, context.session) |
| 90 return response |
| response undefined, global dispatch = <function dispatch>, request = <MoinMoin.wsgiapp.AppRequest object>, context = <AllContext ['AllContext']>, action_name = 'show' |
| /usr/lib/pymodules/python2.6/MoinMoin/wsgiapp.py in dispatch(request=<MoinMoin.wsgiapp.AppRequest object>, context=<AllContext ['AllContext']>, action_name='show') |
| 134 # 2. handle action |
| 135 else: |
| 136 response = handle_action(context, pagename, action_name) |
| 137 if isinstance(response, Context): |
| 138 response = response.request |
| response undefined, global handle_action = <function handle_action>, context = <AllContext ['AllContext']>, pagename = u'Tags', action_name = 'show' |
| /usr/lib/pymodules/python2.6/MoinMoin/wsgiapp.py in handle_action(context=<AllContext ['AllContext']>, pagename=u'Tags', action_name='show') |
| 193 context.page.send_page() |
| 194 else: |
| 195 handler(context.page.page_name, context) |
| 196 |
| 197 return context |
| handler = <function do_show>, context = <AllContext ['AllContext']>, context.page = <MoinMoin.Page.Page object>, context.page.page_name = u'Tags' |
| /usr/lib/pymodules/python2.6/MoinMoin/action/__init__.py in do_show(pagename=u'Tags', request=<AllContext ['AllContext']>, content_only=0, count_hit=1, cacheable=1, print_mode=0, mimetype=u'text/html') |
| 249 """ |
| 250 # We must check if the current page has different ACLs. |
| 251 if not request.user.may.read(pagename): |
| 252 Page(request, pagename).send_page() |
| 253 else: |
| request = <AllContext ['AllContext']>, request.user = <MoinMoin.user.User at 0x6b295f0 name:'' valid:0>, request.user.may = <albatrosswiki.SecurityPolicy instance>, request.user.may.read = <function <lambda>>, pagename = u'Tags' |
| /usr/lib/pymodules/python2.6/MoinMoin/security/__init__.py in |
| 148 if attr not in request.cfg.acl_rights_valid: |
| 149 raise AttributeError, attr |
| 150 return lambda pagename: _check(self.request, pagename, self.name, attr) |
| 151 |
| 152 |
| pagename = u'Tags', global _check = <function _check>, self = <albatrosswiki.SecurityPolicy instance>, self.request = <AllContext ['AllContext']>, self.name = '', attr = 'read' |
| /usr/lib/pymodules/python2.6/MoinMoin/security/__init__.py in _check(request=<AllContext ['AllContext']>, pagename=u'Tags', username='', right='read') |
| 83 else: |
| 84 p = Page(request, pagename) |
| 85 acl = p.getACL(request) # this will be fast in a reused page obj |
| 86 allowed = acl.may(request, username, right) |
| 87 if allowed is not None: |
| acl undefined, p = <MoinMoin.Page.Page object>, p.getACL = <bound method Page.getACL of <MoinMoin.Page.Page object>>, request = <AllContext ['AllContext']> |
| /usr/lib/pymodules/python2.6/MoinMoin/Page.py in getACL(self=<MoinMoin.Page.Page object>, request=<AllContext ['AllContext']>) |
| 1562 request.clock.start('getACL') |
| 1563 # Try the cache or parse acl and update the cache |
| 1564 currentRevision = self.current_rev() |
| 1565 cache_name = self.page_name |
| 1566 cache_key = 'acl' |
| currentRevision undefined, self = <MoinMoin.Page.Page object>, self.current_rev = <bound method Page.current_rev of <MoinMoin.Page.Page object>> |
| /usr/lib/pymodules/python2.6/MoinMoin/Page.py in current_rev(self=<MoinMoin.Page.Page object>) |
| 416 @return: int revision |
| 417 """ |
| 418 pagefile, rev, exists = self.get_rev() |
| 419 return rev |
| 420 |
| pagefile undefined, rev undefined, exists undefined, self = <MoinMoin.Page.Page object>, self.get_rev = <bound method Page.get_rev of <MoinMoin.Page.Page object>> |
| /usr/lib/pymodules/python2.6/MoinMoin/Page.py in get_rev(self=<MoinMoin.Page.Page object>, use_underlay=-1, rev=0) |
| 384 cache_key = layername(use_underlay) |
| 385 if self._text_filename_force is None: |
| 386 cache_data = request.cfg.cache.meta.getItem(request, cache_name, cache_key) |
| 387 if cache_data and (rev == 0 or rev == cache_data[1]): |
| 388 # we got the correct rev data from the cache |
| cache_data undefined, request = <AllContext ['AllContext']>, request.cfg = <albatrosswiki.Config object>, request.cfg.cache = <MoinMoin.config.multiconfig.CacheClass instance>, request.cfg.cache.meta = <MoinMoin.Page.ItemCache instance>, request.cfg.cache.meta.getItem = <bound method ItemCache.getItem of <MoinMoin.Page.ItemCache instance>>, cache_name = u'Tags', cache_key = 'layer_auto' |
| /usr/lib/pymodules/python2.6/MoinMoin/Page.py in getItem(self=<MoinMoin.Page.ItemCache instance>, request=<AllContext ['AllContext']>, name=u'Tags', key='layer_auto') |
| 86 @return: the data or None, if there is no such name or key. |
| 87 """ |
| 88 self.refresh(request) |
| 89 try: |
| 90 data = self.cache[name][key] |
| self = <MoinMoin.Page.ItemCache instance>, self.refresh = <bound method ItemCache.refresh of <MoinMoin.Page.ItemCache instance>>, request = <AllContext ['AllContext']> |
| /usr/lib/pymodules/python2.6/MoinMoin/Page.py in refresh(self=<MoinMoin.Page.ItemCache instance>, request=<AllContext ['AllContext']>) |
| 113 elog = editlog.EditLog(request) |
| 114 old_pos = self.log_pos |
| 115 new_pos, items = elog.news(old_pos) |
| 116 if items: |
| 117 if self.name == 'meta': |
| new_pos undefined, items undefined, elog = <MoinMoin.logfile.editlog.EditLog instance>, elog.news = <bound method EditLog.news of <MoinMoin.logfile.editlog.EditLog instance>>, old_pos = 47814 |
| /usr/lib/pymodules/python2.6/MoinMoin/logfile/editlog.py in news(self=<MoinMoin.logfile.editlog.EditLog instance>, oldposition=47814) |
| 249 self.seek(oldposition) |
| 250 items = [] |
| 251 for line in self: |
| 252 items.append(line.pagename) |
| 253 if line.action == 'SAVE/RENAME': |
| line undefined, self = <MoinMoin.logfile.editlog.EditLog instance> |
| /usr/lib/pymodules/python2.6/MoinMoin/logfile/__init__.py in next(self=<MoinMoin.logfile.editlog.EditLog instance>) |
| 301 while result is None: |
| 302 logging.log(self.loglevel, "LogFile.next %s" % self.__filename) |
| 303 result = self.__next() |
| 304 if self.filter and not self.filter(result): |
| 305 result = None |
| result = None, self = <MoinMoin.logfile.editlog.EditLog instance>, self.__next undefined |
| /usr/lib/pymodules/python2.6/MoinMoin/logfile/__init__.py in __next(self=<MoinMoin.logfile.editlog.EditLog instance>) |
| 288 if self.peek(0): |
| 289 raise StopIteration |
| 290 result = self.parser(self.__buffer.lines[self.__rel_index]) |
| 291 self.peek(1) |
| 292 return result |
| result undefined, self = <MoinMoin.logfile.editlog.EditLog instance>, self.parser = <bound method EditLog.parser of <MoinMoin.logfile.editlog.EditLog instance>>, self.__buffer undefined, self.__rel_index undefined |
| /usr/lib/pymodules/python2.6/MoinMoin/logfile/editlog.py in parser(self=<MoinMoin.logfile.editlog.EditLog instance>, line=u'38207689.82.59968\t\t\n') |
| 224 result.hostname = result.addr |
| 225 result.pagename = wikiutil.unquoteWikiname(result.pagename.encode('ascii')) |
| 226 result.ed_time_usecs = long(result.ed_time_usecs or '0') # has to be long for py 2.2.x |
| 227 return result |
| 228 |
| result = <MoinMoin.logfile.editlog.EditLogLine instance>, result.ed_time_usecs = u'38207689.82.59968', builtin long = <type 'long'> |
<type 'exceptions.ValueError'>: invalid literal for long() with base 10: '38207689.82.59968'
args =
("invalid literal for long() with base 10: '38207689.82.59968'",)
message =
"invalid literal for long() with base 10: '38207689.82.59968'"