def layer_config():
 if (settings.get_security_map() and (not s3_has_role(MAP_ADMIN))):
  auth.permission.fail()
 layer = get_vars.get('layer', None)
 if layer:
  csv_stylesheet = ('layer_%s.xsl' % layer)
 else:
  csv_stylesheet = None
 output = s3_rest_controller(csv_stylesheet=csv_stylesheet)
 return output

def layer_config ( ) : if ( settings . get_security_map ( ) and ( not s3_has_role ( MAP_ADMIN ) ) ) : auth . permission . fail ( ) layer = get_vars . get ( 'layer' , None ) if layer : csv_stylesheet = ( 'layer_%s.xsl' % layer ) else : csv_stylesheet = None output = s3_rest_controller ( csv_stylesheet = csv_stylesheet ) return output
restful crud controller .