def section():
 def prep(r):
  s3db.configure(r.tablename, deletable=False, orderby=('%s.posn' % r.tablename))
  return True
 s3.prep = prep
 def postp(r, output):
  ' Add the section select widget to the form '
  try:
   template_id = int(request.args[0])
  except:
   template_id = None
  sectionSelect = s3.survey_section_select_widget(template_id)
  output['sectionSelect'] = sectionSelect
  return output
 output = s3_rest_controller()
 return output

def section ( ) : def prep ( r ) : s3db . configure ( r . tablename , deletable = False , orderby = ( '%s.posn' % r . tablename ) ) return True s3 . prep = prep def postp ( r , output ) : try : template_id = int ( request . args [ 0 ] ) except : template_id = None sectionSelect = s3 . survey_section_select_widget ( template_id ) output [ 'sectionSelect' ] = sectionSelect return output output = s3_rest_controller ( ) return output
restful crud controller - unused .