filter_cat: doing it wrong, but it works..

This commit is contained in:
Martijn Voncken 2008-07-05 17:00:31 +00:00
parent 204b6a005a
commit 3e3c0f718a
1 changed files with 7 additions and 1 deletions

View File

@ -92,7 +92,13 @@ class index:
#cookies are a delicious delecacy.
if not vars.sort: #no arguments, default to coockies.
vars.update(cookies())
newvars = cookies()
if vars.filter_cat: #i'm doing it wrong :( , but it works..
newvars['filter_cat'] = vars.filter_cat
newvars['filter_value'] = vars.filter_value
vars.update(newvars)
else: #has arguments:set cookies from arguments.
for key in ["sort", "order", "filter_cat","filter_value"]:
value = getattr(vars, key) or ""