naggie / crates

2013: Crates, a media database with immutability, federation and filesystem mapping, playlists for DJing
MIT License
5 stars 2 forks source link

ImmutableFile export for serialise #26

Closed naggie closed 8 years ago

naggie commented 8 years ago

Could be a mixin that accepts a subset of keys.

Importantly, includes the class name in the class key. Returns a Dict that can be JSON serialised.

Could also define an import ClassMethod, however that should be the same as creating an instance without the extra key.

naggie commented 8 years ago

Could just be handled by the view as it currently is. It's more of a view than it is a model.