Skip to content

Commit

Permalink
broken Model.update implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kanzure committed Jun 28, 2014
1 parent 52ba91d commit 34e9e28
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modelo/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
iteritems = py3compat.iteritems

from modelo.trait.trait_type import TraitType
import modelo.trait.trait_types as field

from modelo.model.util import getmembers

class MetaModel(type):
Expand Down Expand Up @@ -178,5 +180,9 @@ def create(cls, data=None):
def update(self, data):
"""
Update this model instance using the given data.
:param data: update the model with this data
:type data: dict
"""
raise NotImplementedError
for (key, value) in iteritems(data):
pass

0 comments on commit 34e9e28

Please sign in to comment.