clipspy-0.3.3/clips/agenda.py
def find_rule(self, rule):
        """Find a Rule by name."""
        defrule = lib.EnvFindDefrule(self._env, rule.encode())
        if defrule == ffi.NULL:
            raise LookupError("Rule '%s' not found" % defrule)

        return Rule(self._env, defrule)
Find a Rule by name.
Find a Rule by name.
Find a Rule by name .
def find_rule(self, rule):
        defrule = lib.EnvFindDefrule(self._env, rule.encode())
        if defrule == ffi.NULL:
            raise LookupError("Rule '%s' not found" % defrule)
        return Rule(self._env, defrule)
def find_rule ( self , rule ) : defrule = lib . EnvFindDefrule ( self . _env , rule . encode ( ) ) if defrule == ffi . NULL : raise LookupError ( "Rule '%s' not found" % defrule ) return Rule ( self . _env , defrule )
Find a Rule by name.
Find a Rule by name .
"""Find a Rule by name."""
self
rule