Summary: | Umbrello wont create a UML diagram relation between two objects | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Rhdr <rhdr0011> |
Component: | importer | Assignee: | Umbrello Development Group <umbrello-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ralf.habacker |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Microsoft Windows | ||
Latest Commit: | https://commits.kde.org/umbrello/42d5073216f6801fef68dd6a4508b9a0e1f67ef1 | Version Fixed In: | 2.28.3 (KDE Applications 19.04.3) |
Sentry Crash Report: |
Description
Rhdr
2019-06-25 06:51:36 UTC
Git commit 42d5073216f6801fef68dd6a4508b9a0e1f67ef1 by Ralf Habacker. Committed on 26/06/2019 at 11:42. Pushed by habacker into branch 'Applications/19.04'. Fix 'Umbrello wont create a UML diagram relation between two objects' FIXED-IN: 2.28.3 (KDE Applications 19.04.3) M +11 -8 umbrello/codeimport/pythonimport.cpp https://commits.kde.org/umbrello/42d5073216f6801fef68dd6a4508b9a0e1f67ef1 (In reply to Ralf Habacker from comment #1) > Git commit 42d5073216f6801fef68dd6a4508b9a0e1f67ef1 by Ralf Habacker. > Committed on 26/06/2019 at 11:42. > Pushed by habacker into branch 'Applications/19.04'. > > Fix 'Umbrello wont create a UML diagram relation between two objects' Besides the problem in the Umbrello source code, which is fixed by this commit, the provided test code does not follow the Python procedure for defining class variables (see https://docs.python.org/3/tutorial/classes.html#class-and-instance-variables), which is why cp is not recognized automatically. cp should be initialized in __init__(), as shown below: class Consumer(Entity): def __init__(self, consumerNameStr): super(Consumer, self).__init__(consumerNameStr) self._consumersPropertySelectedLst = [] self.cp = ConsumersPropertySelected() Git commit 0976e1330c0d5708a466fafe52d1c261e9551f24 by Ralf Habacker. Committed on 27/06/2019 at 07:12. Pushed by habacker into branch 'Applications/19.04'. Add constructor visibility test to python test cases M +4 -0 test/import/python/visibility.py https://commits.kde.org/umbrello/0976e1330c0d5708a466fafe52d1c261e9551f24 |