diff --git a/ckanext/spatial/harvesters.py b/ckanext/spatial/harvesters.py index 41af148..022a0b3 100644 --- a/ckanext/spatial/harvesters.py +++ b/ckanext/spatial/harvesters.py @@ -64,8 +64,6 @@ debug_exception_mode = bool(os.getenv('DEBUG')) class SpatialHarvester(object): # Q: Why does this not inherit from HarvesterBase in ckanext-harvest? - # A: HarvesterBase just provides some useful util methods. The key thing - # a harvester does is it implements(IHarvester). def _is_wms(self,url): try: diff --git a/ckanext/spatial/lib/helpers.py b/ckanext/spatial/lib/helpers.py index 284e33a..9bd8abd 100644 --- a/ckanext/spatial/lib/helpers.py +++ b/ckanext/spatial/lib/helpers.py @@ -12,9 +12,7 @@ def get_coupled_packages(pkg): coupled_packages = \ [(couple.service_record.name, couple.service_record.title) \ for couple in coupled_resources \ - if couple.service_record_package_id and \ - couple.service_record and \ - couple.service_record.state == 'active'] + if couple.service_record_package_id] return coupled_packages elif res_type == 'service': @@ -23,8 +21,6 @@ def get_coupled_packages(pkg): coupled_packages = \ [(couple.dataset_record.name, couple.dataset_record.title) \ for couple in coupled_resources \ - if couple.dataset_record_package_id and \ - couple.dataset_record and \ - couple.dataset_record.state == 'active'] + if couple.dataset_record_package_id] return coupled_packages