There a hardcoded 'Sub' subclass suffix in getSubclassFromModule_(), so when
using "--subclass-suffix=" and CurrentSubclassModule_ at the same time, the
subclasses aren't found.

Not sure if the mailing list accepts attachments, so I've also included the
(simple) patch here as well:

==============
--- /root/generateds/generateDS.py      2018-11-08 08:30:36.848755200 -0600
+++ generateDS.py       2018-11-11 03:32:06.088244500 -0600
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
 """
 Synopsis:
     Generate Python classes from XML schema definition.
@@ -5818,7 +5818,7 @@

 def getSubclassFromModule_(module, class_):
     '''Get the subclass of a class from a specific module.'''
-    name = class_.__name__ + 'Sub'
+    name = class_.__name__ + '{SubclassSuffix}'
     if hasattr(module, name):
         return getattr(module, name)
     else:
@@ -5906,7 +5906,8 @@
         "s1 = (isinstance(inStr, BaseStrType_) and inStr or '%s' % inStr)"

     import_string = TEMPLATE_GENERATEDS_SUPER.format(
-        gds_reverse_node_mapping_text=gds_reverse_node_mapping_text)
+        gds_reverse_node_mapping_text=gds_reverse_node_mapping_text,
+        SubclassSuffix=SubclassSuffix)
     if UseGeneratedssuperLookup:
         s0 = """try:
     from generatedssuper import GeneratedsSuper
==============

Attachment: generateDS.patch
Description: Binary data

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

Reply via email to