A problem occurred in a Python script. Here is the
sequence of function calls leading up to the error, in the
order they occurred.
/home/20060114/moin-desktop/MoinMoin/request.py
in run
(self=<MoinMoin.request.RequestStandAlone object>)
- 1022 from MoinMoin.wikiaction import getHandler
- 1023 handler = getHandler(self, action)
- 1024 handler(self.page.page_name, self)
- 1025
- 1026 # 5. Or redirect to another page
- handler
= <function execute>
- self
= <MoinMoin.request.RequestStandAlone object>
- self.page
= <MoinMoin.Page.Page instance>
- self.page.page_name
= u'StartSeite'
/home/20060114/moin-desktop/MoinMoin/action/AttachFile.py
in execute
(pagename=u'StartSeite', request=<MoinMoin.request.RequestStandAlone object>)
- 481 elif request.form['do'][0] == 'install':
- 482 if request.user.name in request.cfg.superuser or request.remote_addr == "127.0.0.1":
- 483 install_package(pagename, request)
- 484 else:
- 485 msg = _('You are not allowed to install files.')
- global
install_package
= <function install_package>
- pagename
= u'StartSeite'
- request
= <MoinMoin.request.RequestStandAlone object>
/home/20060114/moin-desktop/MoinMoin/action/AttachFile.py
in install_package
(pagename=u'StartSeite', request=<MoinMoin.request.RequestStandAlone object>)
- 662
- 663 if package.isPackage():
- 664 if package.installPackage():
- 665 msg=_("Attachment '%(filename)s' installed.") % {'filename': wikiutil.escape(target)}
- 666 else:
- package
= <MoinMoin.packages.ZipPackage instance>
- package.installPackage
= <bound method ZipPackage.installPackage of <MoinMoin.packages.ZipPackage instance>>
/home/20060114/moin-desktop/MoinMoin/packages.py
in installPackage
(self=<MoinMoin.packages.ZipPackage instance>)
- 339 commands = self.getScript().splitlines()
- 340
- 341 return self.runScript(commands)
- 342
- 343 def getScript(self):
- self
= <MoinMoin.packages.ZipPackage instance>
- self.runScript
= <bound method ZipPackage.runScript of <MoinMoin.packages.ZipPackage instance>>
- commands = [u'MoinMoinPackage|1',
u'AddRevision|1|StartSeite|127.0.0.1|Created by the PackagePages
action.', u'Print|Thank you for using PackagePages!']
/home/20060114/moin-desktop/MoinMoin/packages.py
in runScript
(self=<MoinMoin.packages.ZipPackage instance>,
commands=[u'MoinMoinPackage|1',
u'AddRevision|1|StartSeite|127.0.0.1|Created by the PackagePages
action.', u'Print|Thank you for using PackagePages!'])
- 308
- 309 try:
- 310 fn(*elements[1:])
- 311 except ScriptExit:
- 312 break
- fn
= <bound method ZipPackage.do_addrevision of <MoinMoin.packages.ZipPackage instance>>
- elements
= [u'AddRevision', u'1', u'StartSeite', u'127.0.0.1', u'Created by the PackagePages action.']
/home/20060114/moin-desktop/MoinMoin/packages.py
in do_addrevision
(self=<MoinMoin.packages.ZipPackage instance>, filename=u'1',
pagename=u'StartSeite', author=u'127.0.0.1', comment=u'Created by the
PackagePages action.', trivial=False)
- 211 page = PageEditor(self.request, pagename, do_editor_backup=0, uid_override=author)
- 212 try:
- 213 page.saveText(self.extract_file(filename), 0, trivial=trivial, comment=comment)
- 214 except PageEditor.Unchanged:
- 215 pass
- page
= <MoinMoin.PageEditor.PageEditor instance>
- page.saveText
= <bound method PageEditor.saveText of <MoinMoin.PageEditor.PageEditor instance>>
- self
= <MoinMoin.packages.ZipPackage instance>
- self.extract_file
= <bound method ZipPackage.extract_file of <MoinMoin.packages.ZipPackage instance>>
- filename
= u'1'
- trivial
= False
- comment
= u'Created by the PackagePages action.'
/home/20060114/moin-desktop/MoinMoin/PageEditor.py
in saveText
(self=<MoinMoin.PageEditor.PageEditor instance>, newtext='## Please edit system and help pages ONLY in the...ebFaq weiter.\n\nDieses Wiki basiert auf MoinMoin.\n', rev=0, **kw={'comment': u'Created by the PackagePages action.', 'trivial': False})
- 835 if not (wikiutil.isTemplatePage(self.request, self.page_name) or
- 836 wikiutil.isFormPage(self.request, self.page_name)):
- 837 newtext = self._expand_variables(newtext)
- 838
- 839 msg = ""
- newtext
= '## Please edit system and help pages ONLY in the...ebFaq weiter.\n\nDieses Wiki basiert auf MoinMoin.\n'
- self
= <MoinMoin.PageEditor.PageEditor instance>
- self._expand_variables
= <bound method PageEditor._expand_variables of <MoinMoin.PageEditor.PageEditor instance>>
/home/20060114/moin-desktop/MoinMoin/PageEditor.py
in _expand_variables
(self=<MoinMoin.PageEditor.PageEditor instance>, text='## Please edit system and help pages ONLY in the...ebFaq weiter.\n\nDieses Wiki basiert auf MoinMoin.\n')
- 605 # TODO: Use a more stream-lined re.sub algorithm
- 606 for name in variables:
- 607 text = text.replace('@%s@' % name, variables[name])
- 608 return text
- 609
- text
= '## Please edit system and help pages ONLY in the...ebFaq weiter.\n\nDieses Wiki basiert auf MoinMoin.\n'
- text.replace
= <built-in method replace of str object>
- name
= 'PAGE'
- variables = {'DATE':
'[[Date(2006-01-14T19:38:32Z)]]', 'ME': '', 'PAGE': u'StartSeite',
'SIG': '-- 127.0.0.1 [[DateTime(2006-01-14T19:38:32Z)]]', 'TIME':
'[[DateTime(2006-01-14T19:38:32Z)]]', 'USER': '-- 127.0.0.1',
'USERNAME': '127.0.0.1'}