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
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
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(
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
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.
5 matches
Mail list logo