Attachment 'next_line.htm'
Download--> -->
UnboundLocalError
local variable 'next_line' referenced before assignment
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
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/python2.3/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.CGI.Request object>)
- 1144 from MoinMoin import action
- 1145 handler = action.getHandler(self, action_name)
- 1146 handler(self.page.page_name, self)
- 1147
- 1148 # every action that didn't use to raise MoinMoinNoFooter must call this now:
- handler = <function execute>
- self = <MoinMoin.request.CGI.Request object>
- self.page = <MoinMoin.Page.Page instance>
- self.page.page_name = u'SyncTest'
/usr/lib/python2.3/site-packages/MoinMoin/action/SyncPages.py in execute (pagename=u'SyncTest', request=<MoinMoin.request.CGI.Request object>)
- 365
- 366
- 367 def execute(pagename, request):
- 368 ActionClass(pagename, request).render()
- 369
- global ActionClass = <class 'MoinMoin.action.SyncPages.ActionClass'>
- pagename = u'SyncTest'
- request = <MoinMoin.request.CGI.Request object>
- ).render undefined
/usr/lib/python2.3/site-packages/MoinMoin/action/SyncPages.py in render (self=<MoinMoin.action.SyncPages.ActionClass object>)
- 138 raise ActionStatus(_("The ''remoteWiki'' is unknown."))
- 139
- 140 self.sync(params, local, remote)
- 141 except ActionStatus, e:
- 142 msg = u'<p class="error">%s</p>\n' % (e.args[0], )
- self = <MoinMoin.action.SyncPages.ActionClass object>
- self.sync = <bound method ActionClass.sync of <MoinMoin.action.SyncPages.ActionClass object>>
- params = {'direction': 2, 'groupList': None, 'localPrefix': '', 'pageList': [u'ThisExample'], 'pageMatch': <_sre.SRE_Pattern object>, 'remotePrefix': '', 'remoteWiki': u'SyncTestWiki'}
- local = <MoinLocalWiki>
- remote = <MoinRemoteWiki wiki_url=u'http://sync.wikiwikiweb.de/' valid=True>
/usr/lib/python2.3/site-packages/MoinMoin/action/SyncPages.py in sync (self=<MoinMoin.action.SyncPages.ActionClass object>, params={'direction': 2, 'groupList': None, 'localPrefix': '', 'pageList': [u'ThisExample'], 'pageMatch': <_sre.SRE_Pattern object>, 'remotePrefix': '', 'remoteWiki': u'SyncTestWiki'}, local=<MoinLocalWiki>, remote=<MoinRemoteWiki wiki_url=u'http://sync.wikiwikiweb.de/' valid=True>)
- 362
- 363 for sp in m_pages:
- 364 handle_page(sp)
- 365
- 366
- handle_page = <function handle_page>
- sp = "<Sync Page u'ThisExample[ThisExample|ThisExample]<None:1>'>"
/usr/lib/python2.3/site-packages/MoinMoin/action/SyncPages.py in handle_page (sp="<Sync Page u'ThisExample[ThisExample|ThisExample]<None:1>'>")
- 336 # XXX upgrade to write lock
- 337 try:
- 338 current_page.saveText(merged_text, sp.local_rev, comment=comment) # YYY direct access
- 339 except PageEditor.Unchanged:
- 340 pass
- current_page = <MoinMoin.PageEditor.PageEditor instance>
- current_page.saveText = <bound method PageEditor.saveText of <MoinMoin.PageEditor.PageEditor instance>>
- merged_text = u'ThisExample hier beschreiben...\n'
- sp = "<Sync Page u'ThisExample[ThisExample|ThisExample]<None:1>'>"
- sp.local_rev = None
- comment = u"Local Merge - 'SyncTestWiki'"
/usr/lib/python2.3/site-packages/MoinMoin/PageEditor.py in saveText (self=<MoinMoin.PageEditor.PageEditor instance>, newtext=u'ThisExample hier beschreiben...\n', rev=None, **kw={'comment': u"Local Merge - 'SyncTestWiki'"})
- 950 other = True
- 951 next_line = line
- 952 if next_line.is_from_current_user(self.request):
- 953 saved_page = Page(self.request, self.page_name,
- 954 rev=int(next_line.rev))
- next_line undefined
- self = <MoinMoin.PageEditor.PageEditor instance>
- self.request = <MoinMoin.request.CGI.Request object>
UnboundLocalError
local variable 'next_line' referenced before assignment
- args = ("local variable 'next_line' referenced before assignment",)
System Details
- Date: Sun, 20 Aug 2006 21:38:31 +0000
- Platform: Linux lin 2.6.8-2-k7 #1 Tue Aug 16 14:00:15 UTC 2005 i686
- Python: Python 2.3.5 (/usr/bin/python)
- MoinMoin: Release 1.6.0alpha (release)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.