A problem occurred in a Python script. Here is the
sequence of function calls leading up to the error, in the
order they occurred.
C:\Python24\Lib\site-packages\MoinMoin\request.py
in run
(self=<MoinMoin.request.RequestModPy object>)
- 1135 from MoinMoin.wikiaction import getHandler
- 1136 handler = getHandler(self, action)
- 1137 handler(self.page.page_name, self)
- 1138
- 1139 # 5. Or redirect to another page
- handler
= <function do_edit>
- self
= <MoinMoin.request.RequestModPy object>
- self.page
= <MoinMoin.Page.Page instance>
- self.page.page_name
= u'ChangePassword'
C:\Python24\Lib\site-packages\MoinMoin\wikiaction.py
in do_edit
(pagename=u'ChangePassword', request=<MoinMoin.request.RequestModPy object>)
- 631 # Preview with mode switch
- 632 elif request.form.has_key('button_switch'):
- 633 pg.sendEditor(preview=savetext, comment=comment, staytop=1)
- 634
- 635 # Save new text
- pg
= <MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>
- pg.sendEditor
= <bound method PageGraphicalEditor.sendEditor of ...ageGraphicalEditor.PageGraphicalEditor instance>>
- preview undefined
- savetext
= u'=== Change Password ===\nPasswords are case sensi...olBus.gif]\nNext stop is TransferUpdateAuthority.\n'
- comment
= u''
- staytop undefined
C:\Python24\Lib\site-packages\MoinMoin\PageGraphicalEditor.py
in sendEditor
(self=<MoinMoin.PageGraphicalEditor.PageGraphicalEditor
instance>, **kw={'comment': u'', 'preview': u'=== Change Password ===\nPasswords are case sensi...olBus.gif]\nNext stop is TransferUpdateAuthority.\n', 'staytop': 1})
- 287 self.formatter = Formatter(request)
- 288 self.formatter.page = self
- 289 output = request.redirectedOutput(self.send_page_content, request, Parser, raw_body, do_cache=False)
- 290 output = repr(output)
- 291 if output[0] == 'u':
- output undefined
- request
= <MoinMoin.request.RequestModPy object>
- request.redirectedOutput
= <bound method RequestModPy.redirectedOutput of <MoinMoin.request.RequestModPy object>>
- self
= <MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>
- self.send_page_content
= <bound method PageGraphicalEditor.send_page_cont...ageGraphicalEditor.PageGraphicalEditor instance>>
- global
Parser
= <class MoinMoin.parser.wiki.Parser>
- raw_body
= u'=== Change Password ===\nPasswords are case sensi...olBus.gif]\nNext stop is TransferUpdateAuthority.\n'
- do_cache undefined
- builtin
False
= False
C:\Python24\Lib\site-packages\MoinMoin\request.py
in redirectedOutput
(self=<MoinMoin.request.RequestModPy object>, function=<bound
method
PageGraphicalEditor.send_page_cont...ageGraphicalEditor.PageGraphicalEditor
instance>>, *args=(<MoinMoin.request.RequestModPy object>,
<class MoinMoin.parser.wiki.Parser>, u'=== Change Password ===\nPasswords are case sensi...olBus.gif]\nNext stop is TransferUpdateAuthority.\n'), **kw={'do_cache': False})
- 716 self.redirect(buffer)
- 717 try:
- 718 function(*args, **kw)
- 719 finally:
- 720 self.redirect()
- function
= <bound method PageGraphicalEditor.send_page_cont...ageGraphicalEditor.PageGraphicalEditor instance>>
- args
= (<MoinMoin.request.RequestModPy object>, <class MoinMoin.parser.wiki.Parser>, u'=== Change Password ===\nPasswords are case sensi...olBus.gif]\nNext stop is TransferUpdateAuthority.\n')
- kw
= {'do_cache': False}
C:\Python24\Lib\site-packages\MoinMoin\Page.py
in send_page_content
(self=<MoinMoin.PageGraphicalEditor.PageGraphicalEditor
instance>, request=<MoinMoin.request.RequestModPy object>,
Parser=<class MoinMoin.parser.wiki.Parser>, body=u'=== Change
Password ===\nPasswords are case sensi...olBus.gif]\nNext stop is TransferUpdateAuthority.\n', format_args='', do_cache=False, **kw={})
- 1313
- 1314 if not (do_cache and self.canUseCache(Parser)):
- 1315 self.format(parser)
- 1316 else:
- 1317 try:
- self
= <MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>
- self.format
= <bound method PageGraphicalEditor.format of <Moi...ageGraphicalEditor.PageGraphicalEditor instance>>
- parser
= <MoinMoin.parser.wiki.Parser instance>
C:\Python24\Lib\site-packages\MoinMoin\Page.py
in format
(self=<MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>, parser=<MoinMoin.parser.wiki.Parser instance>)
- 1330 def format(self, parser):
- 1331 """ Format and write page content without caching """
- 1332 parser.format(self.formatter)
- 1333
- 1334 def execute(self, request, parser, code):
- parser
= <MoinMoin.parser.wiki.Parser instance>
- parser.format
= <bound method Parser.format of <MoinMoin.parser.wiki.Parser instance>>
- self
= <MoinMoin.PageGraphicalEditor.PageGraphicalEditor instance>
- self.formatter
= <MoinMoin.formatter.text_gedit.Formatter instance>
C:\Python24\Lib\site-packages\MoinMoin\parser\wiki.py
in format
(self=<MoinMoin.parser.wiki.Parser instance>, formatter=<MoinMoin.formatter.text_gedit.Formatter instance>)
- 1098
- 1099 # Scan line, format and write
- 1100 formatted_line = self.scan(scan_re, line)
- 1101 self.request.write(formatted_line)
- 1102
- formatted_line
= u'web applications like this and similar transactions. '
- self
= <MoinMoin.parser.wiki.Parser instance>
- self.scan
= <bound method Parser.scan of <MoinMoin.parser.wiki.Parser instance>>
- scan_re
= <_sre.SRE_Pattern object>
- line
= u'attachment:ScreenShots/Password.jpg '
C:\Python24\Lib\site-packages\MoinMoin\parser\wiki.py
in scan
(self=<MoinMoin.parser.wiki.Parser instance>,
scan_re=<_sre.SRE_Pattern object>,
line=u'attachment:ScreenShots/Password.jpg ')
- 874 self.in_table or self.in_list):
- 875 result.append(self.formatter.paragraph(1, css_class="line867"))
- 876 result.append(self.replace(match))
- 877 lastpos = match.end()
- 878
- result
= ['<p class="line867">']
- result.append
= <built-in method append of list object>
- self
= <MoinMoin.parser.wiki.Parser instance>
- self.replace
= <bound method Parser.replace of <MoinMoin.parser.wiki.Parser instance>>
- match
= <_sre.SRE_Match object>
C:\Python24\Lib\site-packages\MoinMoin\parser\wiki.py
in replace
(self=<MoinMoin.parser.wiki.Parser instance>, match=<_sre.SRE_Match object>)
- 903 # Get replace method and replece hit
- 904 replace = getattr(self, '_' + type + '_repl')
- 905 result.append(replace(hit))
- 906 return ''.join(result)
- 907 else:
- result
= []
- result.append
= <built-in method append of list object>
- replace
= <bound method Parser._url_repl of <MoinMoin.parser.wiki.Parser instance>>
- hit
= u'attachment:ScreenShots/Password.jpg'
C:\Python24\Lib\site-packages\MoinMoin\parser\wiki.py
in _url_repl
(self=<MoinMoin.parser.wiki.Parser instance>, word=u'attachment:ScreenShots/Password.jpg')
- 376 return self.interwiki([word])
- 377 if scheme in self.attachment_schemas:
- 378 return self.attachment([word])
- 379
- 380 if wikiutil.isPicture(word):
- self
= <MoinMoin.parser.wiki.Parser instance>
- self.attachment
= <bound method Parser.attachment of <MoinMoin.parser.wiki.Parser instance>>
- word
= u'attachment:ScreenShots/Password.jpg'
C:\Python24\Lib\site-packages\MoinMoin\parser\wiki.py
in attachment
(self=<MoinMoin.parser.wiki.Parser instance>, url_and_text=[u'attachment:ScreenShots/Password.jpg'], **kw={})
- 223 # (images are always inlined, just like for other URLs)
- 224 if not kw.get('pretty_url', 0) and wikiutil.isPicture(url):
- 225 return self.formatter.attachment_image(url)
- 226
- 227 # inline the attachment
- self
= <MoinMoin.parser.wiki.Parser instance>
- self.formatter
= <MoinMoin.formatter.text_gedit.Formatter instance>
- self.formatter.attachment_image
= <bound method Formatter.attachment_image of <MoinMoin.formatter.text_gedit.Formatter instance>>
- url
= u'ScreenShots/Password.jpg'
C:\Python24\Lib\site-packages\MoinMoin\formatter\text_gedit.py
in attachment_image
(self=<MoinMoin.formatter.text_gedit.Formatter instance>, url=u'ScreenShots/Password.jpg', **kw={})
- 77 return self.image(
- 78 title="attachment:%s" % wikiutil.quoteWikinameURL(url),
- 79 src=AttachFile.getAttachUrl(pagename, url, self.request, addts=1))
- 80
- 81 def attachment_drawing(self, url, text, **kw):
- src undefined
- global
AttachFile
= <module 'MoinMoin.action.AttachFile' from 'C:\Py...ib\site-packages\MoinMoin\action\AttachFile.pyc'>
- AttachFile.getAttachUrl
= <function getAttachUrl>
- pagename
= u'ChangePassword'
- url
= u'ScreenShots/Password.jpg'
- self
= <MoinMoin.formatter.text_gedit.Formatter instance>
- self.request
= <MoinMoin.request.RequestModPy object>
- addts undefined
C:\Python24\Lib\site-packages\MoinMoin\action\AttachFile.py
in getAttachUrl
(pagename=u'ChangePassword', filename=u'ScreenShots/Password.jpg',
request=<MoinMoin.request.RequestModPy object>, addts=1,
escaped=0)
- 90 if addts:
- 91 try:
- 92 timestamp = '?ts=%s' % os.path.getmtime(
- 93 getFilename(request, pagename, filename))
- 94 except IOError:
- timestamp
= ''
- global
os
= <module 'os' from 'C:\Python24\Lib\os.pyc'>
- os.path
= <module 'ntpath' from 'C:\Python24\Lib\ntpath.pyc'>
- os.path.getmtime
= <function getmtime>
- global
getFilename
= <function getFilename>
- request
= <MoinMoin.request.RequestModPy object>
- pagename
= u'ChangePassword'
- filename
= u'ScreenShots/Password.jpg'
C:\Python24\lib\ntpath.py
in getmtime
(filename=r'/home/web/Moin/drawiki/data/pages\ChangePassword\attachments\ScreenShots/Password.jpg')
- 231 def getmtime(filename):
- 232 """Return the last modification time of a file, reported by os.stat()"""
- 233 return os.stat(filename).st_mtime
- 234
- 235 def getatime(filename):
- global
os
= <module 'os' from 'C:\Python24\Lib\os.pyc'>
- os.stat
= <built-in function stat>
- filename
= r'/home/web/Moin/drawiki/data/pages\ChangePassword\attachments\ScreenShots/Password.jpg'
- ).st_mtime undefined