Problems
   2. django/core/serializers/__init__.py: _load_serializers() is
unsafe, patch attached to #FIXME:

Where can I found the patch? Where is "#FIXME:" ? ;)

On 8 Лип, 16:07, mrts <[EMAIL PROTECTED]> wrote:
> I reviewed threading in Django and found a few problems, one of which
> is serialization.
> Seehttp://code.djangoproject.com/wiki/DjangoSpecifications/Core/Threadin...
> .
>
> Fix was contributed to the most eminent one in #6950, but I never got
> to fixing serialization.
> The fix is easy though, just use a temporary as demonstrated in
> "BETTER" 
> athttp://code.djangoproject.com/wiki/DjangoSpecifications/Core/Threadin...
>
> On Jul 8, 3:56 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
> wrote:
>
> > On Tue, 2008-07-08 at 05:49 -0700, sector119 wrote:
> > > HI All!
>
> > > I have to deserialize, serialize objects in multiple threads with
> > > django serializers.
>
> > > But when I run Deserializer =
> > > serializers.get_deserializer(SERIALIZATION_FORMAT) in my threads (more
> > > then one, with _one_ thread all works great) I get KeyError in
> > > get_serializer function at `return _serializers[format].Deserializer`
> > > line because _load_serializers does not load all data at _serializers
> > > dict before another tread run get_deserializer at this another thread
> > > and completely populate serializers dictionary with all, builtin and
> > > user-defined serializers!
>
> > Sounds like a possible explanation. Please open a ticket for it so this
> > doesn't get forgotten.
>
> > Regards,
> > Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to