Bug 368256

Summary: Python import does not import object references correctly
Product: [Applications] umbrello Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal CC: okellogg
Priority: NOR    
Version: 2.20.1 (KDE Applications 16.08.1)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 2.20.2 (KDE Applications 16.08.2)
Attachments: testcase

Description Ralf Habacker 2016-09-05 08:32:59 UTC
On importing python code variables containing a reference to an object umbrello do not set the related variable as type 'object'.


Reproducible: Always

Steps to Reproduce:
1. start umbrello
2. switch active language to python
3. import appended test case

Actual Results:  
umbrello asks for a class name as type for the imported attribute

Expected Results:  
umbrello should use type 'object' for the imported variables
Comment 1 Ralf Habacker 2016-09-05 08:33:42 UTC
Created attachment 100932 [details]
testcase
Comment 2 Ralf Habacker 2016-09-05 08:35:36 UTC
Git commit 6b9cdff4d2b1ea0085d6fbfe59265e52a802aafd by Ralf Habacker.
Committed on 05/09/2016 at 08:35.
Pushed by habacker into branch 'Applications/16.08'.

Fix 'Python import do not import object references correctly'.

On import python variables use type 'object' for any initializer
not matching any basic type.
FIXED-IN:2.20.2 (KDE Applications 16.08.2)

M  +2    -1    test/import/python/types.py
M  +2    -0    umbrello/codeimport/pythonimport.cpp

http://commits.kde.org/umbrello/6b9cdff4d2b1ea0085d6fbfe59265e52a802aafd