On Tuesday 21 August 2007 10:17, Uwe Grauer wrote:
> When i start my app with an active database activity log, i get this:
>
> ./fwadm.py
> Dabo Info Log: Tue Aug 21 19:10:05 2007: 2 database connection
> definition(s) loaded.
> Dabo Info Log: Tue Aug 21 19:10:05 2007: User interface already set to
> 'wx', so dApp didn't touch it.
> COMMIT
> Database Activity Log: Tue Aug 21 19:10:05 2007: FAILED SQL: COMMIT,
> PARAMS: Dabo Info Log: Tue Aug 21 19:10:05 2007: wxPython Version: 2.6.3.3
> wxGTK (unicode) (gtk2)
> Dabo Info Log: Tue Aug 21 19:10:17 2007: Application finished.
> -----------------------------------------------------------------
>
>
> To see where it comes from i changed dCursorMixin.execute():
>
> def execute(self, sql, params=(), _fromRequery=False):
> """ Execute the sql, and populate the DataSet if it is a
> select statement."""
> # The idea here is to let the super class do the actual
> work in
> # retrieving the data. However, many cursor classes can
> only return
> # row information as a list, not as a dictionary. This
> method will
> # detect that, and convert the results to a dictionary.
>
> #### NOTE: NEEDS TO BE TESTED THOROUGHLY!!!! ####
>
> # Some backends, notably Firebird, require that fields
> be specially marked.
> if not isinstance(sql, unicode):
> sql = unicode(sql, self.Encoding)
> sql = self.processFields(sql)
> if sql.find("COMMIT") != -1:
> print sql
> raise "wrong commit"
> try:
> ...
> -----------------------------------------------------------------
>
>
> I then get this trace:
>
> ./fwadm.py
> Dabo Info Log: Tue Aug 21 19:10:39 2007: 2 database connection
> definition(s) loaded.
> Dabo Info Log: Tue Aug 21 19:10:39 2007: User interface already set to
> 'wx', so dApp didn't touch it.
> COMMIT
> /usr/lib/python2.5/site-packages/dabo/db/dCursorMixin.py:270:
> DeprecationWarning: raising a string exception is deprecated
> raise "wrong commit"
> Traceback (most recent call last):
> File "./fwadm.py", line 45, in <module>
> main()
> File "./fwadm.py", line 38, in main
> app.start()
> File "/usr/lib/python2.5/site-packages/dabo/dApp.py", line 284, in start
> self.setup()
> File "/usr/lib/python2.5/site-packages/dabo/dApp.py", line 248, in setup
> self.uiApp = dabo.ui.getUiApp(self, callback=None)
> File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/__init__.py", line
> 190, in getUiApp
> ret = uiApp(app, callback)
> File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/uiApp.py", line
> 107, in __init__
> wx.App.__init__(self, 0, *args)
> File
> "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line
> 7700, in __init__
> self._BootstrapApp()
> File
> "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line
> 7352, in _BootstrapApp
> return _core_.PyApp__BootstrapApp(*args, **kwargs)
> File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/uiApp.py", line
> 167, in OnInit
> return self.checkForUpdates()
> File "/usr/lib/python2.5/site-packages/dabo/ui/uiwx/uiApp.py", line
> 172, in checkForUpdates
> if self.dApp._checkForUpdates(force=force):
> File "/usr/lib/python2.5/site-packages/dabo/dApp.py", line 404, in
> _checkForUpdates
> prf.setValue("last_check", now)
> File "/usr/lib/python2.5/site-packages/dabo/dPref.py", line 387, in
> setValue
> self.__setattr__(key, val)
> File "/usr/lib/python2.5/site-packages/dabo/dPref.py", line 130, in
> __setattr__
> self._persist(att, val)
> File "/usr/lib/python2.5/site-packages/dabo/dPref.py", line 222, in
> _persist
> self._cursor.commitTransaction()
> File "/usr/lib/python2.5/site-packages/dabo/db/dCursorMixin.py", line
> 1729, in commitTransaction
> ret = self.BackendObject.commitTransaction(self.AuxCursor)
> File "/usr/lib/python2.5/site-packages/dabo/db/dbSQLite.py", line 85,
> in commitTransaction
> cursor.execute("COMMIT")
> File "/usr/lib/python2.5/site-packages/dabo/db/dCursorMixin.py", line
> 270, in execute
> raise "wrong commit"
> wrong commit
> -----------------------------------------------------------------
>
> What could be done about this?
>
> Uwe
>
>
[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/dabo-dev/[EMAIL PROTECTED]