[web2py] Not able to handle serveral requests in parallel

2015-07-24 Thread sonu kumar
Hi All, I am facing issues with handling several request in parallel from same user. When I submit one job and then simultaneously try to open my server homepage in new tab, it waits until first one finishes. I went through some earlier answers regarding this and came to know that there is some

[web2py] Re: Hosting separate web2py application and PHP application on same apache fedora server

2014-04-17 Thread sonu kumar
, this is not really connected with web2py in any way. On Thursday, April 17, 2014 2:57:11 AM UTC+2, sonu kumar wrote: When I open my catdb application on web it says browser could not find... there is one php.conf file in /etc/httpd/conf.d/ my php application is totally independent of web2py

[web2py] Hosting separate web2py application and PHP application on same apache fedora server

2014-04-16 Thread sonu kumar
I am running one web2py application on fedora webserver. Now I would like to run one PHP application on this same server, but I am not able to configure its httpd.conf file. At the moment my web2py application setting in httpd.conf file is below in black and red is for my PHP application but

[web2py] Re: Hosting separate web2py application and PHP application on same apache fedora server

2014-04-16 Thread sonu kumar
directive in your PHP vhost... The other things I notice are the typos: you have catdb subdomain, catpdb document root and caspdb directory. At least one of those is a clear typo. Apache logs are quite helpful with these stuff. Regards On Thursday, April 17, 2014 1:02:12 AM UTC+2, sonu

[web2py] Re: Hosting separate web2py application and PHP application on same apache fedora server

2014-04-16 Thread sonu kumar
+2, sonu kumar wrote: I just corrected all typos and deleted Deny from all and also added ErrorLog /data/www/html/caspdb/error_log but still not working as well as nothing is written in error_log file On Wednesday, 16 April 2014 17:04:58 UTC-7, LightDot wrote: First thing that jumps at me

[web2py] web2py administrative interface issue

2014-01-07 Thread sonu kumar
Hi, Today I was trying to access my application via web2py administrative interface but one of my application was not opening on 'edit' click in 'manage' button. It waits and throws a internal server error. Till yesterday it was working fine... Whereas other application like 'example' is

[web2py] download file

2014-01-06 Thread sonu kumar
Hi, I have an application, which takes query in a form and after submitting this form result comes in upload folder in text file which I want to download. Please let me know how to download this. Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

Re: [web2py] server slow down when face multiple requests

2013-12-23 Thread sonu kumar
-and-scalability? Paolo On Sunday, December 22, 2013 1:48:56 AM UTC+1, viniciusban wrote: If you're using sqlite or migrations are enabled, this can be a bottleneck. On Fri, Dec 20, 2013 at 7:28 PM, sonu kumar sonu.bioi...@gmail.com wrote: Hi All, I have built one application using

[web2py] server slow down when face multiple requests

2013-12-20 Thread sonu kumar
Hi All, I have built one application using web2py and running on Apache server on unix environment. During testing of this application what I found is slowing down of my application when two users from different computer request my application or submit any job. I have no idea why it is

[web2py] javascript in controller

