Esempio n. 1
0
class DerefSpec(univ.Sequence):
  componentType = namedtype.NamedTypes(
    namedtype.NamedType(
      'derefAttr',
      AttributeDescription()
    ),
    namedtype.NamedType(
      'attributes',
      AttributeList()
    ),
  )
Esempio n. 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
Esempio n. 3
0
class DerefRes(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('derefAttr', AttributeDescription()),
        namedtype.NamedType('derefVal', LDAPDN()),
        namedtype.OptionalNamedType('attrVals', PartialAttributeList()),
    )
Esempio n. 4
0
class PartialAttribute(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('type', AttributeDescription()),
        namedtype.NamedType('vals', AttributeValues()),
    )
Esempio n. 5
0
class AttributeList(univ.SequenceOf):
    componentType = AttributeDescription()