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

def ZLDAPConnection::Entry::TransactionalEntry::setattrs (   self,
  kwdict = {},
  kw 
)

\
Set attributes in self._data and register ourselves with the
transaction machinery.  Data is not committed to LDAP when this
is called.

Definition at line 308 of file Entry.py.

00308                               {}, **kw):
        """\
        Set attributes in self._data and register ourselves with the
        transaction machinery.  Data is not committed to LDAP when this
        is called.
        """ 
        if not self._registered:
            get_transaction().register(self)
            self._registered=1
            
        kwdict.update(kw)
        data = self._data
        for attr, value in kwdict.items():
            if type(value) is type(''):
                value = [value]
            data[attr] = value


    # We override _remove (previously '_unSet') here because we don't call
    # self._modify() (the transaction manager will)


Generated by  Doxygen 1.6.0   Back to index