[patch] Beaker region_invalidate() problem

9 views
Skip to first unread message

Yannick Gingras

unread,
Jan 7, 2010, 11:20:50 PM1/7/10
to pylons-discuss

Greetings Pyloneers,
please find a patch for beaker on my bitbucket repo:

http://bitbucket.org/ygingras/beaker/

My previous fix was to allow invalidation when no args were passed to
the cache_region() decorator. However, it broke invalidation when
args were passed to the decorator. The current patch fixes both
cases. Both cases are also covered by unittests:
test_check_invalidate_region and and test_check_invalidate_region_2.
The later should probably be renamed to
test_check_invalidate_region_no_args unless you find that it's too
long and that doc strings should be prefered.

Cheers,

--
Yannick Gingras
http://ygingras.net
http://confoo.ca -- track coordinator
http://montrealpython.org -- lead organizer

signature.asc
Reply all
Reply to author
Forward
0 new messages