コード例 #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
ファイル: deref.py プロジェクト: tiran/python-ldap
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()),
  )