# HG changeset patch # User Jeff Hammel # Date 1307667432 25200 # Node ID 7ec0ca0134ffa0351b364f507d1850dcc6504d12 # Parent b9d9a94bfa1979623e5cb4399486ba5852419848 stub getting wrapper options: [foo:@:bar=fleem:baz] diff -r b9d9a94bfa19 -r 7ec0ca0134ff pyloader/factory.py --- a/pyloader/factory.py Thu Jun 09 09:36:08 2011 -0700 +++ b/pyloader/factory.py Thu Jun 09 17:57:12 2011 -0700 @@ -134,6 +134,13 @@ # TODO: wrapper arguments: # [extended-fibonacci:@:four=4,five=5:fibonacci] + if ':' in _path: + _wrapper_options, __path = path.split(':', 1) + if ',' in _wrapper_options or '=' in _wrapper_options: + # ,= : tokens to ensure these are wrapper options + # as these shouldn't be found in a real path (dotted path or file path) + + _wrapper_options = None # TODO # TODO: will be correct for # [foo:bar:%(here)s/objects.py:MyClass]