[web2py] Re: Rocket with urllib2 behavior [BUG?]

2011-02-06 Thread Timbo
If you've only got one thread running, then yes, this will deadlock on any threaded server. Rocket was certainly not made to not allow lookups back to itself. Where are you putting this code? If by assigning to response are you masking web2py's response object? I... 1) downloaded a fresh copy

[web2py] Re: Rocket with urllib2 behavior [BUG?]

2011-02-06 Thread Timbo
I had one more thought, does '/server/default/index' point to this code? If this is the case, then you have an infinite loop that consumes all available threads and deadlocks. Again, this is not a rocket-specific behavior. On Feb 6, 10:08 am, Timbo tfarr...@owassobible.org wrote: If you've

[web2py] Re: Rocket with urllib2 behavior [BUG?]

2011-02-06 Thread Timbo
. On Feb 6, 10:08 am, Timbo tfarr...@owassobible.org wrote: If you've only got one thread running, then yes, this will deadlock on any threaded server. Rocket was certainly not made to not allow lookups back to itself. Where are you putting this code?  If by assigning to response are you

[web2py] Re: memory leak - model remains in memory after requests

2010-12-25 Thread Timbo
So you do use caching? Is it RAM caching or disk caching? If RAM caching, it could be that running under Cherokee and uWSGI is deleting the environment that web2py is run in after a certain number of requests. This would reduce the usefulness of a RAM cache but would also produce the results

[web2py] Re: memory leak - model remains in memory after requests

2010-12-24 Thread Timbo
Thadeus, You seem to have more knowledge about this problem. Can you file a bug report? Did you know that Rocket was recently updated fixing several bugs (and creating one that has already be addressed). I'm not denying the possibility, but let's be a good open source community. David, If

[web2py] Re: Rocket 1.2

2010-12-03 Thread Timbo
Thanks Jonathan! Yes, that's all correct. I forgot about uploading new documentation but there are no significant changes in the documentation. The thread count advice for Jython still holds. -tim On Dec 3, 12:17 am, Jonathan Lundell jlund...@pobox.com wrote: Rocket 1.2.0 (web2py's embedded

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-12-01 Thread Timbo
, 10:37 am, Timbo tfarr...@owassobible.org wrote: I didn't mean to imply that the enhancements I'm planning for 1.2 (window speed) address this issue...just to be clear. @Jonathan: Yes we need to make numthreads map to max-threads and default it to 0 (unlimited) or a very high number.  The only

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-24 Thread Timbo
...@pobox.com wrote: On Nov 23, 2010, at 8:48 PM, Anthony wrote: On Nov 23, 9:26 pm, Jonathan Lundell jlund...@pobox.com wrote: On Nov 23, 8:10 pm, Timbo tfarr...@owassobible.org wrote: Set numthreads=0 in your options.py.  See if you still see this behavior. options.py is just

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-23 Thread Timbo
Rocket is not dead but I did take several months off due to injury and a job change. I'm actually working on 1.2 which should see some performance improvements on Windows. I'll go download a copy of web2py and report back. -tim On Nov 22, 5:25 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote:

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-23 Thread Timbo
Set numthreads=0 in your options.py. See if you still see this behavior. -tim On Nov 23, 7:03 pm, Timbo tfarr...@owassobible.org wrote: Rocket is not dead but I did take several months off due to injury and a job change.  I'm actually working on 1.2 which should see some performance

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-23 Thread Timbo
: On Nov 23, 8:10 pm, Timbo tfarr...@owassobible.org wrote: Set numthreads=0 in your options.py.  See if you still see this behavior. options.py is just for running web2py as a Windows service, no? I'm not running web2py as a Windows service when I observe the problem

[web2py] Re: ssl and http web2py command line issues

2010-11-22 Thread Timbo
Dave, Sorry it's taken me so long to get back to you on this. I've taken a quick look at this and need a little more information. First of all, you're using one file as your key and your cert file. But the file you've supplied only contains a cert. Naturally it can't used as a key unless it

[web2py] Re: rocket performance issues

2010-07-22 Thread Timbo
Try one quick change for me please...rocket is constructed around line 655 in main.py Add a parameter to the constructor call(s): max_threads=0 Please let me know if that affects the problem. -tim On Jul 22, 10:34 am, mdipierro mdipie...@cs.depaul.edu wrote: I can reproduce the problem. I

[web2py] Re: rocket performance issues

