old_contents: # coding: utf-8
  
  import os
  
  from pylons import config
  from ckan.model import Session
  from ckanext.stadtzhharvest.harvester import StadtzhHarvester
  
  import logging
  log = logging.getLogger(__name__)
  
  
  class StadtzhgeodropzoneHarvester(StadtzhHarvester):
      '''
      The harvester for the Stadt ZH GEO Dropzone
      '''
  
      DROPZONE_PATH = '/usr/lib/ckan/GEO'
      METADATA_PATH = config.get('metadata.metadatapath', '/usr/lib/ckan/diffs/geo-metadata')
  
      def info(self):
          '''
          Return some general info about this harvester
          '''
          return {
              'name': 'stadtzhgeodropzone',
              'title': 'Stadtzhgeodropzone',
              'description': 'Harvests the Stadtzhgeodropzone data',
              'form_config_interface': 'Text'
          }
  
      def gather_stage(self, harvest_job):
          log.debug('In StadtzhgeodropzoneHarvester gather_stage')
          return self._gather_datasets(harvest_job, meta_dir='DEFAULT')
  
      def fetch_stage(self, harvest_object):
          log.debug('In StadtzhgeodropzoneHarvester fetch_stage')
          return self._fetch_datasets(harvest_object)
          
      def import_stage(self, harvest_object):
          log.debug('In StadtzhgeodropzoneHarvester import_stage')
  
          if not harvest_object:
              log.error('No harvest object received')
              return False
  
          try:
              self._import_package(harvest_object, meta_dir='DEFAULT')
              Session.commit()
          except Exception, e:
              log.exception(e)
  
          return True
  
new_contents: # coding: utf-8
  
  import os
  
  from pylons import config
  from ckan.model import Session
  from ckanext.stadtzhharvest.harvester import StadtzhHarvester
  
  import logging
  log = logging.getLogger(__name__)
  
  
  class StadtzhgeodropzoneHarvester(StadtzhHarvester):
      '''
      The harvester for the Stadt ZH GEO Dropzone
      '''
  
      DATA_PATH = '/usr/lib/ckan/GEO'
      META_DIR = 'DEFAULT'
      METADATA_PATH = config.get('metadata.metadatapath', '/usr/lib/ckan/diffs/geo-metadata')
  
      def info(self):
          '''
          Return some general info about this harvester
          '''
          return {
              'name': 'stadtzhgeodropzone',
              'title': 'Stadtzhgeodropzone',
              'description': 'Harvests the Stadtzhgeodropzone data',
              'form_config_interface': 'Text'
          }
  
      def gather_stage(self, harvest_job):
          log.debug('In StadtzhgeodropzoneHarvester gather_stage')
          return self._gather_datasets(harvest_job, meta_dir='DEFAULT')
  
      def fetch_stage(self, harvest_object):
          log.debug('In StadtzhgeodropzoneHarvester fetch_stage')
          return self._fetch_datasets(harvest_object)
  
      def import_stage(self, harvest_object):
          log.debug('In StadtzhgeodropzoneHarvester import_stage')
          return self._import_datasets(harvest_object)
  
subject: use methods, set meta dir