[umbrello] [Bug 374597] New: Python export and re-import breaks function names and private attribute of private functions

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Thu Jan 5 15:08:40 UTC 2017


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

            Bug ID: 374597
           Summary: Python export and re-import breaks function names and
                    private attribute of private functions
           Product: umbrello
           Version: 2.13.3
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: umbrello-devel at kde.org
          Reporter: a.baumfalk at astro-kom.de
  Target Milestone: ---

Created attachment 103213
  --> https://bugs.kde.org/attachment.cgi?id=103213&action=edit
re-imported from python code

Steps to reproduce:
---------------------------
1. create a class with a public function named "publicFunction" and a private
function named "privateFunction".
2. Export to python, result will be:
---
class MyClass(object):

  """


  :version:
  :author:
  """

  def publicFunction(self):
    """


    @return  :
    @author
    """
    pass

  def __privateFunction(self):
    """


    @return  :
    @author
    """
    pass
---

3. re-import from exported Code (see attached Umbrello2.xmi).
As a result I get a public function with the name "__privateFunction" instead
of a private function with the name "privateFunction".

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


More information about the umbrello-devel mailing list