Skip to content

Commit

Permalink
Pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Aug 1, 2013
1 parent 6e21552 commit cf6c90f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions ckan/controllers/feed.py
Expand Up @@ -195,14 +195,14 @@ def group(self, id):
alternate_url = self._alternate_url(params, groups=id)

return self.output_feed(results,
feed_title=u'%s - Group: "%s"' % (g.site_title,
group_dict['title']),
feed_title=u'%s - Group: "%s"' %
(g.site_title, group_dict['title']),
feed_description=u'Recently created or '
'updated datasets on %s by group: "%s"' %
(g.site_title, group_dict['title']),
feed_link=alternate_url,
feed_guid=_create_atom_id(
u'/feeds/groups/%s.atom' % id),
feed_guid=_create_atom_id
(u'/feeds/groups/%s.atom' % id),
feed_url=feed_url,
navigation_urls=navigation_urls)

Expand Down Expand Up @@ -233,8 +233,8 @@ def tag(self, id):
'updated datasets on %s by tag: "%s"' %
(g.site_title, id),
feed_link=alternate_url,
feed_guid=_create_atom_id(
u'/feeds/tag/%s.atom' % id),
feed_guid=_create_atom_id
(u'/feeds/tag/%s.atom' % id),
feed_url=feed_url,
navigation_urls=navigation_urls)

Expand All @@ -261,8 +261,8 @@ def general(self):
feed_description=u'Recently created or '
'updated datasets on %s' % g.site_title,
feed_link=alternate_url,
feed_guid=_create_atom_id(
u'/feeds/dataset.atom'),
feed_guid=_create_atom_id
(u'/feeds/dataset.atom'),
feed_url=feed_url,
navigation_urls=navigation_urls)

Expand Down Expand Up @@ -315,8 +315,8 @@ def custom(self):
' datasets on %s. Custom query: \'%s\'' %
(g.site_title, q),
feed_link=alternate_url,
feed_guid=_create_atom_id(
u'/feeds/custom.atom?%s' % search_url_params),
feed_guid=_create_atom_id
(u'/feeds/custom.atom?%s' % search_url_params),
feed_url=feed_url,
navigation_urls=navigation_urls)

Expand Down
2 changes: 1 addition & 1 deletion ckanext/datastore/db.py
Expand Up @@ -517,7 +517,7 @@ def alter_table(context, data_dict):
raise ValidationError({
'fields': [('Supplied field "{0}" not '
'present or in wrong order').format(
field['id'])]
field['id'])]
})
## no need to check type as field already defined.
continue
Expand Down
2 changes: 1 addition & 1 deletion ckanext/datastore/tests/test_dump.py
Expand Up @@ -43,7 +43,7 @@ def setup_class(cls):
'nested': ['b', {'moo': 'moo'}],
u'characters': [u'Princess Anna', u'Sergius']},
{u'b\xfck': 'warandpeace', 'author': 'tolstoy',
'nested': {'a': 'b'}}]
'nested': {'a': 'b'}}]
}
postparams = '%s=1' % json.dumps(cls.data)
auth = {'Authorization': str(cls.sysadmin_user.apikey)}
Expand Down

0 comments on commit cf6c90f

Please sign in to comment.