mtpgwlib.MTPWriter
index
/home/klokan/Projects/MarineTrans/opt/mtpgw/lib/mtpgwlib/MTPWriter.py

MTPWriter module
----------------
Defines Writer for MTP format (our own internal format of XML, which
reflects exactly internal representation of MTPDocument class)
 
MTP - Marine Trans Purchasing
Copyright (2005) Klokan Petr Pridal

 
Modules
       
lxml.etree
mtpgwlib.templates

 
Classes
       
MTPWriter

 
class MTPWriter
    Writer which create (ev. validate) MTP Document given as internal
MTP Document Representation
 
  Methods defined here:
__init__(self, mtpdoc=None)
Initialization of object
fill(self, mtpdoc, validate=True)
Fill given mtp template by given mtpdoc (internal MTPDocument structure)
and validate output (if validate = True)

 
Data
        MTPXSD = '/opt/mtpgw/lib/mtpgwlib/schema/mtp.xsd'
config = <mtpgwlib.Config.Config instance>
mtpXMLSchema = <etree.XMLSchema object>