> From: Derek Corbett

> Sent: Wed, January 12, 2011 9:58:48 PM
> 

> Hi Dave,
> 
> I have been looking through generateDS it's a really interesting and
> useful library. I was just wondering though, what do you think the
> best way would be to use this library with django? Essentially I want
> to convert each of my XSD types to a django model:
> http://docs.djangoproject.com/en/dev/topics/db/models/ . Simple types
> would be mapped to char fields or numberic literals, and complex types
> mapped by ManyToMany relationships.

Derek -

This seems like a good idea to me.

Actually, I've done a bit of work on this, but that work is
separate from generateDS.py.  And, it is nowhere near complete. 
I've attached a few files in case you want to take a look.  But,
again, it will be a long time before that is usable.

Your idea of using subclasses generated by generateDS.py sounds
very interesting.  Taking your suggestion, I've done a bit of work in
that direction today.  It does some of what we want, but still has
problems.  Give me another day or two, and I will try to send you
something.

Thanks much for the suggestions and good guidance.

By the way, being able to store XML documents in some kind of
back-end database, then serve that data with a REST-ful [1] Web app
written with Django sounds like a great idea to me.  As clouds and
personal clouds become more and more widely used, people are going
to also want to have personal data storage that they can access in
a location independent way.

More later.

- Dave

[1] Representational State Transfer -- http://en.wikipedia.org/wiki/REST


[very helpful example snipped]

 -- 

Dave Kuhlman
http://www.rexx.com/~dkuhlman

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to