W liście Ben Bangert z dnia środa, 22 sierpnia 2007 17:51: > > That's somewhat deceptive, but it is actually threadsafe. From the > mappers __init__: > self.req_data = threadinglocal.local() > > And the mapper.environ attribute is a property that looks like this: > def _envget(self): > return getattr(self.req_data, 'environ', None) > def _envset(self, env): > self.req_data.environ = env > def _envdel(self): > del self.req_data.environ > environ = property(_envget, _envset, _envdel) > > So setting environ actually is setting req_data, which is a thread > local.
Thanks. -- Paweł Stradomski --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
