def get(self):
        """Return the profiles belonging to the entity"""
        # TODO: Use a proper query here
        return jsonify({p.schema: p.to_json()
                       for p in g.entity.profiles
                       if 'public' in p.permissions
                       and p.permissions['public']})
dataset/ETHPy150Open pytent/pytentd/tentd/blueprints/entity.py/ProfilesView.get/original