Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#1047 closed defect (duplicate)

bug in decorator_from_middleware function

Reported by: junzhang.jn@… Owned by: Jacob
Component: Core (Cache system) Version:
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

when i use cache_page decorator in Python24, I found

@cache_page( 60 * 15 )
def some_view( request ):
    pass

not equals

def some_view( request ):
    pass
some_view = cache_page( some_view , 60 * 15 )

it equals

def some_view( request ):
    pass
some_view = cache_page(60*15)( some_view )

so i think zhe 'cache.txt' and zhe decorator_from_middleware function should be fixed for this bug.
bug i don't know how to do that.

BTW:the cache system is so cool. :D

Change History (2)

comment:1 by eugene@…, 19 years ago

Duplicate of #1015.

comment:2 by eugene@…, 19 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top