Example #1
0
    def get_rules(self):
        """
        Get all of the rules for this project from the DB (or cache).

        :return: a list of `Rule`s
        """
        return Rule.get_for_project(self.project.id)
Example #2
0
 def get_rules(self):
     return Rule.get_for_project(self.project.id)
Example #3
0
 def get_rules(self) -> Sequence[Rule]:
     """Get all of the rules for this project from the DB (or cache)."""
     rules_: Sequence[Rule] = Rule.get_for_project(self.project.id)
     return rules_