2010-07-22 Thread Timbo
.  Latencies for .js/.css files reduced to 100-150 msec.  Thanks Tim! Cheers, Mike On Thu, Jul 22, 2010 at 12:27 PM, Timbo tfarr...@owassobible.org wrote: Try one quick change for me please...rocket is constructed around line 655 in main.py Add a parameter to the constructor call(s

[web2py] Re: web2py performance issue or rather my fault?

2010-07-21 Thread Timbo
Can you get me a debug log of the problem as I described earlier? On Jul 21, 8:49 am, Kuba Kucharski kuba.kuchar...@gmail.com wrote: therefore your problem is not the same that some other problems experienced with apache/WSGI. exactly, look at Iceberg, Rahul, MikeEllis in this thread I

[web2py] Re: Rocket cache response

2010-07-20 Thread Timbo
jlund...@pobox.com wrote: On Jul 19, 2010, at 10:05 AM, Timbo wrote: It's defaulting to text/html since it's not actually sending a file. This is a section of the HTTP spec that I missed. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.htmlsaysthat no entity headers (Content

[web2py] Re: Rocket cache response

2010-07-19 Thread Timbo
requested some features for Rocket. I'm limiting development to essentials right now because of a case of dual-arm tendinitis. Thanks. On Jul 19, 12:11 pm, Jonathan Lundell jlund...@pobox.com wrote: On Jul 19, 2010, at 10:05 AM, Timbo wrote: It's defaulting to text/html since it's not actually

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

2010-07-07 Thread Timbo
it would take to add this feature. Stay tuned. Whether or not Massimo thinks this feature would be good for web2py is up to him, but even if added, it would not be the Rocket default. -tim On Jul 7, 9:13 am, Iceberg iceb...@21cn.com wrote: I have different opinion, Candid. As Timbo and I have

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

2010-07-04 Thread Timbo
is not performed at all, is it? So the rocket timeout protection is not activated anyway. -- Iceberg On Jul4, 9:26am, Timbo tfarr...@owassobible.org wrote: Rocket has a longer default wait time before it closes connections in comparison to CherryPy.  You might check web2py code

[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] Re: Built-in Webserver

2010-01-09 Thread Timbo
would ? So you don't currently run a setup where you got to choose how it runs? I guess readers should take your comments with a grain of salt considering that in another thread you admit to being a young developer with not much experience. That's ok. It's good to start out conservative and

[web2py:37940] Re: Editor from browser

2009-12-28 Thread Timbo
If you build it, I will come. =) On Dec 28, 6:34 am, Joan Miller pelok...@gmail.com wrote: On 27 dic, 19:50, mdipierro mdipie...@cs.depaul.edu wrote: Ideally I would like to have a better web based IDE fully coded in JS. An IDE coded in JS? That can be a thing of the past, in a short time.

[web2py:37907] Re: Editor from browser

2009-12-27 Thread Timbo
A more featureful admin app would be nIce but I support Massimo in keeping the current one. A point of clarification, Bespin is merely an editor. Their goal is to eventually create an IDE but it is far from that at present. Other problems include no IE support and it suffers from the same

[web2py:37183] Re: Python 2.6 Errata

2009-12-14 Thread Timbo
Note to those reading. The fix for this bug was applied and release in 1.74.1 http://groups.google.com/group/web2py/browse_thread/thread/b33cb890cdd0a5a9 -tim On Dec 4, 9:46 am, mdipierro mdipie...@cs.depaul.edu wrote: Thank you! On Dec 4, 9:13 am, Timbo tfarr...@swgen.com wrote

[web2py:36449] Python 2.6 Errata

2009-12-03 Thread Timbo
I've been trying to migrate my web2py applications to Python 2.6 and I ran across a nasty bug in Python 2.5 that is fixed in Py2.6, but it amounts to a backward-incompatibility. The bug fixed is: http://bugs.python.org/issue3801 Basically this happens in a POST request where a variable is both

[web2py:36450] Re: Python 2.6 Errata

2009-12-03 Thread Timbo
? Massimo, is that expected behavior that we want for web2py? -tim On Dec 3, 1:17 pm, Timbo tfarr...@swgen.com wrote: I've been trying to migrate my web2py applications to Python 2.6 and I ran across a nasty bug in Python 2.5 that is fixed in Py2.6, but it amounts to a backward-incompatibility

[web2py:36217] Re: ext js

2009-11-30 Thread Timbo
ExtJS is not part of Pyjamas or GWT. It is a very advanced and powerful toolkit but doesn't compare well with jQuery (which is just a library). They serve different purposes. jQuery is for websites while ExtJS is for web-applications. There is some overlap, but most people don't need or want a

[web2py:35920] Re: Crashing on Updating to 1.72.3

2009-11-24 Thread Timbo
Did you use your options.py file from the old installation? There were some new options added somewhere along the line where if they are not present in the options file, it will crash. Unrelated to this issue, I noticed that the default value of response.flash changed in revision 1234. I'm

[web2py:35921] Re: Using web2py with jython

2009-11-24 Thread Timbo
need to demo our web2py app on Friday and we use some Java for SOAP/WSDL stuff as SOAPpy is not up for it. Stress :-) Thanks, HC On 9 Nov., 21:15, mdipierro mdipie...@cs.depaul.edu wrote: This is clearly a Java bug. A major one. I love the won't fix On Nov 9, 12:33 pm, Timbo tfarr

