Univention Bugzilla – Bug 51334
services/univention-admin-diary: migrate UMC module to python3
Last modified: 2021-05-25 15:58:29 CEST
The UMC module of services/univention-admin-diary has to be python3-compatible.
The source package contains 3 parts: - a listener module: ./listener/univention-admin-diary-backend.py - the python library: /python/admindiary/* - the UMC module: ./umc/python/* plus some helper scripts. Please migrate the python library and the listener module so that they are py2 and py3 compatible. For the UMC module py3 is sufficient.
Within test/ucs-test/tests/87_admindiary/* there are currently 2 ucs-test scripts for the admin diary. If possible, add some new tests.
(In reply to Sönke Schwardt-Krummrich from comment #2) > Within test/ucs-test/tests/87_admindiary/* there are currently 2 ucs-test > scripts for the admin diary. If possible, add some new tests. If I'm right, the first test is not yet migrated to python3. The second one is a work in progress/unfinished one. Please try to complete the test.
Just for clarification, we make a complete shift to python 3 so python 2.7 will no longer be supported? If both versions should be supported we might need tests for both versions.
(In reply to Sebastian Lobinger from comment #4) > Just for clarification, we make a complete shift to python 3 so python 2.7 > will no longer be supported? If both versions should be supported we might > need tests for both versions. No, we have to support Python 2.7 and Python 3.7 in UCS 5. Just the UMC module will only run with one version (=3), which can drop Python 2 support.
The Admin Diary inclusive UMC module has been migrated to Python 3: univention-admin-diary (2.0.1-0) 42f6531a9fbe | Bug #51334: add python 3 compatibility for listener c9d9c1a93504 | fixup! Bug #51334: add python 3 compatibility 7bc3304bc86d | fixup! Bug #51334: add python 3 compatibility 16f6a892c35a | Bug #51334: add python 3 compatibility ba60f4081308 | Bug #51334 admin diary: add python3 compatibility 7bff1fda5532 | Bug #51334 admin diary: add python 3 dependencies ucs-test (10.0.3-8) 7266b00faaed | fixup! Bug #51334: add 87_admindiary/02_write_event.py 4b5704cf7f58 | Bug #51334: add new test for 87_admindiary 55bddd287c5d | fixup! Bug #51334: add 87_admindiary/02_write_event.py 34ad282afce6 | Bug #51334: add 87_admindiary/02_write_event.py
UCS 5.0 has been released: https://docs.software-univention.de/release-notes-5.0-0-en.html https://docs.software-univention.de/release-notes-5.0-0-de.html If this error occurs again, please use "Clone This Bug".