Re: [Generateds-users] generateDS 1.9a - Maybe this is not supported, but ...

2006-12-04 Thread Dave Kuhlman
m and telling me about it. Please let me have your comments. Note that I have also posted this message to the Source Forge email list for generateDS.py, just in case someone reading that list and can learn from this. Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman

Re: [Generateds-users] Error in latest release

2006-12-09 Thread Dave Kuhlman
Thank you for catching this error and letting me know about it. In the future, I'll try to remember not do leave the IPython stuff in there. Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman - Take Surveys. Ea

Re: [Generateds-users] generateDS validators

2007-01-30 Thread Dave Kuhlman
rateDS-1.9a.tar.gz I have not yet been able to upload the new version to SourceForge yet, but it will also be at sourceforge.net, soon. Dave (Lambert), thanks for finding this bug and letting me know. It's definitely something that needed to be fixed. Dave (K.) -- Dave Kuhlman http://ww

Re: [Generateds-users] generateDS validators

2007-01-30 Thread Dave Kuhlman
Dave Kuhlman <[EMAIL PROTECTED]> writes: [snip] The new version is at sourceforge now. Dave - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the

Re: [Generateds-users] Creating root objects and child nodes

2007-02-09 Thread Dave Kuhlman
pulate() sys.stdout.write('\n') people.export(sys.stdout, 0) if __name__ == '__main__': test() Which will print out: -1 Dave Kuhlman > > , but

Re: [Generateds-users] generateDS validators

2007-02-13 Thread Dave Kuhlman
d. Does that seem like an improvement to you? [a bit later ...] It looks do-able, and was a good deal easier than I expected. I believe I've got most of the change made. Give me until tomorrow to do more testing, document it, package it, etc. But, I would appreciate your opinion befo

[Generateds-users] ANN: New naming convention for getters and setters

2007-02-14 Thread Dave Kuhlman
Thanks to encouragement from David Lambert, I've change the naming conventions for the getter and setter methods generated by generateDS.py. The new behavior is to generate: get_varname set_varname add_varname# for lists The case (upper/lower) of the variable/member name is not c

Re: [Generateds-users] generateDS issues pasing sif XSD

2007-03-21 Thread Dave Kuhlman
Rafael Ferreira <[EMAIL PROTECTED]> writes: > > Hi there, > > I'm trying to use generateDS to parse the SIF xsd schema (which is quite > complex) > > http://www.sifinfo.org/infrastructure/1.5r1/XSD.zip > > and I get the following error: > > [rafael stan generateDS-1.9a]$ ./generateDS.py > ~

Re: [Generateds-users] comparing classes

2007-05-02 Thread Dave Kuhlman
Benny Zilberstein <[EMAIL PROTECTED]> writes: > > > How hard will it be to add a __eq__ method to the generated > classes, one that will just compare all the members (also the value of the > class, if it exists) and return true/false accordingly? > Benny - This sounds like a very interesting

Re: [Generateds-users] comparing classes

