marvin-zhao / pyang

Automatically exported from code.google.com/p/pyang
0 stars 0 forks source link

DSDL plugin percent sign (%) #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since schemanode.py uses standard python string formatter to build schema XML, 
the percent sign must never ever ever appear in YANG content.

Take the included yang file for example. I used the percent sign (%) as a units 
statement argument and the dsdl plugin self-destructed with 

"schemanode.py", line 189, in serialize
    self.serialize_rng_children()))
ValueError: unsupported format character '"' (0x22) at index 70

SVN rev821.

You need to escape percent signs inside YANG content; "%" -> "%%".

Original issue reported on code.google.com by jernej.t...@gmail.com on 29 May 2013 at 8:07

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by mbj4...@gmail.com on 29 May 2013 at 10:27

GoogleCodeExporter commented 9 years ago

Original comment by lada.lho...@gmail.com on 3 Jun 2013 at 9:14