Changeset 5945 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 14 Apr 2011, 16:50:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/tables.py
r5943 r5945 46 46 data = tuple([data[x].title for x in data])), 47 47 ) 48 delcol = Col(header=' ', sortable=False,48 delcol = Col(header=' ', sortable=False, 49 49 data = [ 50 50 '<form method="post">' … … 73 73 ) 74 74 75 delcol = Col(header=' ', sortable=False,75 delcol = Col(header=' ', sortable=False, 76 76 data = [ 77 77 '<form method="post">' … … 89 89 return (self.coursetable, self.certtable) 90 90 91 class CourseContainerCourseTableProvider(CodeAndTitleTableProvider):92 grok.context(ICourseContainer)93 grok.provides(ITableProvider)94 title = 'Courses'91 #class CourseContainerCourseTableProvider(CodeAndTitleTableProvider): 92 # grok.context(ICourseContainer) 93 # grok.provides(ITableProvider) 94 # title = 'Courses' 95 95 96 def getTables(self, view=None):97 data = self.data_source98 context_url = ''99 if view:100 context_url = view.url(self.context) + '/'101 cols = (102 Col(103 header='Code', sortable=True,104 data = tuple([self.getItemURL(view, data[x].code)105 for x in data])),106 Col(107 header='Title', sortable=True,108 data = tuple([data[x].title for x in data])),109 )110 self.table = Table(self.title, cols=cols)111 return (self.table,)96 # def getTables(self, view=None): 97 # data = self.data_source 98 # context_url = '' 99 # if view: 100 # context_url = view.url(self.context) + '/' 101 # cols = ( 102 # Col( 103 # header='Code', sortable=True, 104 # data = tuple([self.getItemURL(view, data[x].code) 105 # for x in data])), 106 # Col( 107 # header='Title', sortable=True, 108 # data = tuple([data[x].title for x in data])), 109 # ) 110 # self.table = Table(self.title, cols=cols) 111 # return (self.table,)
Note: See TracChangeset for help on using the changeset viewer.