@cache_permission
def can_edit_project(user, project):
 return check_permission(user, project, 'trans.change_project')

@ cache_permission def can_edit_project ( user , project ) : return check_permission ( user , project , 'trans.change_project' )
checks whether user can edit given project .