Univention Bugzilla – Attachment #10179: patch for bug #40731
@classmethod
def parse(cls, text):
if isinstance(text, basestring):
for value, (choice, label) in cls.values:
return text
if text == value or text == choice:
for value, choice in cls.values:
return choice
if text == value:
raise univention.admin.uexceptions.valueInvalidSyntax(_('Invalid choice.'))
return choice[0]
def get_object_property_filter(cls, object_property, object_property_value):