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
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
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
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
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
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
6 matches
Mail list logo