[umbrello-devel] [umbrello] [Bug 322467] Python Code imports self parameter in operation

Oliver Kellogg okellogg at users.sourceforge.net
Mon Jun 16 19:42:13 UTC 2014


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

Oliver Kellogg <okellogg at users.sourceforge.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|http://commits.kde.org/umbr |http://commits.kde.org/umbr
                   |ello/b68bd35c944d3abee7a5f5 |ello/de77ff0c13706fd2784e11
                   |d1c982f1cd144e765a          |a721be96dd97747f98

--- Comment #3 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
Git commit de77ff0c13706fd2784e11a721be96dd97747f98 by Oliver Kellogg.
Committed on 29/05/2014 at 12:22.
Pushed by okellogg into branch 'KDE/4.13'.

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/de77ff0c13706fd2784e11a721be96dd97747f98

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list