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
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
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
>
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
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
+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
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?
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
> >
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
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
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,
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
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
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
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
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=
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
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
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
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
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
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
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
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
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
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
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
"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
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
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
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
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
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
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,
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)
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
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
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
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
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
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
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
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
70 matches
Mail list logo