Sorry. Should not be fixed in trunk. Thanks for reporting this problem.
On Tuesday, 17 July 2012 05:14:48 UTC-5, marius.v.niekerk wrote:
>
> I have some code that works as follows
>
> @cache('key', 60, cache_model=cache.ram)
> @cache('key', 60, cache_model=cache.disk)
> def f()
> .... do stuff
> return dict(....)
>
> I do the dual cache thing since the ram cache is not shared between
> processes that get spawned by Apache.
>
> The recent changes to gluon/cache.py involving
>
> particularly
>
> File "C:\src\web2py\gluon\cache.py", line 477, in tmp
> action.__name___ = func.__name__
> AttributeError: 'CacheAction' object has no attribute '__name__'
>
> causes this to fail since the first @cache is a cache of a CacheAction
> which by this stage does not yet have a __name__
>
> I've added a __name__ = 'dummy' to the CacheAction __init__ but that feels
> like a bad solution.
>
> So
> Suggestions?
>
> regards
> Marius
>
--