Show More
@@ -24,16 +24,16 b' def up(p):' | |||
|
24 | 24 | return "/" |
|
25 | 25 | return up + "/" |
|
26 | 26 | |
|
27 |
def _navseq( |
|
|
28 |
if |
|
|
29 |
yield |
|
|
30 |
if |
|
|
27 | def _navseq(step, firststep=None): | |
|
28 | if firststep: | |
|
29 | yield firststep | |
|
30 | if firststep >= 20 and firststep <= 40: | |
|
31 | 31 | yield 50 |
|
32 |
|
|
|
32 | step *= 10 | |
|
33 | 33 | while True: |
|
34 |
yield 1 * |
|
|
35 |
yield 3 * |
|
|
36 |
|
|
|
34 | yield 1 * step | |
|
35 | yield 3 * step | |
|
36 | step *= 10 | |
|
37 | 37 | |
|
38 | 38 | def revnavgen(pos, pagelen, limit, nodefunc): |
|
39 | 39 | """computes label and revision id for navigation link |
General Comments 0
You need to be logged in to leave comments.
Login now