Mercurial > hg > pyloader
comparison pyloader/factory.py @ 70:7ec0ca0134ff
stub getting wrapper options: [foo:@:bar=fleem:baz]
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 09 Jun 2011 17:57:12 -0700 |
parents | b9d9a94bfa19 |
children | 2261cf505daf |
comparison
equal
deleted
inserted
replaced
69:b9d9a94bfa19 | 70:7ec0ca0134ff |
---|---|
132 # TODO: could interpolate wrapper | 132 # TODO: could interpolate wrapper |
133 if wrapper in names: | 133 if wrapper in names: |
134 | 134 |
135 # TODO: wrapper arguments: | 135 # TODO: wrapper arguments: |
136 # [extended-fibonacci:@:four=4,five=5:fibonacci] | 136 # [extended-fibonacci:@:four=4,five=5:fibonacci] |
137 if ':' in _path: | |
138 _wrapper_options, __path = path.split(':', 1) | |
139 if ',' in _wrapper_options or '=' in _wrapper_options: | |
140 # ,= : tokens to ensure these are wrapper options | |
141 # as these shouldn't be found in a real path (dotted path or file path) | |
142 | |
143 _wrapper_options = None # TODO | |
137 | 144 |
138 # TODO: will be correct for | 145 # TODO: will be correct for |
139 # [foo:bar:%(here)s/objects.py:MyClass] | 146 # [foo:bar:%(here)s/objects.py:MyClass] |
140 # but not for | 147 # but not for |
141 # [foo:bar:fleem] | 148 # [foo:bar:fleem] |