Guest User

Untitled

a guest
Jun 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. # This method is a instance method inside the _base.Application class.
  2. def get_xsd(self, model, pretty_print=False):
  3. schema_entries = _SchemaEntries(self)
  4. model.add_to_schema(schema_entries)
  5. nodes = self.__build_schema_nodes(schema_entries, types=None)
  6. return etree.tostring(nodes[nodes.keys()[0]], pretty_print=pretty_print)
Add Comment
Please, Sign In to add comment