Discussion:
[Zope3-Users] z3c.* tutorial about z3c.table
Christian Lück
2011-06-05 10:08:12 UTC
Permalink
Hi there, Hi Paul,

the z3c.* tutorial's instructions on z3c.table are a little outdated.

I am referring to v4.0.0 as pubished in
http://www.ibiblio.org/paulcarduner/z3ctutorial/tables.html#creating-a-table

When using version 0.7.0 (0.6.2dev, svn 100433) and newer the example
table class "FrontPage" should also inherit __init__ from table.Table
because __init__ is used to initialize variables that are later
accessed/set by the update method etc.

So I suppose the tutorial should read:

class FrontPage(table.Table, BrowserPage):

render = BrowserPage.render


That would work for older versions, too.


BTW: The tutorial is great and really helpful! Thanks Paul!


Regards
Christian

Loading...