def policy_key(location):
 return u'{cat}/{name}'.format(cat=location.category, name=location.name)

def policy_key ( location ) : return u'{cat}/{name}' . format ( cat = location . category , name = location . name )
get the key for a location in a policy file .