Attachment 'traceback.html'

Download

--> -->

UnboundLocalError

local variable 'newtitle' 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.

  1. /home/user/workspace/moin-1.8/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_standalone.Request object at 0x2521ed0>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function execute at 0xa3c8c0>
    • self = <MoinMoin.request.request_standalone.Request object at 0x2521ed0>
    • self.page = <MoinMoin.Page.Page object at 0x2521b50>
    • self.page.page_name = u'ReimarBauer/UnderConstruction'
  2. /home/user/workspace/moin-1.8/wiki/data/plugin/action/CreatePdfDocument.py in execute (pagename=u'ReimarBauer/UnderConstruction', request=<MoinMoin.request.request_standalone.Request object at 0x2521ed0>)

    1. 1910 self.valid_options[key][u'%d.0' % max] = self._(u'%d.0' % max)
    2. 1911
    3. 1912
    4. 1913 def execute(pagename, request):
    5. 1914 CreatePdfDocument(pagename, request).render()
    • global CreatePdfDocument = <class wikiconfig.p_283262d6379ab844971ef1430fa3...CreatePdfDocument.CreatePdfDocument at 0x1040d70>
    • pagename = u'ReimarBauer/UnderConstruction'
    • request = <MoinMoin.request.request_standalone.Request object at 0x2521ed0>
    • ).render undefined
  3. /home/user/workspace/moin-1.8/wiki/data/plugin/action/CreatePdfDocument.py in render (self=<wikiconfig.p_283262d6379ab844971ef1430fa38349a5...Document.CreatePdfDocument instance at 0x17f4fc8>)

    1. 1473 self.form[self.form_trigger] = '1'
    2. 1474 # Continue with super function
    3. 1475 ActionBase.render(self)
    4. 1476
    5. 1477
    • global ActionBase = <class MoinMoin.action.ActionBase at 0xd98470>
    • ActionBase.render = <unbound method ActionBase.render>
    • self = <wikiconfig.p_283262d6379ab844971ef1430fa38349a5...Document.CreatePdfDocument instance at 0x17f4fc8>
  4. /home/user/workspace/moin-1.8/MoinMoin/action/__init__.py in render (self=<wikiconfig.p_283262d6379ab844971ef1430fa38349a5...Document.CreatePdfDocument instance at 0x17f4fc8>)

    1. 202 elif self.form_trigger in form: # user hit the trigger button
    2. 203 if self.ticket_ok():
    3. 204 success, self.error = self.do_action()
    4. 205 else:
    5. 206 success = False
    • success undefined
    • self = <wikiconfig.p_283262d6379ab844971ef1430fa38349a5...Document.CreatePdfDocument instance at 0x17f4fc8>
    • self.error = ''
    • self.do_action = <bound method CreatePdfDocument.do_action of <wi...ocument.CreatePdfDocument instance at 0x17f4fc8>>
  5. /home/user/workspace/moin-1.8/wiki/data/plugin/action/CreatePdfDocument.py in do_action (self=<wikiconfig.p_283262d6379ab844971ef1430fa38349a5...Document.CreatePdfDocument instance at 0x17f4fc8>)

    1. 1492 if self.form.has_key(u'generate_from_form') or self.form.has_key(u'preview'):
    2. 1493 self.update_values()
    3. 1494 return self.do_action_generate()
    4. 1495
    5. 1496 # Display a message with instructions.
    • self = <wikiconfig.p_283262d6379ab844971ef1430fa38349a5...Document.CreatePdfDocument instance at 0x17f4fc8>
    • self.do_action_generate = <bound method CreatePdfDocument.do_action_genera...ocument.CreatePdfDocument instance at 0x17f4fc8>>
  6. /home/user/workspace/moin-1.8/wiki/data/plugin/action/CreatePdfDocument.py in do_action_generate (self=<wikiconfig.p_283262d6379ab844971ef1430fa38349a5...Document.CreatePdfDocument instance at 0x17f4fc8>)

    1. 1558 """Create PDF document."""
    2. 1559 # Generate the HTML page using MoinMoin wiki engine.
    3. 1560 html = self.get_html()
    4. 1561 if html:
    5. 1562 if self.form.has_key('preview'):
    • html undefined
    • self = <wikiconfig.p_283262d6379ab844971ef1430fa38349a5...Document.CreatePdfDocument instance at 0x17f4fc8>
    • self.get_html = <bound method CreatePdfDocument.get_html of <wik...ocument.CreatePdfDocument instance at 0x17f4fc8>>
  7. /home/user/workspace/moin-1.8/wiki/data/plugin/action/CreatePdfDocument.py in get_html (self=<wikiconfig.p_283262d6379ab844971ef1430fa38349a5...Document.CreatePdfDocument instance at 0x17f4fc8>)

    1. 1668
    2. 1669 # Rename title of the document.
    3. 1670 titletext_html = self.fixhtmlstr(wikiutil.escape(newtitle))
    4. 1671 html = re.compile(r'<title>[^<]+</title>').sub(u'<title>%s</title>' % titletext_html, html)
    5. 1672
    • titletext_html undefined
    • self = <wikiconfig.p_283262d6379ab844971ef1430fa38349a5...Document.CreatePdfDocument instance at 0x17f4fc8>
    • self.fixhtmlstr = <bound method CreatePdfDocument.fixhtmlstr of <w...ocument.CreatePdfDocument instance at 0x17f4fc8>>
    • global wikiutil = <module 'MoinMoin.wikiutil' from '/home/user/workspace/moin-1.8/MoinMoin/wikiutil.pyc'>
    • wikiutil.escape = <function escape at 0xaa58c0>
    • newtitle undefined