[web2py:35082] Re: Python + C++ = Go

2009-11-11 Thread Timbo
Another language? I don't like the syntax much. It's Python + C# + C++. While I sometimes miss curly braces in python (it makes scope more clear in my mind), I do not miss the: - pointers - references - boilerplate code On the plus side, I agree with Massimo, this makes IPC and shared memory

[web2py:35016] Re: Using web2py with jython

2009-11-10 Thread Timbo
to look into that. -tim On Nov 9, 1:15 pm, mdipierro mdipie...@cs.depaul.edu wrote: This is clearly a Java bug. A major one. I love the won't fix On Nov 9, 12:33 pm, Timbo tfarr...@swgen.com wrote: No difference. I think this is the bug we're dealing with: http://bugs.sun.com/bugdatabase

[web2py:35033] Re: Accessing Web2Py services via ExtJS

2009-11-10 Thread Timbo
I've thought about it but that's it. If you're willing to do it yourself, here are some helpful links of some django options that could be ported over: http://github.com/gsancho/extdirect.django http://code.google.com/p/django-rest-interface/ On Nov 10, 8:58 am, Don sam...@gmail.com wrote:

[web2py:35051] Re: installing web2py on Ubuntu

2009-11-10 Thread Timbo
That's so cool...but why so many unnecessary packages? mc, g++, emacs, ssh, build_essential, zip, unzip, openssh-server, postfix ??? Many of these are great packages and necessary for a well-run server (except emacs, build_essential, g++), but do they belong in a web2py install script? My take

[web2py:35052] Re: Using web2py with jython

2009-11-10 Thread Timbo
 am, Timbo tfarr...@swgen.com wrote: As it turns out, Java has a fair number of nasty WONT-FIX bugs. In my above documented attempt where it couldn't delete the file...there's a WONT-FIX bug for that: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4715154 No wonder ppl hate Java

[web2py:34934] Re: Using web2py with jython

2009-11-09 Thread Timbo
Jython does support TCP_NODELAY, but it does so in the Java fashion...that is to say only on a client socket. The short story is this: most platforms allow you to set socket options to server (accepting) sockets and the accepted (client) sockets that come from them inherit the options from the

[web2py:34956] Re: Using web2py with jython

2009-11-09 Thread Timbo
thought it was fixed. On Nov 9, 7:53 am, Timbo tfarr...@swgen.com wrote: Jython does support TCP_NODELAY, but it does so in the Java fashion...that is to say only on a client socket.  The short story is this: most platforms allow you to set socket options to server (accepting) sockets

[web2py:34958] Re: flexible routes

2009-11-09 Thread Timbo
Because web2py exec()s controllers rather than importing them, packages are not currently an option. Whats you're reason for needing packages? Maybe we can help you find a better solution. On Nov 9, 4:18 am, eggy_ markflorisso...@gmail.com wrote: Hello, I want to divide my controller logic

[web2py:34959] Re: web2py and keyed tables

2009-11-09 Thread Timbo
You are my hero. If you ever make your way down to Oklahoma I'll take you out for a steak dinner or something. On Nov 8, 8:46 am, mdipierro mdipie...@cs.depaul.edu wrote: Denese. You did a fanstatic job. This was needed for some time. On Nov 8, 7:38 am, DenesL denes1...@yahoo.ca wrote: A)

[web2py:34969] Re: Using web2py with jython

2009-11-09 Thread Timbo
a Linux user to test this? -tim On Nov 9, 10:00 am, mdipierro mdipie...@cs.depaul.edu wrote: I cannot reproduce this with jython2.5rc3 on mac. On Nov 9, 9:52 am, Timbo tfarr...@swgen.com wrote: No need, it blows up for me on the admin interface.  I have no special customizations.  I'm

