def nzseel1():
 tablename = ('%s_%s' % (module, resourcename))
 table = db[tablename]
 table.person_id.default = s3_logged_in_person()
 s3db.configure(tablename, deletable=False, create_next=URL(module, resourcename, args='[id]'), subheadings={'.': 'name', ('%s / %s' % (T('Overall Hazards'), T('Damage'))): 'collapse', '.': 'posting', ('%s:' % T('Further Action Recommended')): 'barricades', '.': 'estimated_damage'})
 rheader = nzseel1_rheader
 output = s3_rest_controller(rheader=rheader)
 return output

def nzseel1 ( ) : tablename = ( '%s_%s' % ( module , resourcename ) ) table = db [ tablename ] table . person_id . default = s3_logged_in_person ( ) s3db . configure ( tablename , deletable = False , create_next = URL ( module , resourcename , args = '[id]' ) , subheadings = { '.' : 'name' , ( '%s / %s' % ( T ( 'Overall Hazards' ) , T ( 'Damage' ) ) ) : 'collapse' , '.' : 'posting' , ( '%s:' % T ( 'Further Action Recommended' ) ) : 'barricades' , '.' : 'estimated_damage' } ) rheader = nzseel1_rheader output = s3_rest_controller ( rheader = rheader ) return output
restful crud controller @todo: action button to create a new l2 assessment from an l1 .