On Fri, Mar 28, 2014 at 08:00:28AM +0100, Mikki Weesenaar wrote: > Dave, > I have a feature request which is quite simple, I guess. > At our project we generate models from quite a few different XSDs - we > sometimes face the problem that we don't know any more which XSD was > used. Therefore my request is; is it possible that an extra line of > comment is added which describes the name of the file used, to > generated the model? > Best regards, > Mikki Weesenaar
Mikki, Good to hear from you again. Sounds like a good idea. I wish I'd thought of that. Since we're looking at this, why not include all command line options and arguments. That might give someone some additional information. Here is an example of what the generated comment might look like: # # Generated Fri Mar 28 12:57:05 2014 by generateDS.py version 2.12c. # # Command line options: # ('-f', '') # ('-o', 'junk1sup.py') # ('-s', 'junk1sub.py') # ('--super', 'junk1sup') # ('--export', 'write literal etree') # ('--member-specs', 'dict') # ('--root-element', 'HDF5-File|HDF5_File') # # Command line arguments: # HDF5-File.xsd # That gives you what you need, right? I've pushed this updated version to Bitbucket, in case you want to try it. There are additional changes in that version, so do some checking before you make use of your generated code. It's here: https://bitbucket.org/dkuhlman/generateds Dave > ------------------------------------------------------------------------------ > _______________________________________________ > generateds-users mailing list > generateds-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/generateds-users -- Dave Kuhlman http://www.davekuhlman.org ------------------------------------------------------------------------------ _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users