On Sat, May 30, 2009 at 9:47 PM, Dave Kuhlman <dkuhl...@pacbell.net> wrote:

>
> Try using the "--root-element" command line option.  Use the "--help"
> option to get a bit more info.
>

right...haha, should have looked at the options a bit closer


>
> There is already some support in generateDS.py for abstract types.
> So, I'm going to look into the possibility of using that support
> for abstract types for derived types as well.  Wish me luck.
>
> Unfortunately I'm going to be traveling for a week.  But, I'll get
> on it as soon as I return.
>

sounds great


>
> In the meantime, a new version that exports the type info and
> has a few other fixes, too, is here:
>
>    
> http://www.rexx.com/~dkuhlman/generateDS-1.17a.tar.gz<http://www.rexx.com/%7Edkuhlman/generateDS-1.17a.tar.gz>
>

Got that version and it does add the type attribute...but if you do not
specifically set it on the object then it will not display it on the
exported XML...to do a quick fix I just added a line or 2 in the generated
code code such that it looks like this on the base type:

if self.type_ is not None:
     ...then it exports the type info
#added
else:
    ....write out self.__class__.__name__


Thanks for your help!

-Brandon
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to