Bug 22485 - Test für is_true | is_false
Test für is_true | is_false
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: ucslint
UCS 2.4
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Philipp Hahn
Lukas Walter
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-11 12:13 CEST by Philipp Hahn
Modified: 2012-12-12 21:09 CET (History)
2 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
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:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2011-05-11 12:13:19 CEST
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')"
Comment 1 Philipp Hahn univentionstaff 2011-05-11 12:19:47 CEST
# +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)
Comment 2 Philipp Hahn univentionstaff 2012-07-22 23:38:17 CEST
Umgesetzt in 0009-Python.

svn34344, ucslint_3.0.0-1
Comment 3 Lukas Walter univentionstaff 2012-10-15 14:50:38 CEST
Funktioniert in meinen Tests.

Changelog sieht gut aus,
Verified.
Comment 4 Stefan Gohmann univentionstaff 2012-12-12 21:09:59 CET
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".