def _generateNameRuleMapping(self, rules): return [(getAttrOrder(rule.name), rule) for rule in rules]
def _generateNameOrderMapping(self, rules): return [(getAttrOrder(rule.name), rule.strippedName) for rule in rules]