[web2py] Re: web2py freezing

2010-07-03 Thread Rowdy
mdipierro wrote: Do you see any issue with memory usage? Overall it is difficult to tell as the server runs a few large processes, including several big Java processes and a number of other Python daemons, so overall memory usage (which is being graphed by Cacti) is a bit all over the place

[web2py] Re: web2py freezing

2010-07-03 Thread Rowdy
Candid wrote: Every now and again there is a BUG: unable to handle kernel paging request at virtual address b79b3000, always in the web2py Python process, and web2py more or less hangs. Where do you see this error message? In /var/log/syslog. I usually `grep Oops /var/log/syslog` to see

[web2py] Re: web2py freezing

2010-07-03 Thread Rowdy
mdipierro wrote: please upgrade to 1.79.2 and see if you still get the problem. Massimo This is a production system and downtime would be troublesome - are there any differences between 1.76.5 and 1.79.2 that I should be aware of? I have cron jobs, XML-RPC functions and a bunch of data entry

[web2py] Re: Admin app (or much of it) can work on appengine

2010-07-03 Thread mdipierro
I would stick to one. On 2 Lug, 23:51, Richard richar...@gmail.com wrote: would it make sense to have a separate admin app for GAE with tickets, appadmin, and whatever else works? Otherwise I imagine admin will get messy. On Jul 3, 2:36 am, JimK jkel...@gmail.com wrote: After a few minor

[web2py] Re: No module named google.appengine.api

2010-07-03 Thread mdipierro
yes. sorry On 2 Lug, 23:55, Richard richar...@gmail.com wrote: did you mean to say the source distribution? On Jul 2, 11:04 pm, mdipierro mdipie...@cs.depaul.edu wrote: Make sure you use the binary distribution of web2py and you start web2py using dev_appserver web2py or the

[web2py] Re: web2py freezing

2010-07-03 Thread mdipierro
It should be completely backward compatible. Without the new version is difficult for me to help debug the problem. On 3 Lug, 02:34, Rowdy ro...@netspace.net.au wrote: mdipierro wrote: please upgrade to 1.79.2 and see if you still get the problem. Massimo This is a production system and

[web2py] using onmouseover within a form

2010-07-03 Thread sarsar
Hi , i am learning and it might be easy , but i cant do it. In the book example for jQuery effects , i am trying to catch the mouse when it is over the name or the married selection , to show some help or instructions for this specific field or selection . I understand that i have to use the

[web2py] Re: using onmouseover within a form

2010-07-03 Thread mdipierro
this should do it script jQuery(document).ready(function() {jQuery('#tablename_married').mouseover(function(){... do something ... });}); /script where I assume the married field refers to table tablename. On 3 Lug, 03:27, sarsar sarsara...@gmail.com wrote: Hi , i am learning and it might

Re: [web2py] Re: using onmouseover within a form

2010-07-03 Thread sarados saradopoulos
Thanks , i will try and report back. One more question .Does any slice from web2pyslices contains this functionality ? I mean ex. multiselect with explanations for each selection when an event occurs ? Thanks again

[web2py] Re: local_import

2010-07-03 Thread Iceberg
Sorry gentlemen, I don't get it. First of all, the new implementation, even with the latest bugfix, does not use the force parameter at all, neither python reload(). I reckon that Jose did not test the reload feature when he said Now works!. Actually now the reload feature is gone. Second, I

[web2py] Will rocket close connections if it takes long time?

2010-07-03 Thread Iceberg
Hi Candid and everyone, Candid mentioned rocket should close the connections if request is taking longer than 10 seconds (default timeout) in here [1]. Would somebody clarify, is that true? My concern is that, one of my old app need some periodical maintenance job which could take dozes of

Re: [web2py] Re: Filtered search of db by dropdown selection

2010-07-03 Thread Giuseppe Luca Scrofani
Thanks friend, I view this mail now, too late unfortunately. But I saved this for future use. Thanks again :) On Thu, Jul 1, 2010 at 7:45 PM, Candid roman.bat...@gmail.com wrote: model: db = DAL('sqlite://storage.sqlite') db.define_table('thing', Field('category'), Field('year', 'integer'))

Re: [web2py] Re: Change submit text in generic submit button

2010-07-03 Thread Giuseppe Luca Scrofani
Thanks this worked well :)

[web2py] Re: built in web2py datepicker bug with Google Chrome

2010-07-03 Thread Iceberg
On Jul1, 8:01pm, Iceberg iceb...@21cn.com wrote: On Jun30, 4:56am, Jean-Guy jean...@gmail.com wrote: Hello, Is there other user that are having datepicker coming blank when changing the year or mouth couples of time with Google Chrome? I test it with firefox no problem. I use web2py

Re: [web2py] Re: How to insert _blank in A html helper

2010-07-03 Thread Giuseppe Luca Scrofani
This solved my problem, thanks :) Like this: A( B('link name'),  _href = URL(r=request, f='show', args=x.id), _target = _blank ) Hope this helps, - Yarko

[web2py] Re: local_import

2010-07-03 Thread Jose
On 3 jul, 08:05, Iceberg iceb...@21cn.com wrote: Sorry gentlemen, I don't get it. First of all, the new implementation, even with the latest bugfix, does not use the force parameter at all, neither python reload(). I reckon that Jose did not test the reload feature when he said Now works!.

