Changeset 63d747ed665ecd7b4131f510d86c111aa72773fe
- Timestamp:
- 01/06/08 15:39:53
(1 year ago)
- Author:
- William McBrine <wmcbrine@gmail.com>
- git-committer:
- William McBrine <wmcbrine@gmail.com> 1199655593 -0500
- git-parent:
[c31188611190d180f4a8acf1676221a6822bb580]
- git-author:
- William McBrine <wmcbrine@gmail.com> 1199655593 -0500
- Message:
More cases where only a single replace is desired.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb23d791 |
r63d747e |
|
| 116 | 116 | item = {} |
|---|
| 117 | 117 | item['path'] = f.name |
|---|
| 118 | | item['part_path'] = f.name.replace(local_base_path, '') |
|---|
| | 118 | item['part_path'] = f.name.replace(local_base_path, '', 1) |
|---|
| 119 | 119 | item['name'] = os.path.split(f.name)[1] |
|---|
| 120 | 120 | item['is_dir'] = f.isdir |
|---|
| … | … | |
| 348 | 348 | local_base_path = self.get_local_base_path(handler, query) |
|---|
| 349 | 349 | start = unquote(start) |
|---|
| 350 | | start = start.replace(os.path.sep + cname, local_base_path) |
|---|
| | 350 | start = start.replace(os.path.sep + cname, |
|---|
| | 351 | local_base_path, 1) |
|---|
| 351 | 352 | filenames = [x.name for x in filelist.files] |
|---|
| 352 | 353 | try: |
|---|
| rfacfd11 |
r63d747e |
|
| 281 | 281 | item = {} |
|---|
| 282 | 282 | item['path'] = f.name |
|---|
| 283 | | item['part_path'] = f.name.replace(local_base_path, '') |
|---|
| | 283 | item['part_path'] = f.name.replace(local_base_path, '', 1) |
|---|
| 284 | 284 | item['name'] = os.path.split(f.name)[1] |
|---|
| 285 | 285 | item['is_dir'] = f.isdir |
|---|
| … | … | |
| 403 | 403 | local_base_path = self.get_local_base_path(handler, query) |
|---|
| 404 | 404 | start = unquote(start) |
|---|
| 405 | | start = start.replace(os.path.sep + cname, local_base_path) |
|---|
| | 405 | start = start.replace(os.path.sep + cname, |
|---|
| | 406 | local_base_path, 1) |
|---|
| 406 | 407 | filenames = [x.name for x in filelist.files] |
|---|
| 407 | 408 | try: |
|---|