2007-05-09 Thread Dave Kuhlman
Dave Kuhlman <[EMAIL PROTECTED]> writes: > > Benny Zilberstein ...> writes: > > > > > > > How hard will it be to add a __eq__ method to the generated > > classes, one that will just compare all the members (also the value of the > > class,

[Generateds-users] ANN: User methods for generateDS.py Was: comparing classes

2007-05-15 Thread Dave Kuhlman
User Methods generateDS.py now has the ability to add user methods to the classes it generates. The user provides definitions (source) for the methods to be added and (for each method) a regular expression to identify the names of classes to which the method should be added. Then, t

Re: [Generateds-users] ANN: User methods for generateDS .py Was: comparing classes

2007-05-15 Thread Dave Kuhlman
Dave Kuhlman <[EMAIL PROTECTED]> writes: > > User Methods > > > generateDS.py now has the ability to add user methods to the > classes it generates. > And, one more thing -- My thanks to Benny Zilberstein for his suggestion and inspiration on this.

[Generateds-users] Added optional elements and xs:int

2007-08-22 Thread Dave Kuhlman
I've added a couple of features. Benny Zilberstein suggested them and provided the code, too. Thanks, Benny. - Added support for optional elements -- if an element is defined with minOccurs="0" and maxOccurs="1", then generateDS.py generates code which during export will only write out the

[Generateds-users] Is there support for enumerations?

2007-10-02 Thread Dave Kuhlman
In a separate email, Lars Ericson asked: > Do you have any plans to support xs:enumeration in generateDS.py? For > example > > > > > > > > > > Lars - Good to hear from you. generateDS.py does not *directly*

Re: [Generateds-users] Feature Additions

2007-10-09 Thread Dave Kuhlman
Chris Allan <[EMAIL PROTECTED]> writes: Allan - Super. Thank you very much for your changes and additions. These all seem like good changes to me. I've applied your patch files, then run several of my tests. All of my tests, with your patches applied, seemed good. I also applied the patch to

Re: [Generateds-users] Feature Additions

2007-10-11 Thread Dave Kuhlman
Dave Kuhlman <[EMAIL PROTECTED]> writes: > Give me a day or two to understand your changes and > additions better, and perhaps to add a bit of documentation on > them. I may have a few questions for you as I work on that. > > Your notes and explanations, by the way, a

[Generateds-users] New version -- some fixes

2007-11-19 Thread Dave Kuhlman
There is a new version of generateDS.py. Here are a few notes from the README: Version 1.11b (11/19/2007) * Fixed bug that caused an infinite loop when a class has a simple type as a base/super class. * Added additional simple types to the list of recognized simple types. For a list

Re: [Generateds-users] Adding attribute default values to __init__ methods

2008-04-25 Thread Dave Kuhlman
Arne Grimstrup <[EMAIL PROTECTED]> writes: > > Hi Everyone, > > In a couple of our XML Schema, we have defined default values for some > attributes. These values are considered to be "hardcoded" constants > for our application so they must be accessible from the application > code. generateDS

[Generateds-users] New version supports default values for attributes and elements

2008-04-28 Thread Dave Kuhlman
Thanks to Arne Grimstrup, generateDS.py now supports default values for attributes and elements that are defined with primitive types (string, int, float, etc). Here is an example XML Schema -- Note the definition of default values:

Re: [Generateds-users] Generateds-users] process_includ es.py ImportError patch and, xsd:import retrieval question

2008-04-29 Thread Dave Kuhlman
Arne Grimstrup <[EMAIL PROTECTED]> writes: > > Hi Chris, > > On Tue, 9 Oct 2007 15:25:18 +0100 Chris Allan <[EMAIL PROTECTED]> wrote: > > > Hello again, > > > > The current version of process_includes.py raises an ImportError if > > you do not have lxml installed. Attached is a patch to fix

Re: [Generateds-users] Generateds-users] process_includ es.py ImportError patch and, xsd:import retrieval question

2008-05-06 Thread Dave Kuhlman
Arne Grimstrup <[EMAIL PROTECTED]> writes: > > I think this will be very useful; so much so that I'm going to give it a try > right away. ;) There are a number of other developers in my project who are > also interested in this work and would love to use this code. Personally, > I'd like to see

[Generateds-users] New version supports automatic proce ss_includes plus fixed validation

2008-05-08 Thread Dave Kuhlman
There is a new version. Here are the changes: Version 1.12a (05/06/2008): * Fix to name used to generate validation method. * Embedded process_includes.py functionality into generateDS.py. Thanks to Andre for the fix to validation methods. The new version is available at: http://www.re

Re: [Generateds-users] XML escape entity patch

2008-05-20 Thread Dave Kuhlman
Darius Powell <[EMAIL PROTECTED]> writes: > > Hi, > > GenerateDS currently escapes entities in the contents of string tags > but not in the valueOf_ or attributes. > [snip] Darius - Thank you for this fix. I've applied it, and have done a little testing. It looks good to me. So, I've uplo

Re: [Generateds-users] Support for targetNamespace

2008-05-20 Thread Dave Kuhlman
Andre Adrian <[EMAIL PROTECTED]> writes: > Hi, > > i have a first version ready which supports Namespaces. If a > targetNamespace is given in the Schema, the generated export > functions will put the according namespace out. Andre - Super. Thanks. I've applied your patch. Give me a few days

Re: [Generateds-users] Cannot parse valid scheme properly

2008-05-26 Thread Dave Kuhlman
Devin Torres <[EMAIL PROTECTED]> writes: > > When I try to parse any schema document from the Open Travel Alliance, > I get this error: Devin - Yes. You are right. generateDS.py does not handle all of the features in the XML Schema spec. Although, it now handles many features that it was form

Re: [Generateds-users] Support for targetNamespace

