def main(request): graph = Spreads() if request.method == 'GET': return graph.view_spread(request) elif request.method == 'POST': return graph.create_spread(request)
def init_spread(request): spread = Spreads() if request.method == 'GET': return spread.start_spreadapp(request)