[web2py:34980] Re: Using web2py with jython

2009-11-09 Thread Timbo
{{='hello world'}/body/html htmlbody{{='''hello world'''}/body/html htmlbody{{=hello world}/body/html htmlbody{{=hello world}/body/html which ones break? Any, none? Please email me privately. Massimo On Nov 9, 11:07 am, Timbo tfarr...@swgen.com wrote: OK so I downloaded fresh

[web2py:34170] Re: web2py uglyness

2009-10-30 Thread Timbo
I like the idea and I am very much against ugliness...however: d = local_import('a.b.c') is way uglier in my book than: import a.b.c as d Asthetics aside, it does not solve the original problem very well. The problem is not being able to do: import c as d when d is in apps/init/modules

[web2py:34171] Re: Google Groups is Dead

2009-10-30 Thread Timbo
: - Provides working search-ability (sorry Groups still sucks hard in this area) Timbo - Can you explain what you mean by groups in pyforum (and any suggestions you may have that might be useful to implement)? (if this goes a bit off-topic, feel free to reply to me directly) - Thanks

[web2py:34177] Re: web2py uglyness

2009-10-30 Thread Timbo
can: mod_name = local_import('mod_name') and it will pull it in as import mod_name would if applications/ appname/modules were added to sys.path. For Massimo, I still think you should switch the force param to reload for clarity reasons. -tim On Oct 30, 8:01 am, Timbo tfarr...@swgen.com wrote

[web2py:33912] Re: Google Groups is Dead

2009-10-28 Thread Timbo
The forum option has been discussed multiple times. Let me (once again) throw in my support for it. pyForum: - Provides working search-ability (sorry Groups still sucks hard in this area) - Allows one to still receive emails - Fills a gap for those of us who want to keep up with the community

[web2py:33913] Re: Google Groups is Dead

2009-10-28 Thread Timbo
:09 am, Timbo tfarr...@swgen.com wrote: The forum option has been discussed multiple times.  Let me (once again) throw in my support for it. pyForum: - Provides working search-ability (sorry Groups still sucks hard in this area) - Allows one to still receive emails - Fills a gap for those

[web2py:33856] Re: Python 3.1

2009-10-27 Thread Timbo
Just so you guys know, I'm watching Python 3.x very closely and in some places helping it along. Here are the things that need to happen before Python 3.x becomes a viable web-platform (for a new project): - The email module need to be fixed (it hasn't been rebuilt to handle the unicode

[web2py:33133] Re: vim for the admin editor

2009-10-19 Thread Timbo
Yes, that's me. I'm on the list in digest mode. So I don't catch every conversation. I did contribute this Python parser to Codemirror a while ago. It is ok for most things. I haven't brought it up because I'm still trying to work through some annoyances. Maybe this is my perfectionism

[web2py:33134] Re: help with new html wysiwyg

2009-10-19 Thread Timbo
Not trying to be nit-picky, but ckeditor seems to be less buggy to me. When I maximize OWW, it does not properly scale vertically (FF 3.5 WinXP). I'm not sure how well it would handle the URL() situation. -tim On Oct 18, 8:55 pm, mdipierro mdipie...@cs.depaul.edu wrote: I have replaced the

[web2py:32953] Re: FYI: Ext JS Designer Preview

2009-10-15 Thread Timbo
Negative. jQuery-UI does not (yet) have an IDE. There are two main types of Javascript libraries: - Help enhance a designed page (jQuery, Prototype+Scriptaculous, Mootools, Dojo, ExtCore) - Generally these are used to AJAX goodness to an already pretty page - Help build a web application (YUI,

[web2py:31256] Re: help with web server

2009-09-18 Thread Timbo
to Python 3 and/or lightweight Stackless python threads (althought the pros/cons are not quite clear to me). I am also thinking about rewriting the accepting mechanism to include some of the features of asynchronous servers. Massimo On Sep 18, 7:44 am, Timbo tfarr...@swgen.com wrote: Line 215

[web2py:30727] Re: Any comments on Tornado Server?

2009-09-11 Thread Timbo
According to the Performance section of their documentation, they recommend running one instance of Tornado per processor core on your server and then joining them together behind a nginx reverse proxy. Looking at the graph, this makes the top bar an apples to oranges comparison with the rest of

[web2py:30407] Re: database is locked

2009-09-08 Thread Timbo
 am, Timbo tfarr...@swgen.com wrote: Since upgrading to the new version, I'm getting this error about once daily: Traceback (most recent call last):   File C:\web2py\gluon\main.py, line 405, in wsgibase     SQLDB.close_all_instances(SQLDB.commit)   File C:\web2py\gluon\sql.py

[web2py:30398] database is locked

2009-09-08 Thread Timbo
Since upgrading to the new version, I'm getting this error about once daily: Traceback (most recent call last): File C:\web2py\gluon\main.py, line 405, in wsgibase SQLDB.close_all_instances(SQLDB.commit) File C:\web2py\gluon\sql.py, line 594, in close_all_instances action(instance)

[web2py:29866] Re: YAL - yet another logo

2009-09-02 Thread Timbo
+1 Let's stick with what we got. It's simple, elegant, modern and recognizable. On Sep 2, 6:54 am, desfrenes desfre...@gmail.com wrote: I don't like. Idea is good, realisation is bad. On 2 sep, 13:46, weheh richard_gor...@verizon.net wrote: Ahhh ... the mythic board presentation to the

[web2py:29814] Missing sorttable.js

2009-09-01 Thread Timbo
I just updated web2py from an (several months-) older version. My error-handling page broke but that's no big deal because I was using unpublished APIs. I also noticed that the admin interface references sorttable.js, but it does not include this file. I get 404 messages. Is this missing or

[web2py:28901] Re: test on IBM AS/400 iSeries System i

2009-08-18 Thread Timbo
14, 4:12 pm, Timbo tfarr...@swgen.com wrote: This is really cool!  Good Job! Perhaps you can get around 1 by having Apache handle the encryption and 2 by not using cron? I believe IBM's version of Apache server does not handle wsgi but I might be wrong. That would mean installing Apache

[web2py:28618] Re: logo

2009-08-14 Thread Timbo
I think you're missing all the over-whelming votes for A. The mix that you propose looks lop-sided (what to do with that big, black space). I too like A the best with the sans-serif font. If you have space to fill in a new website design, then your better bet is to add some detail to the A

[web2py:28655] Re: test on IBM AS/400 iSeries System i

2009-08-14 Thread Timbo
This is really cool! Good Job! Perhaps you can get around 1 by having Apache handle the encryption and 2 by not using cron? I can't wait for the how-to. I'd love to have this working on our AS400. -tim On Aug 14, 2:50 pm, DenesL denes1...@yahoo.ca wrote: Two issues: 1) I created the key

[web2py:28355] Re: viability test on IBM AS/400 i5 iSeries ...

2009-08-11 Thread Timbo
I haven't recently. It's likely that the one you downloaded is not the one I tried. Have you tried unzipping it on a PC? Does it give the same error? On Aug 10, 1:53 pm, DenesL denes1...@yahoo.ca wrote: Thanks, but when I try to unpack ActivePython-2.5.4.4-aix5- powerpc.tar.gz I get: tar:

[web2py:28296] Re: viability test on IBM AS/400 i5 iSeries ...

2009-08-10 Thread Timbo
I tried to get a PASE version running a while ago with no luck. But I am not adept at AS400 use. You could try ActivePython's distribution: http://www.activestate.com/activepython/downloads Let me know how it goes. I would love to be able to move some of my apps over to our AS400 for nothing

[web2py:28307] Re: viability test on IBM AS/400 i5 iSeries ...

2009-08-10 Thread Timbo
The link I included has an AIX 5.x version of Python which I used at a former employer. It works very well on AIX, I just had trouble with AS400 PASE. What I'm saying is, I was an AS400 noob at the time and so I could hardly tell the difference between PASE and OS400. It might still be a

[web2py:28088] Re: Fwd: My thoughts on web2py

2009-08-06 Thread Timbo
It's been a while since I've been around but this seems to be an important discussion that I'd like to weigh in on. Massimo is right. Most of Armin's critiques are thought-out design decisions. The perceived problems from just looking at the code don't play out in reality due to being either a

[web2py:20889] Re: zk-Direct

2009-04-30 Thread Timbo
Take a look at ExtJS or Smartclient. They have many of the same capabilities but are Javascript based rather than Java based. Most experienced web-devs will tell you, just learn Javascript, it's not that hard, and you'll be glad you did. Most studies show that the speed gains of GWT-style

[web2py:10089] Re: Dispatcher

2008-10-11 Thread Timbo
The only part about what you said that I don't think I get is: --- Ideally all of the processing of routes.py should be done in a separate WSGI plugin module since there is no need to modify web2py to implement this functionality. It would be sufficient to look for web2py_error in the HTTP