def _user_can_edit(user, locale):
 return (user.has_perm('wiki.change_locale') or (user in locale.leaders.all()))

def _user_can_edit ( user , locale ) : return ( user . has_perm ( 'wiki.change_locale' ) or ( user in locale . leaders . all ( ) ) )
can the given user edit the given group profile? .