ajack       2004/07/14 11:12:12

  Modified:    python/gump/model module.py repository.py
  Log:
  <redistributable is an element, not an attribute.
  
  Revision  Changes    Path
  1.47      +1 -1      gump/python/gump/model/module.py
  
  Index: module.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/model/module.py,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- module.py 8 Jul 2004 20:33:07 -0000       1.46
  +++ module.py 14 Jul 2004 18:12:12 -0000      1.47
  @@ -470,7 +470,7 @@
           
       def isRedistributable(self):
           # Existence means 'true'
  -        return self.hasDomAttribute('redistributable') \
  +        return self.hasDomChild('redistributable') \
               or (self.repository and self.repository.isRedistributable())
           
       #
  
  
  
  1.14      +1 -2      gump/python/gump/model/repository.py
  
  Index: repository.py
  ===================================================================
  RCS file: /home/cvs/gump/python/gump/model/repository.py,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- repository.py     14 Jul 2004 15:48:01 -0000      1.13
  +++ repository.py     14 Jul 2004 18:12:12 -0000      1.14
  @@ -106,8 +106,7 @@
   
       def isRedistributable(self):
           # Existence means 'true'
  -        return self.hasDomAttribute('redistributable')
  -        
  +        return self.hasDomChild('redistributable')
           
       def hasUser(self): return hasattr(self,'user')
       def hasPassword(self): return hasattr(self,'password')
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to