示例#1
0
文件: dds.py 项目: karthik1710/odoo13
 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)
示例#2
0
文件: dds.py 项目: karthik1710/odoo13
 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))),
     )
示例#3
0
class DerefRes(univ.Sequence):
    componentType = namedtype.NamedTypes(
        namedtype.NamedType('derefAttr', AttributeDescription()),
        namedtype.NamedType('derefVal', LDAPDN()),
        namedtype.OptionalNamedType('attrVals', PartialAttributeList()),
    )
示例#4
0
文件: psearch.py 项目: x7x8/kekescan
class EntryChangeNotificationValue(univ.Sequence):
  componentType = namedtype.NamedTypes(
    namedtype.NamedType('changeType',ChangeType()),
    namedtype.OptionalNamedType('previousDN', LDAPDN()),
    namedtype.OptionalNamedType('changeNumber',univ.Integer()),
  )