dabo Commit
Revision 4871
Date: 2008-12-18 06:38:25 -0800 (Thu, 18 Dec 2008)
Author: Cito
Trac: http://trac.dabodev.com/dabo/changeset/4871

Changed:
U   trunk/dabo/db/dDataSet.py

Log:
Fix for r4859. The init method must still accept one optional argument. Also 
added a short explanation in a comment.

Diff:
Modified: trunk/dabo/db/dDataSet.py
===================================================================
--- trunk/dabo/db/dDataSet.py   2008-12-17 23:59:02 UTC (rev 4870)
+++ trunk/dabo/db/dDataSet.py   2008-12-18 14:38:25 UTC (rev 4871)
@@ -36,7 +36,9 @@
        warning message will be printed out and the SQL functions will return
        None. The data will still be usable, though.
        """
-       def __init__(self):
+       def __init__(self, sequence=None):
+               # Note that as immutable objects, tuples are created with 
__new__,
+               # so we must not pass the argument to the __init__ method of 
tuple.
                super(dDataSet, self).__init__()
                self._connection = None
                self._cursor = None




_______________________________________________
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