[dabo-dev] dabo Commit 5762

Author: Ed Leafe

Posted: 2010-03-22 at 11:13:06

dabo Commit

Revision 5762

Date: 2010-03-22 08:13:05 -0700 (Mon, 22 Mar 2010)

Author: Ed

Trac: http://trac.dabodev.com/changeset/5762

Changed:

U trunk/dabo/dApp.py

Log:

Changed the HomeDirectory setter to write an errorLog entry instead of throwing an exception when an invalid path is passed. Again, this is an issue with moving a cdxml from one system to another.

Diff:

Modified: trunk/dabo/dApp.py

===================================================================

--- trunk/dabo/dApp.py 2010-03-22 14:36:04 UTC (rev 5761)

+++ trunk/dabo/dApp.py 2010-03-22 15:13:05 UTC (rev 5762)

@@ -1450,7 +1450,7 @@

if os.path.exists(val):

self._homeDirectory = os.path.abspath(val)

else:

- raise ValueError(_("%s: Path does not exist.") % val)

+ dabo.errorLog.write(_("Setting App HomeDirectory: Path does not exist. '%s'") % val)

def _getIcon(self):

_______________________________________________

Post Messages to: Dabo-dev@leafe.com

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/20100322151306.58EFE318703@mail.paulmcnett.com

©2010 Ed Leafe