Version: 1.5.8 (using KDE 3.5.8) Installed from: Unlisted Binary Package OS: Linux Not sure if this is a bug or a wishlist item, but using the Code->Import Classes facility does not import class attributes from Python code for me. Steps to test: 1. create class 2. add attribute(s) 3. export code as Python 4. new Umbrello project 5. Code->Import Classes, browse to exported code above 6. no attribute(s) I tested with the above method as well as with my own code that correctly shows attributes with gaphor application.
Certainly doable - but finding out the data type of an attribute might be hard.
Git commit 2d452ec81ad95e4788505f21cb4e0de50fed8505 by Ralf Habacker. Committed on 01/09/2016 at 17:29. Pushed by habacker into branch 'Applications/16.08'. Fix 'Python Import Classes does not import Attributes'. This commit adds support for parsing class attributes and includes related test cases. Attribute types are estimated from the initialisation value. For supported types see test/import/python/types.py, for supported visibilities test/import/python/visibility.py FIXED-IN:2.20.1 (KDE Applications 16.08.1) A +10 -0 test/import/python/types.py A +19 -0 test/import/python/visibility.py M +11 -0 umbrello/codeimport/nativeimportbase.cpp M +1 -0 umbrello/codeimport/nativeimportbase.h M +44 -0 umbrello/codeimport/pythonimport.cpp http://commits.kde.org/umbrello/2d452ec81ad95e4788505f21cb4e0de50fed8505
Git commit 43d647747fe4720c9f5e63d4fdda0c1368b05ed9 by Ralf Habacker. Committed on 02/09/2016 at 05:40. Pushed by habacker into branch 'Applications/16.08'. Refactor python assignment parser into separate method supporting class variables. Instance variables will be handled by this method too. M +10 -7 test/import/python/types.py M +54 -41 umbrello/codeimport/pythonimport.cpp M +2 -0 umbrello/codeimport/pythonimport.h http://commits.kde.org/umbrello/43d647747fe4720c9f5e63d4fdda0c1368b05ed9
Git commit f8becb1075451f046230d3c41fd50e1d606258e4 by Ralf Habacker. Committed on 02/09/2016 at 08:59. Pushed by habacker into branch 'Applications/16.08'. Add support for parsing python instance variables. Instance variables are parsed from __init__ method only according to python 3 tutorial. M +14 -0 test/import/python/types.py M +29 -1 umbrello/codeimport/pythonimport.cpp http://commits.kde.org/umbrello/f8becb1075451f046230d3c41fd50e1d606258e4
Git commit dac2d69cba81cc00a47ba4d4e5bb462066ab6ced by Ralf Habacker. Committed on 02/09/2016 at 05:40. Pushed by habacker into branch 'Applications/16.08'. Add 'list' to python code generator list of default data types. This type is required by python import, which uses the generator data type list too. M +1 -0 umbrello/codegenerators/python/pythonwriter.cpp http://commits.kde.org/umbrello/dac2d69cba81cc00a47ba4d4e5bb462066ab6ced