I haven't really this part of my code for some time. I just wanted to
start checking it as I have moved from one ORM package to sqlalchemy.
All of this looks fine to me, but there is obviously a problem.
Can anyone point me in the right direction, please.
Werner
P.S. I am on Amara '1.2.0.1' on Windows with Python 2.5
"self.dbItemRack.shapeinfo" content:
<?xml version="1.0" encoding="UTF-8"?>
<shapes>
<RectangleShape>
<width>50</width>
<height>50</height>
<x>165.0</x>
<y>200.0</y>
<rackitemid>11</rackitemid>
</RectangleShape>
<PolygonShape>
<points>
<point>
<x>0</x>
<y>-50</y>
</point>
<point>
<x>50</x>
<y>0</y>
</point>
<point>
<x>0</x>
<y>0</y>
</point>
<point>
<x>0</x>
<y>0</y>
</point>
</points>
<width>50</width>
<height>50</height>
<x>195.0</x>
<y>225.0</y>
<rackitemid>12</rackitemid>
</PolygonShape>
<PolygonShape>
<points>
<point>
<x>0</x>
<y>50</y>
</point>
<point>
<x>-50</x>
<y>0</y>
</point>
<point>
<x>0</x>
<y>0</y>
</point>
<point>
<x>0</x>
<y>0</y>
</point>
</points>
<width>50</width>
<height>50</height>
<x>245.0</x>
<y>175.0</y>
<rackitemid>13</rackitemid>
</PolygonShape>
<RectangleShape>
<width>50</width>
<height>50</height>
<x>275.0</x>
<y>200.0</y>
<rackitemid>14</rackitemid>
</RectangleShape>
<RectangleShape>
<width>160.0</width>
<height>50.0</height>
<x>220.0</x>
<y>255.0</y>
<rackitemid>15</rackitemid>
</RectangleShape>
</shapes>
**** Tue Jun 17 19:07:51 2008 **** Version: 3.0.394.9 **** wxV:
2.8.8.0.pre20080614 (msw-unicode) *****
Traceback (most recent call last):
File "C:\Dev\twcb\Program\dialograckview.py", line 168, in OnRackCombobox
self.rackViewCust.LoadRackView(dbItemRack)
File "C:\Dev\twcb\Program\panelrackviewcust.py", line 74, in LoadRackView
xmlDoc = binderytools.bind_string(self.dbItemRack.shapeinfo)
File "C:\Python25\lib\site-packages\amara\binderytools.py", line 139,
in bind_string
prefixes=prefixes, validate=validate, binding_classes=binding_classes)
File "C:\Python25\lib\site-packages\amara\binderytools.py", line 123,
in bind_stream
binding = binderobj.read_xml(isrc, validate)
File "C:\Python25\lib\site-packages\amara\bindery.py", line 261, in
read_xml
parser.parse(input_source)
SAXParseException: urn:bogus:unknown-resource-uri:1:30: encoding
specified in XML declaration is incorrect