marrow / schema

A generic declarative schema system.
MIT License
6 stars 3 forks source link

Define a basic typecasting API. #2

Closed amcgregor closed 8 years ago

amcgregor commented 10 years ago

To assist with the generic implementation of ORM (or widget) style data access attributes some form of automatic to/from typecasting will be needed.

To reduce code duplication these casters should be external to the attribute classes themselves and merely referenced as a class attribute on the same.

Basically transfer that bit from marrow.tags and expand to cover similar transformations as MongoEngine.

amcgregor commented 8 years ago

Done.