dabo Commit
Revision 7090
Date: 2012-02-10 11:51:51 -0800 (Fri, 10 Feb 2012)
Author: Paul
Trac: http://trac.dabodev.com/changeset/7090
Changed:
U trunk/dabo/db/dCursorMixin.py
U trunk/dabo/db/dDataSet.py
Log:
When the dataset is empty, it is usually okay. Demoted the log level
from error to info.
Diff:
Modified: trunk/dabo/db/dCursorMixin.py
===================================================================
--- trunk/dabo/db/dCursorMixin.py 2012-02-10 04:02:12 UTC (rev 7089)
+++ trunk/dabo/db/dCursorMixin.py 2012-02-10 19:51:51 UTC (rev 7090)
@@ -1369,6 +1369,8 @@
Obviously, use with care. You can't get the original records
back
and this is really intended for one-off read-only cursors.
"""
+ if not ds:
+ ds = dDataSet()
self._records = ds
Modified: trunk/dabo/db/dDataSet.py
===================================================================
--- trunk/dabo/db/dDataSet.py 2012-02-10 04:02:12 UTC (rev 7089)
+++ trunk/dabo/db/dDataSet.py 2012-02-10 19:51:51 UTC (rev 7090)
@@ -302,7 +302,7 @@
alias = "dataset"
if len(ds) == 0:
# Can't create and populate a table without a structure
- dabo.log.error(_("Cannot populate without data for
alias '%s'")
+ dabo.log.info(_("Cannot populate without data for alias
'%s'")
% alias)
return None
hs = hashlib.md5(ustr(ds)).hexdigest()
_______________________________________________
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]