Changeset 888
- Timestamp:
- 06/19/07 04:25:46
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
SimpleBlog/branches/optimizations/content/blog.py
r869 r888 272 272 total_len = notlimited_len 273 273 ditems = self.getDisplayItems() 274 max_pages = total_len/ditems + (total_len%ditems and 1 or 0)274 275 275 batch = [] 276 if max_pages: 276 if total_len > ditems: 277 max_pages = total_len/ditems + (total_len%ditems and 1 or 0) 277 278 vis_middle = 3 # max number of pages in one of the side around current 278 279 curr_num = b_start/ditems >= max_pages and max_pages or b_start/ditems+1 SimpleBlog/branches/optimizations/skins/SimpleBlog/blog_navigation_macros.pt
r870 r888 9 9 first_item python:len(nav)>0 and nav[0] or []; 10 10 last_item python:len(nav)>1 and nav[1] or []; 11 batch python:len(nav)>2 and nav[2] or [];"> 11 batch python:len(nav)>2 and nav[2] or [];" 12 tal:omit-tag="not:nav"> 12 13 13 14 <span class="previous"
