Univention Bugzilla – Bug 22485
Test für is_true | is_false
Last modified: 2012-12-12 21:09:59 CET
r = re.compile('''(?:baseConfig|configRegistry|ucr) (?:\[.+\]|\.get\(.+\)) .*\s+in\s+ [[(] (?:\s* '(?:yes|no|1|0|true|false|on|off|enabled?|disabled?)' \s*,?){3,} [])]''', re.VERBOSE | re.IGNORECASE) s = '''ucr.get(key).lower() in ('no', 'false', '0', 'disable', 'disabled', 'off')''' print r.search(s).group(0) "ucr.get(key).lower() in ('no', 'false', '0', 'disable', 'disabled', 'off')"
# +auch doppelte Anführungszeichen r = re.compile('''(?:baseConfig|configRegistry|ucr) (?:\[.+\]|\.get\(.+\)) .*\s+in\s+ [[(] (?:\s* (['"])(?:yes|no|1|0|true|false|on|off|enabled?|disabled?)\1 \s*,?){3,} [])]''', re.VERBOSE | re.IGNORECASE)
Umgesetzt in 0009-Python. svn34344, ucslint_3.0.0-1
Funktioniert in meinen Tests. Changelog sieht gut aus, Verified.
UCS 3.1-0 has been released: http://forum.univention.de/viewtopic.php?f=54&t=2125 If this error occurs again, please use "Clone This Bug".