-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError at deserializing malformed Date and DateTime #111
Comments
Try replacing the forward slashes with dashes: colander.SchemaNode( On Thu, May 30, 2013 at 4:14 PM, Mathieu Leplatre
Vincent Catalano |
Oops. I meant to say: colander.SchemaNode(colander.DateTime()).deserialize('2013-05-31') works for me instead. On Thu, May 30, 2013 at 4:35 PM, Vincent Catalano <
Vincent Catalano |
Colander is supposed to raise |
Thank you! I've released Colander 1.0a5 with a fix.l |
Amazing ! Thanks :) |
Bad news : I now have a ValueError : https://github.com/spiral-project/daybed/blob/master/daybed/tests/test_types.py#L117
|
I can fix that... what is invalid about this line.. sorry, I can't tell from reading it: https://github.com/spiral-project/daybed/blob/master/daybed/tests/test_types.py#L119 |
You're right, it's not very clear to me either. With colander 1.0a2, I had :
Adding seconds seemed to sort this out :
|
With colander 0.9.9, problem of mandatory seconds for time is the same.
Do you want me to open another issue ? |
@leplatrem: The truncations were fixed in version 1.0a3 -- this bug was about a regression introduced in that fix. The fix for the regression was released in 1.0a5. Please don't open a new issue if you cannot reproduce with 1.0a5. |
Ok got it. Indeed, it's fixed in 1.0.0a5. So the only problem remaining is about
|
@leplatrem thanks, 5816554 should address that in the next release. |
Any ETA for the next release? |
Django 1.7 |
Version 1.0a2 is ok, it raises
Invalid
.Version 1.0a3 crashes, and raises
TypeError
:The text was updated successfully, but these errors were encountered: