Changeset 6630 for main/waeup.sirp/trunk


Ignore:
Timestamp:
25 Aug 2011, 17:20:27 (13 years ago)
Author:
Henrik Bettermann
Message:

Temporary solution to display all students added (for manual testing only).

Location:
main/waeup.sirp/trunk/src/waeup/sirp/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studentscontainerpage.pt

    r6626 r6630  
    3434      </tbody>
    3535    </table>
     36    <br />
    3637  </div>
    3738</form>
  • main/waeup.sirp/trunk/src/waeup/sirp/students/catalog.py

    r6626 r6630  
    4444            Text(('students_catalog', searchtype), query))
    4545    else:
    46         results = Query().searchResults(
    47             Eq(('students_catalog', searchtype), query))
     46        # Temporary solution to display all students added
     47        if query == '*':
     48            from zope.component import queryUtility
     49            from zope.catalog.interfaces import ICatalog
     50            cat = queryUtility(ICatalog, name='students_catalog')
     51            results = cat.searchResults(student_id=(None, None))
     52        else:
     53            results = Query().searchResults(
     54                Eq(('students_catalog', searchtype), query))
    4855    for result in results:
    4956        hitlist.append(StudentQueryResultItem(result, view=view))
Note: See TracChangeset for help on using the changeset viewer.