[Zope3-Users] z3c.* tutorial about z3c.table

1 view
Skip to first unread message

Christian Lück

unread,
Jun 5, 2011, 6:08:12 AM6/5/11
to zope3...@zope.org
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
_______________________________________________
Zope3-users mailing list
Zope3...@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users

Reply all
Reply to author
Forward
0 new messages