Re: [Django] #21555: ValidationError is not picklable

2013-12-07 Thread Django
#21555: ValidationError is not picklable
--+-
 Reporter:  zanuxzan  |Owner:  nobody
 Type:  Bug   |   Status:  closed
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:  fixed
 Keywords:| Triage Stage:  Ready for checkin
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+-
Changes (by Loic Bistuer ):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"a8f4553aaecc7bc6775e0fd54f8c615c792b3d97"]:
 {{{
 #!CommitTicketReference repository=""
 revision="a8f4553aaecc7bc6775e0fd54f8c615c792b3d97"
 Fixed #21555 -- Made ValidationError pickable.

 Thanks trac username zanuxzan for the report and original patch.
 }}}

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.f21116165fd4c88b1ea9b5f96c533c71%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21555: ValidationError is not picklable

2013-12-05 Thread Django
#21555: ValidationError is not picklable
--+-
 Reporter:  zanuxzan  |Owner:  nobody
 Type:  Bug   |   Status:  new
Component:  Forms |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Ready for checkin
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+-
Changes (by timo):

 * component:  Uncategorized => Forms
 * stage:  Accepted => Ready for checkin


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.d525b896c71a764e6dd0162e166e7548%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Django] #21555: ValidationError is not picklable

2013-12-03 Thread Django
#21555: ValidationError is not picklable
---+
 Reporter:  zanuxzan   |Owner:  nobody
 Type:  Bug|   Status:  new
Component:  Uncategorized  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  1  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by loic84):

 * cc: loic@… (added)
 * needs_docs:   => 0
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * stage:  Unreviewed => Accepted


Comment:

 It's a good idea as PY2 can't pickle naive exceptions see:
 http://bugs.python.org/issue1692335 (fix was backported all the way to
 python 3.2).

 Since we'd now be calling the constructor, I think it's good practice to
 pass all arguments so the `args` attribute holds meaningful information.

 I've completed the test suite to ensure the more complex scenarios like
 nested `ValidationError`, or `Validation` with `error_dict` behave as
 expected.

 PR https://github.com/django/django/pull/2022.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.2ed64c6e90eb5fa5ba75bbe691fbd7b3%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Django] #21555: ValidationError is not picklable

2013-12-03 Thread Django
#21555: ValidationError is not picklable
---+
 Reporter:  zanuxzan   |  Owner:  nobody
 Type:  Bug| Status:  new
Component:  Uncategorized  |Version:  master
 Severity:  Normal |   Keywords:
 Triage Stage:  Unreviewed |  Has patch:  1
Easy pickings:  0  |  UI/UX:  0
---+
 I have a use case where I'd like to pickle ValidationError however it
 throws up as error:

 For example, I'd expect the following to work:

 {{{#!python
 import pickle
 from django.core.exceptions import ValidationError
 pickle.loads(pickle.dumps(ValidationError('eggs', 'sausage')))
 }}}

 Results in:

 {{{
 TypeError: __init__() takes at least 2 arguments (1 given)
 }}}

 The reason for this is because ValidationError does not call super.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.ed2c9866738fff0ab9f4fbdf0d69893a%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.