Mercurial > public > src > rhodecode
comparison pylons_app/lib/utils.py @ 194:3d1dd13887f9
invalidate the repo list also for online changes. Small fixes in LoginRequired decorator.
Cleaned hgwebdir config.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 22 May 2010 02:20:26 +0200 |
parents | 50a39f923f31 |
children | da59b7e07e3c |
comparison
equal
deleted
inserted
replaced
193:50a39f923f31 | 194:3d1dd13887f9 |
---|---|
89 baseui.setconfig(section, k, v) | 89 baseui.setconfig(section, k, v) |
90 | 90 |
91 return baseui | 91 return baseui |
92 | 92 |
93 def invalidate_cache(name, *args): | 93 def invalidate_cache(name, *args): |
94 """Invalidates given name cache""" | |
95 | |
94 from beaker.cache import region_invalidate | 96 from beaker.cache import region_invalidate |
95 log.info('INVALIDATING CACHE FOR %s', name) | 97 log.info('INVALIDATING CACHE FOR %s', name) |
96 | 98 |
97 """propaget our arguments to make sure invalidation works. First | 99 """propagate our arguments to make sure invalidation works. First |
98 argument has to be the name of cached func name give to cache decorator | 100 argument has to be the name of cached func name give to cache decorator |
99 without that the invalidation would not work""" | 101 without that the invalidation would not work""" |
100 tmp = [name] | 102 tmp = [name] |
101 tmp.extend(args) | 103 tmp.extend(args) |
102 args = tuple(tmp) | 104 args = tuple(tmp) |