2013-12-20 Thread sonu kumar
Hi, When I use below code in controller to show form. It works fine but when I see html source of html page...it shows some charachters...which is shown in red below. how to remove them? form=FORM(TABLE(TR('Select protease:',SELECT(values,requires=IS_NOT_EMPTY(choose one

[web2py] Re: urllib2.URLError

2013-12-06 Thread sonu kumar
Hi Niphlod, same url working fine sometime but it gives error sometime. I tried several times this query. On Friday, 6 December 2013 11:54:21 UTC-8, Niphlod wrote: its a problem on the url you're requesting, not web2py's. On Friday, December 6, 2013 1:34:29 AM UTC+1, sonu kumar wrote: Hi

[web2py] Re: urllib2.URLError

2013-12-06 Thread sonu kumar
Also I have seen this errorbut I am not getting it why it is happening msg'Moved Temporarily'code302requesturllib2.Request instanceresponseaddinfourl at 140652686281616 whose fp = Nonehdrshttplib.HTTPMessage instance On Friday, 6 December 2013 12:14:51 UTC-8, sonu kumar wrote: Hi Niphlod

[web2py] Re: urllib2.URLError

2013-12-06 Thread sonu kumar
Any update. I am struggling with this error... On Thursday, 5 December 2013 16:34:29 UTC-8, sonu kumar wrote: Hi All, In my application I am trying to call external weblink to map data but it always gives me class 'urllib2.URLError' urlopen error timed out error. I am using several

[web2py] Re: urllib2.URLError

2013-12-06 Thread sonu kumar
.py, line 1190, in http_open return self.do_open(httplib.HTTPConnection, req) File /usr/lib64/python2.6/urllib2.py, line 1165, in do_open raise URLError(err) URLError: urlopen error timed out On Thursday, 5 December 2013 16:34:29 UTC-8, sonu kumar wrote: Hi All, In my application I am

Re: [web2py] Re: urllib2.URLError

2013-12-06 Thread sonu kumar
fp = None On Friday, 6 December 2013 16:40:13 UTC-8, Michele Comitini wrote: the error is URLError: urlopen error timed out increase the timeout here to 300: responsemerops = opener.open('http://www.uniprot.org/mapping/', data, timeout=30) and see what happens 2013/12/7 sonu kumar

[web2py] urllib2.URLError

2013-12-05 Thread sonu kumar
Hi All, In my application I am trying to call external weblink to map data but it always gives me class 'urllib2.URLError' urlopen error timed out error. I am using several times urllib for calling same weblinks for different mappingWill this cause problem??? params = {'from':'ID',

[web2py] problem in sending mail

2013-12-04 Thread sonu kumar
Hi All, I am not able to send email via my application. here is my code..I don't know where I am doing mistake, but it is working fine with gmail setup. from gluon.tools import Mail mail = Mail() mail.settings.server = 'xx.x.x.xx:25' mail.settings.sender = 'ad...@xyz.org' mail.settings.login =

[web2py] Re: problem in sending mail

2013-12-04 Thread sonu kumar
Hi Alan, I checked as you said..it gives mail.result ={} mail.error = gaierror(-2, 'Name or service not known') On Wednesday, 4 December 2013 14:48:00 UTC-8, Alan Etkin wrote: as my IT dept told me that this smtp does not need any login...this smtp direct send mail and it is working fine

[web2py] Re: problem in sending mail

2013-12-04 Thread sonu kumar
Thanks Alan. It is working now..with this script from gluon.tools import Mail mail = Mail() mail.settings.server = 'localhost' mail.settings.sender = 'x...@xxx.org' mail.settings.login = None mail.settings.tls = None thanks On Wednesday, 4 December 2013 14:55:59 UTC-8, sonu kumar wrote

[web2py] redirect on error page by routes.py

2013-12-04 Thread sonu kumar
Hi All, I would like to redirect to error.html page upon internal error in my application. here is my code I am using it but not working..Please suggest me where I am doing wrong. routers = dict( # base router BASE=dict( default_application='myapp', ), ) routes_onerror

[web2py] how to upload multiple file in uploads folder

2013-11-20 Thread sonu kumar
Hi All, I need help in uploading multiple files from one form into upload folder. Here are my code which I am trying but not working at the moment. Controller: def user(): values= ['','MMP2', 'MMP3', 'MMP8', 'MMP9', 'MMP10', 'MMP14', 'MMP15', 'MMP16', 'MMP17', 'MMP24'] import shutil

[web2py] pop up message while running a background process

2013-11-14 Thread sonu kumar
Hi All, How do I pop up a message after form submission?? I have a form which takes query and after submission it takes approx 10-20 sec to execute my whole script in background. I would like to display a message something like your job is running and after completion of background process it

[web2py] Re: Loop problem

2013-11-12 Thread sonu kumar
what's happening. I also suggest you use css instead of font tags. Segunda-feira, 11 de Novembro de 2013 23:57:32 UTC, sonu kumar escreveu: Hi, I am trying to print my data in table from two parsed files in view : here is my code: table thead tr thP1brposition/th

Re: [web2py] Re: Loop problem

2013-11-12 Thread sonu kumar
]) # if position is not important # or # dict123[r[0]].insert(2, r[3]) # if postion is important Richard On Tue, Nov 12, 2013 at 12:06 PM, sonu kumar sonu.bioi...@gmail.comjavascript: wrote: cleavage_res contains: 10GSPAR-PRRLP 972.48117361.50 13ARPRR-LPLLS

[web2py] Loop problem

2013-11-11 Thread sonu kumar
Hi, I am trying to print my data in table from two parsed files in view : here is my code: table thead tr thP1brposition/th thresidue/th thTransmembranebrdomain/th thC-mass/th /tr /thead {{for row in cleavage_res[2:]:}} tbody tr class=gradeA td{{=row[0]}}/td

[web2py] Re: urllib2.HTTPError

2013-11-08 Thread sonu kumar
I checked my query it is working fine but I found error sometime when I run responsemmpn = urllib2.urlopen(requestmmpn) In first go it throws below error but second time I run this same command it works fine for me. Why this is happening?? Traceback (most recent call last): File stdin, line

[web2py] urllib2.HTTPError

2013-11-07 Thread sonu kumar
Hi All, I have made one webserver on web2py. It runs perfectly sometime and sometime it throws error: class 'urllib2.HTTPError' HTTP Error 404: Not Found I am not able to understand it this error. Why my application runs smoothly sometime and sometime throws this kind of error. Here is

[web2py] Re: urllib2.HTTPError

2013-11-07 Thread sonu kumar
On Thursday, 7 November 2013 16:22:18 UTC-8, sonu kumar wrote: Hi All, I have made one webserver on web2py. It runs perfectly sometime and sometime it throws error: class 'urllib2.HTTPError' HTTP Error 404: Not Found I am not able to understand it this error. Why my application runs smoothly

[web2py] Multiple forms with single submit button???

2013-10-25 Thread sonu kumar
Hello All, I have one question regarding putting one single button for multiple forms... At present I have 4 form and its corresponding submit buttons. Now I would like to have single button instead of four... I would like have a submit button which submit only those user entered value in

[web2py] Re: Multiple forms with single submit button???

2013-10-25 Thread sonu kumar
my goal is when user enter either of four form field value it goes to corresponding redirect page after pressing one submit button. thanks On Friday, 25 October 2013 12:49:31 UTC-7, Niphlod wrote: you can't post to the same page more than a form at a time (unlessajax is involved). For sure

[web2py] Re: Multiple forms with single submit button???

2013-10-25 Thread sonu kumar
+2, sonu kumar wrote: my goal is when user enter either of four form field value it goes to corresponding redirect page after pressing one submit button. thanks On Friday, 25 October 2013 12:49:31 UTC-7, Niphlod wrote: you can't post to the same page more than a form at a time (unlessajax

[web2py] Re: Multiple forms with single submit button???

2013-10-25 Thread sonu kumar
Now I have modified my code as you said but still not working...it is not redirecting def index(): values= ['','P2', 'P3', 'P8', 'P9', 'P10', 'P14', 'P15', 'P16', 'P17', 'P24'] protease = FORM('Select

Re: [web2py] How to pass web2py view python variable into javascript

2013-09-12 Thread sonu kumar
, 2013 at 9:16 AM, sonu kumar sonu.bioi...@gmail.comjavascript: wrote: Hi, How to pass view python variable into java script function? Thanks -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop

[web2py] How to pass web2py view python variable into javascript

2013-09-05 Thread sonu kumar
Hi, How to pass view python variable into java script function? Thanks -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com.

[web2py] Re: Store values from Select button

2013-08-22 Thread sonu kumar
:',SELECT(['Ram', 'Satish', 'Kumar', ],_name='test')) if test.process().acceped: session.test = test.vars.test return dict( test=test) On Wednesday, 21 August 2013 14:17:55 UTC-5, sonu kumar wrote: Hi, I have created select button through controller

[web2py] Re: Store values from Select button

2013-08-22 Thread sonu kumar
('Select name:',SELECT(['Ram', 'Satish', 'Kumar', ],_name='test')) if test.process().acceped: session.test = test.vars.test return dict( test=test) On Wednesday, 21 August 2013 14:17:55 UTC-5, sonu kumar wrote: Hi, I have created select button

[web2py] Re: Store values from Select button

2013-08-21 Thread sonu kumar
='') session.test = test.vars.test return dict( test=test) Thanks On Tuesday, 20 August 2013 17:47:34 UTC-7, sonu kumar wrote: Hi, I am new to web2py and trying to learn some basic features but facing prob. I would like to create select button and store

[web2py] Store values from Select button

2013-08-20 Thread sonu kumar
Hi, I am new to web2py and trying to learn some basic features but facing prob. I would like to create select button and store its selected value in a variable so that I can use in other function. Also I don't want to create submit button for select button. Is it possible to store selected