[web2py] Re: question about webfactional
Pai, The solution to your problem is described in this thread: http://groups.google.com/group/web2py/browse_thread/thread/504dd2deff41f8f4/156e920088c11b85#156e920088c11b85 Basically you have to log on to webfaction via terminal/ssh and manually create a directory in your remote web2py/applications directory. You can then upload and install a packed web2py app via the web interface. Kind regards, Annet.
[web2py] Re: question about webfactional
I give write permission to the entired web2py folder. still the same error. do i have to restart web2py? if so, how do i do that? i came from a window world. On May 7, 11:13 pm, mdipierro wrote: > probably a file permission issue. > > On May 7, 11:09 pm, Pai wrote: > > > Hi, > > > I sign up for webfactional and ask them to install web2py for my > > framework. They have it back to me within a couple of hours! I'm > > trying to start an application now but when I click on create, I got > > an error that said > > > "unabled to create application "test". " > > > I made some web2py app from my local host before and never had this > > problem. Where can I find where is the problem coming from? Anybody > > experiencing this problem? > > > Thanks in adance! > > > Pai
Re: [web2py] Re: Bug and fix about IS_DATE_IN_RANGE()
On May 7, 2010, at 4:39 PM, mdipierro wrote: > Done. I added one test each. we should have more tests in gluon/tests > we have none, only doctests for validators. Yes, we should (though doctests are nice documentation for validators). There's a plugin for nose that will run doctests along with unit tests. > > On May 7, 4:26 pm, Jonathan Lundell wrote: >> On May 7, 2010, at 9:30 AM, Iceberg wrote: >> >>> Right now, IS_DATE_IN_RANGE(minimum=foo, maximum=bar) does NOT accept >>> the given minimum nor maximum value. That is not the design intention >>> according to error message. Please get rid off the two equal marks in >>> IS_DATE_IN_RANGE.__call__(). >> >>> Same applies to IS_DATETIME_IN_RANGE. >> >> Anybody who patches this: please add the relevant doctests.
[web2py] Re: question about webfactional
probably a file permission issue. On May 7, 11:09 pm, Pai wrote: > Hi, > > I sign up for webfactional and ask them to install web2py for my > framework. They have it back to me within a couple of hours! I'm > trying to start an application now but when I click on create, I got > an error that said > > "unabled to create application "test". " > > I made some web2py app from my local host before and never had this > problem. Where can I find where is the problem coming from? Anybody > experiencing this problem? > > Thanks in adance! > > Pai
[web2py] question about webfactional
Hi, I sign up for webfactional and ask them to install web2py for my framework. They have it back to me within a couple of hours! I'm trying to start an application now but when I click on create, I got an error that said "unabled to create application "test". " I made some web2py app from my local host before and never had this problem. Where can I find where is the problem coming from? Anybody experiencing this problem? Thanks in adance! Pai
Re: [web2py] Error in template.py
O.O, my bad, Sent Massimo a patch. -- Thadeus On Fri, May 7, 2010 at 8:56 PM, Jose wrote: > name in self.lexers:\nTypeError: argument > of type \'NoneType\' is not iterab
[web2py] Re: Error in template.py
I think it is fixed. Can you try trunk again? On May 7, 8:56 pm, Jose wrote: > after updating this error occurs: > > line 514, in parse\n if name in self.lexers:\nTypeError: argument > of type \'NoneType\' is not iterable\n' > > Jose
[web2py] Re: Reverse Search with .like
You might want to try something like this:. from gluon.sql import Expression db(table1.field1.like(Expression("('%' || table2.field2 || '%')".select(db.table1.field1) Not very pretty, but it does work. On May 8, 9:13 am, mdipierro wrote: > Can you try > > from gluon.sql import Query > print db(Query(" '%' || NEW.field_1 || '%' LIKE table_1.field_1 > "))._select(db.table_1.field_1) > > Do you get the query you want? > > On May 7, 10:48 am, AsmanCom wrote: > > > It returns nothing... even if I write in the exact value and it should > > work like a fuzzy logic.. > > like that: > > > find_value= request.vars.value > > > db('%' + table_1.field_1 + > > '%').lower().like(find_value).select(db.table_1.field_1) > > > or > > > db('%' + table_1.field_1 + '%').lower().like('%' + find_value + > > '%').select(db.table_1.field_1) > > > Any Idea? > > > On 7 Mai, 17:03, mdipierro wrote: > > > > This should work > > > > db("'%' || NEW.field_1 || '%' LIKE > > > table_1.field_1").select(db.table_1.field_1) > > > > On May 7, 9:35 am, AsmanCom wrote: > > > > > Hi, > > > > > here is the important Code from an Sqlite trigger i use very often, is > > > > this possible with web2py to? > > > > > Sqlite: > > > > (SELECT table_1.field_1 FROM table_1 WHERE '%' || NEW.field_1 || '%' > > > > LIKE table_1.field_1 ) > > > > > or i can even do: > > > > > (SELECT table_1.field_1 FROM table_1 WHERE '%' || NEW.field_1 || '%' > > > > LIKE '%' || table_1.field_1 || '%' ) > > > > > w2p: > > > > db.person.name.lower().like(‘m%’)
[web2py] Error in template.py
after updating this error occurs: line 514, in parse\nif name in self.lexers:\nTypeError: argument of type \'NoneType\' is not iterable\n' Jose
[web2py] Re: When will the web2py book open to all editing?
My take. Keep things separate. I got the book both times and knowing the source had a lot if not the majority of weight in my decision. I think that more input to a site such as web2pyslices is a good complement for the book. On May 7, 5:23 pm, mdipierro wrote: > LOL. > > People who ask to be editors of the book and have proven > qualifications can email me and ask permissions. for now everybody can > add wiki pages to the book and they are editable. > > On May 7, 4:18 pm, Thadeus Burgess wrote: > > > I do not want to go in and clean up "trash" if there is a way to > > prevent it from getting there in the first place. > > > -- > > Thadeus > > > On Fri, May 7, 2010 at 4:16 PM, Patrick wrote: > > > > On May 7, 12:32 pm, waTR wrote: > > >> I was just wondering if there are plans to open the book wiki to > > >> editing to everyone (even if you don't create an account). There is no > > >> danger in doing that...there are plenty of people who will clean up > > >> any garbage... > > > > You would be surprised. Many sites that did allow editing without > > > logging in have either disabled editing or you now have to get > > > permissions/authorization to do so. Personally I don't feel it should > > > be opened up for anonymous editing. Doing so would just add more work, > > > I'd rather have Massimo and the rest of the guys focusing on web2py. > > > (Just my 2 cents)
[web2py] Re: Bug and fix about IS_DATE_IN_RANGE()
Done. I added one test each. we should have more tests in gluon/tests we have none, only doctests for validators. On May 7, 4:26 pm, Jonathan Lundell wrote: > On May 7, 2010, at 9:30 AM, Iceberg wrote: > > > Right now, IS_DATE_IN_RANGE(minimum=foo, maximum=bar) does NOT accept > > the given minimum nor maximum value. That is not the design intention > > according to error message. Please get rid off the two equal marks in > > IS_DATE_IN_RANGE.__call__(). > > > Same applies to IS_DATETIME_IN_RANGE. > > Anybody who patches this: please add the relevant doctests.
Re: [web2py] Bug and fix about IS_DATE_IN_RANGE()
On May 7, 2010, at 9:30 AM, Iceberg wrote: > Right now, IS_DATE_IN_RANGE(minimum=foo, maximum=bar) does NOT accept > the given minimum nor maximum value. That is not the design intention > according to error message. Please get rid off the two equal marks in > IS_DATE_IN_RANGE.__call__(). > > Same applies to IS_DATETIME_IN_RANGE. Anybody who patches this: please add the relevant doctests.
[web2py] Re: Web2py crashing
Let us know what you discover. On May 7, 3:57 pm, David Zejda wrote: > Yes, vanilla hardware (some dual core Intel). I'm running the latest > web2py now, but it was crashing even with about half year old version > (1.73 or so), so the issue is probably not webserver specific. The > process is in ps ax no more when crashes. Currently the server is > being accessed through Apache proxy. Maybe I'll find a while to test > it with mod_wsgi. > > Thanks :) > > On May 7, 4:00 pm, Timothy Farrell wrote: > > > Is this standard hardware? The only place I've seen Python crash is on > > non-standard hardware (AS400) with a non-supported build of Python. > > > Web2py recent switched from Cherrypy's wsgiserver to Rocket (which I > > wrote) as of version 1.77.2 (I think). Which version are you running? > > > With built-in web-servers, the listening for connections and the > > response processing all happens in the same Linux Process. So if it > > stops listening, do you still see the process in 'top' or 'px ax'? If > > so, then, Yes, the whole process crashed (in which case it is more > > likely the Python interpreter); otherwise, there would likely be a bug > > somewhere in web2py that we can address. > > > You could also try Apache+mod_wsgi to see if that changes things. > > > -tim > > > On 5/7/2010 8:36 AM, David Zejda wrote: > > > > AFAIK web2py uses cherrypy webserver, which listens as a daemon on > > > certain port. With crashing I mean that the listening process (web2py > > > with cherrypy at the background) suddenly terminates. I use standard > > > Python v 2.5.2 as packaged for Debian. > > > > David > > > > On May 7, 2:52 pm, Timothy Farrell wrote: > > > >> Can you be more specific on what you mean by "crashing"? Interpreted > > >> languages shouldn't crash and generally if they do it's something wrong > > >> with the interpreter. Are you using cPython? > > > >> On 5/7/2010 1:48 AM, David Zejda wrote: > > > >>> Hi, > > > >>> my web2py instance (about 1 pageviews, 30+ ajax requests > > >>> daily) crashes about daily. As a workaround I have a script which > > >>> (re)starts the server when either memory usage exceeds certain > > >>> threshold or when the server is completely down. I run the script from > > >>> cron every minute. > > > >>> #! /bin/sh > > > >>> A=`netstat -tlnp | grep 8000` > > >>> TIME=`date` > > >>> LOG='/var/log/web2py/keepalive.log' > > > >>> if [ "$A" ]; > > >>> then > > >>> B=`echo $A | cut -d " " -f 7` > > >>> PID=${B%/*} > > >>> MEM=`ps -p $PID -o vsz | tail -n 1` > > >>> if [ "$MEM" -gt 200 ]; > > >>> then > > >>> echo "$TIME $PID $MEM MEMORY">> $LOG > > >>> echo "Web2py memory $MEM on $TIME => restart." | mail > > >>> m...@mail.com -s 'Web2py fail!' > > >>> /etc/init.d/web2py restart > > >>> else > > >>> echo "$TIME $PID $MEM OK">> $LOG > > >>> fi > > >>> else > > >>> echo "$TIME FAIL">> $LOG > > >>> echo "Web2py failed on $TIME" | mail m...@mail.com -s 'Web2py > > >>> fail!' > > >>> /etc/init.d/web2py restart > > >>> fi > > > >>> I know I should find time to try to examine cause of memory leaking > > >>> with guppy-heapy. But I think the crashing is another issue, not > > >>> directly related to the leaking. Access logs revealed no direct > > >>> relation to any particular controller or function. Also, after web2py > > >>> upgrade it has not changed. > > > >>> Do you have any idea how to reveal the cause of crashing? > > > >>> Thanks! > > >>> David
[web2py] Re: When will the web2py book open to all editing?
LOL. People who ask to be editors of the book and have proven qualifications can email me and ask permissions. for now everybody can add wiki pages to the book and they are editable. On May 7, 4:18 pm, Thadeus Burgess wrote: > I do not want to go in and clean up "trash" if there is a way to > prevent it from getting there in the first place. > > -- > Thadeus > > On Fri, May 7, 2010 at 4:16 PM, Patrick wrote: > > > On May 7, 12:32 pm, waTR wrote: > >> I was just wondering if there are plans to open the book wiki to > >> editing to everyone (even if you don't create an account). There is no > >> danger in doing that...there are plenty of people who will clean up > >> any garbage... > > > You would be surprised. Many sites that did allow editing without > > logging in have either disabled editing or you now have to get > > permissions/authorization to do so. Personally I don't feel it should > > be opened up for anonymous editing. Doing so would just add more work, > > I'd rather have Massimo and the rest of the guys focusing on web2py. > > (Just my 2 cents)
[web2py] Re: jquery click function problem
Because s are not executed in ajax loaded content. It is a browser thing. It is not in the specs. You can doHello div>Worldthis will work because the code is executed onclick and not on ajax load. Massimo On May 7, 12:22 pm, salbefewrote: > Hello, > > First of all, I think I should say sorry because probably this is not > the correct place to post the following problem but I'm getting crazy. > > My problem with jquery is as follows: > > On a view I have a form that is submited via web2py ajax method. > Something like this > > [] > > > > This form is submited like this: > >