I am trying to run a web2py application. Using python2.7 it is running
fine. But I want to use python higher version. When I try with python3.0 or
3.1, am getting an error as
Traceback (most recent call last):
File "/var/www/vhosts/astrozon/web2py/web2py.py", line 18, in
import gluon.wi
I have a web2py server running on port 8000 in my ubuntu server 10.4
and in apache conf I set a proxy pass to map server to a domain as
"ProxyPass / http://abc.com:8000/";
Right now after ubuntu reboot, I have to start again web2py server on port
8000 using nohup. (So it will run till next reboot
In my table I have a datetime field. In one condition I have to check only
date in that field, so I have tried as below
db(db.table_name.timestamp.date()==datetime.today.date())
but it is throwing error as 'AttributeError: 'Field' object has no
attribute 'date''.
I have tried both 'date()' and
In my Web2py application I have a form
form = FORM(
INPUT(_type='text')
...
...
,_ajax=True
)
if form.accepts(request,session):
do something
# This action will take some time to complete, So I need a waiting
message in users view, until this action completes
I would greately appr
In my web2py DAL query I want to calculate the absolute minimum value of a
field.
I am trying to convert this sql query to DAL (mysql database)
select MIN(ABS(field2)) from tbl_table where field1='abc';
I have tried like below, but not correct
result =
db(db.tbl_table.field1==value).select(ABS
Is there any way to specify the target while creating menu.
My requirement is, some menu I wanted to open in a new window.
--
gt;
> I do not not know but in the DAL query I see:
>
> db.tbl_objects.rlord
>
> In the original query I see tbl_objects.horid and tbl_alt_objects.rlord
> but not tbl_objects.rlord.
> I do not know the model but I suspect you simply have some typos.
>
>
> On Thursday, 2
I am trying to convert the below sql query to DAL query.
SQL query:
SELECT L1_alt_obj.objid,L1_obj.objid
FROM tbl_alt_objects
JOIN tbl_objects on tbl_objects.horid = tbl_alt_objects.horid
AND tbl_objects.objid = tbl_alt_objects.objid
LEFT JOIN tbl_objects L1_obj ON L1_obj.h
In my web2py application after a form submit, I want to redirect to another
page with some POST variables. I couldn't find any option to set then
method.
My main idea is to avoid those values from users.
I would greatly appreciate any suggestions.
--
>
> Anthony
>
> On Friday, August 31, 2012 6:06:19 AM UTC-4, Pradeeshnarayan wrote:
>>
>> I have two different web2py application. (different database)
>>
>> I have a requirement like. My second application (application2) can be
>> used by only users w
I have two different web2py application. (different database)
I have a requirement like. My second application (application2) can be used
by only users whose registered in the first application (application1).
I am planing to implement a login form in my application2. And on submit it
will send
11 matches
Mail list logo