

def predicate_key(self, key_dict):
    'Given a dictionary create a unique predicate key.\n\n        See also :meth:`reg.Registry.key_dict_to_predicate_key`.\n\n        :param key_dict: a dict containing view registration info,\n          for instance model, request_method, etc.\n        :result: an immutable object representing the predicate.\n        '
    return self.reg_registry.key_dict_to_predicate_key(generic.view.wrapped_func, key_dict)

dataset/ETHPy150Open morepath/morepath/morepath/view.py ViewRegistry.predicate_key/original