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