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):
[snip]
> File "/home/xpmt/local/lib/python2.4/site-packages/generateDS.py",
> line 1983, in generateBuildStandard_1
> childType = SimpleTypeDict[childType].getBase()
> KeyError: 1
> ====================Error Messsage==========================
Here is a patch against version 1.14e:
#======================================================================
--- Orig/generateDS-1.14e/generateDS.py 2008-09-22 11:04:14.000000000 -0700
+++ generateDS.py 2008-09-30 13:46:23.000000000 -0700
@@ -1978,9 +1978,9 @@
attrCount = len(child.getAttributeDefs())
childType = child.getType()
# name_type_problem
- if not child.isComplex() and child.getSimpleType():
- childType = child.getSimpleType()
- childType = SimpleTypeDict[childType].getBase()
+ childType1 = child.getSimpleType()
+ if not child.isComplex() and childType1 and childType1 in SimpleTypeDict:
+ childType = SimpleTypeDict[childType1].getBase()
elif mappedName in ElementDict:
childType = ElementDict[mappedName].getType()
# fix-simpletype
#======================================================================
- Dave
-------------------------------------------------------------------------
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 prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
generateds-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/generateds-users