Thank you so much for being so reactive !
Both models and forms have been generated.
Now it is up to me to make good use of them...
*Rémy *
2017-05-30 22:10 GMT+02:00 Dave Kuhlman <dkuhl...@davekuhlman.org>:
> Rémy,
>
> Here is that fix I mentioned.
>
> This fix basically says: Go ahead and keep on processing (the
> following steps of the process) even if there are error or warning
> messages. We want it to do that because, in the case of wmdr.xsd,
> there are warning messages that we want to ignore, and I can't, in
> general, distinguish between warning and error messages, ignorable
> messages, etc.
>
> I was concerned that (1) the user might make changes to the XML
> schema, (2) the schema might cause generateDS.py to fail to generate
> the library/module, and (3) the django file generation process might
> use a previously generated library/module without the user noticing
> it. With this fix, we clean up and delete those files (the module
> itself and both Python 2 and Python 3 compiled/pyc files). Then, if
> generateDS.py does fail, that will cause a failure at a later stage,
> and the user will forced to be aware of it.
>
> A patched file is attached. Let me know if this works for you.
>
> I'll try to do some more testing, some clean up, and create a new
> release in a few days.
>
> Dave
>
> On Mon, May 29, 2017 at 12:12:20PM +0200, Rémy Gibault wrote:
> > Hi Dave,
> >
> > Sorry to disturb you again,
> >
> > I'm trying to generate Django models and forms now.
> > I have followed instructions from chapter 15.1.1 of this web page :
> > https://pythonhosted.org/generateDS/
> >
> >
> > * ./gends_run_gen_django.py -f -v -p /var/opt/generateDS/generateDS.py*
> > */home/wigos/projects/generateDS/wmdr/xsd/wmdr.xsd*
> >
> >
> > The output is :
> >
> >
> > schema_name_stem: wmdr
> > bindings_file_name: wmdrlib.py
> > *** running /var/opt/generateDS/generateDS.py -f -o wmdrlib.py
> > --member-specs=list /home/wigos/projects/generateDS/wmdr/xsd/wmdr.xsd
> > *** error ***
> > *** warning. Removing child with duplicate name: "Boolean"
> > *** warning. Removing child with duplicate name: "AbstractObject"
> > *** warning. Removing child with duplicate name: "Process"
> > *** warning. Removing child with duplicate name: "RangeBounds"
> > *** error ***
> >
> >
> >
> > a file wmdrlib.py is generated
> >
> > -rw-r--r--. 1 root root 5684019 May 29 09:14 wmdrlib.py
> >
> >
> > *but I don't find any models.py or forms.py file.*
> >
> > Any idea?
> >
> > *Rémy *
> >
> >
>
> [snip]
>
>
> --
>
> Dave Kuhlman
> http://www.davekuhlman.org
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users