[web2py] Re: Simple left sidebar example

2016-01-05 Thread Paul McDonald
On Tuesday, January 5, 2016 at 5:03:19 PM UTC-5, Paul McDonald wrote: > > Can anyone post a simple example of a View with a left sidebar? > I must be missing something. It looks so simple in the manual "5.7 Blocks > in views". > Thank you in advance. Paul > Sti

[web2py] Simple left sidebar example

2016-01-05 Thread Paul McDonald
Can anyone post a simple example of a View with a left sidebar? I must be missing something. It looks so simple in the manual "5.7 Blocks in views". Thank you in advance. Paul -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source c

[web2py] Am I correct that the | operator has multiple meanings

2015-04-07 Thread Paul McDonald
For queries the | means or: >>> rows = db((db.person.name=='Alex') | (db.person.id>3)).select() ↖ here it is an or You can sort the records according to multiple fields by concatenating them with a "|": >>> for row in db().select(

[web2py] Help with two python operators

2015-03-28 Thread Paul McDonald
In the web2py Application Development Cookbook: page 69 the | operator alphabetical = User.first_name|User.last_name *← | what is this doing??* page 82 the &= operator if not form: # search flatpage according to the current request query = db.flatpage.c==request.controller

[web2py] Help with two Python operators

2015-03-28 Thread Paul McDonald
In the Web2py Application Development Cookbook: p82the &= operators if not form: # search flatpage according to the current request query = db.flatpage.c==request.controller query &= db.flatpage.f==request.function *<- what is going on here?* if request.args: query &= db.