def resource_class_url(environ, resource_class):
 prefix = environ.get('SCRIPT_NAME', '')
 return ('%s/resource_classes/%s' % (prefix, resource_class.name))

def resource_class_url ( environ , resource_class ) : prefix = environ . get ( 'SCRIPT_NAME' , '' ) return ( '%s/resource_classes/%s' % ( prefix , resource_class . name ) )
produce the url for a resource class .