2008-05-26 Thread Dave Kuhlman
Andre Adrian <[EMAIL PROTECTED]> writes: > > Hi, > > i have a first version ready which supports Namespaces. If a > targetNamespace is given in the Schema, the generated export > functions will put the according namespace out. > Thanks much for this Andre. I've uploaded a new version that co

Re: [Generateds-users] PATCH: read and write xs:boolean s as booleans instead of integers

2008-05-28 Thread Dave Kuhlman
James Athey <[EMAIL PROTECTED]> writes: > > This patch adds proper xs:boolean reading and writing to generateDS. > "true" and "false" values in the XML will become True and False in > Python, and will be written back out as "true" and "false", > respectively. > James - Great. Thanks for these

Re: [Generateds-users] PATCH: read and write xs:boolean s as booleans instead of integers

2008-06-03 Thread Dave Kuhlman
Dave Kuhlman <[EMAIL PROTECTED]> writes: > > James Athey <[EMAIL PROTECTED]> writes: > > > > > This patch adds proper xs:boolean reading and writing to generateDS. > > "true" and "false" values in the XML will become True and Fals

[Generateds-users] Generated XML has boolean attributes with first letter capitalized

2008-06-09 Thread Dave Kuhlman
> Dear Dave Kuhlman, > I used the following schema: > sysid.xsd > > to generate the following python using generateDS.py: > sysidMessage.py > > When using sysidMessage.py to generate XML I am finding that the XML > generated has boolean attributes with their first lette

Re: [Generateds-users] Can't generate files for "people.xsd"

2008-06-11 Thread Dave Kuhlman
Cédric Moonen <[EMAIL PROTECTED]> writes: > > Hello, > > I tried to use generateDS using the XSD example > you supplied in the demos (people.xsd) but it > failed to generate the files. Here is the error: > [snip] >File "c:\GenerateDS-1.14a\generateDS.py", line 3993, in parseAndGenerate

Re: [Generateds-users] Can't generate files for "people.xsd"

2008-06-16 Thread Dave Kuhlman
Dave Kuhlman <[EMAIL PROTECTED]> writes: > > Cédric Moonen <[EMAIL PROTECTED]> writes: > > > > > Hello, > > > > I tried to use generateDS using the XSD example > > you supplied in the demos (people.xsd) but it > > failed

[Generateds-users] Include processing and Lxml

2008-06-17 Thread Dave Kuhlman
I mentioned in another message that process_includes needs fixing. It requires lxml (or python-lxml) when there is a namespace prefix definition in the XML Schema (which I suspect will be most of the time). A temporary solution is to require the user to add the "--no-process-includes" command li

[Generateds-users] New version 1.14b Was: Modifications in the Namespace Support

2008-06-17 Thread Dave Kuhlman
Andre Adrian <[EMAIL PROTECTED]> writes: > > Hi, > > me again. There was a typo in my modification. Attached a diff against Version 1.14.a Andre and others, too - Thanks for the patch. I've applied your patch and have uploaded a new version. The new version is: generateDS-1.14b. I also made

Re: [Generateds-users] names generated from schema

2008-07-09 Thread Dave Kuhlman
Randall Smith <[EMAIL PROTECTED]> writes: > > When generateds creates a class for an element like this: > > > > it creates a class named LabReportDataType, that when exported, uses the > name LabReportDataType. Shouldn't the exported name be LabReport > instead of LabReportDataType? > Hmmm.

Re: [Generateds-users] names generated from schema

2008-07-10 Thread Dave Kuhlman
Randall Smith <[EMAIL PROTECTED]> writes: > > > If you want to try my test, I've included an XML Schema and an > > XML instance document that you can feed through the code > > generated from the Schema. Then take a look at the > > promoter/booster element. > > > > In the example you included, the

[Generateds-users] New version 1.14c -- three fixes

2008-07-16 Thread Dave Kuhlman
There is a new version: generateDS-1.14c Thanks much for the help from Andre, Randall, and Oscar. Here is a summary of the changes: == Version 1.14c (08/16/2008) * One more namespace patch from Andre Adrian. * A fix to generated export methods for val

Re: [Generateds-users] New version 1.14c -- three fixes

2008-07-21 Thread Dave Kuhlman
Randall Smith <[EMAIL PROTECTED]> writes: > > Dave, > > I'm using the new version and it's not generating the names differently. > It's still using the the type names. > > For example: > > > > should generate a class Receiver, but instead it generates a class > ContactPointDataType Let

