def _resolve_map(request, id, permission='base.change_resourcebase', msg=_PERMISSION_MSG_GENERIC, **kwargs):
 if id.isdigit():
  key = 'pk'
 else:
  key = 'urlsuffix'
 return resolve_object(request, Map, {key: id}, permission=permission, permission_msg=msg, **kwargs)

def _resolve_map ( request , id , permission = 'base.change_resourcebase' , msg = _PERMISSION_MSG_GENERIC , ** kwargs ) : if id . isdigit ( ) : key = 'pk' else : key = 'urlsuffix' return resolve_object ( request , Map , { key : id } , permission = permission , permission_msg = msg , ** kwargs )
resolve the map by the provided typename and check the optional permission .