commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9931 - in trunk/gnue-common: module/base src/apps src/base


From: reinhard
Subject: [gnue] r9931 - in trunk/gnue-common: module/base src/apps src/base
Date: Mon, 5 Oct 2009 17:25:51 -0500 (CDT)

Author: reinhard
Date: 2009-10-05 17:25:50 -0500 (Mon, 05 Oct 2009)
New Revision: 9931

Modified:
   trunk/gnue-common/module/base/__init__.py
   trunk/gnue-common/src/apps/__init__.py
   trunk/gnue-common/src/base/__init__.py
Log:
Some cleanup of automatic imports.


Modified: trunk/gnue-common/module/base/__init__.py
===================================================================
--- trunk/gnue-common/module/base/__init__.py   2009-10-05 22:17:57 UTC (rev 
9930)
+++ trunk/gnue-common/module/base/__init__.py   2009-10-05 22:25:50 UTC (rev 
9931)
@@ -23,9 +23,11 @@
 
 """
 GNUe base module.  All gnue.* modules depend on gnue.common, so import
-gnue.<whatever>" will cause gnue.common.apps to be loaded. This sets up a GNUe
+gnue.<whatever>" will cause gnue.common.base to be loaded. This sets up a GNUe
 environment.
 """
 
-# Init stuff like _()
-import gnue.common.apps as _init
+import gnue.common.base
+
+# For compatibility
+import gnue.common.apps

Modified: trunk/gnue-common/src/apps/__init__.py
===================================================================
--- trunk/gnue-common/src/apps/__init__.py      2009-10-05 22:17:57 UTC (rev 
9930)
+++ trunk/gnue-common/src/apps/__init__.py      2009-10-05 22:25:50 UTC (rev 
9931)
@@ -27,20 +27,4 @@
 
 # These modules introduce new functions into the builtins dictionary, so we
 # always import them
-import GDebug
-import __builtin__
-
-from gnue.common.lib import checktype
-
-from gnue.common.apps import i18n
-from gnue.common.apps import errors
-
-
-# -----------------------------------------------------------------------------
-# Add gStartupStatus global for startup status dialogs
-# -----------------------------------------------------------------------------
-
-def _print_startup_status(text):
-    print  ' * %s' % text
-
-__builtin__.__dict__['gStartupStatus'] = _print_startup_status
+from gnue.common.apps import GDebug, errors

Modified: trunk/gnue-common/src/base/__init__.py
===================================================================
--- trunk/gnue-common/src/base/__init__.py      2009-10-05 22:17:57 UTC (rev 
9930)
+++ trunk/gnue-common/src/base/__init__.py      2009-10-05 22:25:50 UTC (rev 
9931)
@@ -28,3 +28,7 @@
 All the functions here in one way or the other depend on (or implement) some
 special aspect of the GNU Enterprise infrastructure.
 """
+
+# These modules add functions to the builtin namespace.
+from gnue.common.lib import checktype
+from gnue.common.base import i18n





reply via email to

[Prev in Thread] Current Thread [Next in Thread]