#1235: Report Designer - Setting PageFooter height to None causes report crash
----------------------------------------+-----------------------------------
 Reporter:  lalong                      |       Owner:  somebody
     Type:  defect                      |      Status:  new     
 Priority:  minor                       |   Milestone:  0.9.2   
Component:  ui                          |     Version:  0.9.1   
 Keywords:  reportdesigner, pagefooter  |  
----------------------------------------+-----------------------------------
 Setting PageFooter height to None causes report crash.

 To test please, open the attached file in ReportDesigner, set the
 PageFooter height to None and preview.

 C:\dabo\ide>python ReportDesigner.py
 Traceback (most recent call last):
   File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py",
 line 1457
 6, in <lambda>
     lambda event: event.callable(*event.args, **event.kw) )
   File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 949, in raiseEvent
     super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args,
 **kwargs)
   File "c:\dabo\dabo\lib\eventMixin.py", line 93, in raiseEvent
     bindingFunction(event)
   File "ReportDesigner.py", line 2556, in onPageEnter
     self.render()
   File "ReportDesigner.py", line 2562, in render
     self.Form.onFilePreviewReport(None)
   File "ReportDesigner.py", line 2441, in onFilePreviewReport
     self.editor._rw.write()
   File "c:\dabo\dabo\lib\reportWriter.py", line 1691, in write
     beginPage()
   File "c:\dabo\dabo\lib\reportWriter.py", line 1670, in beginPage
     printBand(band)
   File "c:\dabo\dabo\lib\reportWriter.py", line 1491, in printBand
     pfHeight = self.getPt(pf.getProp("Height"))
   File "c:\dabo\dabo\lib\reportWriter.py", line 1358, in getPt
     return units.toLength(val)
   File "c:\python25\lib\site-packages\reportlab\lib\units.py", line 30, in
 toLen
 gth
     raise ValueError, "Can't convert '%s' to length" % s
 ValueError: Can't convert 'None' to length

-- 
Ticket URL: <http://trac.dabodev.com/ticket/1235>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to