Nicholas Jones 747480367b Enable pep8 checks
Enables excluded pep8 checks and fixes existing the related errors

Change-Id: Ib3a909d79b9726567c1cebf5881d1878d91ee052
2017-08-01 09:49:28 -05:00

16 lines
419 B
Python
Executable File

"""Base model module."""
from wsme.rest.json import tojson
from wsme import types as wtypes
class Model(wtypes.DynamicBase):
"""Base class for IMS models."""
def to_db_model(self):
"""Get the object's DB model."""
raise NotImplementedError("This function was not implemented")
def tojson(self):
"""Get the object's JSON representation."""
return tojson(type(self), self)