Changeset 4957 for main/waeup.sirp/trunk
- Timestamp:
- 1 Feb 2010, 16:20:59 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r4956 r4957 9 9 import sys 10 10 from hurry import yui 11 from hurry.query import Eq12 from hurry.query.query import Query, Text13 11 from hurry.workflow.interfaces import NoTransitionAvailableError 14 12 from waeup.sirp.browser import (WAeUPPage, WAeUPEditFormPage, WAeUPAddFormPage, … … 236 234 237 235 class SearchPage(WAeUPPage): 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 236 grok.context(IUniversity) 237 grok.name('search') 238 grok.template('searchpage') 239 grok.require('waeup.View') 240 title = u"Site Search" 241 pnav = 2 242 243 def update(self, *args, **kw): 244 form = self.request.form 245 self.hitlist = [] 246 self.query = '' 247 if not 'query' in form: 248 return 249 query = form['query'] 250 self.query = query 251 self.hitlist = search(query=self.query, view=self) 252 return 255 253 256 254 #
Note: See TracChangeset for help on using the changeset viewer.