Skip to content

Commit

Permalink
Delete unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaiarocci committed Jun 15, 2017
1 parent 98a1feb commit d5ec458
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -22,6 +22,7 @@ Version 0.8
Crochet).
- Change: Drop Flask-PyMongo dependency. Closes #855 (Artem Kolesnikov).
- Docs: code snippets are now Python 3 compatibile (Pahaz Blinov).
- Dev: Delete and cleanup of some unnecessary code.
- Dev: after the latest update (May 4th) travis-ci would not run tests on
Python 2.6.
- Dev: all branches are now tested on travis-ci. Previously, only 'master' was
Expand Down
9 changes: 0 additions & 9 deletions eve/flaskapp.py
Expand Up @@ -616,15 +616,6 @@ def _set_resource_defaults(self, resource, settings):
schema = settings.setdefault('schema', {})
self.set_schema_defaults(schema, settings['id_field'])

# list of all media fields for the resource
settings['_media'] = [field for field, definition in schema.items() if
definition.get('type') == 'media']

if settings['_media'] and not self.media:
raise ConfigException('A media storage class of type '
' eve.io.media.MediaStorage but be defined '
'for "media" fields to be properly stored.')

self._set_resource_datasource(resource, schema, settings)

def _set_resource_datasource(self, resource, schema, settings):
Expand Down

0 comments on commit d5ec458

Please sign in to comment.