Пример #1
0
 def _make_index_oid(self, indexargs):
     assert len(indexargs) == len(self.index)
     indexoid = Basetypes.ObjectIdentifier()
     i = 0
     for idx in indexargs[:-1]:
         indexoid.extend(Basetypes.oid(self.index[i].syntaxobject(idx)))
         i += 1
     end = self.index[i].syntaxobject(indexargs[-1])
     end.implied = self.index.implied
     indexoid.extend(Basetypes.oid(end))
     return indexoid
Пример #2
0
 def _make_index_oid(self, indexargs):
     assert len(indexargs) == len(self.index)
     indexoid = Basetypes.ObjectIdentifier()
     i = 0
     for idx in indexargs[:-1]:
         indexoid.extend(Basetypes.oid(self.index[i].syntaxobject(idx)))
         i += 1
     end = self.index[i].syntaxobject(indexargs[-1])
     end.implied = self.index.implied
     indexoid.extend(Basetypes.oid(end))
     return indexoid
Пример #3
0
 def _oid_(self):
     new = Basetypes.ObjectIdentifier()
     self[-1].implied = self.implied
     for obj in self:
         new.extend(Basetypes.oid(obj))
     return new
Пример #4
0
 def _oid_(self):
     new = Basetypes.ObjectIdentifier()
     self[-1].implied = self.implied
     for obj in self:
         new.extend(Basetypes.oid(obj))
     return new