gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r209604 - /gump/branches/Gump3/pygump/python/gump/plugins/environment.py
Date Thu, 07 Jul 2005 14:44:54 GMT
Author: leosimons
Date: Thu Jul  7 07:44:53 2005
New Revision: 209604

URL: http://svn.apache.org/viewcvs?rev=209604&view=rev
Log:
Whoops -- committed the wrong version of environment.py. Using the __ makes python think we're
using an internal class method, when we're not. Stupid convention-based naming schemes....

Modified:
    gump/branches/Gump3/pygump/python/gump/plugins/environment.py

Modified: gump/branches/Gump3/pygump/python/gump/plugins/environment.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/plugins/environment.py?rev=209604&r1=209603&r2=209604&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/plugins/environment.py (original)
+++ gump/branches/Gump3/pygump/python/gump/plugins/environment.py Thu Jul  7 07:44:53 2005
@@ -34,6 +34,11 @@
 def __del_env(self):
     del self.__env
 
+def set_env_property():
+    Project.env = property(__get_env, __set_env, __del_env,
+            "Environment dictionary for use with command execution")
+
+
 class EnvironmentPlugin(AbstractPlugin):
     """Set up lazily-initialized environment dictionary for use with executed commands."""
     
@@ -41,5 +46,4 @@
         pass
     
     def initialize(self):
-        Project.env = property(__get_env, __set_env, __del_env,
-            "Environment dictionary for use with command execution")
+        set_env_property()



Mime
View raw message