> From: Dave Sugar
> Sent: Tuesday, June 9, 2009 5:18:21 AM
> Subject: Re: [Generateds-users] generateDS-1.17a very broken
>
> So, I used the people.xsd to test what was going on. 
>
> I compared the generated peoplesup.py to the one generated with
> generateDS 1.16e.  The important difference that I'm seeing is the
> method people.exportChildren. 

Dave (S) -

Thank you for putting your finger on the problem.  That helped a
lot.

I believe that the problem is that we are working with two slightly
different versions of generateDS.py.  And, I'm embarrassed to admit
that it is probably my fault.  I believe that a couple of weeks ago
I uploaded a new version of generateDS.py without changing the
version number.  Or, is it that I did not get the fixed version
uploaded to SourceForge?

So, now I've incorporated your fix for Python 2.4 (mentioned in
your other message), and created a
new version.  Thanks for that fix for Python 2.4.

I've uploaded the new version to my Web site.  You can find it
here:

    http://www.rexx.com/~dkuhlman/generateDS-1.17b.tar.gz

I'll upload this version to SourceForge later today.

Please let me know whether this fixes that problem.  And, thanks
again for the fix for Python 2.4 and for working with me on this.
And, I apologize for causing some inconvenience.

By the way, my tests show that this latest version (1.17b)
generates the code you show below that you generated with 1.16e and
that the generated code correctly exports nested complex elements.

- Dave (K)

>
> The 1.16e version:
>     def exportChildren(self, outfile, level, namespace_='',
> name_='people'):
>         for person_ in self.person:
>             person_.export(outfile, level, namespace_, name_='person')
>
> The 1.17a version:
>     def exportChildren(self, outfile, level, namespace_='',
> name_='people'):
>         for person_ in self.person:
>             showIndent(outfile, level)
>             outfile.write('<%sperson>%s\n' % (namespace_,
> self.format_string(quote_xml(person_).encode(ExternalEncoding),
> input_name='person'), namespace_))
>
>

 
-- 

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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to