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 property.py
Date Sun, 28 Mar 2004 20:12:42 GMT
ajack       2004/03/28 12:12:42

  Modified:    python/gump/model property.py
  Log:
  Ownership moved (as I needed two property sets, not one) and had
  to create intermediate objects. Still trying to restore good ownership...
  
  Revision  Changes    Path
  1.16      +3 -4      gump/python/gump/model/property.py
  
  Index: property.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/model/property.py,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- property.py	28 Mar 2004 18:58:05 -0000	1.15
  +++ property.py	28 Mar 2004 20:12:42 -0000	1.16
  @@ -159,7 +159,7 @@
           return self.properties.values()
               
       def importProperty(self,xmlproperty):
  -        self.addProperty(Property(xmlproperty,self))
  +        self.addProperty(Property(xmlproperty,self.getOwner()))
               
       def completeProperties(self,workspace):   
           for property in self.getProperties(): 
  @@ -170,7 +170,6 @@
           for property in self.getProperties():
               property.dump(indent+1,output)
   
  -
   class PropertyContainer:
       """ 
       
  @@ -206,11 +205,11 @@
       def importProperties(self,xml):
           if xml.property:
               for xmlproperty in xml.property:
  -                self.properties.importProperty(xmlproperty)
  +                self.importProperty(xmlproperty)
                   
           if xml.sysproperty:
               for xmlproperty in xml.sysproperty:
  -                self.sysproperties.importProperty(xmlproperty)
  +                self.importSysProperty(xmlproperty)
               
       def completeProperties(self,workspace=None):        
           if not workspace: workspace=self
  
  
  

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


Mime
View raw message