summaryrefslogtreecommitdiff
path: root/pyasn1/type/base.py
diff options
context:
space:
mode:
authorelie <elie>2011-01-26 13:54:41 +0000
committerelie <elie>2011-01-26 13:54:41 +0000
commitdc64479c3abcb7fe98c885dd1dec9c711f1be627 (patch)
tree0143ea09dedb784c28f05852b1726e0fae26e662 /pyasn1/type/base.py
parentd43f42495fb22fbd14753869f2be65ce6922160c (diff)
downloadpyasn1-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.py4
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):