dabo Commit
Revision 6838
Date: 2011-09-09 07:15:03 -0700 (Fri, 09 Sep 2011)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6838
Changed:
U trunk/dabo/dApp.py
Log:
Fixed an issue where calling the _initModuleNames() method would not update
with any changes since the app first launched. With this change, bizobjs
created or changed in the Class Designer will now be available when test
running the class.
Diff:
Modified: trunk/dabo/dApp.py
===================================================================
--- trunk/dabo/dApp.py 2011-09-08 21:10:03 UTC (rev 6837)
+++ trunk/dabo/dApp.py 2011-09-09 14:15:03 UTC (rev 6838)
@@ -977,6 +977,10 @@
sys.path.insert(0, currdir)
for dd in self._standardDirs:
currmod = getattr(self, dd, None)
+ if currmod:
+ # Module has already been imported; reload to
get current state.
+ reload(currmod)
+ continue
if sys.version.split()[0].split(".") >= ["2", "5"]:
try:
self.__setattr__(dd, __import__(dd,
globals(), locals(), [], 0))
_______________________________________________
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]