- Timestamp:
- 22 Feb 2012, 21:14:09 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.py
r7334 r7681 22 22 from zope.component.interfaces import IFactory 23 23 from zope.interface import implementedBy 24 from zope.component import getUtility 25 from waeup.sirp.interfaces import ISIRPUtils 24 26 from waeup.sirp.university.interfaces import ( 25 27 IFaculty, IFacultyAdd, IDepartment) 26 from waeup.sirp.university.vocabularies import inst_types27 28 28 29 class Faculty(grok.Container): … … 60 61 61 62 def longtitle(self): 62 try: 63 result = "%s %s (%s)" % ( 64 inst_types.getTerm( 65 self.title_prefix).title, 66 self.title, self.code) 67 except: 68 result = "%s (%s)" % (self.title, self.code) 63 insttypes_dict = getUtility(ISIRPUtils).getInstTypeDict() 64 result = "%s %s (%s)" % ( 65 insttypes_dict[self.title_prefix], 66 self.title, self.code) 69 67 return result 70 68
Note: See TracChangeset for help on using the changeset viewer.