Re: [web2py] Updated cheatsheet

2012-09-05 Thread Massimo Di Pierro
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: >>

Re: [web2py] Updated cheatsheet

2012-09-05 Thread rif
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 shoul

Re: [web2py] Updated cheatsheet

2012-09-05 Thread Massimo Di Pierro
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

2012-09-05 Thread rif
Maybe the otherwise param should appear in the cheatsheet: @auth.requires_login(otherwise=URL(...)) --

Re: [web2py] Updated cheatsheet

2012-09-04 Thread Niphlod
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

2012-09-04 Thread Bruno Rocha
So I assume cache.ram.clear() will do the job ? --

Re: [web2py] Updated cheatsheet

2012-09-04 Thread Niphlod
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 o

Re: [web2py] Updated cheatsheet

2012-09-04 Thread Bruno Rocha
Small question.. cache.ram.clear(regex='*') will clear the whole cache? --

[web2py] Updated cheatsheet

2012-09-04 Thread Massimo Di Pierro
http://web2py.com/examples/static/web2py_cheatsheet.pdf --