Changeset 8496

Show
Ignore:
Timestamp:
08/15/07 11:29:27 (17 months ago)
Author:
liori
Message:

simplexml: consistent interface for xml attributes -- contains

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/jingle/src/common/xmpp/simplexml.py

    r7497 r8496  
    254254                """ Deletes node's attribute "item". """ 
    255255                return self.delAttr(item) 
     256        def __contains__(self,item): 
     257                """ Checks if node has attribute "item" """ 
     258                self.has_attr(item) 
    256259        def __getattr__(self,attr): 
    257260                """ Reduce memory usage caused by T/NT classes - use memory only when needed. """