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-users@zope.org
https://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to