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
def _oid_(self): new = Basetypes.ObjectIdentifier() self[-1].implied = self.implied for obj in self: new.extend(Basetypes.oid(obj)) return new