[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gump
Subject:    cvs commit: gump/python/gump/core gumpenv.py
From:       ajack () apache ! org
Date:       2004-04-28 13:16:34
Message-ID: 20040428131634.50185.qmail () minotaur ! apache ! org
[Download RAW message or body]

ajack       2004/04/28 06:16:34

  Modified:    python/gump/utils __init__.py
               python/gump/core gumpenv.py
  Log:
  Attempt to remove duplication here:
  
  	http://lsd.student.utwente.nl/gump/environment.html
  
  Revision  Changes    Path
  1.33      +1 -2      gump/python/gump/utils/__init__.py
  
  Index: __init__.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/utils/__init__.py,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- __init__.py	16 Apr 2004 17:28:37 -0000	1.32
  +++ __init__.py	28 Apr 2004 13:16:34 -0000	1.33
  @@ -331,8 +331,7 @@
       for name in bean.__class__.__dict__:
           if name.startswith('__') and name.endswith('__'): continue
           accessor=getattr(bean,name)            
  -        # avoid nulls, metadata, and methods other than (is|get)*
  -        if not accessor: continue
  +        # avoid metadata, non-methods, methods other than (is|get)*
           if isinstance(accessor,types.TypeType): continue
           # Ignore non-methods
           if not isinstance(accessor,types.MethodType): continue        
  
  
  
  1.4       +8 -0      gump/python/gump/core/gumpenv.py
  
  Index: gumpenv.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/core/gumpenv.py,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- gumpenv.py	26 Apr 2004 16:13:56 -0000	1.3
  +++ gumpenv.py	28 Apr 2004 13:16:34 -0000	1.4
  @@ -55,6 +55,8 @@
           #
       	# Set to true if not found, see checkEnvironment
       	#
  +    	self.checked=0
  +    	
       	self.noForrest=0    
       	self.noMaven=0    	
       	self.noUpdate=0    	
  @@ -80,6 +82,8 @@
           
       def checkEnvironment(self,exitOnError=0):
           """ Check Things That are Required """
  +        
  +        if self.checked: return
       
           #
           # :TODO: Complete this, it ought be an important early warning...
  @@ -179,12 +183,16 @@
               self.noPGrep=1
               self.addWarning('"pgrep" command not found, no process clean-ups can occur')        
       
  +    
  +        self.checked=1
  +        
           self.changeState(STATE_SUCCESS)
       
       def getJavaProperties(self):
           if self.javaProperties: return self.javaProperties
   
           self.checkEnvironment()
  +        
           if self.noJavac: return {}
   
           import commands, re
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@gump.apache.org
For additional commands, e-mail: general-help@gump.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic