Changes between Version 13 and Version 14 of DeveloperGuidelines/DataTables
- Timestamp:
- 08/07/11 16:42:23 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/DataTables
v13 v14 118 118 response.s3.actions + [ 119 119 dict(label=str(T("Import")), _class="action-btn", 120 url=str(URL(r=request, 121 c=module, 122 f=resourcename, 123 args=["[id]", "import"])), 120 url=URL(c=module, 121 f=resourcename, 122 args=["[id]", "import"]), 124 123 restrict = restrict 125 124 ), … … 139 138 rows = db(query).select(r.table.id) 140 139 try: 141 response.s3.actions[1][ 'restrict'].extend(str(row.id) for row in rows)140 response.s3.actions[1]["restrict"].extend(str(row.id) for row in rows) 142 141 except KeyError: # the restrict key doesn't exist 143 response.s3.actions[1][ 'restrict'] = [str(row.id) for row in rows]142 response.s3.actions[1]["restrict"] = [str(row.id) for row in rows] 144 143 except IndexError: # the delete buttons doen't exist 145 144 pass