[open-ils-commits] r97 - servres/trunk/conifer/syrup
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Jan 10 14:39:39 EST 2009
Author: gfawcett
Date: 2009-01-10 14:39:35 -0500 (Sat, 10 Jan 2009)
New Revision: 97
Modified:
servres/trunk/conifer/syrup/views.py
Log:
using locals() in search-results.
This works because locals is a dict, and .render expects keyword args,
and you can supply a dict as a keyword set using the **dict syntax.
Modified: servres/trunk/conifer/syrup/views.py
===================================================================
--- servres/trunk/conifer/syrup/views.py 2009-01-09 21:04:58 UTC (rev 96)
+++ servres/trunk/conifer/syrup/views.py 2009-01-10 19:39:35 UTC (rev 97)
@@ -239,18 +239,5 @@
print term
'''
- #not sure this would be the best way but locals() would be cleaner
- #can this be done with genshi?
- '''
- return g.render('search_results.xhtml', locals())
- '''
- return g.render('search_results.xhtml', paginator=paginator,
- page_num=page_num,
- count=count, query_string=query_string,
- course_list=course_list,
- instructor_list=instructor_list,
- norm_query=norm_query,
- results_len=results_len,
- course_len=course_len,
- instr_len=instr_len)
+ return g.render('search_results.xhtml', **locals())
More information about the open-ils-commits
mailing list