[Grok-dev] Using z3c.table in a grok view?

Tim Terlegård tim.terlegard at valentinewebsystems.se
Mon Jun 2 02:16:02 EDT 2008


On Jun 1, 2008, at 3:46 PM, Adam Summers wrote:
> I have in my code the following -- can someone see what I'm doing  
> wrong?
>
> from z3c.table import table, column
>
> class NameColumn(column.GetAttrColumn, grok.MultiAdapter):
>         grok.name('nameCol')
>         grok.adapts(table.interfaces.ITable)
>         grok.provides(table.interfaces.IColumn)
>         header = u'Name'
>         attrname = 'who'
>         weight = 1

The column adapts three objects, you just specified one.

     grok.adapts(gehar, IDefaultBrowserLayer, ITable)

/Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20080602/7f543bcf/attachment.html


More information about the Grok-dev mailing list