Jul-31-2018, 12:48 PM
For sure it was not my original intention to mess with third-party package source, but what else can you do if you miss functionality?
It was exactly my original question, how do I do this directly in my own script, so that I don't need to touch the original code.
And because the inheritance in this case is a bit complicated (at least to me), I wasn't sure how to achieve it.
Your last post answered my question.
The line:
I have just tested it and it works perfectly.
Those new classes I simply declared directly in my script, so even there is no need for the import statement.
This way I can keep all the code in just one file, while I don't touch the original source code.
Thanks a lot for the tip and help ;-)
It was exactly my original question, how do I do this directly in my own script, so that I don't need to touch the original code.
And because the inheritance in this case is a bit complicated (at least to me), I wasn't sure how to achieve it.
Your last post answered my question.
The line:
mgmt.tm.asm._meta_data['allowed_lazy_attributes'].append(Violations_s)did the trick!
I have just tested it and it works perfectly.
Those new classes I simply declared directly in my script, so even there is no need for the import statement.
This way I can keep all the code in just one file, while I don't touch the original source code.
Thanks a lot for the tip and help ;-)