gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject cvs commit: jakarta-gump/python/gump model.py
Date Mon, 20 Oct 2003 19:12:09 GMT
ajack       2003/10/20 12:12:09

  Modified:    python/gump model.py
  Log:
  Given how the XML object handles missing attributes, test existance
  and non-None.
  
  Revision  Changes    Path
  1.37      +4 -4      jakarta-gump/python/gump/model.py
  
  Index: model.py
  ===================================================================
  RCS file: /home/cvs/jakarta-gump/python/gump/model.py,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- model.py	20 Oct 2003 16:37:17 -0000	1.36
  +++ model.py	20 Oct 2003 19:12:08 -0000	1.37
  @@ -406,7 +406,7 @@
         # Name the property...
         if depend.property:
           property['name']=depend.property
  -      elif not hasattr(property,'name'):
  +      elif not hasattr(property,'name') or not property['name']:
           # :TODO: Reconsider later, but default to project name for now...
           property['name']=depend.project
           log.warn('Unnamed property in depend for: ' + depend.project + ' on ' + project.name)
  
  
  

Mime
View raw message