Hey folks, hows it going?
I am trying to edit badge.rfxml (below, youll have to make up your own image) -
I run this:
[EMAIL PROTECTED]:~/pycon/pycon-tech/pycon/badges/registration_badge$
~/dabodev/dabomodule/ide/ReportDesigner.py badge.rfxml
The designer opens, I see a sub second flash of the layout, then a blank report
designer. the xml and preview tabs work fine. In the console is:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dPemMixin.py", line 590,
in __onWxPaint
self.raiseEvent(dEvents.Paint, evt)
File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/dPemMixin.py", line 843,
in raiseEvent
super(dPemMixin, self).raiseEvent(eventClass, nativeEvent, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/dabo/lib/eventMixin.py", line 92, in
raiseEvent
bindingFunction(event)
File "/home/carl/dabodev/dabomodule/ide/ReportDesigner.py", line 1350, in
onPaint
strokeColor =
self._rw.getColorTupleFromReportLab(obj.getProp("strokeColor"))
File "/usr/lib/python2.5/site-packages/dabo/lib/reportWriter.py", line 1225,
in getColorTupleFromReportLab
return tuple([int(rgb*255) for rgb in val])
TypeError: 'NoneType' object is not iterable
I added print val, and see
None
Carl K
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
This is a Dabo report form xml (rfxml) document, describing a
report form. It was generated by the Dabo Report Writer, and can
be edited by hand or by using the Dabo Report Designer.
-->
<Report>
<Title>PyCon Registration Badge</Title>
<page>
<marginBottom>0</marginBottom>
<marginLeft>0</marginLeft>
<marginRight>0</marginRight>
<marginTop>0</marginTop>
<orientation>"portrait"</orientation>
<size>"letter"</size>
</page>
<Variables></Variables>
<Groups></Groups>
<PageBackground>
<Objects></Objects>
</PageBackground>
<pageHeader>
<Height>0</Height>
<Objects></Objects>
</pageHeader>
<detail>
<height>"8.25 in"</height>
<Objects>
<Rectangle>
<height>"216 pt"</height>
<strokeWidth>1</strokeWidth>
<vAnchor>"top"</vAnchor>
<width>"288 pt"</width>
<x>"2 in"</x>
<y>"7.5 in"</y>
</Rectangle>
<Image>
<expr>"./pycon_logo.png"</expr>
<height>"0.842 in"</height>
<vAnchor>"top"</vAnchor>
<width>"3.196 in"</width>
<x>"2.1 in"</x>
<y>"7.4 in"</y>
</Image>
<Rectangle>
<strokeWidth>0</strokeWidth>
<strokeColor>None</strokeColor>
<FillColor>(0.898, 0.898, 0.898)</FillColor>
<height>92.247524751983534</height>
<width>'269.462046205 pt'</width>
<x>153.0</x>
<y>374.35247524752452</y>
</Rectangle>
<String>
<Align>'center'</Align>
<expr>"%s %s" % (self.first_name.strip(),
self.last_name.strip())</expr>
<fontSize>28</fontSize>
<fontColor>(0,0,255)</fontColor>
<height>41.762376237623755</height>
<width>267.98399999999998</width>
<x>152.51760000000002</x>
<y>'415 pt'</y>
</String>
<String>
<expr>self.attendeeID</expr>
<align>"right"</align>
<height>15.663366336633679</height>
<width>55.0</width>
<x>'363.5 pt'</x>
<y>'380 pt'</y>
</String>
</Objects>
</detail>
<pageFooter>
<Objects></Objects>
</pageFooter>
<PageForeground>
<Objects></Objects>
</PageForeground>
<TestCursor>
<record KeyNote="True" last_name=""Karsten""
shirt_back="True"
attendeeID="1234" first_name=""Carl"" speaker="True" sponsor="True"
shirt_size=""L"" vendor="True" chair="True" />
</TestCursor>
</Report>
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]