Exemple #1
0
class DerefSpec(univ.Sequence):
  componentType = namedtype.NamedTypes(
    namedtype.NamedType(
      'derefAttr',
      AttributeDescription()
    ),
    namedtype.NamedType(
      'attributes',
      AttributeList()
    ),
  )
Exemple #2
0
 def _derefSpecs(self):
   deref_specs = DerefSpecs()
   i = 0
   for deref_attr,deref_attribute_names in self.derefSpecs.items():
     deref_spec = DerefSpec()
     deref_attributes = AttributeList()
     for j in range(len(deref_attribute_names)):
       deref_attributes.setComponentByPosition(j,deref_attribute_names[j])
     deref_spec.setComponentByName('derefAttr',AttributeDescription(deref_attr))
     deref_spec.setComponentByName('attributes',deref_attributes)
     deref_specs.setComponentByPosition(i,deref_spec)
     i += 1
   return deref_specs
Exemple #3
0
class DerefRes(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('derefAttr', AttributeDescription()),
        namedtype.NamedType('derefVal', LDAPDN()),
        namedtype.OptionalNamedType('attrVals', PartialAttributeList()),
    )
Exemple #4
0
class PartialAttribute(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('type', AttributeDescription()),
        namedtype.NamedType('vals', AttributeValues()),
    )
Exemple #5
0
class AttributeList(univ.SequenceOf):
    componentType = AttributeDescription()