gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: gump/python/gump/model depend.py
Date Sun, 28 Mar 2004 19:04:55 GMT
ajack       2004/03/28 11:04:55

  Modified:    python/gump/document forrest.py
               python/gump/model depend.py
  Log:
  Attempt to implement <sysproperty (as Stefan did for traditional),
  and removed the hard coded settings for:
  
  1) java.awt.headless
  2) build.sysclasspath
  3) clonevm
  
  ... so we can control them as needed, not brute force.
  
  Hopefully we get an environment more matching traditional (and
  problems like xdocslets spinning goes away).
  
  Revision  Changes    Path
  1.118     +25 -11    gump/python/gump/document/forrest.py
  
  Index: forrest.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/document/forrest.py,v
  retrieving revision 1.117
  retrieving revision 1.118
  diff -u -r1.117 -r1.118
  --- forrest.py	26 Mar 2004 02:27:15 -0000	1.117
  +++ forrest.py	28 Mar 2004 19:04:55 -0000	1.118
  @@ -1650,16 +1650,30 @@
       def documentProperties(self,xdocNode,propertyContainer,title='Properties'):
           
           properties=propertyContainer.getProperties()
  -        if not properties: return        
  +        sysproperties=propertyContainer.getSysProperties()
  +        if not properties and not sysproperties: return        
           
           propertiesSection=xdocNode.createSection(title)
  +                
  +        if sysproperties:
  +            # System Properties
  +            sysPropertiesSection=propertiesSection.createSection('System Properties') 

  +            syspropertiesTable=sysPropertiesSection.createTable(['Name','Value','XML'])
  +            for sysproperty in sysproperties:      
  +                syspropertyRow=syspropertiesTable.createRow()
  +                syspropertyRow.createData(sysproperty.getName())
  +                syspropertyRow.createData(sysproperty.getValue())
  +                syspropertyRow.createData(sysproperty.getXMLData())
           
  -        propertiesTable=propertiesSection.createTable(['Name','Value','XML'])
  -        for property in properties:      
  -            propertyRow=propertiesTable.createRow()
  -            propertyRow.createData(property.getName())
  -            propertyRow.createData(property.getValue())
  -            propertyRow.createData(property.getXMLData())
  +        if properties:
  +            # Standard Properties
  +            standardPropertiesSection=propertiesSection.createSection('Standard Properties')
   
  +            propertiesTable=standardPropertiesSection.createTable(['Name','Value','XML'])
  +            for property in properties:      
  +                propertyRow=propertiesTable.createRow()
  +                propertyRow.createData(property.getName())
  +                propertyRow.createData(property.getValue())
  +                propertyRow.createData(property.getXMLData())
                           
       def documentXML(self,xdocNode,xmlOwner):
           
  
  
  
  1.23      +1 -1      gump/python/gump/model/depend.py
  
  Index: depend.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/model/depend.py,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- depend.py	24 Mar 2004 15:19:22 -0000	1.22
  +++ depend.py	28 Mar 2004 19:04:55 -0000	1.23
  @@ -20,7 +20,7 @@
   
   from gump.model.state import *
   from gump.model.object import NamedModelObject
  -from gump.model.property import Property, PropertyContainer
  +from gump.model.property import Property
   
   
   from gump.utils.note import *
  
  
  

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


Mime
View raw message