Exemple #1
0
 def _get_all_rule_id_and_names(self):
     rule_id_and_names = Rules(load_all=True).get_all_rule_id_and_name()
     rule_id_and_names.insert(0, ('', u'所有规则'))
     return rule_id_and_names
Exemple #2
0
 def _get_all_rule_id_and_names():
     rule_id_and_names = Rules(load_all=True).get_all_rule_id_and_name()
     rule_id_and_names.insert(0, ('', _('All_Rules')))
     return rule_id_and_names
Exemple #3
0
 def _get_all_strategy_groups(self):
     strategy_names = Rules(load_all=True).get_all_group_uuid_and_name()
     strategy_names.insert(0, ('', u'所有策略原子组'))
     return strategy_names
Exemple #4
0
 def _get_all_strategy_groups():
     strategy_names = Rules(load_all=True).get_all_group_uuid_and_name()
     strategy_names.insert(0, ('', _('All_Policy_Group')))
     return strategy_names