dabo Commit 4302

View: New views
1 Messages — Rating Filter:   Alert me  

dabo Commit 4302

by Ed Leafe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

dabo Commit
Revision 4302
Date: 2008-07-21 08:35:31 -0700 (Mon, 21 Jul 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4302

Changed:
U   trunk/dabo/ui/uiwx/dShell.py

Log:
Fixes a problem reported by Nate Lowrie when running the new dShell for the first time with no command history.


Diff:
Modified: trunk/dabo/ui/uiwx/dShell.py
===================================================================
--- trunk/dabo/ui/uiwx/dShell.py 2008-07-21 15:32:55 UTC (rev 4301)
+++ trunk/dabo/ui/uiwx/dShell.py 2008-07-21 15:35:31 UTC (rev 4302)
@@ -392,8 +392,11 @@
  for k in ck.getPrefKeys():
  cmds.append({"stamp": k, "cmd": ck.get(k)})
  dsu = dabo.db.dDataSet(cmds)
- ds = dsu.sort("stamp", "desc")
- return ds
+ if dsu:
+ ds = dsu.sort("stamp", "desc")
+ return ds
+ else:
+ return dsu
 
 
  def historyPop(self):




_______________________________________________
Post Messages to: Dabo-dev@...
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/20080721153531.A0E223188D9@...
LightInTheBox - Buy quality products at wholesale price