https://bugs.kde.org/show_bug.cgi?id=409161
Ralf Habacker <ralf.habac...@freenet.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ralf.habac...@freenet.de

--- Comment #2 from Ralf Habacker <ralf.habac...@freenet.de> ---
(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()

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to