Paul,

I've run into something I can't figure out.  When I open my report file and try 
to add a variable 
by double clicking on the Variables item in the object tree view I get the 
following error...

Below pls see the traceback and also a copy of the rfxml file.

Thanks,
Larry

ValueError: unsupported format character ''' (0x27) at index 56

File "c:\dabo\ide\ReportDesigner.py", line 2594, in <module>
  app.start()
File "c:\dabo\dabo\dApp.py", line 389, in start
  self.uiApp.start(self)
File "c:\dabo\dabo\ui\uiwx\uiApp.py", line 441, in start
  self.MainLoop()
File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7964, 
in 
MainLoop
  wx.PyApp.MainLoop(self)
File "C:\Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7289, 
in 
MainLoop
  return _core_.PyApp_MainLoop(*args, **kwargs)
File "c:\dabo\dabo\ui\uiwx\dPemMixin.py", line 668, in __onWxContextMenu
  self.raiseEvent(dEvents.ContextMenu, evt)
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 "c:\dabo\ide\ReportDesigner.py", line 648, in onContextMenu
  self.syncSelected()
File "c:\dabo\ide\ReportDesigner.py", line 639, in syncSelected
  rdc.SelectedObjects = [obj.ReportObject for obj in self.Selection]
File "c:\dabo\ide\ReportDesigner.py", line 549, in _setSelectedObjects
  self.refreshSelection(refreshEditor=True)
File "c:\dabo\ide\ReportDesigner.py", line 322, in refreshSelection
  obj.refreshSelection()
File "c:\dabo\ide\ReportDesigner.py", line 793, in refreshSelection
  self.select(objs)
File "C:\dabo\ide\ClassDesignerPropSheet.py", line 140, in select
  self.updatePropGrid(propDict)
File "C:\dabo\ide\ClassDesignerPropSheet.py", line 154, in updatePropGrid
  pg.DataSet = ds
File "c:\dabo\dabo\ui\uiwx\dGrid.py", line 4024, in _setDataSet
  self.fillGrid()
File "C:\dabo\ide\ClassDesignerPropSheet.py", line 726, in fillGrid
  (self.getValue(row, 0), self.Application.Selection[0]))

*************
<?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>
        <ReportBegin>
                <Objects></Objects>
        </ReportBegin>

        <ReportEnd>
                <Objects></Objects>
        </ReportEnd>

        <Author>"Dabo Report Writer"</Author>

        <title>Sample Report</title>

        <Subject>"http://dabodev.com";</Subject>

        <Keywords>("dabo", "report", "writer", "banded", "free")</Keywords>

        <page>
                <MarginBottom>".25 in"</MarginBottom>
                <marginLeft>".5 in"</marginLeft>
                <marginRight>".5 in"</marginRight>
                <MarginTop>".25 in"</MarginTop>
                <orientation>"portrait"</orientation>
                <size>"letter"</size>
        </page>

        <Variables>
                <Variable>
                        <expr>u"11837 Kemper Road, Suite 2\nAuburn, CA  
95603\n(530)888-1010 or (800)346-5891\n\n"</expr>
                        <Name>LetterHeader</Name>
                        <ResetAt>self.Record["enrollid"]</ResetAt>
                </Variable>
                <Variable>
                        <expr>u"Dear 
"+self.Record["clientname"].strip()+u",\n\n"</expr>
                        <Name>Greeting</Name>
                        <ResetAt>self.Record["enrollid"]</ResetAt>
                </Variable>
                <Variable>
                        <expr>u"People of the State of California\nMisdemeanor 
Complaint 
#"+"xx-xxxxxxx"+u"\nAmount of Restitution:  $"+u"9999.99"+u"\nMonitoring Fee to 
P.E.S.:  
$"+"25.00"+u"\nTotal Amount due to P.E.S.:  $"+"9999.99"</expr>
                        <InitialValue>"None"</InitialValue>
                        <Name>reText</Name>
                        <ResetAt>self.Record["enrollid"]</ResetAt>
                </Variable>
                <Variable>
                        <expr>u"One of the terms of your DEFERRED ENTRY OF 
JUDGEMENT (DEJ) contract is that you make restitution to the victim involved in 
the above-
mentioned matter,  That restitution amount has been set to $"+"xxxx.xx"+u".  
Your restitution 
payment is to be made to Pacific Educational Services, Inc who will then 
forward payment to 
the victim.\nYou will recall in your contract that Pacific Educational 
Services, Inc will charge 
you a $25.00 Collecting and Monitoring Fee, effective the date of this letter.  
Money order 
payment should be mailed to:"</expr>
                        <InitialValue>"None"</InitialValue>
                        <Name>BodyText1</Name>
                        <ResetAt>self.Record["enrollid"]</ResetAt>
                </Variable>
        </Variables>

        <Groups>
                <Group>
                        <expr>self.Record["enrollid"]</expr>
                        <StartOnNewPage>True</StartOnNewPage>
                        <GroupHeader>
                                <Height>None</Height>
                                <Objects>
                                        <Frameset>
                                                <BorderWidth>0</BorderWidth>
                                                <Height>"60.0 pt"</Height>
                                                <padBottom>1</padBottom>
                                                <padTop>1</padTop>
                                                <vAnchor>"top"</vAnchor>
                                                <width>"6.3739 in"</width>
                                                <x>"0.4909 in"</x>
                                                <y>"101.5 pt"</y>
                                                <objects>
                                                        <Paragraph>
                                                                
<expr>self.Record["toaddress"]</expr>
                                                                
<fontName>"Helvetica"</fontName>
                                                                
<FontSize>10</FontSize>
                                                                <Height>"2 
in"</Height>
                                                        </Paragraph>
                                                </objects>
                                        </Frameset>
                                        <Frameset>
                                                <BorderWidth>0</BorderWidth>
                                                
<calculatedHeight>42</calculatedHeight>
                                                <Height>None</Height>
                                                <padBottom>1</padBottom>
                                                <padTop>1</padTop>
                                                <vAnchor>"top"</vAnchor>
                                                <width>"5.9152 in"</width>
                                                <x>"0.8384 in"</x>
                                                <y>"41.0 pt"</y>
                                                <objects>
                                                        <Paragraph>
                                                                
<expr>self.Variables["reText"]</expr>
                                                                
<fontName>"Helvetica"</fontName>
                                                                
<FontSize>10</FontSize>
                                                                
<Height>None</Height>
                                                        </Paragraph>
                                                </objects>
                                        </Frameset>
                                </Objects>
                        </GroupHeader>
                        <GroupFooter>
                                <Height>138.4</Height>
                                <Objects>
                                        <Frameset>
                                                <BorderWidth>0</BorderWidth>
                                                
<calculatedHeight>None</calculatedHeight>
                                                <FrameId>"footer"</FrameId>
                                                <Height>None</Height>
                                                <padBottom>1</padBottom>
                                                <padTop>1</padTop>
                                                <vAnchor>"top"</vAnchor>
                                                <width>"6.8604 in"</width>
                                                <x>"0.4489 in"</x>
                                                <y>"0.3308 in"</y>
                                                <objects>
                                                        <Paragraph>
                                                                
<expr>None</expr>
                                                                
<fontName>"Helvetica"</fontName>
                                                                
<FontSize>10</FontSize>
                                                                <Height>"3 
in"</Height>
                                                                <x>15</x>
                                                                <y>15</y>
                                                        </Paragraph>
                                                </objects>
                                        </Frameset>
                                </Objects>
                        </GroupFooter>
                </Group>
        </Groups>

        <pageBackground>
                <Objects></Objects>
        </pageBackground>

        <pageHeader>
                <Height>102.9</Height>
                <Objects>
                        <String>
                                <expr>"Pacific Educational Services, 
Inc."</expr>
                                <FontName>"Helvetica-Bold"</FontName>
                                <FontSize>10</FontSize>
                                <width>"221.0 pt"</width>
                                <x>"34.8 pt"</x>
                                <y>"80.6 pt"</y>
                        </String>
                        <Frameset>
                                <BorderWidth>0</BorderWidth>
                                <Height>"57.0 pt"</Height>
                                <padBottom>4</padBottom>
                                <padTop>4</padTop>
                                <vAnchor>"top"</vAnchor>
                                <width>"3.0657 in"</width>
                                <x>"0.4909 in"</x>
                                <y>"77.5 pt"</y>
                                <objects>
                                        <Paragraph>
                                                
<expr>self.Report.Variables["LetterHeader"]</expr>
                                                <fontName>"Helvetica"</fontName>
                                                <FontSize>10</FontSize>
                                                <Height>"2 in"</Height>
                                        </Paragraph>
                                </objects>
                        </Frameset>
                        <String>
                                
<expr>datetime.datetime.now().strftime("%m/%d/%Y")</expr>
                                <FontSize>10</FontSize>
                                <Height>"13.0 pt"</Height>
                                <width>"69.0 pt"</width>
                                <x>"0.4861 in"</x>
                                <y>"3.0 pt"</y>
                        </String>
                </Objects>
        </pageHeader>

        <detail>
                <Height>164.8</Height>
                <Objects>
                        <Frameset>
                                <BorderWidth>0</BorderWidth>
                                <calculatedHeight>42</calculatedHeight>
                                <Height>None</Height>
                                <padBottom>1</padBottom>
                                <padTop>1</padTop>
                                <vAnchor>"top"</vAnchor>
                                <width>"6.3739 in"</width>
                                <x>"0.3986 in"</x>
                                <y>"110.4 pt"</y>
                                <objects>
                                        <Paragraph>
                                                
<expr>self.Report.Variables["BodyText1"]</expr>
                                                <fontName>"Helvetica"</fontName>
                                                <FontSize>10</FontSize>
                                                <Height>None</Height>
                                        </Paragraph>
                                </objects>
                        </Frameset>
                        <Frameset>
                                <BorderWidth>0</BorderWidth>
                                <calculatedHeight>42</calculatedHeight>
                                <Height>None</Height>
                                <padBottom>1</padBottom>
                                <padTop>1</padTop>
                                <vAnchor>"top"</vAnchor>
                                <width>"5.9152 in"</width>
                                <x>"0.3936 in"</x>
                                <y>"25.0 pt"</y>
                                <objects>
                                        <Paragraph>
                                                
<expr>self.Variables["reText"]</expr>
                                                <fontName>"Helvetica"</fontName>
                                                <FontSize>10</FontSize>
                                                <Height>None</Height>
                                        </Paragraph>
                                </objects>
                        </Frameset>
                </Objects>
        </detail>

        <PageFooter>
                <Height>17.8</Height>
                <Objects>
                        <String>
                                <expr>"PES Enrollment ID: 
"+str(self.Cursor[max(0,self.RecordNumber-1)]["enrollid"]).ljust(30)+"Page 
"+str(self._pageNumber).ljust(30)+("(continued on next page)" if 
self.RecordNumber&lt;len(self.Cursor) and 
(self.Cursor[self.RecordNumber-1]["enrollid"] 
==self.Cursor[self.RecordNumber]["enrollid"] or self.being_deferred==True) else 
"")</expr>
                                <FontSize>10</FontSize>
                                <Height>"11.0 pt"</Height>
                                <Width>"450 pt"</Width>
                                <x>"35.0 pt"</x>
                                <y>"3.0 pt"</y>
                        </String>
                </Objects>
        </PageFooter>

        <PageForeground>
                <Objects></Objects>
        </PageForeground>

        <TestCursor>
                <record name_1="u&apos;YOUTH CHOICES, CHANGES, CHAL            
&apos;" toaddress="u&apos;~ClientName~\n~address~\n~address2~\n~city~, 
~state_1~ 
~zip~&apos;" clientid="u&apos;100&apos;" state_1="u&apos;CA&apos;" 
workphone="u&apos;(916) 372-9692  &apos;" paid_amt="0" 
clientname="u&apos;Andrew 
Adams&apos;" city="u&apos;West Sacramento     &apos;" courseid="187" 
lname="u&apos;Garcia                   &apos;" program="u&apos;ANGER 
MANAGEMENT&apos;" locationid="u&apos;1&apos;" courseadd="u&apos;123 Main St, 
Sacramento, CA     &apos;" fname="u&apos;Jordan                   &apos;" 
detail_line="u&apos;08/01/2009    08/02/2009    08/03/2009    08/04/2009    
08/05/2009    
08/06/2009&apos;" schedule="datetime.date(2009, 6, 20)" courseloc="u&apos;West 
Sacramento     &apos;" address="u&apos;740 PECAN ST.                            
    &apos;" 
endtime="u&apos;3:30 PM&apos;" course_cost="100" enrollid="u&apos;1&apos;" 
starttime="u&apos;9:00 AM&apos;" enrolled="datetime.date(1999, 12, 29)" 
homephone="u&apos;9163749084&apos;" />
                <record name_1="u&apos;ADULT THEFT EDUCATION - 2               
&apos;" 
toaddress="u&apos;~ClientName~\n~address~\n~address2~\n~city~, ~state_1~ 
~zip~&apos;" clientid="u&apos;100&apos;" state_1="u&apos;CA&apos;" 
workphone="u&apos;(   )    -      &apos;" paid_amt="0" 
clientname="u&apos;Andrew 
Adams&apos;" city="u&apos;Citrus Heights      &apos;" courseid="182" 
lname="u&apos;Bradley                  &apos;" program="u&apos;ANGER 
MANAGEMENT&apos;" locationid="u&apos;1&apos;" courseadd="u&apos;123 Main St, 
Sacramento, CA&apos;" fname="u&apos;Jeremy                   &apos;" 
detail_line="u&apos;08/01/2009    08/02/2009    08/03/2009    08/04/2009    
08/05/2009    
08/06/2009&apos;" schedule="datetime.date(2009, 6, 27)" courseloc="u&apos;West 
Sacramento     &apos;" address="u&apos;7325 SYLVAN GROVE WAY                    
    
&apos;" endtime="u&apos;3:30 PM&apos;" course_cost="100" 
enrollid="u&apos;2&apos;" 
starttime="u&apos;9:00 AM&apos;" enrolled="datetime.date(1999, 12, 29)" 
homephone="u&apos;9167257288&apos;" />
                <record name_1="u&apos;YOUTH CHOICES, CHANGES, CHAL            
&apos;" toaddress="u&apos;~ClientName~\n~address~\n~address2~\n~city~, 
~state_1~ 
~zip~&apos;" clientid="u&apos;100&apos;" state_1="u&apos;CA&apos;" 
workphone="u&apos;(916) 372-9692  &apos;" paid_amt="0" 
clientname="u&apos;Andrew 
Adams&apos;" city="u&apos;East Sacramento     &apos;" courseid="187" 
lname="u&apos;Garcia                   &apos;" program="u&apos;ANGER 
MANAGEMENT&apos;" locationid="u&apos;2&apos;" courseadd="u&apos;222 22nd Ave, 
Sacramento, CA     &apos;" fname="u&apos;Jordan                   &apos;" 
detail_line="u&apos;08/01/2009    08/02/2009    08/03/2009    08/04/2009    
08/05/2009    
08/06/2009&apos;" schedule="datetime.date(2009, 7,  1)" 
courseloc="u&apos;Sacramento     
&apos;" address="u&apos;740 PECAN ST.                                &apos;" 
endtime="u&apos;3:30 PM&apos;" course_cost="100" enrollid="u&apos;3&apos;" 
starttime="u&apos;9:00 AM&apos;" enrolled="datetime.date(1999, 12, 29)" 
homephone="u&apos;9163749084&apos;" />
        </TestCursor>

</Report>



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: Dabo-users@leafe.com
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/4a8eb22a.11962.1fe8...@lalong1.charter.net

Reply via email to