[web2py] Re: built in web2py datepicker bug with Google Chrome

2010-07-03 Thread mdipierro
No. I did not get it. On 3 Lug, 06:28, Iceberg iceb...@21cn.com wrote: On Jul1, 8:01pm, Iceberg iceb...@21cn.com wrote: On Jun30, 4:56am, Jean-Guy jean...@gmail.com wrote: Hello, Is there other user that are having datepicker coming blank when changing the year or mouth couples

[web2py] Re: local_import

2010-07-03 Thread mdipierro
It is true that force is ignored. That is because __import__ always reloads. This may seem slower but actually it may be faster than the previous solution using exec with force=False. he reason for the change is that the new implementation is supposed to be equivalent, cleaner and faster. Does it

[web2py] Re: Will rocket close connections if it takes long time?

2010-07-03 Thread mdipierro
The web server threads MUST have a timeout (the shorter the better) else they are vulnerable to denial of service attacks. On 3 Lug, 06:23, Iceberg iceb...@21cn.com wrote: Hi Candid and everyone, Candid mentioned rocket should close the connections if request is taking longer than 10 seconds

[web2py] Re: Will rocket close connections if it takes long time?

2010-07-03 Thread Iceberg
Thanks for clarifying. And I take a glance into gluon/widget.py, main.py and rocket.py to confirm there is some timeout=10. So from the design aspect, I'd better avoid expecting a long-run request to finish my app's time-consuming maintenance job. On the other hand, I confirmed that, with latest

[web2py] Re: Will rocket close connections if it takes long time?

2010-07-03 Thread mdipierro
Let's wait for Tim to respond. The timeout should be enforced. On 3 Lug, 09:07, Iceberg iceb...@21cn.com wrote: Thanks for clarifying. And I take a glance into gluon/widget.py, main.py and rocket.py to confirm there is some timeout=10. So from the design aspect, I'd better avoid expecting a

[web2py] Re: upload bug in filename

2010-07-03 Thread Swell
ok i hae done that and it complains about IOError: [Errno 2] No such file or directory: 'a

[web2py] Initiating table

2010-07-03 Thread Rick
Hi, I would like to link a table to its own model like this: db.define_table('person', Field('name'), Field('child', db.person)) I understand that I should first initiate the table and then link it to itself. But how to do that? Thanks in advance for

[web2py] Re: Initiating table

2010-07-03 Thread Yarko Tymciurak
The online book has a fairly useful search; For your question, see: http://web2py.com/book/default/section/6/13 Regards, - Yarko On Jul 3, 8:45 am, Rick sababa.sab...@gmail.com wrote: Hi, I would like to link a table to its own model like this:         db.define_table('person',            

Re: [web2py] Re: Initiating table

2010-07-03 Thread Rick Hultgren
Thanks for the link. My actual problem is more complicated than the example I gave. I realize that I need to link a field to a table that isn't initiated yet (item2): objects = ['substance', 'process', 'condition', 'locus'] linksubobjects = ['locus', 'before', 'after']

[web2py] Re: Initiating table

2010-07-03 Thread Yarko Tymciurak
On Jul 3, 12:14 pm, Rick Hultgren sababa.sab...@gmail.com wrote: Thanks for the link. My actual problem is more complicated than the ...a sure sign you need to simplify - either the way you look at it, or the way you represent .. (it isn't clear to me what you are trying to implement --- I do

Re: [web2py] for fun

2010-07-03 Thread Jason Brower
First time I saw it I didn't get it. Then they said think about it as a webdeveloper and I laughed until I had tears. BR, Jason On Thu, 2010-07-01 at 14:33 -0700, mdipierro wrote: http://www.youtube.com/watch?v=R2a8TRSgzZY

[web2py] Re: Initiating table

2010-07-03 Thread mdipierro
Could you explain to us in English what you are trying to model? I am sure there is a simpler solution using link tables. On 3 Lug, 12:14, Rick Hultgren sababa.sab...@gmail.com wrote: Thanks for the link. My actual problem is more complicated than the example I gave. I realize that I need to

[web2py] Re: for fun

2010-07-03 Thread mdipierro
I was thinking, every time I enter into a contract I am going to require that the client sees it. On 3 Lug, 13:28, Jason Brower encomp...@gmail.com wrote: First time I saw it I didn't get it.  Then they said think about it as a webdeveloper and I laughed until I had tears. BR, Jason On Thu,

[web2py] Re: Will rocket close connections if it takes long time?

2010-07-03 Thread Timbo
Rocket has a longer default wait time before it closes connections in comparison to CherryPy. You might check web2py code, it is not likely using the same default timeout as Rocket proper. See: http://packages.python.org/rocket/usage.html#timeout This is a DoS vulnerability on CherryPy but not

[web2py] Ticket when accessing table from appadmin

2010-07-03 Thread weheh
I'm getting the following ticket when trying to access one of the tables in my db via tha appadmin interface. Any ideas? Traceback (most recent call last): File C:\web2py\gluon\restricted.py, line 178, in restricted exec ccode in environment File

[web2py] Re: for fun

2010-07-03 Thread weheh
So true. So real. So sad. Makes one grind one's teeth at night.

[web2py] Re: for fun

2010-07-03 Thread weheh
The sequel: http://www.youtube.com/watch?v=HyTpzgAW5NANR=1