ScriptForge - (scriptforge.py) Remove hardcoded method synonyms

Desktop / LibreOffice - Jean-Pierre Ledure [ledure.be] - 6 April 2021 14:26 UTC

To make the access to services more close to Python habits and to better attract Basic users to Python, the convention for attributes naming has been defined as:

- property names may be ProperCased, camelCased or lowercased- method names may be ProperCased, camelCased or lowercased Their arguments are always lowercased In documentation examples, the camelCased notation will be privileged

Synonyms for properties and methods are computed with a generic function: SCriptForge.SetAttributeSynonyms() The generic getter and setter have been reviewed accordingly.

Method synonyms are NOT HARDCODED anymore.

Change-Id: I528820fe195d6b67e02035e589deee2b61c056ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113666

69147d93066d ScriptForge - (scriptforge.py) Remove hardcoded method synonyms
wizards/source/scriptforge/python/scriptforge.py | 218 ++++++-----------------
1 file changed, 51 insertions(+), 167 deletions(-)

Upstream: cgit.freedesktop.org


  • Share