[web2py] web2py is not starting with python 3.0/3.1

2013-06-24 Thread Pradeeshnarayan
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

[web2py] How to start web2py at server reboot

2013-06-05 Thread Pradeeshnarayan
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

[web2py] Date comparison in datetime field

2013-01-29 Thread Pradeeshnarayan
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

[web2py] show a wait message until the form.accepts completes.

2012-12-31 Thread Pradeeshnarayan
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

[web2py] ABS function inside DAL query

2012-12-20 Thread Pradeeshnarayan
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

[web2py] Target in Menu links

2012-11-22 Thread Pradeeshnarayan
Is there any way to specify the target while creating menu. My requirement is, some menu I wanted to open in a new window. --

[web2py] Re: Problem with DAL query self join

2012-09-20 Thread Pradeeshnarayan
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

[web2py] Problem with DAL query self join

2012-09-20 Thread Pradeeshnarayan
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

[web2py] redirect with method POST

2012-09-07 Thread Pradeeshnarayan
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. --

[web2py] Re: Authenticate one application from another application

2012-08-31 Thread Pradeeshnarayan
> > 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

[web2py] Authenticate one application from another application

2012-08-31 Thread Pradeeshnarayan
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