~ubuntu-branches/ubuntu/quantal/schooltool.lyceum.journal/quantal

« back to all changes in this revision

Viewing changes to src/schooltool/lyceum/journal/browser/journal.py

  • Committer: Gediminas Paulauskas
  • Date: 2012-03-20 13:55:42 UTC
  • mfrom: (1.1.6)
  • Revision ID: menesis@pov.lt-20120320135542-1kppihvug2zfr3zw
Tags: 2.0.3-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
675
675
        return IPerson(self.request.principal, None)
676
676
 
677
677
    @property
678
 
    def title(self):
 
678
    def enabled(self):
679
679
        person = self.person
680
680
        if person is None:
681
 
            return ''
 
681
            return False
682
682
        taught_sections = list(self.getSectionsForPerson(person))
683
683
        learner_sections = list(ILearner(person).sections())
684
 
        if not (taught_sections or learner_sections):
685
 
            return ''
686
 
        return _('Journal')
 
684
        return taught_sections or learner_sections
687
685
 
688
686
    @property
689
687
    def url(self):