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

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

2010-07-04 Thread Timbo
s expected, I only need the maintenance job can be > triggered and can run as long as it takes. > >     4. On the other hand, at least on Windows XP, python 2.5.4, by > default, socket has no socket.timeout, so the above check is not > performed at all, is it? So the rocket timeout protecti

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

2010-07-07 Thread Timbo
the effort 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 wrote: > I have different opinion, Candid. > > As Timbo and

[web2py] Re: Rocket cache response

2010-07-19 Thread Timbo
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.html says that no entity headers (Content-* should be sent in a 304 instance) I think I can have a patch by this evening. Howeve

[web2py] Re: Rocket cache response

2010-07-19 Thread Timbo
a side-note, some of you have 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 wrote: > On Jul 19, 2010, at 10:05 AM, Timbo wrote: > > > It's defaulting

[web2py] Re: Rocket cache response

2010-07-20 Thread Timbo
1am, Jonathan Lundell 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/

[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 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 was just pointi

[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 wrote: > I can reproduce the problem. I did on localhost with two

[web2py] Re: rocket performance issues

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

[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: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 viable

[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 wrote: > Thanks, but when I try to unpack ActivePython-2.5.4.4-aix5- > powerpc.tar.gz I get: > tar: 0511-169 A direc

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

[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 wrote: > Two issues: > > 1) I created the key and certificate

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

2009-08-18 Thread Timbo
ing (it's too integral I think). You must have a more complete PASE setup than I. -tim On Aug 17, 3:35 pm, DenesL wrote: > On Aug 14, 4:12 pm, Timbo wrote: > > > This is really cool!  Good Job! > > > Perhaps you can get around 1 by having Apache handle the encryption >

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

[web2py:29865] Re: Missing sorttable.js

2009-09-02 Thread Timbo
OK, cool. Thanks On Sep 1, 7:29 pm, mdipierro wrote: > this is a bug. I am removing the reference to it. > > On Sep 1, 1:53 pm, Timbo wrote: > > > I just updated web2py from an (several months-) older version.  My > > error-handling page broke but that's no

[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 wrote: > I don't like. Idea is good, realisation is bad. > > On 2 sep, 13:46, weheh wrote: > > > Ahhh ... the mythic board presentation to the hard-nosed businessmen. > > No women in t

[web2py:30407] Re: database is locked

2009-09-08 Thread Timbo
rote: > windows, mac, linux. Can you reproduce this error with trunk? > > On Sep 8, 9:13 am, mdipierro wrote: > > > The change you suggest is already in trunk. > > > About the first error. Which database are you using? Which is the > > previous version you were using?

[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: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 t

[web2py:31254] Re: help with web server

2009-09-18 Thread Timbo
Line 215: self.socket=ssl_interface(self.socket) should be: self.socket=self.ssl_interface(self.socket) I presume. What version of wsgiserver are you basing this off of? I remember that a previous version of wsgiserver was using deprecated socket APIs and could not be e

[web2py:31256] Re: help with web server

2009-09-18 Thread Timbo
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

[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, E

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

[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 wrote: > I have replaced the nicEdit with openwysiw

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

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

[web2py:33913] Re: Google Groups is Dead

2009-10-28 Thread Timbo
28, 8:09 am, Timbo 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

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

[web2py:34171] Re: Google Groups is Dead

2009-10-30 Thread Timbo
ovides 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

[web2py:34177] Re: web2py uglyness

2009-10-30 Thread Timbo
on you can: mod_name = local_import('mod_name') and it will pull it in as "import mod_name" would if applications/ /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,

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

[web2py:34956] Re: Using web2py with jython

2009-11-09 Thread Timbo
t was fixed. > > On Nov 9, 7:53 am, Timbo 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 > >

[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_ wrote: > Hello, > > I want to divide my controller logic up into packages, where

[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 wrote: > Denese. You did a fanstatic job. This was needed for some time. > > On Nov 8, 7:38 am, DenesL wrote: > > > A) What are they? > > > Keyed tables ar

[web2py:34969] Re: Using web2py with jython

2009-11-09 Thread Timbo
s the answer has always been "just increase the recursion depth". I've tried setting the recursion depth to something ridiculously high and that made no difference. Can anyone else confirm/deny this? I'm testing on Windows, can we get a Linux user to test this? -tim On Nov 9,

[web2py:34980] Re: Using web2py with jython

2009-11-09 Thread Timbo
uot;|' >                          + r'"([^"\\]|\\.)*")', re.DOTALL) > > Does it make things better? > > Massimo > On Nov 9, 11:21 am, mdipierro wrote: > > > The first problem is because you did not upgraded admin in a while ;-) > &g

[web2py:35016] Re: Using web2py with jython

2009-11-10 Thread Timbo
ion code. I'll have to look into that. -tim On Nov 9, 1:15 pm, mdipierro wrote: > This is clearly a Java bug. A major one. I love the "won't fix" > > On Nov 9, 12:33 pm, Timbo wrote: > > > No difference. > > > I think this is the bug we're deali

[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 wrote: > Has anyone used we

[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
s for? On Nov 10, 8:15 am, Timbo 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=

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

[web2py:35921] Re: Using web2py with jython

2009-11-24 Thread Timbo
This comes at a bad time of course as I 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 wrote: > > > This is clearly a Java bug. A major one. I

[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: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 in

[web2py:36450] Re: Python 2.6 Errata

2009-12-03 Thread Timbo
ould_ happen is this: request.vars.id = ["12", "12"] request.get_vars.id = "12" request.post_vars.id = "12" Am I making sense? Massimo, is that expected behavior that we want for web2py? -tim On Dec 3, 1:17 pm, Timbo wrote: > I've been trying

[web2py:36500] Re: Python 2.6 Errata

2009-12-04 Thread Timbo
this problem. > > This is a different behavior in the cgi.FieldStorage object in Python. > > Please look in web2py.gluon.main how post_vars is filled. > > I have thought about this a lot and I do not see any way to make this > work in web2py in the same way in 2.5 and 2.6

[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 wrote: > Thank you! > > On Dec 4, 9:13 am, Timbo wrote: > > > @Alexandre: I unde

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

[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 wrote: > On 27 dic, 19:50, mdipierro 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. > > Native CLient (NaCl) lets running

[web2py] Built-in Webserver

2010-01-08 Thread Timbo
I'm curious...how many of you use the built-in webserver (CherryPy's wsgiserver) as opposed to Apache, LightTPD or Cherokee in web2py and what do you use it for? If you don't know what I'm talking about, you're probably using it. I've used it in the past for both development on my desktop and pro

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

[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 (th

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

[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 wrote: > Hmm rocket server issue ag

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

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

2010-11-23 Thread Timbo
e problem I described (i.e., long load > times when trying to load apps into separate IE browser tabs) seems to > go away (apps now load instantly in new IE tabs). > > Anthony > > On Nov 23, 11:48 pm, Anthony wrote: > > > > > > > > > On Nov 23, 9:26 pm, Jona

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

2010-11-24 Thread Timbo
y to know that u got injury. Had you recovered well now? > > > On Wed, Nov 24, 2010 at 12:01 PM, Jonathan Lundell > > wrote: > > On Nov 23, 2010, at 8:48 PM, Anthony wrote: > > > > On Nov 23, 9:26 pm, Jonathan Lundell wrote: > > >>> On Nov 23, 8:10 pm,

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

2010-12-01 Thread Timbo
Cheers, -tim On Nov 24, 10:37 am, Timbo 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)

[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 wrote: > Rocket 1.2.0 (web2py's embedded web server) is now

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

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

[web2py:10449] Re: Testing in web2py

2008-10-19 Thread Timbo
Since the start of this thread, I've only just looked into using Selenium RC and how to integrate that with web2py. I haven't come up with a "good" solution yet, but I'll keep you posted. How does selenium compare with other products? I haven't used anything else, but a cursory look at the two

[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 wrote: > If you've o

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

2011-02-06 Thread Timbo
or at least in a function not calling itself. > > On Feb 6, 10:08 am, Timbo 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