- Timestamp:
- 23 Jul 2009, 21:52:31 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/university/faculty.py
r4426 r4427 64 64 grok.view(Index) 65 65 grok.order(3) 66 67 def getDepartments(self):68 """Convinience method to create a sorted list of departments.69 70 It provides a list of dicts with entries for all data needed by71 usual list templates.72 """73 result = []74 for key, val in self.context.items():75 result.append(dict(id=key, name=val.title))76 return result77 66 78 67
Note: See TracChangeset for help on using the changeset viewer.