def feed(index): global handler index = int(index) if index >= 0: handler.feed(index) else: handler.feed_all() return '200'
def feed(): return handler.feed()
def generate_feed(): """ Generate feed.xml """ with open(os.path.join(_deploy_dir, 'feed.xml'), 'wb') as f: f.write(handler.feed())
def generate_feed(): """ Generate feed.xml """ with open(os.path.join(_deploy_dir, 'feed.xml'), 'wb') as f: f.write(handler.feed())
def feed(): return handler.feed()