Get rid of Python class_keyword attribute and fix parameter sending for WBS

This commit is contained in:
Gaute Lindkvist
2020-03-03 14:58:36 +01:00
parent 554f9a1758
commit 76019e7776
5 changed files with 50 additions and 34 deletions

View File

@@ -245,7 +245,6 @@ QString PdmPythonGenerator::generate(PdmObjectFactory* factory) const
QString(" __custom_init__ = None #: Assign a custom init routine to be run at __init__\n\n");
classCode += QString(" def __init__(self, pb2_object=None, channel=None):\n");
classCode += QString(" self.class_keyword = \"%1\"\n").arg(scriptClassName);
if (!scriptSuperClassNames.empty())
{
// Own attributes. This initializes a lot of attributes to None.