~replaceafill/schooltool.cando/misplaced_score_fix

« back to all changes in this revision

Viewing changes to src/schooltool/cando/browser/gradebook.py

  • Committer: Douglas Cerna
  • Date: 2012-10-22 16:22:21 UTC
  • Revision ID: douglascerna@yahoo.com-20121022162221-boyr71rm5ucd2dfx
Sorted skills by label in the skills gradebook

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
        else:
206
206
            return _('Enter Skills')
207
207
 
 
208
    @Lazy
 
209
    def filtered_activity_info(self):
 
210
        result = super(SkillsGradebookOverview, self).filtered_activity_info
 
211
        collator = ICollator(self.request.locale)
 
212
        return sorted(result,
 
213
                      key=lambda activity:activity['shortTitle'],
 
214
                      cmp=collator.cmp)
 
215
 
208
216
 
209
217
class ProjectsBreadcrumbs(flourish.breadcrumbs.Breadcrumbs):
210
218