UnboundLocalError

local variable 'newtitle' referenced before assignment

  • args = ("local variable 'newtitle' referenced before assignment",)
  • message = "local variable 'newtitle' referenced before assignment"

System Details

  • Date: Sun, 21 Dec 2008 10:20:31 +0000
  • Platform: Linux linux 2.6.24-22-generic #1 SMP Mon Nov 24 19:35:06 UTC 2008 x86_64
  • Python: Python 2.5.2 (/usr/bin/python)
  • MoinMoin: Release 1.8.0 (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.
  • [get | view] (2008-06-25 06:31:28, 12.9 KB) [[attachment:AttributeError_form.html]]
  • [get | view] (2007-09-23 21:24:21, 74.0 KB) [[attachment:CreatePdfDocument2_1_5+p1.py]]
  • [get | view] (2007-09-24 19:04:02, 73.9 KB) [[attachment:CreatePdfDocument2_1_5+p2.py]]
  • [get | view] (2008-06-25 01:39:15, 77.3 KB) [[attachment:CreatePdfDocument2_3_0+p1.py]]
  • [get | view] (2008-06-25 06:52:21, 77.5 KB) [[attachment:CreatePdfDocument2_3_0+p2.py]]
  • [get | view] (2008-06-26 16:18:43, 81.0 KB) [[attachment:CreatePdfDocument2_3_0+p3.py]]
  • [get | view] (2008-11-10 06:53:43, 84.3 KB) [[attachment:CreatePdfDocument2_3_4+p1.py]]
  • [get | view] (2008-11-10 20:22:57, 84.7 KB) [[attachment:CreatePdfDocument2_3_4+p2.py]]
  • [get | view] (2009-01-12 19:30:53, 84.3 KB) [[attachment:CreatePdfDocument2_3_5+p1.py]]
  • [get | view] (2010-09-17 13:22:57, 86.4 KB) [[attachment:CreatePdfDocument2_4_1+p1.py]]
  • [get | view] (2010-05-16 05:14:41, 8311.5 KB) [[attachment:HTMLDOC_1.8.27.msi]]
  • [get | view] (2006-05-25 08:59:55, 100.6 KB) [[attachment:PdfAction--book.pdf]]
  • [get | view] (2006-05-25 10:37:23, 13.2 KB) [[attachment:PdfAction--page.pdf]]
  • [get | view] (2006-09-12 09:11:10, 8.3 KB) [[attachment:RedirectOutputRequest.html]]
  • [get | view] (2007-09-20 15:15:05, 10.9 KB) [[attachment:WikiAdministration_DebugInfo.zip]]
  • [get | view] (2007-09-24 06:25:51, 3.6 KB) [[attachment:WikiAdministration_DebugInfo_20070924.zip]]
  • [get | view] (2008-06-24 09:56:40, 16.0 KB) [[attachment:_AttributeError20080624.html]]
  • [get | view] (2006-09-11 18:56:44, 6.0 KB) [[attachment:bool.html]]
  • [get | view] (2007-06-28 20:42:45, 13.8 KB) [[attachment:coded_w_wing_large.png]]
  • [get | view] (2007-06-28 20:48:21, 8.6 KB) [[attachment:coded_w_wing_medium.png]]
  • [get | view] (2007-06-28 20:44:02, 6.8 KB) [[attachment:coded_w_wing_small.png]]
  • [get | view] (2008-06-26 17:18:39, 16.2 KB) [[attachment:debug260208.html]]
  • [get | view] (2007-09-20 15:14:47, 211.6 KB) [[attachment:htmldoc_WikiAdministration_ClassicTheme.zip]]
  • [get | view] (2008-12-21 10:40:28, 31.5 KB) [[attachment:listings.png]]
  • [get | view] (2010-09-16 12:23:08, 5.4 KB) [[attachment:moin.log.failed.gz]]
  • [get | view] (2010-09-16 12:23:22, 9.6 KB) [[attachment:moin.log.ok.gz]]
  • [get | view] (2014-08-18 02:10:25, 2.6 KB) [[attachment:patch_htmldoc_escaping.patch]]
  • [get | view] (2010-04-07 17:29:57, 5.7 KB) [[attachment:pdfbug.txt]]
  • [get | view] (2006-10-09 21:59:00, 0.7 KB) [[attachment:skip-one-region.diff]]
  • [get | view] (2008-12-21 10:33:05, 11.6 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.