Bug 53870 - Fix ucs-test to select syntax type from dropdown list
Fix ucs-test to select syntax type from dropdown list
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: UDM
unspecified
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Johannes Keiser
Florian Best
:
Depends on: 52683
Blocks: 53840
  Show dependency treegraph
 
Reported: 2021-10-04 13:36 CEST by Johannes Keiser
Modified: 2022-03-23 10:07 CET (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 2: Improvement: Would be a product improvement
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Keiser univentionstaff 2021-10-04 13:36:41 CEST
86_selenium/186_portal_administration_umc errors due to these changes

https://git.knut.univention.de/univention/ucs/-/tree/jkeiser/448/52683
https://git.knut.univention.de/univention/ucs/-/tree/jkeiser/500/53840

+++ This bug was initially created as a clone of Bug #52683 +++

Similar to Bug #31857 and Bug #25054 provide a list of available syntax classes selection.

univention/admin/syntax.py:
class Syntax(select):
        """
        Syntax class for Extended Attributes.
        """
        choices = []
        @classmethod
        def update_choices(cls):
                mod = sys.modules[__name__]
                cls.choices = sorted(
                        (sym, sym)
                        for sym, obj in ((sym, getattr(mod, sym)) for sym in dir(mod))
                        if isinstance(obj, type) and issubclass(obj, ISyntax)
                )
__register_choice_update_function(Syntax.update_choices)


univention/admin/handlers/settings/extended_attribute.py
        'syntax': univention.admin.property(
...
                syntax=univention.admin.syntax.Syntax,

UCS Technical training 2021-01-21/22
Comment 1 Florian Best univentionstaff 2021-10-05 12:21:57 CEST
OK
Comment 2 Philipp Hahn univentionstaff 2021-10-05 12:43:13 CEST
[5.0-0] fc49d74860 Bug #53840: fix creation of portal in selenium udm
 test/ucs-test/univention/testing/selenium/udm.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)