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].
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.

Reply via email to