Mercurial > piecrust2
comparison piecrust/sources/autoconfig.py @ 286:a2d283d1033d
tests: Fixes for running on Windows.
Mostly about those damn backslashes, as usual.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 04 Mar 2015 22:40:50 -0800 |
parents | f512905ae812 |
children | 95874699ec2e |
comparison
equal
deleted
inserted
replaced
285:6e9b5530306e | 286:a2d283d1033d |
---|---|
184 numerical prefix in their filename. Page iterators will automatically | 184 numerical prefix in their filename. Page iterators will automatically |
185 sort pages using that order. | 185 sort pages using that order. |
186 """ | 186 """ |
187 SOURCE_NAME = 'ordered' | 187 SOURCE_NAME = 'ordered' |
188 | 188 |
189 re_pattern = re.compile(r'(^|/)(?P<num>\d+)_') | 189 re_pattern = re.compile(r'(^|[/\\])(?P<num>\d+)_') |
190 | 190 |
191 def __init__(self, app, name, config): | 191 def __init__(self, app, name, config): |
192 config['capture_mode'] = 'path' | 192 config['capture_mode'] = 'path' |
193 super(OrderedPageSource, self).__init__(app, name, config) | 193 super(OrderedPageSource, self).__init__(app, name, config) |
194 self.setting_name = config.get('setting_name', 'order') | 194 self.setting_name = config.get('setting_name', 'order') |