Christoph Zwerschke wrote on 1/27/08 2:38 AM:
> Christoph Zwerschke schrieb:
>
>> Ben Parker wrote:
>>
>>> Calls to forward() will invoke the complete awake/respond/sleep cycle
>>> within the outer awake/respond/sleep cycle of the parent transactio
Hey all -
Calls to forward() will invoke the complete awake/respond/sleep cycle
within the outer awake/respond/sleep cycle of the parent transaction.
This means that if a servlet forwards a request to another servlet, then
the session will be awakened twice and put to sleep twice (or more
depe
Christoph Zwerschke wrote on 8/30/07 1:45 AM:
> sophana wrote:
>
>> The monitoring servlet is a subclass of WebKit.Page
>> All it does it make an sql ping, and write 'success' to the output.
>> It does not use any session.
>> But my simple test is as follow.
>> - I shut down the appserver.
>> -
Christoph Zwerschke wrote on 5/24/07 12:49 PM:
> Ok, now I understand the problem better. Your cookies will probably
> work, but only as long as you stay in the realm of one and the same
> language, right?
>
yes, but we want the session to follow them when they switch languages.
> If you're
Christoph Zwerschke wrote on 5/24/07 3:04 AM:
> Ben Parker wrote:
>
>> Example of the problem:
>>
>> url submitted by the browser: http://mydomain.com/es/path/to/servlet
>> url after modification by mod_rewrite: http://mydomain.com/path/to/servlet
>>
>&g
Hello - In HTTPRequest.py, the HTTPRequest._servletPath is initialized
from REQUEST_URI, if present in the request env, and then falls back to
SCRIPT_URL.
This poses a problem for us because we are using apache with mod_rewrite
to transform the url before it gets to Webware. Apache does not see
> intervention.
> Does this signal exits the process?
>
> Ben Parker a écrit :
>
>> Hi Sophana - There was a new feature in webware 0.9.2 which allows you
>> to send SIGQUIT to the process and get a dump of the stack frames for
>> all threads. Have you tried this?
&g
Hi Sophana - There was a new feature in webware 0.9.2 which allows you
to send SIGQUIT to the process and get a dump of the stack frames for
all threads. Have you tried this?
Regards - Ben
sophana wrote on 5/1/07 2:03 PM:
> I'm not using pdb breakpoints inside my code.
> The strange thing is th
Hello - I have been using Webware since 0.5 and there is still one
process I can't get straight in my head: Why are servlets imported using
the context name as the package name, rather than the directory on the
filesystem?
This poses issues if you have servlets which inherit from other servlets
SELECT * FROM web_developers WHERE programming_skills IN ('Python',
'Webware') AND xhtml_skills = 'superb' AND css_skills = 'superb' AND
ajax_skills = 'superb' AND ui_design_skills >= 'very good' ORDER BY
google_maps_experience DESC;
There is no clause restricting location.
Please contact [EMA
Oliver Bock wrote on 06/19/2006 05:45 PM:
> I think I should explain the system: the software allows the design and
> execution of web surveys. The people writing code are constructing
> surveys and sometimes need to write Python fragments to decide (for
> example) which question is shown next.
GoogleBot uncovered an error in URL parsing after it spidered a bad URL
which contained a "%25s" due to translator error. The "%25s" causes
urlDecode to raise a ValueError because it assumes anything following %
will be a valid hexadecimal value. URLParser does not catch that exception:
Traceba
Christoph Zwerschke wrote on 04/09/2006 08:07 AM:
As promised, I have cut a new beta release. It contains all bug fixes
and enhancements made after version 0.9 so far, plus a couple of other
improvements and bugfixes I made this weekend.
Thanks Christoph!
Particularly, ImportSpy now uses n
Christoph Zwerschke wrote on 04/07/2006 03:57 PM:
Ben Parker wrote:
The SessionStore convenience functions items() and values() include a
bug where a session key can be deleted after self.keys() has been
called, but before the session has been accessed from the store. This
leads to an
Hi, I have a bug and fix to submit. Attached is a patch file for
WebKit/SessionStore.py against the 0.9 release.
The SessionStore convenience functions items() and values() include a
bug where a session key can be deleted after self.keys() has been
called, but before the session has been acces
Christoph Zwerschke wrote on 03/31/2006 11:09 PM:
bob smith wrote:
I had the same error with OSX 10.3 and Apache 2.2.0. The fix was to
add the fourth parameter required by deleting lines 214 & 216:
if ((rv = apr_socket_create(&aprsock, AF_INET, SOCK_STREAM,
#if (APR_MAJOR_VERSION > 0)
John Dickinson wrote on 02/17/2006 12:09 PM:
Where is the best, or recommended, place to call addShutDownHandler()?
I have an action that may take a while to exit (it polls a queue).
However, I do have a function that can be called to force the action
to exit. The problem I'm having is restar
Ben Parker wrote on 01/18/2006 12:45 PM:
Unfortunately, the 3rd party is unstable, and when they have a problem,
sometimes the appserver crashes with this error:
Traceback (most recent call last):
File "WebKit/ThreadedAppServer.py", line 630, in run
File "WebKit/ThreadedAppS
Jose Galvez wrote on 01/18/2006 12:16 PM:
Ben Parker wrote:
This is not a strict Webware question, more of a Python and Linux
question, but I'm hoping someone may have some good insight into a fix.
I have a web app that relies on data from a 3rd party, fetched via XML
over HTTPS. I
This is not a strict Webware question, more of a Python and Linux
question, but I'm hoping someone may have some good insight into a fix.
I have a web app that relies on data from a 3rd party, fetched via XML
over HTTPS. I'm using urllib2 to connect to the remote server.
Unfortunately, the 3rd p
Dan Milstein wrote:
What's the best way to get a block of code to run when the Webware
server starts?
Specifically, I'd like to create a bunch of Tasks and register them
with the TaskKit Scheduler. But I'm not seeing where to configure that.
Thanks,
-Dan
The __init__ of your context i
Chuck Esterbrook wrote:
On 11/2/05, Ben Parker <[EMAIL PROTECTED]> wrote:
This approach is effectively a SessionFileStore which uses the client as
the store. The clobbering problem is still there: the user can hit Page A
with Cookies of State 1, and then while Page A is l
Geoffrey Talvola wrote:
If others have input/experience with clustered appservers
or alternative session store algorithms, please speak out!
Peace - Ben
There's the option of not using a server-side session store at all. If your
session data is guaranteed to be small, and i
--
David Hancock |
[EMAIL PROTECTED] | 410-266-4384
-Original Message-
From: Ben Parker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 25, 2005 6:22 PM
To: Hancock, David (DHANCOCK)
Cc: webware-discuss@lists.sourceforge.net
Subject: Re: [Webware-discuss] Anybody mad
Hancock, David (DHANCOCK) wrote:
Anybody made a memcached SessionStore?
We're thinking about creating a
memcached SessionStore backend, but (being quite lazy and not as smart
as most other people) I'd much rather copy or adapt somebody else's
code. Has anyone done this already? Any
Hi Michel,
I ended up reimplementing Automatic Path Sessions in a Page subclass,
because I wanted to locate the session in another part of the URL, avoid
placing session ids in URLs shown to a spider, and implement some
convenience methods for accessing Extra Path Info fields.
The attached code f
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Greg
> McClure
>
> ...
>
> My real problem is that I can not get my code to detect session cookie
> deletion. I feel like I'm missing something obvious, but I'm looking
> for anyone to say, "Here it is. You
Ha sorry, you'll see references to "SomeParent" in that code which should be
"SiteFrame". I started to convert to your Frame naming convention but
didn't follow through. :)
> -----Original Message-
> From: Ben Parker [mailto:[EMAIL PROTECTED]
> Sent
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Chuck
> Esterbrook
>
> On Thu, 24 Feb 2005 13:11:12 -0500, Matt Feifarek wrote:
> > Hi Steve.
> >
> > We remembered why we did this: it's Webkit's fault. Or perhaps it
> > is the fault of cgi.FieldStorage.
lloyd wrote:
> Ben Parker wrote:
> > Contexts are really thin in Webware/WebKit right now. I mean
> really thin.
> > The only time they've come into play for me is acting as a
> container for how
> > WebKit instantiates servlets. Unless you do a lot of
> i
Contexts are really thin in Webware/WebKit right now. I mean really thin.
The only time they've come into play for me is acting as a container for how
WebKit instantiates servlets. Unless you do a lot of intra-context servlet
inheriting, you've probably never had occasion to read that code.
It's k
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Michal Kaukic
> Sent: Thursday, December 09, 2004 5:56 AM
> To: [EMAIL PROTECTED]; Michal Kaukic
> Subject: [Webware-discuss] Strange behaviour of string method
> "strip" in Webware servlet
>
>
> Recently I encountered an unexpected
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Wednesday, October 20, 2004 3:57 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [Webware-discuss] session strangeness
>
>
> Hey, thanks everyone for coming to my rescue on this. Good
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Kenneth
> M. Sternberg
> Sent: Thursday, July 01, 2004 1:04 PM
> To: [EMAIL PROTECTED]
> Subject: [Webware-discuss] Internationalization
>
>
> Hi, I'm kinda new to Webware and I'm working on an app that nee
Ian Bicking wrote:
> Aaron Held wrote:
> > I like actions the way they are - they are very simple to understand.
> > If you have a hello "Aaron" type app its easy to setup a servlet like
> >
> > def writeContent(self):
> >self.write(' > name="_acctionHello"');
> >
> > def hello(self):
> >s
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Ian
> Bicking
> Sent: Thursday, April 08, 2004 11:23 PM
>
> On Apr 9, 2004, at 12:14 AM, Shayne ONeill wrote:
> > Then webware starts threading it. Now at this stage I'm *convinced* the
> > cursor is NOT th
Pawel,
Check out the Webware Wiki for mod-rewrite recipes to serve images (and any
other files) from apache instead of Webware. I suspect that is your issue.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Pawel J Maczewski
> Sent: Tuesday, March 30,
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Jason
> Hildebrand
> Sent: Friday, March 26, 2004 10:36 AM
>
> On Fri, 2004-03-26 at 12:12, jose wrote:
> > Well as far as the logos go, we did have a some contributions, but I
> > don't remember there actu
These statements should be run in your computer's command
shell, not the python shell. The "$" is not part of the statement, it is the
prefix displayed in the example command shell.
If
you are running Windows (sounds like you are?), command shell means "DOS
Prompt". You need to open a DOS
See
http://webware.sourceforge.net/Webware-0.8.1/WebKit/Docs/InstallGuide.html#bad-marshal-data
-Original Message-From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]On Behalf Of
wenming_huSent: Thursday, March 11, 2004 12:56 AMTo:
[EMAIL PROTECTED]Subject: [Webware-discuss]
Matt Feifarek wrote:
>
> Ben Parker wrote:
>
> >awake. My view (I'd love to hear others) is that an unhandled exception
> >in awake() is called a bug and should be fixed in development. I
> don't want
> >the framework to force me to write sleep() wi
Let's split this into another thread (was: "RE: [Webware-discuss] Re:
[ZODB-Dev] Webkit Threading and ZODB 3. 3a2: problems on Windows")
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Matt
> Feifarek
> Sent: Thursday, February 19, 2004 3:29 PM
> To: G
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Frank
> Barknecht
> Sent: Monday, November 10, 2003 10:53 AM
> To: 'Webware discuss'
> Subject: Re: [Webware-discuss] 'Lost connection to MySQL server during
> query'
>
>
> Hallo,
> Thomas E Jenkins hat ges
"ps -efm" is what you want to use. Redhat 9's ps does not show threads by
default.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Aaron
> Switzer
> Sent: Tuesday, November 04, 2003 9:28 AM
> To: [EMAIL PROTECTED]
> Subject: [Webware-discuss] Server not
The memory is shared across all threads in the process. So even though top
or ps will show you multiple threads each supposedly consuming 40Mb, it's
actually just 40Mb total for the whole process. Webware itself is pretty
slim on RAM, but of course your own servlets will likely import other code
th
Hey all,
I'm using Webware 0.8 and have a bug in the ExceptionHandler report for the
Session object. If we use an int as a key in the Session, the
ExceptionHandler draws an error string in the exception report instead of
the Session values.
It's not really ExceptionHandler's fault, the actual pro
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of David
Rushby
> Sent: Thursday, August 07, 2003 11:12 AM
> To: [EMAIL PROTECTED]
> Subject: [Webware-discuss] MiscUtils.DBPool.returnConnection bug?
>
>
> Why doesn't the returnConnection method (either the
at 16:18, Ben Parker wrote:
> My suspicion is that this is an IIS problem, not IE. The original
> description said the problem did not occur using the http server bundled
> with Webware, and I'll bet it doesn't occur using apache either. It could
be
> that IIS is filtering
My suspicion is that this is an IIS problem, not IE. The original
description said the problem did not occur using the http server bundled
with Webware, and I'll bet it doesn't occur using apache either. It could be
that IIS is filtering the response headers before sending them back -
disclaimer: I
vior of sessions across the entire website for this one
applicaton. Any thoughts on maintaining user control?
Jose
-Original Message-
From: Ben Parker [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 12:23 AM
To: [EMAIL PROTECTED]
Subject: RE: [Webware-discuss] At a loss please help w
You can use a combination of a function and the class's __init__ to turn a
class into a singleton. It doesn't matter where you define it. Try something
like this:
MySingleton.py:
-
import threading
def mySingleton():
if MySingleton._instance is None:
try:
MySinglet
Does anyone have performance metrics for Webware? I'm trying to evaluate
Tomcat/jBoss vs. Apache/Webware for a high-traffic site. The site is
currently running WebLogic and the client wants to ditch that in favor of
open-source software, quite refreshing!
I'm looking for quantitative data. Otherwi
Try this link:
http://www.advancedsurvey.com/results/public_results.asp?SurveyID=4184
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Stuart
Donaldson
Sent: Friday, February 28, 2003 12:41 PM
To: Chuck Esterbrook
Cc: [EMAIL PROTECTED]
Subject: Re: [Webware-
Randy,
I believe the rexec module has what you are looking for. You can fairly
effectively sandbox code by restricting the modules which can be imported,
although it won't guard against things like infinite loops.
http://www.python.org/doc/current/lib/module-rexec.html
-Original Message
I can see a few problems with your mod_rewrite attempt. I'm pretty sure that
mod_rewrite only operates on urls, not actual directories, so you don't need
the "/home/...". Also, you can "Pass Through" the modified URL to apache
instead of forcing an external "Redirect". Try something like this:
Rew
This is a problem related to your implementation of Myobject, or a problem
in your testing of their values after instantiation. Webware does not change
the basic language structure of python in any way.
It's a bit off-topic, but if you post your code for "Myobject" then I, and
I'm sure others, wil
As far as I know, this translation is done by Norton Internet Security
running on the client browser. "referer" is translated to "weferer" and the
referring link is encoded somehow.
Ben
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tracy
Ruggles
Sent: T
Also check out the locale module's format() function
http://www.python.org/doc/current/lib/module-locale.html
- Ben
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Matthew
J. Feifarek
Sent: Friday, September 27, 2002 1:15 AM
To: Stefan Kuzminski
Cc: '[E
You could put the initialization code in the __init__.py file of a context.
We use that method to initialize certain tasks for different contexts in our
appserver.
Ben
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Brett
Funderburg
Sent: Thursday, Sept
Hey everybody - I wanted to throw in my 2 cents on this issue because even
with all the responses still no one had said this yet.
I use a variation of the cron monitoring system: I have a separate machine
(or could feasibly be the Webware server) hit a protected HTTP page served
by Webware which
This should work, from within a servlet, to set the headers for no cache.
resp = self.response()
resp.setHeader('Expires', 'Mon, 26 Jul 1997 05:00:00 GMT')
resp.setHeader('Cache-Control', 'no-cache, must-revalidate')
resp.setHeader('Pragma', 'no-cache')
-Original Message-
From: [EMAIL P
self.request()._environ['HTTP_HOST']
assuming self is a subclass of WebKit.Page
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rolf
Hanson
Sent: Thursday, January 17, 2002 5:08 PM
To: [EMAIL PROTECTED]
Subject: [Webware-discuss] Easiest way to grab HTTP
>At 10:55 PM -0500 1/16/02, Ben Parker wrote:
>>If you manage to install Webware from FTP or SCP access only, you can
always
>>use popen() from within a servlet to execute any command as if you were in
a
>>shell.
>
>That's interesting as I would have thought (and
I need some help understanding this question: How can you complete the
Webware installation on this external box? I'm assuming you can't get to a
prompt on the machine, otherwise you'd be able to start the application
server...
If you manage to install Webware from FTP or SCP access only, you ca
on the fly.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Schwaller
Sent: Wednesday, October 24, 2001 3:29 PM
To: Ben Parker
Cc: [EMAIL PROTECTED]
Subject: Re: [Webware-discuss] A few patches
Ben Parker wrote:
>
> Second that. We've implemented
rver.createApplication() must be changed, as well.
This is based on 0.5.1rc3 source.
Cheers,
Ben
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Geoff
Talvola
Sent: Wednesday, October 24, 2001 4:23 PM
To: Ben Parker; [EMAIL PROTECTED]
Subject: RE: [Webware-dis
Second that. We've implemented centralized database access via the
Application object as well, and were planning on adding pooling support, but
now I'll most likely be switching our system over to Ken's patch. We
require central database access for a content scheduling system, which
manages cont
I have an alpha kit that does pretty much what you're describing here:
Components that awake, handle actions, draw and sleep along with the servlet
which contains them in some type of template. I had called it ComponentKit,
but will rename it for the Beta release, per Chuck's request.
ComponentK
ginal Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ben
Parker
Sent: Friday, October 19, 2001 9:53 PM
To: [EMAIL PROTECTED]
Subject: [Webware-discuss] referer?
I'm running Apache 1.3.19 and can't seem to get access to the HTTP_REFERER
value. I know my bro
I'm running Apache 1.3.19 and can't seem to get access to the HTTP_REFERER
value. I know my browser is sending the Header, because I can pick it up in
PHP, but it doesn't show in Webware or in a Perl CGI script dumping all ENV
variables.
Anybody ever run into this problem?
Thanks,
Ben
___
70 matches
Mail list logo