def blog():
 def prep(r):
  s3db.configure(r.tablename, listadd=False)
  return True
 s3.prep = prep
 def postp(r, output):
  if r.record:
   response.view = s3base.S3CRUD._view(r, 'cms/blog.html')
  return output
 s3.postp = postp
 output = s3_rest_controller('cms', 'series')
 return output

def blog ( ) : def prep ( r ) : s3db . configure ( r . tablename , listadd = False ) return True s3 . prep = prep def postp ( r , output ) : if r . record : response . view = s3base . S3CRUD . _view ( r , 'cms/blog.html' ) return output s3 . postp = postp output = s3_rest_controller ( 'cms' , 'series' ) return output
restful crud controller for display of a series of posts as a full-page read-only showing last 5 items in reverse time order @todo: convert to datalist .