def show_archive(**kwords): app = framework.curr_app archive = framework.do_action('show.archive', appid=app.id, **kwords ) if archive: return framework.render('single',archive=WappedArchive(archive)) return 'pk'
def index(page=1): print framework app = framework.curr_app pageCount = app.get_option('pageCount') archives = framework.do_action('show.archives', page=page, appid=app.id, pageCount= pageCount if pageCount else 20 ) if archives: return framework.render('index',archives=ArchiveStock(archives),page=page) return framework.render('text',**{'name':'index'})