Re: [Webware-discuss] Absolute path to current context

2002-02-19 Thread Chuck Esterbrook
On Tuesday 19 February 2002 10:41 pm, Edmund Lian wrote: > Chuck, > > >>You should also review the summaries of the classes so you can see > >> what > > their methods are. These come with your local docs.<< > > Thanks... I've actually been doing this. But the class summaries did > not show why a s

RE: [Webware-discuss] clustered webservers?

2002-02-19 Thread Edmund Lian
Geoff wrote: >>But it seems to me that in general, you'd have to lock the row for the entire duration of the servlet's processing. What if a user accesses a servlet that takes 20 seconds to process, then in a different window or frame tries to access a servlet that only takes 1/10 of a second t

Re: [Webware-discuss] Absolute path to current context

2002-02-19 Thread Edmund Lian
Geoff wrote: >>The PowerPoint slides from my talk at Python10 cover this a little bit. You can find them on the Webware home page.<< Yes, the slides were very useful--the contents should really be in the documentation somewhere. I wasn't at your presentation (I'm overseas right now), so perhaps

Re: [Webware-discuss] Absolute path to current context

2002-02-19 Thread Edmund Lian
Chuck, >>You should also review the summaries of the classes so you can see what their methods are. These come with your local docs.<< Thanks... I've actually been doing this. But the class summaries did not show why a subclass of Page would have a HTTPRequest instance available as self.request

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Clark C . Evans
| | | | The webware code already has a built-in action mechanism, you use the name "_action_" where is the action to be run by the servlet. You also have to put in your actions list. Best, Clark ___ Webware-discuss mailing list [EM

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Clark C . Evans
On Tue, Feb 19, 2002 at 02:53:38PM -0600, Ian Bicking wrote: | | No, rather when no submit button field was found, a default submit | button should be assumed. IE and Mozilla will submit a form when an | enter is hit under certain circumstances. I believe this will lead to | the form being subm

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Jeffrey P Shell
On 2/19/02 2:38 PM, "Tim Roberts" <[EMAIL PROTECTED]> wrote: > On 19 Feb 2002 14:53:38 -0600, Ian Bicking wrote: >> >> No, rather when no submit button field was found, a default submit >> button should be assumed. IE and Mozilla will submit a form when an >> enter is hit under certain circumst

Re: [Webware-discuss] Anyone using XIST?

2002-02-19 Thread Kendall Clark
On Tue, Feb 19, 2002 at 01:50:52PM -0800, Jim Kraai wrote: > I'm wondering about performance relative to HTMLGen & HyperText, how well it > integrates w/ WebWare, etc. I've used it outside Webware and prefer it to both HTMLGen (which is definitely showing its age) and to HyperText (though HyperTe

[Webware-discuss] Anyone using XIST?

2002-02-19 Thread Jim Kraai
I'm wondering about performance relative to HTMLGen & HyperText, how well it integrates w/ WebWare, etc. I know the performance question is an apples vs. oranges question. Thanks, --jim ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Tim Roberts
On 19 Feb 2002 14:53:38 -0600, Ian Bicking wrote: > >No, rather when no submit button field was found, a default submit >button should be assumed. IE and Mozilla will submit a form when an >enter is hit under certain circumstances. I believe this will lead to >the form being submitted without an

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Ian Bicking
On Tue, 2002-02-19 at 15:12, Aaron Held wrote: > The question is then how do I define a default submit button? > I'm looking through the code, but I can't seem to find the option. > > Is there one now? No, it's not implemented -- I was just saying what needs to be put in. Ian _

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Aaron Held
The question is then how do I define a default submit button? I'm looking through the code, but I can't seem to find the option. Is there one now? Thanks, -Aaron Ian Bicking wrote: >On Tue, 2002-02-19 at 14:24, Tim Roberts wrote: > >>Aaron Held wrote: >> I've take advantage of tying functi

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Aaron Held
Actually my problem is related to the way that FFK handles actions. I have a form with four submit buttons, each with different values and each is tied to a different method. The problem is that if NONE of the buttons are pressed then FFK never calls any of the four methods. It is a search fo

Re: [Webware-discuss] Making __init__.py invisible.

2002-02-19 Thread Tavis Rudd
On Tuesday 19 February 2002 12:39, John Smith wrote: > Hello, > > If a user specifies __init__ as the servlet in a > context which has a __init__.py, an exception is > raised (since there is no class called __init__ in the > file). > > What's the best way of avoiding this? Providing a > __init__

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Ian Bicking
On Tue, 2002-02-19 at 14:24, Tim Roberts wrote: > Aaron Held wrote: > >> I've take advantage of tying functions to different submit buttons on a > >> form, but is there any way to set a 'default' action that will fire if > >> the user submits the form via the enter key rather then clicking the

[Webware-discuss] Making __init__.py invisible.

2002-02-19 Thread John Smith
Hello, If a user specifies __init__ as the servlet in a context which has a __init__.py, an exception is raised (since there is no class called __init__ in the file). What's the best way of avoiding this? Providing a __init__ class that displays an error message? Modifying the source not to se

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Aaron Held
I was browsing the code and wondering if it would be wise to stick a the value that my default button would send into the request and then manually call FormServlet._processform. I'll try to try it and get back to you, Thanks, -Aaron Ian Bicking wrote: >I should have added: there should be,

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Tim Roberts
Aaron Held wrote: >> I've take advantage of tying functions to different submit buttons on a >> form, but is there any way to set a 'default' action that will fire if >> the user submits the form via the enter key rather then clicking the >> correct button? >> >> I can setup a javascript handl

[Webware-discuss] `loginid' field in LoginPage.py/SecurePage.py.

2002-02-19 Thread John Smith
Hello, I'm trying to understand the mechanism of password secured pages as implemented in the SecurePage.py example (Webware 0.6.1b1). The purpose of the `loginid' field in these pages is not clear. Is it to provide some kind of extra security? Or does the basic functionality itself depend on

Re: [Webware-discuss] PyWX adapter for Webware.

2002-02-19 Thread Chuck Esterbrook
On Tuesday 19 February 2002 10:37 am, Titus Brown wrote: > Incidentally, for the PyWX out-of-process adapter I wouldn't have to > change a single piece of code, were CGIAdapter a bit more flexible > about accepting in/out arguments (rather than assuming > sys.stdin/sys.stdout).  Would you mind if

Re: [Webware-discuss] Absolute path to current context

2002-02-19 Thread Ian Bicking
Unfortunately, if you use mod_rewrite these standard mechanisms won't work -- you'll have to undo the rewrite rules in your Python code, which is rather awkward. On Tue, 2002-02-19 at 08:03, Geoffrey Talvola wrote: > On Tuesday February 19, 2002 06:18 am, Edmund Lian wrote: > > A quick question..

Re: [Webware-discuss] PyWX adapter for Webware.

2002-02-19 Thread Titus Brown
-> > I spent some time today bashing on a rewrite of the PyWX adapter for -> > Webware (which none of you have ever seen, anyway ;). I have some -> > questions for y'all. -> > -> > Some background: PyWX is an embedding of Python in AOLserver, a -> > high-performance multi-threaded Web server. Th

Re: [Webware-discuss] Absolute path to current context

2002-02-19 Thread Chuck Esterbrook
On Tuesday 19 February 2002 06:03 am, Geoffrey Talvola wrote: > On Tuesday February 19, 2002 06:18 am, Edmund Lian wrote: > > A quick question... What's the easiest way to get the absolute path > > to the root of the current context? I have a servlet that > > subclasses just Page, and the serverSi

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Ian Bicking
I should have added: there should be, but I don't have time to add it right now, and might not for a while. When I get the chance I'll add this, as well as a number of the structural changes to FunFormKit.Form.Form that were suggested. On Tue, 2002-02-19 at 11:58, Ian Bicking wrote: > No, there

Re: [Webware-discuss] FunFormKit default button

2002-02-19 Thread Ian Bicking
No, there isn't. There should be. On Tue, 2002-02-19 at 10:33, Aaron Held wrote: > I've take advantage of tying functions to different submit buttons on a > form, but is there any way to set a 'default' action that will fire if > the user submits the form via the enter key rather then clicking

[Webware-discuss] FunFormKit default button

2002-02-19 Thread Aaron Held
I've take advantage of tying functions to different submit buttons on a form, but is there any way to set a 'default' action that will fire if the user submits the form via the enter key rather then clicking the correct button? I can setup a javascript handler to intercept the enter key, but i

RE: [Webware-discuss] clustered webservers?

2002-02-19 Thread Geoffrey Talvola
Edmund Lian wrote: > Geoff wrote: > > >>Love, Jay wrote: > > You need to store the sessions in an SQL server. > > I think there is an SQL sessionstore already written. If > > not, it wouldn't > > be difficult at all. > > You can run into trouble if 2 servlets are executing > simultaneously. I

RE: [Webware-discuss] clustered webservers?

2002-02-19 Thread Jeff Johnson
> I had heard at one point that there are load balancers that can keep > redirecting to the same machine based on a cookie (eg, _SID_). But > you'd have to investigate and you'd have to purchase one. When we first started up they bought a hardware load balancer even though I told them not as we d

Re: [Webware-devel] RE: [Webware-discuss] PSP and if/else

2002-02-19 Thread Geoffrey Talvola
On Monday February 18, 2002 08:43 pm, Edmund Lian wrote: > Jay wrote: > >>I guess I'm trying to find a balance between removing confusion for psp > > authors when there code doesn't work as expected. They'll be confused if > their if/else blocks don't work because they've got a space or return >

Re: [Webware-discuss] Absolute path to current context

2002-02-19 Thread Geoffrey Talvola
On Tuesday February 19, 2002 06:18 am, Edmund Lian wrote: > A quick question... What's the easiest way to get the absolute path to the > root of the current context? I have a servlet that subclasses just Page, > and the serverSideContextPath method in HTTPRequest isn't available to me. > Actually,

Re: [Webware-discuss] clustered webservers?

2002-02-19 Thread Geoffrey Talvola
On Tuesday February 19, 2002 01:38 am, Chuck Esterbrook wrote: > I had heard at one point that there are load balancers that can keep > redirecting to the same machine based on a cookie (eg, _SID_). But > you'd have to investigate and you'd have to purchase one. > > On a whim, I searched Google fo

[Webware-discuss] Absolute path to current context

2002-02-19 Thread Edmund Lian
A quick question... What's the easiest way to get the absolute path to the root of the current context? I have a servlet that subclasses just Page, and the serverSideContextPath method in HTTPRequest isn't available to me. Actually, I'd like to get come clarification about the relationship between