[umbrello] [Bug 409161] Umbrello wont create a UML diagram relation between two objects

Ralf Habacker bugzilla_noreply at kde.org
Thu Jun 27 07:46:10 BST 2019


https://bugs.kde.org/show_bug.cgi?id=409161

Ralf Habacker <ralf.habacker at freenet.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ralf.habacker at freenet.de

--- Comment #2 from Ralf Habacker <ralf.habacker at 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 the assignee for the bug.


More information about the umbrello-devel mailing list