Logo Search packages:      
Sourcecode: zope-ldap version File versions

def ZLDAPConnection::Entry::TransactionalEntry::remove (   self,
  attr 
)

\
Unset (delete) an attribute

Definition at line 328 of file Entry.py.

00328                           :
        """\
        Unset (delete) an attribute
        """
        if not self._registered:
            get_transaction().register(self)
            self._registered=1

        if type(attr) is type(''):
            attr = (attr,)

        data = self._data
        mod_d = self._mod_delete
        for item in attr:
            if data.has_key(item):
                del data[item]
                mod_d.append(item)


    ### Transaction Related methods


Generated by  Doxygen 1.6.0   Back to index