Permalink
Browse files

Updated datamosh to use the new DictShield metaclass system

  • Loading branch information...
1 parent 80a02ec commit 2e2dcb9fca23df244adc60f0f6b0da926f99fee0 James Dennis committed Mar 21, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 brubeck/datamosh.py
View
6 brubeck/datamosh.py
@@ -39,7 +39,8 @@ class OwnedModelMixin(EmbeddedDocument):
"""
owner_id = UUIDField(required=True)
owner_username = StringField(max_length=30, required=True)
- meta = {'mixin': True}
+ class Meta:
+ mixin = True
class OwnedHandlerMixin:
@@ -62,7 +63,8 @@ class StreamedModelMixin(EmbeddedDocument):
"""
created_at = MillisecondField(default=0)
updated_at = MillisecondField(default=0)
- meta = {'mixin': True}
+ class Meta:
+ mixin = True
class StreamedHandlerMixin:

0 comments on commit 2e2dcb9

Please sign in to comment.