[umbrello-devel] [umbrello] [Bug 322467] Python Code imports self parameter in operation
Oliver Kellogg
okellogg at users.sourceforge.net
Thu May 29 12:22:09 UTC 2014
https://bugs.kde.org/show_bug.cgi?id=322467
Oliver Kellogg <okellogg at users.sourceforge.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
Latest Commit| |http://commits.kde.org/umbr
| |ello/b68bd35c944d3abee7a5f5
| |d1c982f1cd144e765a
--- Comment #2 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Git commit b68bd35c944d3abee7a5f5d1c982f1cd144e765a by Oliver Kellogg.
Committed on 29/05/2014 at 12:22.
Pushed by okellogg into branch 'master'.
Apply modified version of https://bugs.kde.org/attachment.cgi?id=86235
umbrello/codeimport/pythonimport.h
- Add member m_isStatic of type bool defaulting to false.
umbrello/codeimport/pythonimport.cpp function parseStmt()
- Decode "@staticmethod" to set m_isStatic true.
- In handling of keyword "def",
- If first parameter is not named "self" then set m_isStatic true and add
the parameter via Import_Utils::addMethodParameter(); else do not add
the parameter.
- At call to Import_Utils::insertMethod(), provide m_isStatic as argument
`isStatic'.
- Reset m_isStatic false after call to Import_Utils::insertMethod().
M +20 -2 umbrello/codeimport/pythonimport.cpp
M +1 -0 umbrello/codeimport/pythonimport.h
http://commits.kde.org/umbrello/b68bd35c944d3abee7a5f5d1c982f1cd144e765a
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list