Hi Ed,
I got the repoprtWriter.py to at least open a file and display the rxml
file. When I went to save the file I discovered the issue below. I
know that this is Paul's world but I wonder if you have a clue what the
purpose was of the method "_elementSort()".
The method has a signature of "_elementSort(self,x,y)" but is called in
reportWriter->_getXMLDictFromForm->elements.sort(self._elementSort). I
checked the master and the same code exist there too. So back in python
2, I guess, code could be written to allow just the passing of the name
of the method and it some how just worked??????
def _elementSort(self, x, y):
positions = CaselessDict({"author": 0, "title": 2,
"subject": 3, "keywords": 4, "defaults": 6,
"columnCount": 5, "page": 10,
"groups": 50, "variables": 40, "pageBackground": 55,
"pageHeader": 60, "groupHeader": 65, "detail": 70,
"groupFooter": 75, "pageFooter": 80, "pageForeground": 90,
"objects": 99999, "testcursor": 999999})
posX = positions.get(x, -1)
posY = positions.get(y, -1)
if posY > posX:
return -1
elif posY < posX:
return 1
return cmp(x.lower(), y.lower())
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: https://leafe.com/archives
This message:
https://leafe.com/archives/byMID/[email protected]