← Back to team overview

mlhim-specs-dev team mailing list archive

[Branch ~cdd-dev/cdd/trunk] Rev 313: Closing schema tag

 

------------------------------------------------------------
revno: 313
committer: Eduardo Ribeiro <xcesar@xxxxxxxxx>
branch nick: devel
timestamp: Mon 2013-02-04 16:41:17 -0200
message:
  Closing schema tag
modified:
  src/2.0/ccdgen.py


--
lp:cdd
https://code.launchpad.net/~cdd-dev/cdd/trunk

Your team MLHIM Specifications Developers is subscribed to branch lp:cdd.
To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
=== modified file 'src/2.0/ccdgen.py'
--- src/2.0/ccdgen.py	2013-02-04 16:06:31 +0000
+++ src/2.0/ccdgen.py	2013-02-04 18:41:17 +0000
@@ -199,6 +199,12 @@
             self.fd.write(xsd_type_string)
         
     
+    def _print_footer(self):
+        txt = \
+"""
+\n</xs:schema>
+"""
+        self.fd.write(txt)
     def _test_open_file(self):
         if not self.fd:
             raise IOError('File not defined')
@@ -212,4 +218,5 @@
         self._print_header()
         self._print_metadata()
         self._print_structure()
+        self._print_footer()
         self.fd.flush()