]> Cypherpunks.ru repositories - pyderasn.git/blobdiff - doc/examples.rst
Decode context and defines feature extending
[pyderasn.git] / doc / examples.rst
index a9e57b66e2e88d8623e5b971660de824fa1a8f01..512c8f8f1a9041daf61c4eee9a3ae0dcddb2e487 100644 (file)
@@ -424,13 +424,13 @@ fields automatic decoding::
 
     class AttributeTypeAndValue(Sequence):
         schema = (
 
     class AttributeTypeAndValue(Sequence):
         schema = (
-            ("type", AttributeType(defines=("value", {
+            ((("type",), AttributeType(defines=("value", {
                 id_at_countryName: PrintableString(),
                 id_at_stateOrProvinceName: PrintableString(),
                 id_at_localityName: PrintableString(),
                 id_at_organizationName: PrintableString(),
                 id_at_commonName: PrintableString(),
                 id_at_countryName: PrintableString(),
                 id_at_stateOrProvinceName: PrintableString(),
                 id_at_localityName: PrintableString(),
                 id_at_organizationName: PrintableString(),
                 id_at_commonName: PrintableString(),
-            }))),
+            }))),),
             ("value", AttributeValue()),
         )
 
             ("value", AttributeValue()),
         )