Re: [Generateds-users] question about generateDS.py

2011-09-21 Thread Allyn Treshansky
) people.add_person(person) people.export(sys.stdout, 0) It should call "peopleType()" and "personType()" instead of "people()" or "person()." A simple mistake I should have noticed straight away. Sorry to pester you. Regards, Allyn On 09/21/2011

Re: [Generateds-users] question about generateDS.py

2011-09-22 Thread Allyn Treshansky
I find out tonight. Regards, Allyn On 09/20/2011 04:33 PM, Dave Kuhlman wrote: >> From: Allyn Treshansky >> Sent: Friday, September 16, 2011 3:56 PM >> Hello. >> >> Apologies if this is a naive question; I am very new to Python. >> I am hoping to use generateDS

[Generateds-users] KeyError?

2011-10-05 Thread Allyn Treshansky
Hello, I have been trying to generate Django models and forms and have successfully done this with the people.xsd example provided in the documentation. However, when I move on to bigger schemas (much, much bigger) things start to go wrong. For example, I tried to run `gends_run_gen_django.py

Re: [Generateds-users] GenerateDS and XML datatypes

2011-10-06 Thread Allyn Treshansky
Actually, I ran into this problem too, using gends_run_gen_django.py. It gave an "unhandled simple type" error for xs:anyURI as well as xs:duration and xs:Name. When I looked at generatedssuper.py, I saw that although these types appeared in the Simple_Type_Table, they didn't appear in any of

[Generateds-users] discrepancy in class names between models.py and forms.py

2011-10-06 Thread Allyn Treshansky
Hi again, I hope this isn't pestering, but I've ran into some more confusion. I have run gends_run_gen_django.py and it successfully creates models.py and forms.py. But in models.py the classes all have names like this: class MyXMLType_model And in forms.py they are all referenced like this: