Bug 432854

Summary: Python code generator create files for classes that are encapsulated by containers
Product: [Applications] umbrello Reporter: patrick <patrickelectric>
Component: exporterAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal CC: ralf.habacker
Priority: NOR    
Version: Git   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 2.33.80 (KDE releases 21.04.80)

Description patrick 2021-02-12 13:26:50 UTC
SUMMARY
Files such as vector<Test>.py or list<Test>.py are generated.

STEPS TO REPRODUCE
1. create a class
2. create a function that receives a list of something
3. generate code

OBSERVED RESULT
Files such as vector<Test>.py will be generated


EXPECTED RESULT
Only class types should be generated


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: arch 5.10.12-arch1-1
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15

ADDITIONAL INFORMATION
Comment 1 patrick 2021-02-12 13:27:05 UTC
Working on it
Comment 2 Ralf Habacker 2021-02-25 15:32:27 UTC
(In reply to patrick from comment #1)
> Working on it

In case you open a separate merge request for this issue and adds a BUG:432854 statement in the body, an associated link to the merge request will be added to this bug as reference.
Comment 3 Ralf Habacker 2021-03-02 12:04:08 UTC
Git commit f1b17823c3401f7c0d9a92f458ba6ef3a252da7b by Ralf Habacker, on behalf of Patrick José Pereira.
Committed on 02/03/2021 at 12:03.
Pushed by habacker into branch 'master'.

codegenerators: python: Do not create files for classes that has containers
FIXED-IN:2.33.80 (KDE releases 21.04.80)

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>

M  +17   -0    umbrello/codegenerators/python/pythonwriter.cpp
M  +2    -0    umbrello/codegenerators/python/pythonwriter.h

https://invent.kde.org/sdk/umbrello/commit/f1b17823c3401f7c0d9a92f458ba6ef3a252da7b