label: remember filters
This commit is contained in:
parent
32e2e37277
commit
7517bf89b7
@ -177,7 +177,8 @@ def ftime(val):
|
|||||||
def template_get(key):
|
def template_get(key):
|
||||||
val = getattr(web.input(**{key:None}), key)
|
val = getattr(web.input(**{key:None}), key)
|
||||||
if not val:
|
if not val:
|
||||||
return getcookie(key)
|
val = getcookie(key)
|
||||||
|
return val
|
||||||
|
|
||||||
template.Template.globals.update({
|
template.Template.globals.update({
|
||||||
'sort_head': template_sort_head,
|
'sort_head': template_sort_head,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user