[#56] Fix syntax error and wrong type

This commit is contained in:
amercader 2013-08-14 11:31:23 +01:00
parent ad0bbea3a0
commit 8e33262026
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ class Harvester(CkanCommand):
def create_harvest_source(self): def create_harvest_source(self):
if len(self.args) >= 2: if len(self.args) >= 2:
name = unicode(self.args[1] name = unicode(self.args[1])
else: else:
print 'Please provide a source name' print 'Please provide a source name'
sys.exit(1) sys.exit(1)
@ -308,7 +308,7 @@ class Harvester(CkanCommand):
def print_harvest_source(self, source): def print_harvest_source(self, source):
print 'Source id: %s' % source.get('id') print 'Source id: %s' % source.get('id')
print ' url: %s' % source.get('url') print ' url: %s' % source.get('url')
print ' type: %s' % source.get('type') print ' type: %s' % source.get('source_type')
print ' active: %s' % source.get('active') print ' active: %s' % source.get('active')
print ' user: %s' % source.get('user_id') print ' user: %s' % source.get('user_id')
print 'publisher: %s' % source.get('publisher_id') print 'publisher: %s' % source.get('publisher_id')