> From: "spamho...@judas-iscariot.de" <spamho...@judas-iscariot.de>
> To: Dave Kuhlman <dkuhl...@pacbell.net>; 
> 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 names separated by white space.  Am right
> > about that?
> You are. Sorry, I should have told you in advance. As you say, it's a
> string separated by white space. And as you see, the restriction says
> that there has to be at least one 'token'.
>
> This kind of restriction is used two times in the xsd, which is
> available at
> http://docs.oasis-open.org/wsbpel/2.0/OS/process/executable/ws-bpel_executable.xsd
>
>
> One obviously way to represent it is with a Python list. And in case of
> WS-BPEL, this could be a list of references (to objects of that given
> type). But I don't know if it's a good idea to make it so. Maybe the
> more general case is to have just a list of strings.

OK. I believe that I've eliminated that particular exception,
although generateDS.py still has problems with the ws-bpel schema
(see below).  I took your suggestion, and stored it as a list of
strings.

Now, generateDS.py stores a restriction/list simpleType as a
list of strings.  So, the generated code that does the following:

- In the build function, it does split().  For example::

      self.varnames = self.varnames.split()

- In the export function, it does " ".join().  For example::

      ' '.join(self.varnames)

Unfortunately, generateDS.py still does not handle
ws-bpel_executable.xsd.  (Thanks for the link, by the way.) Which
means, I believe that there is at least one more thing in that
schema that generateDS.py does not handle.  I'll look into that in
a day or two.  I've got something else that I need to work on right
now.

The new version is at:

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

The version at SourceForge.net has *not* yet been updated.

If you try it, please let me know what you learn.

More later.

- Dave

-- 

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

------------------------------------------------------------------------------
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to