diff options
author | elie <elie> | 2011-01-26 13:54:41 +0000 |
---|---|---|
committer | elie <elie> | 2011-01-26 13:54:41 +0000 |
commit | dc64479c3abcb7fe98c885dd1dec9c711f1be627 (patch) | |
tree | 0143ea09dedb784c28f05852b1726e0fae26e662 /pyasn1/type/base.py | |
parent | d43f42495fb22fbd14753869f2be65ce6922160c (diff) | |
download | pyasn1-dc64479c3abcb7fe98c885dd1dec9c711f1be627.tar.gz |
major codec re-design, Any ASN.1 type implemented
Diffstat (limited to 'pyasn1/type/base.py')
-rw-r--r-- | pyasn1/type/base.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pyasn1/type/base.py b/pyasn1/type/base.py index 067447f..5914219 100644 --- a/pyasn1/type/base.py +++ b/pyasn1/type/base.py @@ -14,6 +14,9 @@ class Asn1ItemBase(Asn1Item): # A list of constraint.Constraint instances for checking values subtypeSpec = constraint.ConstraintsIntersection() + # Used for ambiguous ASN.1 types identification + typeId = None + def __init__(self, tagSet=None, subtypeSpec=None): if tagSet is None: self._tagSet = self.tagSet @@ -30,6 +33,7 @@ class Asn1ItemBase(Asn1Item): def getSubtypeSpec(self): return self._subtypeSpec def getTagSet(self): return self._tagSet + def getEffectiveTagSet(self): return self._tagSet # used by untagged types def getTypeMap(self): return { self._tagSet: self } def isSameTypeWith(self, other): |