Example #1
0
 def GET_admingraph(self, dates):
     start, end, bad_dates = _check_dates(dates)
     content = Promote_Graph(start, end, bad_dates=bad_dates,
                             admin_view=True)
     if c.render_style == 'csv':
         return content.as_csv()
     return PromotePage("admingraph", content=content).render()
Example #2
0
 def GET_admingraph(self, dates):
     start, end, bad_dates = _check_dates(dates)
     content = Promote_Graph(start, end, bad_dates=bad_dates,
                             admin_view=True)
     if c.render_style == 'csv':
         return content.as_csv()
     return PromotePage("admingraph", content=content).render()
Example #3
0
 def GET_admingraph(self):
     content = Promote_Graph(admin_view=True)
     if c.render_style == 'csv':
         return content.as_csv()
     return PromotePage("admingraph", content=content).render()
Example #4
0
 def GET_graph(self, dates):
     start, end, bad_dates = _check_dates(dates)
     return PromotePage("graph",
                        content=Promote_Graph(
                            start, end, bad_dates=bad_dates)).render()