def __init__(self, rules): RuleFilter.__init__(self, rules, tr("Drag & drop networks, protocols and user groups here")) getLibrary = rules.window.getLibrary self.filters.extend( ( AttributeFilter(self, getLibrary("resources"), "sources", "destinations"), AttributeFilter(self, getLibrary("protocols"), "protocols"), UserGroupFilter(self, getLibrary("user_groups"), "user_groups"), ) )
def __init__(self, rules): RuleFilter.__init__(self, rules, tr("Drag & drop networks and protocols here")) getLibrary = rules.window.getLibrary self.filters.extend(( AttributeFilter(self, getLibrary('resources'), 'sources', 'destinations', 'nated_sources', 'nated_destinations'), AttributeFilter(self, getLibrary('protocols'), 'filters', 'nated_filters'), ))