Changeset 4494 for waeup/branches/ulif-rewrite/src
- Timestamp:
- 31 Jul 2009, 09:37:30 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/tables.py
r4461 r4494 7 7 from waeup.widgets.table import YUITable as Table 8 8 from waeup.widgets.table import Col 9 from zope.security.management import checkPermission 9 10 10 11 class CodeAndTitleTableProvider(grok.Adapter): … … 89 90 data = tuple([data[x].title for x in data])), 90 91 ) 92 delcol = Col(header='', sortable=False, 93 data = [ 94 '<form method="post">' 95 '<input type="submit" name="delcourse" value="Delete" />' 96 '<input type="hidden" name="code" value="%s" />' 97 '</form>' % (data[x].code) 98 for x in data]) 99 100 if checkPermission('waeup.manageUniversity', self.context.courses): 101 cols = list(cols) 102 cols.append(delcol) 103 cols = tuple(cols) 91 104 self.coursetable = Table('Courses', cols=cols) 92 105
Note: See TracChangeset for help on using the changeset viewer.