A problem occurred in a Python script. Here is the
sequence of function calls leading up to the error, in the
order they occurred.
/var/www/wiki/lib/MoinMoin/request/__init__.py
in run
(self=<MoinMoin.request.request_fcgi.Request object at 0x20bdbd0>)
- 1306 self.page.send_page()
- 1307 else:
- 1308 handler(self.page.page_name, self)
- 1309
- 1310 # every action that didn't use to raise MoinMoinFinish must call this now:
- handler
= <function do_show at 0xf66f50>
- self
= <MoinMoin.request.request_fcgi.Request object at 0x20bdbd0>
- self.page
= <MoinMoin.Page.Page object at 0x1f50950>
- self.page.page_name
= u'Screenshots'
/var/www/wiki/lib/MoinMoin/action/__init__.py
in do_show
(pagename=u'Screenshots', request=<MoinMoin.request.request_fcgi.Request object at 0x20bdbd0>, content_only=0, count_hit=1, cacheable=1, print_mode=0)
- 251 count_hit=count_hit,
- 252 print_mode=print_mode,
- 253 content_only=content_only,
- 254 )
- 255
/var/www/wiki/lib/MoinMoin/Page.py
in send_page
(self=<MoinMoin.Page.Page object at 0x1f502d0>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})
- 1195 format_args=pi['formatargs'],
- 1196 do_cache=do_cache,
- 1197 start_line=pi['lines'])
- 1198
- 1199 # check for pending footnotes
- start_line undefined
- pi
= {'acl': <MoinMoin.security.AccessControlList instance at 0x26dc200>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
/var/www/wiki/lib/MoinMoin/Page.py
in send_page_content
(self=<MoinMoin.Page.Page object at 0x1f502d0>, request=<MoinMoin.request.request_fcgi.Request object at 0x20bdbd0>, body=u'= ERP5 Screenshots =\n== ERP5 Accounting8 ==\n== E...#!Gallery2 show_text=0\n}}}\n----\nCategoryCategory\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})
- 1279
- 1280 if not (do_cache and self.canUseCache(Parser)):
- 1281 self.format(parser)
- 1282 else:
- 1283 try:
- self
= <MoinMoin.Page.Page object at 0x1f502d0>
- self.format
= <bound method Page.format of <MoinMoin.Page.Page object at 0x1f502d0>>
- parser
= <MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>
/var/www/wiki/lib/MoinMoin/Page.py
in format
(self=<MoinMoin.Page.Page object at 0x1f502d0>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>)
- 1300 def format(self, parser):
- 1301 """ Format and write page content without caching """
- 1302 parser.format(self.formatter)
- 1303
- 1304 def execute(self, request, parser, code):
- parser
= <MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>
- parser.format
= <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>>
- self
= <MoinMoin.Page.Page object at 0x1f502d0>
- self.formatter
= <MoinMoin.formatter.text_html.Formatter instance at 0x26dc488>
/var/www/wiki/lib/MoinMoin/parser/text_moin_wiki.py
in format
(self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>, formatter=<MoinMoin.formatter.text_html.Formatter instance at 0x26dc488>, inhibit_p=False)
- 1530
- 1531 # Scan line, format and write
- 1532 formatted_line = self.scan(line, inhibit_p=inhibit_p)
- 1533 self.request.write(formatted_line)
- 1534
- formatted_line
= u'<p class="line867">'
- self
= <MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>
- self.scan
= <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>>
- line
= u'#!Gallery2 show_text=0'
- inhibit_p
= False
/var/www/wiki/lib/MoinMoin/parser/text_moin_wiki.py
in scan
(self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>, line=u'#!Gallery2 show_text=0', inhibit_p=False)
- 1354 else:
- 1355 if self.in_pre:
- 1356 self._parser_content(line[lastpos:])
- 1357 elif line[lastpos:]:
- 1358 ###result.append('<span class="info">[no match, add rest: <tt>"%s"<tt>]</span>' % line[lastpos:])
- self
= <MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>
- self._parser_content
= <bound method Parser._parser_content of <MoinMoi...ser.text_moin_wiki.Parser instance at 0x26dcbd8>>
- line
= u'#!Gallery2 show_text=0'
- lastpos
= 0
/var/www/wiki/lib/MoinMoin/parser/text_moin_wiki.py
in _parser_content
(self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>, line=u'#!Gallery2 show_text=0')
- 1252 else:
- 1253 parser_name = 'text'
- 1254 self.setParser(parser_name)
- 1255
- 1256 if not self.parser:
- self
= <MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>
- self.setParser
= <bound method Parser.setParser of <MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>>
- parser_name
= u'Gallery2'
/var/www/wiki/lib/MoinMoin/parser/text_moin_wiki.py
in setParser
(self=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>, name=u'Gallery2')
- 1550 # XXX this is done by the formatter as well
- 1551 try:
- 1552 self.parser = wikiutil.searchAndImportPlugin(self.request.cfg, "parser", name)
- 1553 except wikiutil.PluginMissingError:
- 1554 self.parser = None
- self
= <MoinMoin.parser.text_moin_wiki.Parser instance at 0x26dcbd8>
- self.parser
= None
- global
wikiutil
= <module 'MoinMoin.wikiutil' from '/var/www/wiki/lib/MoinMoin/wikiutil.pyc'>
- wikiutil.searchAndImportPlugin
= <function searchAndImportPlugin at 0x853230>
- self.request
= <MoinMoin.request.request_fcgi.Request object at 0x20bdbd0>
- self.request.cfg
= <wikiconfig.Config object at 0x9a4a90>
- name
= u'Gallery2'
/var/www/wiki/lib/MoinMoin/wikiutil.py
in searchAndImportPlugin
(cfg=<wikiconfig.Config object at 0x9a4a90>, type='parser', name=u'Gallery2', what='Parser')
- 1220 for module_name in mt.module_name():
- 1221 try:
- 1222 plugin = importPlugin(cfg, type, module_name, what)
- 1223 break
- 1224 except PluginMissingError:
- plugin
= None
- global
importPlugin
= <function importPlugin at 0x83ad70>
- cfg
= <wikiconfig.Config object at 0x9a4a90>
- type
= 'parser'
- module_name
= u'Gallery2'
- what
= 'Parser'
/var/www/wiki/lib/MoinMoin/wikiutil.py
in importPlugin
(cfg=<wikiconfig.Config object at 0x9a4a90>, kind='parser', name=u'Gallery2', function='Parser')
- 1105 """
- 1106 try:
- 1107 return importWikiPlugin(cfg, kind, name, function)
- 1108 except PluginMissingError:
- 1109 return importBuiltinPlugin(kind, name, function)
- global
importWikiPlugin
= <function importWikiPlugin at 0x83a7d0>
- cfg
= <wikiconfig.Config object at 0x9a4a90>
- kind
= 'parser'
- name
= u'Gallery2'
- function
= 'Parser'
/var/www/wiki/lib/MoinMoin/wikiutil.py
in importWikiPlugin
(cfg=<wikiconfig.Config object at 0x9a4a90>, kind='parser', name=u'Gallery2', function='Parser')
- 1118 raise PluginMissingError
- 1119 moduleName = '%s.plugin.%s.%s' % (cfg.siteid, kind, name)
- 1120 return importNameFromPlugin(moduleName, function)
- 1121
- 1122
- global
importNameFromPlugin
= <function importNameFromPlugin at 0x853050>
- moduleName
= u'wikiconfig.plugin.parser.Gallery2'
- function
= 'Parser'
/var/www/wiki/lib/MoinMoin/wikiutil.py
in importNameFromPlugin
(moduleName=u'wikiconfig.plugin.parser.Gallery2', name='Parser')
- 1142 else:
- 1143 fromlist = [name]
- 1144 module = __import__(moduleName, globals(), {}, fromlist)
- 1145 if fromlist:
- 1146 # module has the obj for module <moduleName>
- module undefined
- builtin
__import__
= <built-in function __import__>
- moduleName
= u'wikiconfig.plugin.parser.Gallery2'
- builtin
globals
= <built-in function globals>
- fromlist
= ['Parser']
/var/www/wiki/erp5/data/plugin/parser/Gallery2.py
in
()
- 338 """
- 339 Dependencies = []
- 340 import os, re, Image, StringIO, SWF, EXIF
- 341 from MoinMoin.action import AttachFile
- 342 from MoinMoin import wikiutil
- os
= None
- re
= None
- Image undefined
- StringIO undefined
- SWF undefined
- EXIF undefined