Change catalog subsets factory implementation

This commit is contained in:
Roman Mogilatov 2015-10-14 18:34:50 +03:00
parent 4b22680406
commit 3b54763563

View File

@ -70,9 +70,8 @@ class AbstractCatalog(object):
Create subset of catalog providers using provider names. Create subset of catalog providers using provider names.
""" """
return Subset(*(provider return Subset(*(cls.get(provider_name)
for name, provider in six.iteritems(cls.providers) for provider_name in provider_names))
if name in provider_names))
@classmethod @classmethod
def is_subset_owner(cls, subset): def is_subset_owner(cls, subset):