Changeset 4469
- Timestamp:
- 28 Jul 2009, 01:23:15 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/widgets/table.txt
r4420 r4469 76 76 context to find a table to manage. The adapter has to implement 77 77 `ITableProvider` from `waeup.widgets.interfaces` and should provide a 78 `getTable ` method.78 `getTables` method. 79 79 80 80 We define and register such an adapter using grok: … … 87 87 ... grok.provides(ITableProvider) 88 88 ... 89 ... def getTable (self):89 ... def getTables(self): 90 90 ... # We know that our context stores a table in `mytable` 91 ... return self.context.mytable91 ... return (self.context.mytable,) 92 92 >>> grok.testing.grok_component('TableAdapter', TableAdapter) 93 93 True
Note: See TracChangeset for help on using the changeset viewer.