dabo Commit
Revision 5000
Date: 2009-01-30 12:41:41 -0800 (Fri, 30 Jan 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5000
Changed:
U trunk/dabo/db/dDataSet.py
Log:
Defined the __add__ and __mul__ methods to return dDataSet instances instead of
plain tuples.
Diff:
Modified: trunk/dabo/db/dDataSet.py
===================================================================
--- trunk/dabo/db/dDataSet.py 2009-01-30 17:38:01 UTC (rev 4999)
+++ trunk/dabo/db/dDataSet.py 2009-01-30 20:41:41 UTC (rev 5000)
@@ -68,6 +68,14 @@
self._connection.close()
+ def __add__(self, *args, **kwargs):
+ return dDataSet(super(dDataSet, self).__add__(*args, **kwargs))
+
+
+ def __mul__(self, *args, **kwargs):
+ return dDataSet(super(dDataSet, self).__mul__(*args, **kwargs))
+
+
def _adapt_decimal(self, decVal):
"""Converts the decimal value to a string for storage"""
return str(decVal)
_______________________________________________
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]