def encodedRequestValue(self): p = self.RefreshRequestValue() p.setComponentByName( 'entryName', LDAPDN(self.entryName).subtype(implicitTag=tag.Tag( tag.tagClassContext, tag.tagFormatSimple, 0))) p.setComponentByName( 'requestTtl', univ.Integer(self.requestTtl).subtype(implicitTag=tag.Tag( tag.tagClassContext, tag.tagFormatSimple, 1))) return encoder.encode(p)
class RefreshRequestValue(univ.Sequence): componentType = namedtype.NamedTypes( namedtype.NamedType( 'entryName', LDAPDN().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 0))), namedtype.NamedType( 'requestTtl', univ.Integer().subtype(implicitTag=tag.Tag( tag.tagClassContext, tag.tagFormatSimple, 1))), )
class DerefRes(univ.Sequence): componentType = namedtype.NamedTypes( namedtype.NamedType('derefAttr', AttributeDescription()), namedtype.NamedType('derefVal', LDAPDN()), namedtype.OptionalNamedType('attrVals', PartialAttributeList()), )
class EntryChangeNotificationValue(univ.Sequence): componentType = namedtype.NamedTypes( namedtype.NamedType('changeType',ChangeType()), namedtype.OptionalNamedType('previousDN', LDAPDN()), namedtype.OptionalNamedType('changeNumber',univ.Integer()), )