Show More
@@ -106,11 +106,10 b' def _showlist(name, values, plural=None,' | |||
|
106 | 106 | expand 'end_foos'. |
|
107 | 107 | ''' |
|
108 | 108 | templ = args['templ'] |
|
109 | if plural: | |
|
110 | names = plural | |
|
111 | else: names = name + 's' | |
|
109 | if not plural: | |
|
110 | plural = name + 's' | |
|
112 | 111 | if not values: |
|
113 |
noname = 'no_' + |
|
|
112 | noname = 'no_' + plural | |
|
114 | 113 | if noname in templ: |
|
115 | 114 | yield templ(noname, **args) |
|
116 | 115 | return |
@@ -121,7 +120,7 b' def _showlist(name, values, plural=None,' | |||
|
121 | 120 | for v in values: |
|
122 | 121 | yield dict(v, **args) |
|
123 | 122 | return |
|
124 |
startname = 'start_' + |
|
|
123 | startname = 'start_' + plural | |
|
125 | 124 | if startname in templ: |
|
126 | 125 | yield templ(startname, **args) |
|
127 | 126 | vargs = args.copy() |
@@ -144,7 +143,7 b' def _showlist(name, values, plural=None,' | |||
|
144 | 143 | yield one(v) |
|
145 | 144 | if last is not None: |
|
146 | 145 | yield one(last, tag=lastname) |
|
147 |
endname = 'end_' + |
|
|
146 | endname = 'end_' + plural | |
|
148 | 147 | if endname in templ: |
|
149 | 148 | yield templ(endname, **args) |
|
150 | 149 |
General Comments 0
You need to be logged in to leave comments.
Login now