Changeset 4469


Ignore:
Timestamp:
28 Jul 2009, 01:23:15 (15 years ago)
Author:
uli
Message:

Apply ITableProvider to new interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/widgets/table.txt

    r4420 r4469  
    7676context to find a table to manage. The adapter has to implement
    7777`ITableProvider` from `waeup.widgets.interfaces` and should provide a
    78 `getTable` method.
     78`getTables` method.
    7979
    8080We define and register such an adapter using grok:
     
    8787    ...   grok.provides(ITableProvider)
    8888    ...
    89     ...   def getTable(self):
     89    ...   def getTables(self):
    9090    ...     # We know that our context stores a table in `mytable`
    91     ...     return self.context.mytable
     91    ...     return (self.context.mytable,)
    9292    >>> grok.testing.grok_component('TableAdapter', TableAdapter)
    9393    True
Note: See TracChangeset for help on using the changeset viewer.