Ignore:
Timestamp:
4 Jan 2010, 22:59:26 (15 years ago)
Author:
uli
Message:

Remove StudentSearch? view. It's now a page in browser subpackage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/catalog.py

    r4662 r4664  
    2121
    2222
    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 result
    37    
    3823class CourseIndexes(grok.Indexes):
    3924     grok.site(University)
Note: See TracChangeset for help on using the changeset viewer.