Mercurial > repos > devteam > column_maker
diff column_maker.py @ 2:292c605c2dc7 draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6
author | devteam |
---|---|
date | Fri, 18 Dec 2015 18:52:53 -0500 |
parents | 4dadd821722f |
children | 3335c0d583d8 |
line wrap: on
line diff
--- a/column_maker.py Tue Oct 13 12:14:53 2015 -0400 +++ b/column_maker.py Fri Dec 18 18:52:53 2015 -0500 @@ -47,7 +47,7 @@ expr = expr.replace( key, value ) operators = 'is|not|or|and' -builtin_and_math_functions = 'abs|all|any|bin|chr|cmp|complex|divmod|float|hex|int|len|long|max|min|oct|ord|pow|range|reversed|round|sorted|str|sum|type|unichr|unicode|log|exp|sqrt|ceil|floor' +builtin_and_math_functions = 'abs|all|any|bin|chr|cmp|complex|divmod|float|bool|hex|int|len|long|max|min|oct|ord|pow|range|reversed|round|sorted|str|sum|type|unichr|unicode|log|exp|sqrt|ceil|floor' string_and_list_methods = [ name for name in dir('') + dir([]) if not name.startswith('_') ] whitelist = "^([c0-9\+\-\*\/\(\)\.\'\"><=,:! ]|%s|%s|%s)*$" % (operators, builtin_and_math_functions, '|'.join(string_and_list_methods)) if not re.compile(whitelist).match(expr):