Revert "#276 Coupled Resource - fix to not show withdrawn packages in 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 3f627d9700.
This commit is contained in:
David Read 2013-02-04 16:00:34 +00:00
parent 27c4ee81e2
commit 84b75ea759
2 changed files with 2 additions and 8 deletions

View File

@ -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:

View File

@ -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