Changeset 10782 for main


Ignore:
Timestamp:
21 Nov 2013, 16:23:00 (11 years ago)
Author:
Henrik Bettermann
Message:

We may hide these buttons in custom packages.

File:
1 edited

Legend:

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

    r10646 r10782  
    145145        """Get a URL to the target...
    146146        """
    147         return self.view.url(self.view.context, self.target)
     147        if self.target:
     148            return self.view.url(self.view.context, self.target)
     149        return
    148150
    149151    @property
     
    424426    grok.context(IFacultiesContainer)
    425427    grok.view(FacultiesContainerPage)
     428    grok.name('exportfacultystudents')
    426429    grok.require('waeup.showStudents')
    427430    icon = 'actionicon_down.png'
     
    450453    grok.context(IFaculty)
    451454    grok.view(FacultyPage)
     455    grok.name('findstudents')
    452456    grok.require('waeup.showStudents')
    453457    text = _('Find students')
     
    468472    grok.context(IDepartment)
    469473    grok.view(DepartmentPage)
     474    grok.name('showdepartmentstudents')
    470475    grok.require('waeup.showStudents')
    471476    icon = 'actionicon_student.png'
     
    479484    grok.context(IDepartment)
    480485    grok.view(DepartmentPage)
     486    grok.name('exportdepartmentstudents')
    481487    grok.require('waeup.showStudents')
    482488    icon = 'actionicon_down.png'
     
    498504    grok.context(ICourse)
    499505    grok.view(CoursePage)
     506    grok.name('showcoursestudents')
    500507    grok.require('waeup.showStudents')
    501508    icon = 'actionicon_student.png'
     
    509516    grok.context(ICourse)
    510517    grok.view(CoursePage)
     518    grok.name('exportcoursestudents')
    511519    grok.require('waeup.showStudents')
    512520    icon = 'actionicon_down.png'
     
    520528    grok.context(ICourse)
    521529    grok.view(CoursePage)
     530    grok.name('updatescores')
    522531    grok.require('waeup.editScores')
    523532    icon = 'actionicon_scores.png'
     
    539548    grok.context(ICertificate)
    540549    grok.view(CertificatePage)
     550    grok.name('showcertificatestudents')
    541551    grok.require('waeup.showStudents')
    542552    icon = 'actionicon_student.png'
     
    550560    grok.context(ICertificate)
    551561    grok.view(CertificatePage)
     562    grok.name('exportcertificatestudents')
    552563    grok.require('waeup.showStudents')
    553564    icon = 'actionicon_down.png'
Note: See TracChangeset for help on using the changeset viewer.