def _get_guid_url_for(url):
 guid_url = guid_url_node_pattern.sub('', url, count=1)
 guid_url = guid_url_project_pattern.sub('', guid_url, count=1)
 guid_url = guid_url_profile_pattern.sub('', guid_url, count=1)
 return guid_url

def _get_guid_url_for ( url ) : guid_url = guid_url_node_pattern . sub ( '' , url , count = 1 ) guid_url = guid_url_project_pattern . sub ( '' , guid_url , count = 1 ) guid_url = guid_url_profile_pattern . sub ( '' , guid_url , count = 1 ) return guid_url
url post-processor transforms specific /project/<pid> or /project/<pid>/node/<nid> urls into guid urls .