Changeset 9180 for main


Ignore:
Timestamp:
13 Sep 2012, 21:00:35 (12 years ago)
Author:
Henrik Bettermann
Message:

Do not fetch student object via context.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r9178 r9180  
    624624    @property
    625625    def targets(self):
    626         student_url = self.view.application_url() + (
    627             '/students/%s' % self.request.principal.id)
     626        student = grok.getSite()['students'][self.request.principal.id]
     627        student_url = self.view.url(student)
    628628        app_slip = getUtility(IExtFileStore).getFileByContext(
    629             self.context.student, 'application_slip')
     629            student, 'application_slip')
    630630        targets = []
    631631        if app_slip:
Note: See TracChangeset for help on using the changeset viewer.