On Fri, Oct 20, 2017 at 9:56 AM, Olof Kindgren <olof.kindg...@gmail.com>
wrote:
> Hi,
>
> I'm adding a user method that contains a regular expression, but
> generateDS doesn't let me have '\' in the source of the MethodSpec.
> (ValueError: unsupported format character '\' (0x5c) at index 157) Is there
> a workaround for this?
>
Oh, never mind that. The problem was in gends_user_methods.py that I based
my code on. Btw, that file needs to be made py3-compatible. I'll see if I
can fix that
//Olof
> I'm pretty new to generateDS, so perhaps I should ask also if a user
> method is the way to go here. I need to parse expressions to integers (and
> other types eventually) from elements which are derived from xs:string
> through a number of subclasses. (such as unsignedLongIntExpression in
> http://www.accellera.org/images/XMLSchema/IPXACT/1685-2014/simpleTypes.xsd).
> I though adding a parse user method would be the right thing do to, but I'm
> happy to learn if there are other (better) ways
>
> PS. Is the mailing list the preferred way of communication? The bug
> tracker on sourceforge looked a bit outdated and I couldn't see any tracker
> on the bitbucket site
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users