Re: Error in ajax request

2010-12-02 Thread Andre Terra
Ah, gotcha. What was I thinking? It's pretty obvious now :P On Thu, Dec 2, 2010 at 21:37, pjrhar...@gmail.com wrote: > On Dec 1, 2:43 am, Andre Terra wrote: > > Noob question here: why would it need limit=5 if the funcion has default > > values? > > Even if it has a default value, you still need

Re: Error in ajax request

2010-12-02 Thread pjrhar...@gmail.com
On Dec 1, 2:43 am, Andre Terra wrote: > Noob question here: why would it need limit=5 if the funcion has default > values? Even if it has a default value, you still need to call it to get your decorator. As someone wrote above, its a function that returns a decorator, not actually a decorator. S

Re: Error in ajax request

2010-11-30 Thread Andre Terra
Noob question here: why would it need limit=5 if the funcion has default values? Best regards, Andre Terra On Mon, Nov 29, 2010 at 20:17, Daniel Roseman wrote: > On Nov 29, 8:28 pm, James Matthews wrote: > > Hi, > > > > When I use this rate limiterhttp:// > www.levigross.com/post/1721427025/d

Re: Error in ajax request

2010-11-30 Thread David De La Harpe Golden
On 29/11/10 22:17, Daniel Roseman wrote: > (Actually I'm not sure that 'callable decorator' is the right term > here, but I can't think of a better one. Is there a canonical name for > this sort of thing?) PEP 318 just says "function that returns a decorator" (which is a bit of a mouthful) "The

Re: Error in ajax request

2010-11-29 Thread Daniel Roseman
On Nov 29, 8:28 pm, James Matthews wrote: > Hi, > > When I use this rate > limiterhttp://www.levigross.com/post/1721427025/django-rate-limitingand > preform an > ajax request I get this error > > django/middleware/common.py", line 84, in process_response >     if response.status_code == 404: > A

Error in ajax request

2010-11-29 Thread James Matthews
Hi, When I use this rate limiter http://www.levigross.com/post/1721427025/django-rate-limiting and preform an ajax request I get this error django/middleware/common.py", line 84, in process_response if response.status_code == 404: AttributeError: 'function' object has no attribute 'status_cod