747480367b
Enables excluded pep8 checks and fixes existing the related errors Change-Id: Ib3a909d79b9726567c1cebf5881d1878d91ee052
16 lines
419 B
Python
Executable File
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)
|