Ignore:
Timestamp:
20 Sep 2018, 07:04:17 (6 years ago)
Author:
Henrik Bettermann
Message:

Reorganise interfaces.

Transcript processing views and viewlets are now in the context of studycourses. Officers can now validate, sign and release transcripts directly on the transcript page.

Location:
main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/browser
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/browser/pages.py

    r15154 r15155  
    10391039    grok.context(IUniversity)
    10401040    grok.template('mytranscriptrequests')
    1041     label =_('My Transcript Requests')
     1041    label =_('My ToDoList')
    10421042
    10431043    @property
  • main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/browser/tests/test_browser.py

    r15143 r15155  
    439439            'nationality,officer_comment,perm_address,personal_updated,'
    440440            'phone,reg_number,sex,student_id,suspended,suspended_comment,'
    441             'transcript_comment,transcript_signees,'
    442441            'password,state,history,certcode,is_postgrad,current_level,'
    443442            'current_session\r\n')
  • main/waeup.kofa/branches/henrik-transcript-workflow/src/waeup/kofa/browser/viewlets.py

    r14286 r15155  
    365365        return ''
    366366
     367class TranscriptOfficerStudents(ManageLink):
     368    """A link to transcript requests.
     369    """
     370    grok.order(6)
     371    grok.require('waeup.Authenticated')
     372
     373    link = u'my_transcript_requests'
     374    text = _(u'My ToDoList')
     375
     376    def render(self):
     377        user_account = get_user_account(self.request)
     378        if user_account:
     379            local_roles = user_account.getLocalRoles()
     380            if local_roles.has_key('waeup.local.TranscriptOfficer'):
     381                url = self.view.url(grok.getSite(), self.link)
     382                text = translate(self.text, context=self.request)
     383                return u'<li><a href="%s">%s</a></li>' % (url, text)
     384        return ''
     385
    367386class MyPreferences(ManageLink):
    368387    """A link to personal preferences, placed in upper left box.
Note: See TracChangeset for help on using the changeset viewer.