This commit breaks all of my apps.

Exception exceptions.AttributeError: "'dDataSet' object has no attribute '_curso
r'" in <bound method dDataSet.__del__ of ({'tbl_name': u'daboprefs', 'sql': u'CR
EATE TABLE daboprefs (ckey text not null, ctype text not null, cvalue text not n
ull)', 'type': u'table', 'name': u'daboprefs', 'rootpage': 2},)> ignored
Traceback (most recent call last):
  File "tweezer.py", line 18, in <module>
    app = TweezerApp()
  File "E:\Projects\Tweezer\trunk\TweezerApp.py", line 202, in __init__
    super(TweezerApp, self).__init__(*args, **kwargs)
  File "E:\Projects\Dabo\trunk\dabo\dApp.py", line 194, in __init__
    self._frameworkPrefs = dabo.dPref(key="dabo_framework")
  File "E:\Projects\Dabo\trunk\dabo\dPref.py", line 82, in __init__
    if not  "daboprefs" in self._cursor.getTables():
  File "E:\Projects\Dabo\trunk\dabo\db\dCursorMixin.py", line 1870, in getTables
    return self.BackendObject.getTables(self.AuxCursor, includeSystemTables)
  File "E:\Projects\Dabo\trunk\dabo\db\dbSQLite.py", line 139, in getTables
    cursor.execute("select * from sqlite_master")
  File "E:\Projects\Dabo\trunk\dabo\db\dCursorMixin.py", line 370, in execute
    self._records = dDataSet(_records)
TypeError: __init__() takes exactly 1 argument (2 given)

On Wed, Dec 17, 2008 at 6:58 PM, Christoph Zwerschke <[email protected]> wrote:
> dabo Commit
> Revision 4869
> Date: 2008-12-17 15:58:07 -0800 (Wed, 17 Dec 2008)
> Author: Cito
> Trac: http://trac.dabodev.com/dabo/changeset/4869
>
> Changed:
> U   trunk/dabo/db/dDataSet.py
>
> Log:
> As immutable objects, tuples are created with __new__, not with __init__, so 
> the latter takes no parameters here. In Py 2.6 they will be passed to object 
> and give a deprecation warning.
>
> Diff:
> Modified: trunk/dabo/db/dDataSet.py
> ===================================================================
> --- trunk/dabo/db/dDataSet.py   2008-12-17 20:01:41 UTC (rev 4868)
> +++ trunk/dabo/db/dDataSet.py   2008-12-17 23:58:07 UTC (rev 4869)
> @@ -36,8 +36,8 @@
>        warning message will be printed out and the SQL functions will return
>        None. The data will still be usable, though.
>        """
> -       def __init__(self, *args, **kwargs):
> -               super(dDataSet, self).__init__(*args, **kwargs)
> +       def __init__(self):
> +               super(dDataSet, self).__init__()
>                self._connection = None
>                self._cursor = None
>                self._bizobj = None
>
>
>
>
[excessive quoting removed by server]

_______________________________________________
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