[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
is either executed or you see the text contents... > > That being said, 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... >

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

2014-04-16 Thread sonu kumar
Thursday, April 17, 2014 2:36:48 AM UTC+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_

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

2014-04-16 Thread sonu kumar
ards > > On Thursday, April 17, 2014 1:02:12 AM UTC+2, sonu kumar wrote: >> >> 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. >>

[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 no

[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 opening

[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) - http://git

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

2013-12-23 Thread sonu kumar
s#Efficiency-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 >>

[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 value"),_name='prote

[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 happenin

Re: [web2py] Re: urllib2.URLError

2013-12-06 Thread sonu kumar
e 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 > > >> here is my Traceback... >> >> Traceback (most recent call la

[web2py] Re: urllib2.URLError

2013-12-06 Thread sonu kumar
9, in _open '_open', req) File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain result = func(*args) File "/usr/lib64/python2.6/urllib2.py", line 1190, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib64/python2.

[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 > error. > > I am using several times urllib f

[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'code302requestresponsehdrs On Friday, 6 December 2013 12:14:51 UTC-8, sonu kumar wrote: > > Hi Niphlod, > > same url working fine sometime but it gives error sometime. > I

[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 A

[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 error. I am using several times urllib for calling same weblinks for different mappingWill this cause problem??? params = {'from':'ID', 'to':'MEROPS_ID', 'format':'tab', 'query':'P22894'}

[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] 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

[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 fi

[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 = No

[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

Re: [web2py] Re: Loop problem

2013-11-12 Thread sonu kumar
t; for r in thmmdata: > dict123[r[0]].append(r[3]) # 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 > > > wrote: > >> cleavag

[web2py] Re: Loop problem

2013-11-12 Thread sonu kumar
ork to inspect the > variables and see 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 pars

[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: P1position residue Transmembranedomain C-mass {{for row in cleavage_res[2:]:}} {{=row[0]}} {{=row[1]}} {{for thm in thmmdata:}} {{if row[0] == thm[0

[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 "", line 1,

[web2py] Re: urllib2.HTTPError

2013-11-07 Thread sonu kumar
{'from':'ID', 'to':'P_ENTREZGENEID', 'format':'tab', 'query':mmpn} data6 = urllib.urlencode(params4) requestmmpn = urllib2.Request('http://www.uniprot.org/mapping/', data6) responsemmpn = urllib2.urlopen(req

[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: 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 Traceback: Traceback (most rec

[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 prot:',SELECT(values,_name='protease',_onchange="jQuery.post('%s',{'protease':jQue

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

2013-10-25 Thread sonu kumar
10:49:40 PM UTC+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 wrot

[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 s

[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 specif

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

2013-09-12 Thread sonu kumar
u could > create a JSON object or need to create an array of items. Each could have > it's own way of dealing with things. > BR, > Jason Brower > > > On Thu, Sep 5, 2013 at 9:16 AM, sonu kumar > > > wrote: > >> Hi, >> How to pass view python variabl

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

2013-09-04 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
turn dict( test=test) > > def callback(): > session.test = request.post_vars.test > > > On Thursday, 22 August 2013 11:55:56 UTC-5, sonu kumar wrote: >> >> Thanks Massimo. >> But still session.test is not storing value when I change value in view. >>

[web2py] Re: Store values from Select button

2013-08-22 Thread sonu kumar
27;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 1

[web2py] Re: Store values from Select button

2013-08-21 Thread sonu kumar
;Kumar', ],_name='test'),_onchange='') 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

[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 value