Changeset 4664 for waeup/branches/ulif-layout
- Timestamp:
- 4 Jan 2010, 22:59:26 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-layout/src/waeup/catalog.py
r4662 r4664 21 21 22 22 23 class StudentSearch(grok.View):24 grok.context(University)25 26 def update(self, query=None):27 self.search_result = []28 if query is not None:29 self.search_result = self.search_context(query)30 print "RESULT: ", list(self.search_result)31 32 def search_context(self, query):33 result = Query().searchResults(34 Eq(('students_catalog', 'name'), query)35 )36 return result37 38 23 class CourseIndexes(grok.Indexes): 39 24 grok.site(University)
Note: See TracChangeset for help on using the changeset viewer.