Changeset 264:1b2eeefb8aa6
- Timestamp:
- 2007-08-25 11:08:05
(1 year ago)
- Author:
- Stefan Schwarzer <sschwarzer@sschwarzer.net>
- branch:
- default
- Message:
If there are no files in a subdirectory to display, set the directory
level to one.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r250 |
r264 |
|
| 191 | 191 | items = list(itertools.ifilterfalse(_ignore_item, |
|---|
| 192 | 192 | walk(path, params['dir_levels']))) |
|---|
| 193 | | actual_dir_level = max([dir_level(item) for item in items]) - start_level |
|---|
| | 193 | if items: |
|---|
| | 194 | actual_dir_level = max([dir_level(item) for item in items]) - \ |
|---|
| | 195 | start_level |
|---|
| | 196 | else: |
|---|
| | 197 | actual_dir_level = 1 |
|---|
| 194 | 198 | params['dir_levels'] = actual_dir_level |
|---|
| 195 | 199 | html_parts = [] |
|---|