# HG changeset patch # User devteam # Date 1450482773 18000 # Node ID 292c605c2dc78244c05b5931ac1a55d0f90e309f # Parent d3f10c90fc96e300de604f005abae8e64f97c8a0 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/column_maker commit de7140295cce07e1bc1697e51dab4271c8d7a8a6 diff -r d3f10c90fc96 -r 292c605c2dc7 column_maker.py --- 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): diff -r d3f10c90fc96 -r 292c605c2dc7 column_maker.xml --- a/column_maker.xml Tue Oct 13 12:14:53 2015 -0400 +++ b/column_maker.xml Fri Dec 18 18:52:53 2015 -0500 @@ -79,5 +79,16 @@ chr1 151077881 151077918 2 200 - False chr1 151081985 151082078 3 500 + False - + +The following build-in functions are available:: + + abs | all | any | bin | bool | chr | ceil | cmp | complex + + divmod | exp | float | log | floor | hex | int | len | long + + max | min | oct | ord | pow | range | reversed + + round | sorted | sqrt | str | sum | type | unichr | unicode | + +