def assess():
 assess_tables()
 impact_tables()
 tablename = ('%s_%s' % (module, resourcename))
 table = db[tablename]
 def prep(r):
  if (session.s3.mobile and (r.method == 'create') and r.interactive):
   redirect(URL(f='assess_short_mobile'))
  return True
 response.s3.prep = prep
 tabs = [(T('Edit Details'), None), (T('Baselines'), 'baseline'), (T('Impacts'), 'impact'), (T('Summary'), 'summary')]
 rheader = (lambda r: assess_rheader(r, tabs))
 return s3_rest_controller(rheader=rheader)

def assess ( ) : assess_tables ( ) impact_tables ( ) tablename = ( '%s_%s' % ( module , resourcename ) ) table = db [ tablename ] def prep ( r ) : if ( session . s3 . mobile and ( r . method == 'create' ) and r . interactive ) : redirect ( URL ( f = 'assess_short_mobile' ) ) return True response . s3 . prep = prep tabs = [ ( T ( 'Edit Details' ) , None ) , ( T ( 'Baselines' ) , 'baseline' ) , ( T ( 'Impacts' ) , 'impact' ) , ( T ( 'Summary' ) , 'summary' ) ] rheader = ( lambda r : assess_rheader ( r , tabs ) ) return s3_rest_controller ( rheader = rheader )
restful crud controller .