Skip to content

Commit

Permalink
Revert "#276 Coupled Resource - fix to not show withdrawn packages in…
Browse files Browse the repository at this point in the history
… list of coupled resources."

Reverting changes for "#276 Coupled Resource" on master as it is INSPIRE-specific. Moving to datagovuk/ckanext-spatial branch dgu.

This reverts commit 3f627d9.
  • Loading branch information
David Read committed Feb 4, 2013
1 parent 27c4ee8 commit 84b75ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions ckanext/spatial/harvesters.py
Expand Up @@ -64,8 +64,6 @@ def text_traceback():

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:
Expand Down
8 changes: 2 additions & 6 deletions ckanext/spatial/lib/helpers.py
Expand Up @@ -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':
Expand All @@ -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

0 comments on commit 84b75ea

Please sign in to comment.