4Suite API Documentation

Module amara.flextyper

Python compiler from DTLL (ISO DSDL Part 5: Datatypes) to a Python data types script
Classes:
Functions:
Globals:

Classes

class Usage(Exception)

Methods

__init__(self, msg)
Overrides: __init__ from class Exception

Methods inherited from class Exception

__new__

Methods inherited from class BaseException

__delattr__, __getattribute__, __getitem__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Methods inherited from class object

__hash__, __reduce_ex__

Members

__weakref__ = <attribute '__weakref__' of 'Usage' objects>

Members inherited from class BaseException

__dict__, args, message

Members inherited from class object

__class__
class dtll_processor

Methods

__init__(self, output_stem)
execute(self, dtlldoc)
handle_datatype(self, datatype)
handle_parse(self, parse, output)
reset(self)
write_files(self)

Functions

command_line(args)
main(argv=None)
python_regex(dtllregex)
Convert a DTLL regex to a Python/Perl regex
run(dtll_doc, output_stem, prep_for_test=0)

Globals

DTLL_NS = 'http://www.jenitennison.com/datatypes'
DT_CLASS_SKEL = u'class %s(name)Type:\n self._name = %(name)s\n'
DT_NO_REGEX_SKEL = u' def __init__(self, value):\n return\n'
DT_REGEX_SKEL = u' regex = re.compile(%(regex)s)\n def __init...lf.__dict__.update(m.groupdict())\n return\n'
MAIN_SKEL = u"BASE_URI = '%(ns)s'\n"
NAMED_PATTERN_PAT = <_sre.SRE_Pattern object at 0xb79e5c20>
Compiled regular expression objects
NULL_NAMESPACE = None
NULL_PREFIX = None
NonvalidatingReader = <Ft.Xml.Domlette.NonvalidatingReaderBase instance at 0xb781b02c>
The default non-validating reader instance, created from NonvalidatingReaderBase() with no constructor arguments.
Uses the default InputSource factory. If you need to change it,
reassign the inputSourceFactory attribute, or, preferably, just
create a new NonvalidatingReaderBase instance.
TOP_SKEL = u"#Warning: this is an auto-generated file. Do no...you're doing\n\nimport sys\nimport re\nimport codecs\n"
WXSDT_NS = 'http://www.w3.org/2001/XMLSchema-datatypes'