Hello there

I have an odd use-case (at least I think so). I'm trying to create a
tool to simplify the creation of XML files. These files need to conform
to XSLT rules. My plan is to use pyxb and read in the XSLT - then
present the set of classes that have been generated to the user. I
envisage a drag/drop + form interface. Its early days yet but I've
started to look at enumerating the classes in pyxb. So far I have this:


model = {}
model['complex_types'] = []
for name, obj in inspect.getmembers(cdisc_schema):
  if inspect.isclass(obj):
    if issubclass(obj,pyxb.binding.basis.complexTypeDefinition):
      model['complex_types'].append(obj)

I'm attempting to create lists of the different binding classes which I
can then export to an application in something like flask. This appears
to work but it seems somewhat clunky. Can anyone think of a better way
to see what classes and datatypes pyxb has made?

Cheers

Ben

-- 
Research & Scientific Programmer
CB204, The Queens Building, Queen Mary University of London
+44 (0)20 7882 2274
http://keys.gnupg.net/pks/lookup?search=Benjamin+Blundell

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
pyxb-users mailing list
pyxb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyxb-users

Reply via email to