thanks On Wednesday, December 19, 2012 11:36:51 AM UTC+2, Alessandro Molina wrote: > > Already answered on sprox Group, Dojo support is not much supported > anymore, tw.dojo stopped working more than an year ago and so it got > removed from TGAdmin. > Future TurboGears documentation won't cover dojo support anymore, if > anyone is interested in adding dojo support back again that is something > that better suites an extension than the framework itself. > > > On Wed, Dec 19, 2012 at 8:29 AM, alonn <[email protected] <javascript:>>wrote: > >> TypeError: Sorry, your collection type is not supported by the paginate >> module. You can provide a list, a tuple, a SQLAlchemy " "select object or a >> SQLAlchemy ORM-query object >> >> Following the >> http://www.sprox.org/tutorials/table.html#adding-dojo-to-the-mix tutorial >> >> using tg 2.1.4 >> >> the code: >> from tgext.admin.tgadminconfig import TGAdminConfig, >> CrudRestControllerConfig >> from sprox.dojo.tablebase import DojoTableBase >> from sprox.dojo.fillerbase import DojoTableFiller >> >> class MyAdminConfig(TGAdminConfig): # overridding the default Time_stamp >> look >> class time_stamp(CrudRestControllerConfig): >> class table_type(DojoTableBase): >> __entity__ = Time_stamp >> __limit_fields__ = ['stamp', 'timestamp'] >> __headers__ = {'timestamp': u"מועד משיכה אחרון", 'stamp': >> u"סוג משיכה", 'actions': u"פעולות"} >> __column_widths__ = {'timestamp': "7em", >> 'stamp': "5em"} >> >> >> class table_filler_type(DojoTableFiller): >> __entity__ = Time_stamp >> __limit_fields__ = ['id', 'stamp', 'timestamp'] >> #__url__ = "/time_stamps.json" >> >> and after that: >> >> admin = AdminController([User, Group, Permission, ErrorLog, Time_stamp], >> DBSession, config_type=MyAdminConfig) >> >> I'll be glad for any help with this. trying to find my way in using tg >> admin to do something usefull.. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "TurboGears" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msg/turbogears/-/ZtDPch8sfLcJ. >> To post to this group, send email to [email protected]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> For more options, visit this group at >> http://groups.google.com/group/turbogears?hl=en. >> > >
-- You received this message because you are subscribed to the Google Groups "TurboGears" group. To view this discussion on the web visit https://groups.google.com/d/msg/turbogears/-/0jxXFX3IJMsJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

