dabo Commit
Revision 5168
Date: 2009-04-03 12:22:36 -0700 (Fri, 03 Apr 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5168

Changed:
U   trunk/dabo/lib/reportUtils.py

Log:
The modern report writer doesn't need the hinting at the datatypes that it 
originally needed, so I removed that from the getTestCursorXmlFromDataSet()
function.


Diff:
Modified: trunk/dabo/lib/reportUtils.py
===================================================================
--- trunk/dabo/lib/reportUtils.py       2009-04-02 23:36:43 UTC (rev 5167)
+++ trunk/dabo/lib/reportUtils.py       2009-04-03 19:22:36 UTC (rev 5168)
@@ -73,21 +73,8 @@
 
        assert len(dataset) > 0
 
-       typemap = {int: "int",
-                       long: "long",
-                       float: "float",
-                       str: "str",
-                       unicode: "str",
-                       bool: "bool",
-                       datetime.date: "datetime.date",
-                       datetime.datetime: "datetime.datetime",
-                       Decimal: "Decimal"}
+       xml = """\t<TestCursor>\n"""
 
-       xml = """\t<TestCursor\n"""
-       for k, v in sorted(dataset[0].items()):
-               xml += """\t\t%s = "%s"\n""" % (k, typemap.get(type(v)))
-       xml += """\t>\n\n"""
-
        for r in dataset:
                xml += """\t\t<Record\n"""
                for k, v in sorted(r.items()):



_______________________________________________
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