py_ext/PythonFileCTNMixin.py
20 months ago Edouard Tisserant IDE: Fix py_ext build with python3.10
2022-10-28 GP Orcullo removed Python2 modules python3
2022-10-28 GP Orcullo automated conversion using 2to3-3.9 tool python3
2020-12-22 Edouard Tisserant Merged default in svghmi branch svghmi
2020-12-10 Edouard Tisserant Python Safe Globals now have more reliable triggering of OnChange call. Added "Onchange" object to accessible runtime variables that let user python code see count of changes and first and last values. svghmi
2020-11-18 Edouard Tisserant py_ext: better handling of coma separated OnChange attribute for python safe global variables. svghmi
2020-11-02 Edouard Tisserant Allow customization of generated py_ext OnChange calls, by adding a static method to PythonFileCTNMixin that can the be later hot patched. svghmi
2020-10-19 Edouard Tisserant PY_EXT: OnChange is now a coma separated list of callables. Updated tests/python accordingly. svghmi
2020-07-10 Edouard Tisserant Python Runtime : stil untested optimization of Python Safe Globals. svghmi
2020-07-03 Edouard Tisserant Prevent global python_poll blocks to be created when accidentally adding content to C-File OnChange column. svghmi
2020-12-10 Edouard Tisserant Python Safe Globals now have more reliable triggering of OnChange call. Added "Onchange" object to accessible runtime variables that let user python code see count of changes and first and last values.
2020-11-18 Edouard Tisserant py_ext: better handling of coma separated OnChange attribute for python safe global variables.
2020-11-02 Edouard Tisserant Allow customization of generated py_ext OnChange calls, by adding a static method to PythonFileCTNMixin that can the be later hot patched.
2020-10-19 Edouard Tisserant PY_EXT: OnChange is now a coma separated list of callables. Updated tests/python accordingly.
2020-06-18 Edouard Tisserant Py_ext: use non-derived type when generating C code for handling Python PLC globals.
2020-06-17 Edouard Tisserant Runtime: STRING type for Python PLC Globals was making problem with strings, since generated code wasn't doing comparison properly.
2018-10-09 Andrey Skvortsov python3 support: pylint, W1607 # (file-builtin) file built-in referenced
2018-10-09 Andrey Skvortsov Fix pep8 warning: W605 invalid escape sequence ?x?
2018-10-04 Andrey Skvortsov python3 support: pylint, W1612 # (unicode-builtin) unicode built-in referenced
2018-10-02 Andrey Skvortsov Use python 3 compatible exception syntax everywhere
2018-01-15 Edouard Tisserant Clarify licensing, and packaging of runtime only files :
2018-01-11 Edouard Tisserant Enforced check_source.sh pep8 and pylint rules.
2018-01-10 Edouard Tisserant Extend python<->PLC global variable description "GlobalDesc" to support Initial value setting.
2017-10-19 Andrey Skvortsov fix pylint warning '(bad-continuation) Wrong hanging indentation before block'
2017-10-09 Andrey Skvortsov fix pylint warning "(relative-import) Relative import 'Y', should be 'X.Y'"
2017-10-06 Andrey Skvortsov fix pylint warning '(unused-import), Unused import connectors'
2017-10-03 Andrey Skvortsov remove unused variables found by pylint
2017-09-28 Andrey Skvortsov fix unnecessary lambda and enable corresponding pylint check
2017-08-19 Andrey Skvortsov clean-up: fix PEP8 E131 continuation line unaligned for hanging indent
2017-08-18 Andrey Skvortsov clean-up: fix PEP8 E128 continuation line under-indented for visual indent
2017-08-17 Andrey Skvortsov clean-up: fix PEP8 E129 visually indented line with same indent as next logical line
2017-08-17 Andrey Skvortsov clean-up: fix PEP8 E502 the backslash is redundant between brackets
2017-08-16 Andrey Skvortsov clean-up: fix PEP8 E301 expected 1 blank line, found 0
2017-08-16 Andrey Skvortsov clean-up: fix PEP8 W391 blank line at end of file
2017-08-15 Andrey Skvortsov clean-up: fix PEP8 E251 unexpected spaces around keyword / parameter equals
2017-08-15 Andrey Skvortsov clean-up: fix PEP8 E225 missing whitespace around operator
2017-08-15 Andrey Skvortsov clean-up: fix PEP8 E231 missing whitespace after ':' or ','
2017-08-15 Andrey Skvortsov clean-up: fix PEP8 E203 whitespace before ':' and whitespace before ','
2017-08-14 Andrey Skvortsov clean-up: fix PEP8 E302 expected 2 blank lines, found 1
2017-08-14 Andrey Skvortsov clean-up: fix some PEP8 E228 missing whitespace around modulo operator
2017-08-14 Andrey Skvortsov clean-up: fix PEP8 E401 multiple imports on one line
2017-04-20 Andrey Skvortsov make run Beremiz and PLCOpen Editor, if full path contain non-lating
2016-05-06 Andrey Skvortsov add copyright notices to python files where there were missing, that
2016-04-22 Andrey Skvortsov fix regression introduced by changeset: 1431:28e9d479aa65 [Use '-p' command line option when running matiec (iec2c)]
2015-10-21 mjsousa merge
2014-12-06 mjsousa Use '-p' command line option when running matiec (iec2c)
2014-11-26 mjsousa Add command line option '-l' when calling matiec
2015-02-25 Edouard Tisserant Fixed build of tests/python.
2015-02-21 Edouard Tisserant Added __ext_name__ variable accessible from user python code, reflecting extension name. Fixed contend of OnChange field in PLCGlobalsDesc
2015-02-18 Edouard Tisserant Added more columns in variable list of extensions' code editors - updating python's PLCGlobals from PLC logic can trigger asynchronous 'OnChange' python call
2015-02-17 Edouard Tisserant Fixed systematically loading PLC binary at startup even without -a parameter. Extended py_ext extensions instances variable description (PLCGlobalsDesc). Now contains list of variables organizd by extension, with extension name
2015-02-02 Edouard Tisserant py_ext user python code can now know about global variables shared with PLC. updated tests/python accordingly
2013-09-27 Laurent Bessard Added support for loading XML file even if not following XSD schema (but still following XML syntax), warning user of errors in XML file
2013-09-11 Laurent Bessard Fixed Beremiz for working with new xmlclass support using lxml
2013-05-16 Edouard Tisserant Fixed GCC warnings when building stub code for python PLC globals access
2013-05-16 Edouard Tisserant Fixed build error with python <-> PLCglobals variables declared with no initial value
2013-05-15 Laurent Bessard Fixed bug when generating py_ext code when no variable defined
2013-05-15 Edouard Tisserant Fixed PLC global var access from python. Added test in tests/python
2013-05-15 Edouard Tisserant Added stub code and declarations for bidirectional access to PLC globals from python code (untested)
2013-05-14 Edouard Tisserant Rewrote py_ext and wxglade generators in a clean factored way, added C skeleton for python access to PLC global vars