spiral-project / daybed

Form validation and data storage API
http://daybed.rtfd.org/
BSD 3-Clause "New" or "Revised" License
53 stars 8 forks source link

Move JSON compatibility right along couchdb storage #151

Closed Natim closed 10 years ago

Natim commented 10 years ago

99 says it has been merged but I am not sure.

@leplatrem could you have a look and see if it matches what you wanted?

leplatrem commented 10 years ago

Yes I guess that's ok.

I think that each backend should be in charge of formatting the input data to its own formalism.

However, since JSON serialization of colander.null or datetime might occur in several backends, we could have a couple of shared helpers methods.

Let's say we keep it this way so far, and refactor in case we add more JSON-based backends...

Natim commented 10 years ago

So should we close or merge this PR?

elemoine commented 10 years ago

How can this be considered mergeable by GitHub? It looks like the code has changed a lot since https://github.com/spiral-project/daybed/commit/4153e8aaf145ca119d2c9fb9e12327409eaffd94 – the put_data_item method does even exist anymore in the master branch as far as I can tell. Just saying… I may be wrong.

leplatrem commented 10 years ago

Yes, forget about this one. It's already (in another form) in master : https://github.com/spiral-project/daybed/blob/master/daybed/schemas/validators.py#L73-L96