Changeset 5915 for main/waeup.sirp/trunk/src
- Timestamp:
- 6 Apr 2011, 06:44:36 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/tables.py
r5006 r5915 6 6 from waeup.sirp.widgets.table import YUITable as Table 7 7 from waeup.sirp.widgets.table import Col 8 from waeup.sirp.utils.helpers import getName 8 9 9 10 class CodeAndTitleTableProvider(grok.Adapter): … … 41 42 Col( 42 43 header='Title', sortable=True, 43 data = tuple([ data.getName(x) for x in data])),44 data = tuple([getName(data[x]) for x in data])), 44 45 ) 45 46 self.table = Table(self.title, cols=cols) -
main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.py
r5005 r5915 35 35 del self[key] 36 36 37 def getName(self, key):38 """Get complete facultyname.39 """40 if key in self.keys():41 dept = self[key]42 prefix = dept.title_prefix43 prefix = prefix[0].upper() + prefix[1:]44 return '%s of %s' % (prefix, dept.title)37 #def getName(self, key): 38 # """Get complete department name. 39 # """ 40 # if key in self.keys(): 41 # dept = self[key] 42 # prefix = dept.title_prefix 43 # prefix = prefix[0].upper() + prefix[1:] 44 # return '%s of %s' % (prefix, dept.title) 45 45 46 46 -
main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.py
r5070 r5915 22 22 del self[key] 23 23 24 def getName(self, key):25 if key in self.keys():26 fac = self[key]27 prefix = fac.title_prefix28 prefix = prefix[0].upper() + prefix[1:]29 return '%s of %s' % (prefix, fac.title)24 #def getName(self, key): 25 # if key in self.keys(): 26 # fac = self[key] 27 # prefix = fac.title_prefix 28 # prefix = prefix[0].upper() + prefix[1:] 29 # return '%s of %s' % (prefix, fac.title) 30 30 31 31 class FacultyContainerFactory(grok.GlobalUtility):
Note: See TracChangeset for help on using the changeset viewer.