Skip to content

Commit

Permalink
Define an abstract class for database storage classes.
Browse files Browse the repository at this point in the history
Define DbStorageAbstract, an abstract class from which classes PgStorage, SQLiteStorage etc. will be inheriting. For now, the methods are not implemented in the abstract class.
  • Loading branch information
janpisl committed Jun 3, 2018
1 parent 7f00fa0 commit 89ab12a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pywps/inout/storage.py
Expand Up @@ -35,6 +35,24 @@ def store(self, output):
"""
pass

class DbStorageAbstract(object):
"""Database storage abstract class
"""

__metaclass__ = ABCMeta

@abstractmethod
def store(self, output):

pass


@abstractmethod
def _store_output(self, file_name, identifier):

pass



class DummyStorage(StorageAbstract):
"""Dummy empty storage implementation, does nothing
Expand Down

0 comments on commit 89ab12a

Please sign in to comment.