--technique can now be something like 123 which includes both techniques 1, 2 and 3

This commit is contained in:
Miroslav Stampar
2011-02-17 21:39:16 +00:00
parent 7ebc1ab90a
commit 22cd49a217
4 changed files with 13 additions and 11 deletions

View File

@@ -2147,7 +2147,7 @@ def isTechniqueAvailable(technique=None):
technique specified
"""
if conf.technique and technique != conf.technique:
if isinstance(conf.technique, list) and technique not in conf.technique:
return False
else:
return getTechniqueData(technique) is not None