Re: Routes problem (not thread safe?)

2009-02-10 Thread carlos

Thank you Philip, I've updated to routes 1.10.3 (it needs WebOb so
I've installed it too) and at the moment it works fine.

Carlos.



On 9 feb, 21:16, Philip Jenvey pjen...@underboss.org wrote:
 On Feb 9, 2009, at 2:47 AM, carlos wrote:



  Hi, I'm using Pylons 0.9.6.1, with Routes 1.7.3 and Python 2.5.
  inspecting de variables with the traceback debugger, I see that var
  is always a str, but self.prior is sometimes a dict ( {'type': ':',
  'name': 'format'} ) and sometimes a str (but it also raises the
  TypeError exception, as if it was a dict!). It seems some kind of
  thread problem, because I repeat the same request and it works fine.
  Is this a known bug or maybe I'm doing something wrong?

 Yes, this was a bug -- create_regs was not thread safe. According to  
 the changelog this was fixed in the 1.9 release.

 --
 Philip Jenvey
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Routes problem (not thread safe?)

2009-02-09 Thread Philip Jenvey


On Feb 9, 2009, at 2:47 AM, carlos wrote:

 Hi, I'm using Pylons 0.9.6.1, with Routes 1.7.3 and Python 2.5.

 inspecting de variables with the traceback debugger, I see that var
 is always a str, but self.prior is sometimes a dict ( {'type': ':',
 'name': 'format'} ) and sometimes a str (but it also raises the
 TypeError exception, as if it was a dict!). It seems some kind of
 thread problem, because I repeat the same request and it works fine.
 Is this a known bug or maybe I'm doing something wrong?


Yes, this was a bug -- create_regs was not thread safe. According to  
the changelog this was fixed in the 1.9 release.

--
Philip Jenvey

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---