The web2py book - Chapter 6 says:
*DAL Rows*
is the object returned by a database select. It can be thought of as a list
of Row rows:
rows = db(db.mytable.myfield != None).select()
*Row* contains field values.
for row in rows:
print row.myfield
Why does my code:
rows = db(db.auth_
I have tested this and for me it returns the emails properly.
Check if len(rows)==4
If NO, you are connected to a different database or so,
if YES, there is some setting to make/skip table sub-objects. So try both:
row.email, row.auth_user.email
Dne pátek 26. května 2017 13:08:39 UTC+2 Arth
Tried to create a custom formstyle by copying existing one from sqlhtml.py
(formstyle_table3cols) to my_formstyle in my controller
and set the grid formstyle=my_formstyle
but got an error :
formstyle not found
I can see that there is a formstyles Storage in sqlhtml.py so itryed to
add
form
Hi,
I would like to have Semantic UI in my application. However the
SQLFORM.grid has Bootstrap by default. Is there "the right" way to
implement SQLFORM.grid with SemanticUI?
Can somebody point me into the right direction?
Thanks,
Kristjan
--
Resources:
- http://web2py.com
- http://web2py.co
No, the correct command line format is shown here:
http://web2py.com/books/default/chapter/29/04/the-core#Parameters
You're not starting a web server, just a Python process to act as a worker
for the scheduler.
Anthony
On Thursday, May 25, 2017 at 8:12:00 PM UTC-4, Dave S wrote:
>
> I've final
You can compare time here by using the relational operators. Access the
current time by using 'request.now' (its value will be in same format as
'update_on' field of your table) then you can just compare it as :
if (dbquery).updated_time > request.now:
//do something
On Thursday, July
I am a novie in coding. Please help me out.
How to create a drop down form that shows the user the data specific to a
record?
For example, in this code I have the data stored for a number of cricket
players. In this drop down list, I want to just show the data specific to
the player chosen from
You have to use a view to work with the list returned by the function.
Both, the view and the funcion with the same name or using
response.view="view_name.html"
El miércoles, 24 de mayo de 2017, 10:23:05 (UTC+2), sunda...@gmail.com
escribió:
>
> Hello,
>
>
> i have a form, when i fill it, it
Or you can use ':eval' as the third argument as Anthony says and return
'%s%s' % (ASIGNJS(your_js_var=your_python_list),
'your_js_code_for_manipulating_the_list')
This way you can manipulate your list with js in client side, but I prefer
using a view if the html code is more than one or two li
I dunno how this affects me and not everyone else who uses this tool. It
looks like the default JSON serializer for web2py has a huge flaw. But if
that were true, it would have been noticed by lots 'o people before. So it
must be impure thinking on my part.
My objects are being serialized wi
On Friday, May 26, 2017 at 6:35:54 AM UTC-7, Anthony wrote:
>
> No, the correct command line format is shown here:
> http://web2py.com/books/default/chapter/29/04/the-core#Parameters
>
> You're not starting a web server, just a Python process to act as a worker
> for the scheduler.
>
> Anthony
It's me again...
And, while we're at it, shouldn't the test of "isinstance(o, XmlComponent)"
actually be "issubclass(o.__class__, XmlComponent)?" The former fails on
all of the helpers which are subclasses of DIV because "isinstance" only
checks the direct parent, it does not check up the "tre
I have a function shove() with decorator @request.restful(), and as part of
moving to https, I have a check for https and redirect if it isn't s-full.
@request.restful()
def shove():
if not request.is_https:
redirect(URL(shove, args=request.args, scheme=https, host=True))
def POST
13 matches
Mail list logo