Ignore:
Timestamp:
10 Feb 2022, 10:17:56 (3 years ago)
Author:
Henrik Bettermann
Message:

Generate link for plag test.

Location:
main/waeup.uniben/trunk/src/waeup/uniben/students
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser.py

    r16782 r16793  
    6262    NigeriaStudentFilesUploadPage,
    6363    )
    64 
    6564from waeup.uniben.students.interfaces import (
    6665    ICustomStudent,
     
    7574    IMedicalHistory,
    7675    ICustomCourseTicket)
     76from waeup.uniben.students.deplinks import DEPLINKS
    7777from waeup.uniben.interfaces import MessageFactory as _
    7878
     
    928928
    929929    def update(self):
    930         if self.context.p_state != 'paid' \
    931             or self.contest.p_category != 'plag_test':
     930        if self.context.p_state != 'unpaid' \
     931            or self.context.p_category != 'plag_test':
    932932            self.flash(_('Forbidden'), type="danger")
    933933            self.redirect(self.url(self.context))
    934934        return super(PlagTestInfoPage, self).update()
     935
     936    @property
     937    def facdep(self):
     938        facdepkey = "%s-%s" % (self.context.student.faccode,
     939                               self.context.student.depcode)
     940        return DEPLINKS[facdepkey]
  • main/waeup.uniben/trunk/src/waeup/uniben/students/browser_templates/plagtestinfopage.pt

    r16782 r16793  
    1 <h1>Plagiarism Test Test</h1>
     1<h1>Final Year Plagiarism Test</h1>
    22
    3 <p>Hello World</p>
     3<p>Please upload your document <a tal:attributes="href view/facdep">here</a></p>
Note: See TracChangeset for help on using the changeset viewer.