Alessandro Molina wrote: > On Tue, Jan 25, 2011 at 7:10 PM, denysonique <denniso...@gmail.com> wrote: > > Hi, > > I am trying to follow this tutorial > > http://turbogears.org/2.1/docs/main/Extensions/Crud/index.html > > , but unfortunately I get this error when trying to access the view: > > > > You forgot to add the call to the constructor of the TableBase ending > in having <crud.controllers.root.OrderTable object at 0xf00b4r> > rendered instead of the table, which indeed isn't valid markup. > > change > order_table = OrderTable > to > order_table = OrderTable(DBSession) > > and it should work
Thank you very much for your help. Actually I have just figured this out, after I switched to Mako, Mako provided a somewhat more intuitive error description. -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to turbogears@googlegroups.com. To unsubscribe from this group, send email to turbogears+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.