Package ldaptor :: Package protocols :: Module pureldap :: Class LDAPModifyRequest
[show private | hide private]
[frames | no frames]

Class LDAPModifyRequest

    BERBase --+        
              |        
  BERStructured --+    
                  |    
       UserList --+    
                  |    
        BERSequence --+
                      |
 LDAPProtocolOp --+   |
                  |   |
LDAPProtocolRequest --+
                      |
                     LDAPModifyRequest


Method Summary
  __init__(self, object, modification, tag)
Initialize the object
  __repr__(self)
  __str__(self)
  fromBER(klass, tag, content, berdecoder)
(Class method)
    Inherited from BERStructured
  identification(self)
    Inherited from BERBase
  __cmp__(self, other)
  __eq__(self, other)
  __len__(self)
  __ne__(self, other)
    Inherited from UserList
  __add__(self, other)
  __contains__(self, item)
  __delitem__(self, i)
  __delslice__(self, i, j)
  __ge__(self, other)
  __getitem__(self, i)
  __getslice__(self, i, j)
  __gt__(self, other)
  __iadd__(self, other)
  __imul__(self, n)
  __le__(self, other)
  __lt__(self, other)
  __mul__(self, n)
  __radd__(self, other)
  __rmul__(self, n)
  __setitem__(self, i, item)
  __setslice__(self, i, j, other)
  append(self, item)
  count(self, item)
  extend(self, other)
  index(self, item, *args)
  insert(self, i, item)
  pop(self, i)
  remove(self, item)
  reverse(self)
  sort(self, *args, **kwds)

Class Variable Summary
NoneType modification = None                                                                  
NoneType object = None                                                                  
int tag = 70                                                                    
    Inherited from LDAPProtocolRequest
int needs_answer = 1                                                                     

Instance Method Details

__init__(self, object=None, modification=None, tag=None)
(Constructor)

Initialize the object

Example usage:
       l = LDAPModifyRequest(
           object='cn=foo,dc=example,dc=com',
           modification=[

             BERSequence([
               BEREnumerated(0),
               BERSequence([
                 LDAPAttributeDescription('attr1'),
                 BERSet([
                   LDAPString('value1'),
                   LDAPString('value2'),
                   ]),
                 ]),
               ]),

             BERSequence([
               BEREnumerated(1),
               BERSequence([
                 LDAPAttributeDescription('attr2'),
                 ]),
               ]),

           ])
But more likely you just want to say:
       mod = delta.ModifyOp('cn=foo,dc=example,dc=com',
           [delta.Add('attr1', ['value1', 'value2']),
            delta.Delete('attr1', ['value1', 'value2'])])
       l = mod.asLDAP()
Overrides:
ldaptor.protocols.pureldap.LDAPProtocolOp.__init__

Class Variable Details

modification

Type:
NoneType
Value:
None                                                                  

object

Type:
NoneType
Value:
None                                                                  

tag

Type:
int
Value:
70                                                                    

Generated by Epydoc 2.1 on Wed Jan 24 20:46:21 2007 http://epydoc.sf.net