Re: [Generateds-users] Typo in the new version (1.14c)

2008-07-21 Thread Dave Kuhlman
Guillaume Morin <[EMAIL PROTECTED]> writes: > > > Hi all, >   > There is a Typo ins the line 1264 of the generateDS.py file. There is a > '&' instead of a '%' in the string .. Guillaume - Thanks for pointing this out. I've fixed it. The change will be in the next update. - Dave ---

Re: [Generateds-users] New version 1.14c -- three fixes

2008-07-23 Thread Dave Kuhlman
Randall says: > A class Receiver would just inherit from ContactPointDataType, but > is not really necessary. The important thing and the point of my > post is when Receiver exports to xml, it needs to export as: > > > not > > > , which is incorrect. Randall - I've looked into this a bit

[Generateds-users] Patches to version 1.14c

2008-08-19 Thread Dave Kuhlman
file is a diff against version generateDS-1.14c. If anyone tries it and has problems, please let me know. I'll release a new version that includes these patches in a few days. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman --- generateDS-1.14c/generateDS.py 2008-07-16 14:59:53.

[Generateds-users] New version 1.14d Was: Patches to version 1.14c

2008-08-28 Thread Dave Kuhlman
Dave Kuhlman <[EMAIL PROTECTED]> writes: > > Tim Couper has been working on the fpml (financial products markup language) schema. (see http://fpml.org/) > > It's quite large. But, with a few patches (and with the use of the -a flag), we were able generate code from i

[Generateds-users] A few fixes (superclasses, parentheses, etc)

2008-09-18 Thread Dave Kuhlman
ue in SimpleElementDict. I've attached a patch file generated against version 1.14d. I'll upload a new version in a day or two unless someone alerts me to a problem with these fixes. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman --- Orig/generateDS-1.14d/generateDS.py 2008-08-14 15:45:07.

Re: [Generateds-users] A few fixes (superclasses, parentheses, etc)

2008-09-24 Thread Dave Kuhlman
Dave Kuhlman <[EMAIL PROTECTED]> writes: > > I've made a few fixes. Here is the note from the README: > > Version 1.14e (09/18/2008) > * Minor fix for generation of syntax error (missing parenthesis). > * Eliminated generation of specification of superc

[Generateds-users] New version 1.14e -- more fixes

2008-09-25 Thread Dave Kuhlman
There is a new version of generateDS.py. This one has a number of of fixes that were made to enable processing of the Collada XML Xschema. The new version is: generateDS-1.14e You can find it at: - SourceForge: http://sourceforge.net/projects/generateds - http://www.rexx.com/~dkuhlman/generate

Re: [Generateds-users] Error in release 1.14e

2008-10-01 Thread Dave Kuhlman
Chetan Kumar <[EMAIL PROTECTED]> writes: > > Hi all > There is one error message I see. The process in partial generation of > the python code. > Is any solution available? > Regards, > Chetan > Error Messsage== > Traceback (most recent call last): [s

Re: [Generateds-users] Error in release 1.14e

2008-10-06 Thread Dave Kuhlman
There is a new version that incorporates the fix mentioned in this thread. The new version is 1.14f. You can find it here: http://www.rexx.com/~dkuhlman/generateDS-1.14f.tar.gz http://sourceforge.net/projects/generateds/ - Dave

[Generateds-users] New version 1.14g -- small fix

2008-10-17 Thread Dave Kuhlman
Thanks to David Claridge for reporting and helping me identify and fix a bug. I also commented out that IPython/ipshell debugging code, and removed a bit of experimental code. So, there is a new version (1.14g). You can find it here: http://www.rexx.com/~dkuhlman/generateDS-1.14g.tar.gz

Re: [Generateds-users] IPython.Shell required?

2008-10-17 Thread Dave Kuhlman
Chris Allan <[EMAIL PROTECTED]> writes: > > > On 14 Oct 2008, at 17:06, Luigi Paioro wrote: > > Is IPython really required? I don't see it anywhere as declared > > required. In that case, how can I avoid this error? > > Comment the line out. :) > Right. I use IPython for debugging. So, just com

Re: [Generateds-users] A peculiar case with xsi:type

2008-10-23 Thread Dave Kuhlman
Luigi Paioro <[EMAIL PROTECTED]> writes: > > Dear Dave and all, > > I have a peculiar use-case I would like to explain you in order to > suggest a possible improvement of generateDS (that would be very useful > to me). > > In attachment you find an XSD schema (package.xsd), an example of XML

Re: [Generateds-users] reentrant?

2008-10-23 Thread Dave Kuhlman
Lou DeGenaro <[EMAIL PROTECTED]> writes: > > Can the generated code be used my multiple threads? > Lou. generateDS.py generates plain Python classes. That code is as thread safe as any Python code, no more and no less. There is no thread-specific code in the generated code. If you are asking

Re: [Generateds-users] A peculiar case with xsi:type

2008-11-21 Thread Dave Kuhlman
Luigi Paioro <[EMAIL PROTECTED]> writes: > > Thanks to you Dave! > > >> Well, as you can easily see, in skycat_example.xml there is an > >> element named that has got the special attribute > >> xsi:type="uri". This because is of parameterType > >> type which is an abstract type with many differ

Re: [Generateds-users] A peculiar case with xsi:type

2008-11-23 Thread Dave Kuhlman
Luigi Paioro <[EMAIL PROTECTED]> writes: > > Thanks to you Dave! > > >> Well, as you can easily see, in skycat_example.xml there is an > >> element named that has got the special attribute > >> xsi:type="uri". This because is of parameterType > >> type which is an abstract type with many differ

[Generateds-users] A few fixes to attribute groups and logging

2008-11-24 Thread Dave Kuhlman
/ - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand p

Re: [Generateds-users] How do I turn it off

2008-11-25 Thread Dave Kuhlman
> From: Al Niessner <[EMAIL PROTECTED]> > To: "generateds-users@lists.sourceforge.net" > > Cc: Dave Kuhlman <[EMAIL PROTECTED]> > Sent: Tuesday, November 25, 2008 11:31:08 AM > Subject: Re: [Generateds-users] How do I turn it off > > > I took th

Re: [Generateds-users] How do I turn it off

2008-11-26 Thread Dave Kuhlman
> From: Al Niessner <[EMAIL PROTECTED]> > To: "generateds-users@lists.sourceforge.net" > > Cc: Dave Kuhlman <[EMAIL PROTECTED]> > Sent: Wednesday, November 26, 2008 8:50:29 AM > Subject: Re: [Generateds-users] How do I turn it off > > > I a

Re: [Generateds-users] Unicode problem

2008-12-01 Thread Dave Kuhlman
rtXXX functions in generateDS.py, for example: - generateExportFn, generateExportFn_1, ... - generateExportAttributes - generateExportChildren - generateExportLiteralFn, ... Or, does the error occur while generateDS.py itself is running? - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman --

Re: [Generateds-users] Unicode problem

2008-12-01 Thread Dave Kuhlman
> From: Al Niessner <[EMAIL PROTECTED]> > To: Dave Kuhlman <[EMAIL PROTECTED]> > Cc: "generateds-users@lists.sourceforge.net" > > Sent: Monday, December 1, 2008 1:41:12 PM > Subject: Re: [Generateds-users] Unicode problem > > > Here is the stack

Re: [Generateds-users] A Question about Patch Submission

2009-01-20 Thread Dave Kuhlman
bmitted separately or as one patch. Which do > you > prefer? > Either together or separate patch files is fine. Do what is easiest for you. The ability to use `patch` to apply your changes and then test them helps me

Re: [Generateds-users] A Question about Patch Submission

2009-01-22 Thread Dave Kuhlman
> From: Arne Grimstrup > To: Dave Kuhlman > Cc: generateds-users@lists.sourceforge.net > Sent: Wednesday, January 21, 2009 1:45:43 PM > Subject: Re: [Generateds-users] A Question about Patch Submission > > Dave: > > Ok, I've attached 3 patch files, one for each

Re: [Generateds-users] FW: Couple of issues writing XML

2009-02-10 Thread Dave Kuhlman
ject whose goal is similar to generateDS.py. (http://xmlbeans.apache.org/) A major difference is that XMLBeans generates Java code, not Python code. I'll go look. Give me a day or so to think about this, and I'll report back. I promise not to forget this t

Re: [Generateds-users] FW: Couple of issues writing XML

2009-02-11 Thread Dave Kuhlman
From: Vincent van Beveren To: Dave Kuhlman Sent: Tuesday, February 10, 2009 11:28:07 PM Subject: RE: [Generateds-users] FW: Couple of issues writing XML > Hi Dave, > > Thanks for your reply. Vincent - I've created a schema and an instance document that tries to test several o

Re: [Generateds-users] FW: Couple of issues writing XML

2009-02-12 Thread Dave Kuhlman
> From: Vincent van Beveren > To: Dave Kuhlman > Cc: "generateds-users@lists.sourceforge.net" > > Sent: Thursday, February 12, 2009 1:18:23 AM > Subject: RE: [Generateds-users] FW: Couple of issues writing XML > > Hi Dave, > > > Vincent - >

Re: [Generateds-users] FW: Couple of issues writing XML

2009-02-17 Thread Dave Kuhlman
the specification is section 2.5.3 "Empty Content" in "XML Schema Part 0" -- http://www.w3.org/TR/xmlschema-0/ The 2nd example in that section: Shorthand for an Empty Complex Type seems very similar to you

[Generateds-users] Latest version of generateDS

2009-02-27 Thread Dave Kuhlman
write out attributes and children. * More consistent use of direct access to instance variables rather than calling getter methods with a class, that is use of self.xxx rather than self.get_xxx(). - Dave -- Dave Kuhlman http://www.rexx.com/~dku

Re: [Generateds-users] restricted lists not recognize?

2009-03-08 Thread Dave Kuhlman
This: http://www.w3.org/TR/xmlschema-0/#ListDt seems to be saying that defines a string containing names separated by white space. Am right about that? Thanks for pointing out this problem, by the way. More

Re: [Generateds-users] restricted lists not recognize?

2009-03-09 Thread Dave Kuhlman
> From: "spamho...@judas-iscariot.de" > To: Dave Kuhlman ; > generateds-users@lists.sourceforge.net > Sent: Sunday, March 8, 2009 9:44:25 PM > Subject: Re: [Generateds-users] restricted lists not recognize? > [snip] > > > > defines a string containing n

Re: [Generateds-users] root.annotate() Error?

2009-03-19 Thread Dave Kuhlman
--super=tmp1sup -o tmp1sup.py -s tmp1sub.py EMSFlightMonitorService.xsd I also was able to import that file in Python. So, that tells us that the code is legal Python code. But, I do not have any instance documents, so I can't really do any furthe

Re: [Generateds-users] Export to a variable

2009-03-20 Thread Dave Kuhlman
.getvalue() print strcontent def main(): args = sys.argv[1:] if len(args) == 1: parseToVariable(args[0]) else: print 'python myprog.py ...' sys.exit(1) if __name__ == '__main__': main() #

[Generateds-users] New version of generateDS.py - 1.16c with a few fixes

2009-03-23 Thread Dave Kuhlman
w if there are issues. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Q

[Generateds-users] Fw: generateDS.py - Use this one

2009-04-14 Thread Dave Kuhlman
> From: Kerim Mansour > To: Dave Kuhlman > Sent: Saturday, April 11, 2009 12:45:07 PM > Subject: Re: generateDS.py - Use this one > > Hi Dave, > > I have found some time to play around with generateDS again and "solved" my > problem. Super. > &g

Re: [Generateds-users] generateDS

2009-04-14 Thread Dave Kuhlman
e welcome. And, thanks for your helpful comments and questions. I'm off for a week's vacation tomorrow. We're going to Chicago to see the architecture and the sights. But, I'll work on the above itemss when I get back. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlm

Re: [Generateds-users] generateDS

2009-04-23 Thread Dave Kuhlman
From: Ryan To: Dave Kuhlman Sent: Tuesday, April 21, 2009 8:59:01 AM Subject: Re: generateDS > Hi Dave, > > One feature that I felt was missing from the generated classes was > validation of the inputs to __init__. The problem I had was that > if some class expects an int a

Re: [Generateds-users] generateDS

2009-04-28 Thread Dave Kuhlman
From: Ryan To: Dave Kuhlman Sent: Tuesday, April 21, 2009 8:59:01 AM Subject: Re: generateDS > Hi Dave, [snip] > > I was OK with this, however, since it can be argued that it's not > the job of generateDS to validate, as long as the user has the > necessary type info

[Generateds-users] New version -- generateDS-1.16e.tar.gz

2009-04-28 Thread Dave Kuhlman
nyway. # You can find it at SourceForge.net or here: http://www.rexx.com/~dkuhlman/generateDS-1.16e.tar.gz Thanks to Kerim and Ryan for their help and fixes. Please let me know if you have comments, suggestions, or problems. - Dave --

Re: [Generateds-users] include xsi:type in exported xml?

2009-05-27 Thread Dave Kuhlman
ent types, it seems like a deficiency if/that code generated by generateDS.py does not add the xsi:type attribute in an exported instance doc. I'm looking at http://www.w3.org/TR/xmlschema-0/#UseDerivInInstDocs Give me a little more time to s

Re: [Generateds-users] include xsi:type in exported xml?

2009-05-30 Thread Dave Kuhlman
ing for a week. But, I'll get on it as soon as I return. 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 Hope this helps. And, I'll see about trying to generate code that

Re: [Generateds-users] include xsi:type in exported xml?

2009-05-31 Thread Dave Kuhlman
Thanks for your help! You are welcome and thank you for helping with this. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman -- Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering

Re: [Generateds-users] generateDS-1.17a very broken

2009-06-05 Thread Dave Kuhlman
at works with Python 2.4, also. - Dave (K) -- Dave Kuhlman http://www.rexx.com/~dkuhlman - Original Message > From: Dave Sugar > To: generateds-users@lists.sourceforge.net > Sent: Friday, June 5, 2009 10:34:16 AM > Subject: [Generateds-users] generateDS-1.17a v

Re: [Generateds-users] modifications I have made

2009-06-05 Thread Dave Kuhlman
Brandon - Thanks for you notes and fixes. Give me a few days to sort through them. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman From: Brandon Pedersen To: generateds-users@lists.sourceforge.net Sent: Tuesday, June 2, 2009 11:23:54 AM Subject

Re: [Generateds-users] generateDS-1.17a very broken

2009-06-09 Thread Dave Kuhlman
ace_, name_='person') > > The 1.17a version: > def exportChildren(self, outfile, level, namespace_='', > name_='people'): > for person_ in self.person: > showIndent(outfile, level) > outfile.write('<

Re: [Generateds-users] underscore written when dash is expected?

2009-06-22 Thread Dave Kuhlman
> When I use generateDS code to parse an xml instance all is well: > > > > port="8091" device-state="power-down" /> > > > > But when I use generateDS code to export an xml instance, all is NOT well > because in some cases (for example heu-def) an underscore appears in place of > th

Re: [Generateds-users] underscore written when dash is expected?

2009-06-23 Thread Dave Kuhlman
> Dave, > > Thanks! No rush. > > There's another small problem we've encountered: when specifying > the --silence option the generated code misses commenting-out > some lines. Here's a snippet comprising incorrectly generated > code: > > def parse(inFilename): > doc = minidom.parse(inFile

Re: [Generateds-users] Cannot parse my XML with generateDS

2009-06-24 Thread Dave Kuhlman
> From: "Lambert, Rob" > To: Dave Kuhlman > Sent: Wednesday, June 24, 2009 2:59:33 AM > Subject: RE: Cannot parse my XML with generateDS > > Hi Dave, > > So, I've changed my schema, and now the parsing seems to work on the surface. > I get some classe

[Generateds-users] New version -- generateDS-1.17c

2009-06-24 Thread Dave Kuhlman
ateDS-1.17c.tar.gz or at SourceForge.net. Thanks to Dave Sugar, Lou DeGenaro, and Rob Lambert for helping me work through these problems. - Dave -- Dave Kuhlman http://www.rexx.com/~dku

Re: [Generateds-users] New version -- generateDS-1.17c

2009-06-29 Thread Dave Kuhlman
the bug in handling recursively defined simpleTypes. Give me some time to work through that and your suggestion, too. > > It makes maintenance much easier if I know what version created my > files. > > $0.02 Worth a lot more than $0.02 to me. Thanks. - D

[Generateds-users] Update to generateDS.py - version 1.17d

2009-07-02 Thread Dave Kuhlman
. You can find the new version here: http://www.rexx.com/~dkuhlman/generateDS-1.17d.tar.gz and at http://sourceforge.net/projects/generateds/ Please let me know if you have issues with it or suggestions about it. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman

[Generateds-users] New version - generateDS-1.17d

2009-07-03 Thread Dave Kuhlman
. You can find the new version here: http://www.rexx.com/~dkuhlman/generateDS-1.17d.tar.gz and at http://sourceforge.net/projects/generateds/ Please let me know if you have issues with it or suggestions about it. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman

Re: [Generateds-users] Any way to ... ?

2009-07-06 Thread Dave Kuhlman
From: Tennis Smith To: Dave Kuhlman Sent: Sunday, July 5, 2009 2:01:27 PM Subject: Any way to ... ? > Hi, > > Is there any way I can figure out if every object type has been > instantiated at least once? I'm trying to make sure I test > everything defined in a schema. &g

Re: [Generateds-users] Export To Text?

2009-07-06 Thread Dave Kuhlman
From: Tennis Smith To: Dave Kuhlman Sent: Monday, July 6, 2009 8:48:15 AM Subject: Export To Text? > > Is there any way to export the generateDS objects as text instead of xml? > I'm not too sure what you mean by "as text". Do you mean a literal representation of Pyth

Re: [Generateds-users] Any way to ... ?

2009-07-07 Thread Dave Kuhlman
From: Tennis Smith To: Dave Kuhlman Cc: generateds-users@lists.sourceforge.net Sent: Tuesday, July 7, 2009 12:11:52 PM Subject: Re: [Generateds-users] Any way to ... ? > > Would it help to have a script that generated a dictionary of class > > names and classes?

Re: [Generateds-users] The "buildChildren" method

2009-07-07 Thread Dave Kuhlman
Do you have any examples somewhere?? > Hello, Tennis - The buildChildren() method is called internally. Ditto for buildAttributes(). They are called from the build() method. Is that enough of an example? - Dave -- Dave

Re: [Generateds-users] Deriving Object Type

2009-07-09 Thread Dave Kuhlman
do a look-up by member name be more convenient? If this is what you need and you think this might be generally useful, I'll add a command line option so that you can generate this even when you do not want the user methods stuff. > Hope that makes some kinda sense. ;-) Hope my reply

[Generateds-users] PyXB also generates Python bindings from XML Schema

2009-07-13 Thread Dave Kuhlman
it generated seemed quite easy to follow. I've no experience with JAXB. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman -- Enter the BlackBerry Developer Challenge This is your chance to win up to

[Generateds-users] New version -- generateDS-1.18a

2009-07-14 Thread Dave Kuhlman
http://www.rexx.com/~dkuhlman/generateDS-1.18a.tar.gz It's also at SourceForge.net. (But, I'm not sure whether generate_coverage.py made it into the version at SourceForge.) - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman --

Re: [Generateds-users] Working with Jboss JPDL-3.2.xsd

2009-07-17 Thread Dave Kuhlman
cause of the project I am working on, I need to try and avoid making these > kind of changes if at all possible. > Andrew - I looked at this briefly, today. I believe that one of the problems occurs when there is more than one simpleType nested inside another simpleType. Give me a

Re: [Generateds-users] Working with Jboss JPDL-3.2.xsd

2009-07-20 Thread Dave Kuhlman
he extension that wrapped the attributes. > I'm still looking into this one. > Because of the project I am working on, I need to try and avoid making these > kind of changes if at all possible. > "I feel your pain", as they say. I'll see what I can do. More lat

Re: [Generateds-users] Working with Jboss JPDL-3.2.xsd

2009-07-22 Thread Dave Kuhlman
n just pretend that the whole chain is mixed. If so, then I have a fix. Does anyone know what it means when one item in an extension chain is defined with mixed content and others in that same chain are not? Can you point me at something that would explain it? Thanks

Re: [Generateds-users] Working with Jboss JPDL-3.2.xsd

2009-07-27 Thread Dave Kuhlman
teDS.py version 1.18a is attached. Let me know how that patch works. If it seems OK, I'll try to upload a new version tomorrow or the next day. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman--- Tmp/generateDS-1.18a/generateDS.py 2009-07-10 10:41:18.0 -0700 +++ generateDS.p

Re: [Generateds-users] Printing of Tags

2009-07-29 Thread Dave Kuhlman
> content to run every time an element has their export method built > and I haven't seen any errors yet. Sounds logical. Give me a day or two to think this one through. I've got a couple of other tasks on my plate r

[Generateds-users] New version --

2009-08-13 Thread Dave Kuhlman
out any problems, suggestions, etc. - Dave -- Dave Kuhlman http://www.rexx.com/~dkuhlman -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration

  1   2   3   4   5   6   >