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

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

Sets one or more attributes on the entry object, taking in
both a dictionary AND\OR keywork arguments 

Definition at line 120 of file Entry.py.

00120                               {}, **kw):
        """ Sets one or more attributes on the entry object, taking in
        both a dictionary AND\OR keywork arguments """
        kwdict.update(kw)
        data = self._data
        for attr, value in kwdict.items():
            if type(value) is type(''):
                value = [value]
            data[attr] = value

        self._modify()


Generated by  Doxygen 1.6.0   Back to index