def statistic_sheet_view(context, request): """ Statistic sheet view """ statistics_js.need() loadurl = request.route_path( 'statistic', id=context.id, _query=dict(action='options'), ) contexturl = request.current_route_path() request.actionmenu.add( widgets.ViewLink( u"Retour à la liste", "list_statistics", path="statistics", ) ) return dict( title=u"Feuille de statistiques", loadurl=loadurl, contexturl=contexturl, )
def statistic_sheet_view(context, request): """ Statistic sheet view """ statistics_js.need() loadurl = request.route_path( 'statistic', id=context.id, _query=dict(action='options'), ) contexturl = request.current_route_path() request.actionmenu.add( widgets.ViewLink( u"Retour à la liste", "manage", path="statistics", ) ) return dict( title=u"Feuille de statistiques", loadurl=loadurl, contexturl=contexturl, )
def __call__(self): statistics_js.need() sheets = StatisticSheet.query() sheets = sheets.order_by(desc(StatisticSheet.active)).all() submiturl = self.request.route_path( 'statistics', _query=dict(action='add'), ) return dict(sheets=sheets, title=self.title, submiturl=submiturl)