def check_hue_permission(self, perm=None, app=None, action=None):
    if perm is None:
      perm = self._lookup_permission(app, action)
    if self.has_hue_permission(perm):
      return
    else:
      raise PopupException(_t("You do not have permissions to %(description)s.") % dict(description=perm.description))
Return a Python expression from a tokenized 'where' filter
dataset/ETHPy150Open cloudera/hue/apps/useradmin/src/useradmin/models.py/UserProfile.check_hue_permission--crossover with--dataset/ETHPy150Open samuel/squawk/squawk/query.py/Query._filter_builder