Re: [web2py] Updated cheatsheet
Small question.. cache.ram.clear(regex='*') will clear the whole cache? --
Re: [web2py] Updated cheatsheet
regex is applied with "match". "clear all the keys", i.e., match everything, is achieved with ".*" (for the regex "undergrads", "." means anything, "*" means repeated >= times). In the code there is a special case for clear(regex=None): it will delete all keys, without scanning all keys one by one and matching the regex (at least in cache.ram and cache.disk implementations) On Tuesday, September 4, 2012 7:50:20 PM UTC+2, rochacbruno wrote: > > > Small question.. > > cache.ram.clear(regex='*') will clear the whole cache? > --
Re: [web2py] Updated cheatsheet
So I assume cache.ram.clear() will do the job ? --
Re: [web2py] Updated cheatsheet
Watching the code, yes. PS: you can inspect with cache.ram.storage the actual dict cache. On Tuesday, September 4, 2012 8:33:53 PM UTC+2, rochacbruno wrote: > > So I assume cache.ram.clear() will do the job ? --
Re: [web2py] Updated cheatsheet
Maybe the otherwise param should appear in the cheatsheet: @auth.requires_login(otherwise=URL(...)) --
Re: [web2py] Updated cheatsheet
It should On Wednesday, 5 September 2012 09:57:30 UTC-5, rif wrote: > > Maybe the otherwise param should appear in the cheatsheet: > @auth.requires_login(otherwise=URL(...)) > > --
Re: [web2py] Updated cheatsheet
Also the cast parameter. Are the sources for the cheatsheet available so we can make patch suggestions? -rif miercuri, 5 septembrie 2012, 18:53:45 UTC+3, Massimo Di Pierro a scris: > > It should > > > On Wednesday, 5 September 2012 09:57:30 UTC-5, rif wrote: >> >> Maybe the otherwise param should appear in the cheatsheet: >> @auth.requires_login(otherwise=URL(...)) >> >> --
Re: [web2py] Updated cheatsheet
I will add the source to the web2py repo. On Wednesday, 5 September 2012 11:04:02 UTC-5, rif wrote: > > Also the cast parameter. Are the sources for the cheatsheet available so > we can make patch suggestions? > > -rif > > miercuri, 5 septembrie 2012, 18:53:45 UTC+3, Massimo Di Pierro a scris: >> >> It should >> >> >> On Wednesday, 5 September 2012 09:57:30 UTC-5, rif wrote: >>> >>> Maybe the otherwise param should appear in the cheatsheet: >>> @auth.requires_login(otherwise=URL(...)) >>> >>> --