def getOffline(name): bottle.response.status = 200 unroll = ((bottle.request.query.unroll!='') and int(bottle.request.query.unroll)) or None thisSlide = slide.Slide.get(name) json = thisSlide.json( unroll=unroll ) return presentation.build(name, json, SERVER_URL)
def getSlides(name): bottle.response.status = 200 return presentation.build(name, '{}', SERVER_URL)