[Webware-discuss] Newbie question

2002-04-10 Thread Skorobeus
Hello all, Recently started working with WebKit, loving it so far... Just have a few questions, mostly form related: If I have a form that should be accepting a login and password, how do I handle defining where that information goes *to* when the form is submitted? In other words, if I have a

Re: [Webware-discuss] Allowing delegation in servlets

2002-04-10 Thread Edmund Lian
Chuck wrote: >It's unfortunate that Python places so much emphasis on global >functions: > isinstance(obj, Class) > >Over methods: > obj.isinstance(Class) > >Otherwise you could override this easily for your delegation case. Does >isinstance() happen to call one those quadruple

Re: [Webware-discuss] Webware Evaluation Kit

2002-04-10 Thread Edmund Lian
Terrel wrote: >first cut includes mswin versions of: > Apache 2.0.35 > Python 2.2.1 > Webware 0.7 Is Webware absolutely Python 2.2 compatible? I thought I had read that it was not fully tested with 2.2? ...Edmund. ___ Webware-discuss mailing lis

Re: [Webware-discuss] Allowing delegation in servlets

2002-04-10 Thread Chuck Esterbrook
On Wednesday 10 April 2002 04:00 pm, Edmund Lian wrote: > I'm not advocating against inheritance. What I am advocating is that > the type check needs to be able to be turned off, or made a bit more > intelligent. It's unfortunate that Python places so much emphasis on global functions: i

[Webware-discuss] Webware Evaluation Kit

2002-04-10 Thread Terrel Shumway
== where == warning: 6.4 MB zip file WARNING: This is VERY RAW. Don't try it unless you want to help. Download it from http://jaguar.sourceforge.net/webware/ == what == first cut includes mswin versions of: Apache 2.0.35 Python 2.2.1 Webware 0.7 unzip to c:/opt cd c:/opt/apache/apache2 bi

[Webware-discuss] HTTPAdapter.py v0.0

2002-04-10 Thread Ian Bicking
With talk of a mini-Apache, patches to Application to get it to serve HTTP, and all that, I thought I'd try a strategy I brought up earlier, but which no one seemed very excited about: an HTTP-serving adapter. I'd been working with BaseHTTPServer already (included with Python), and it was surpris

RE: [Webware-discuss] HTTPAdapter.py v0.0

2002-04-10 Thread Geoffrey Talvola
Ian Bicking wrote: > With talk of a mini-Apache, patches to Application to get it to serven > HTTP, and all that, I thought I'd try a strategy I brought up earlier, > but which no one seemed very excited about: an HTTP-serving adapter. > I'd been working with BaseHTTPServer already (included with

RE: [Webware-discuss] Allowing delegation in servlets

2002-04-10 Thread Edmund Lian
Geoff wrote: >But someone (I can't even remember who started this thread :-)) is >using a Delegation technique to write his servlets and could only >get it to work by removing the check for Servlet as a base class. That someone was me... :-) Here's an example of delegation: In the file that I

Re: [Webware-discuss] Allowing delegation in servlets

2002-04-10 Thread Chuck Esterbrook
On Wednesday 10 April 2002 04:00 pm, Edmund Lian wrote: > Chuck wrote: > >It sounds like the assert should be changed to an "if: raise" to be > >more clear and avoid being "optimized out". > > Maybe so, but regardless of how the type checking is done, I think we > ought to be able to use delegatio

Re: [Webware-discuss] Allowing delegation in servlets

2002-04-10 Thread Edmund Lian
Chuck wrote: >It sounds like the assert should be changed to an "if: raise" to be >more clear and avoid being "optimized out". Maybe so, but regardless of how the type checking is done, I think we ought to be able to use delegation. With autodelegation, all the additional methods that might be

Re: [Webware-discuss] request.adapterName() w/ mod_rewrite

2002-04-10 Thread Luke Opperman
But if you are using ModRewrite in this way, an absolute URI would not include the adaptername. Luke --- Terrel Shumway <[EMAIL PROTECTED]> wrote: > HTTPRequest.adapterName() seems to be used frequently for > building > absolute URI's, but it does not work, for example, with > > RewriteRule (.*

RE: [Webware-discuss] Allowing delegation in servlets

2002-04-10 Thread Geoffrey Talvola
Thanks Chuck, all of your points seem valid to me. But someone (I can't even remember who started this thread :-)) is using a Delegation technique to write his servlets and could only get it to work by removing the check for Servlet as a base class. Perhaps that someone could explain the techniq

[Webware-discuss] HTTPAdapter.py v0.0

2002-04-10 Thread Ian Bicking
With talk of a mini-Apache, patches to Application to get it to serven HTTP, and all that, I thought I'd try a strategy I brought up earlier, but which no one seemed very excited about: an HTTP-serving adapter. I'd been working with BaseHTTPServer already (included with Python), and it was surpri

Re: [Webware-discuss] request.adapterName() w/ mod_rewrite

2002-04-10 Thread Ian Bicking
On Wed, 2002-04-10 at 17:05, Terrel Shumway wrote: > HTTPRequest.adapterName() seems to be used frequently for building > absolute URI's, but it does not work, for example, with > > RewriteRule (.*) /cgi-bin/WebKit.cgi$1 [L,PT] > > which maps /cgi-bin/WebKit.cgi/ to / > > Am I missing something

Re: [Webware-discuss] Allowing delegation in servlets

2002-04-10 Thread Chuck Esterbrook
On Wednesday 10 April 2002 01:53 pm, Geoffrey Talvola wrote: > I would propose using "hasattr" to check for the existence of awake, > respond, and sleep, and removing the assert statement. The > RuntimeError that results could have a much better error message than > the assert would give us, anyh

[Webware-discuss] request.adapterName() w/ mod_rewrite

2002-04-10 Thread Terrel Shumway
HTTPRequest.adapterName() seems to be used frequently for building absolute URI's, but it does not work, for example, with RewriteRule (.*) /cgi-bin/WebKit.cgi$1 [L,PT] which maps /cgi-bin/WebKit.cgi/ to / Am I missing something? ___ Webware-disc

RE: [Webware-discuss] database connectivity?

2002-04-10 Thread Aaron Held
1) You need to setup a database connection pool 2) In the servlet grab a connection and use it like a python db object This is all psudocode from memory so check it or correct it please 1) create a module like configuration.py from MiscUtils.DBPool import DBPool from pyPgSQL import PgSQL datapo

RE: [Webware-discuss] Allowing delegation in servlets

2002-04-10 Thread Edmund Lian
Geoff wrote: >I would propose using "hasattr" to check for the existence of awake, >respond, and sleep, and removing the assert statement. The RuntimeError >that results could have a much better error message than the assert would >give us, anyhow. I think this is a tidier solution that also r

RE: [Webware-discuss] Allowing delegation in servlets

2002-04-10 Thread Geoffrey Talvola
I would propose using "hasattr" to check for the existence of awake, respond, and sleep, and removing the assert statement. The RuntimeError that results could have a much better error message than the assert would give us, anyhow. But I'm curious on Chuck's take on removing the assert statement

RE: [Webware-discuss] database connectivity?

2002-04-10 Thread Geoffrey Talvola
[EMAIL PROTECTED] wrote: > On Tue, 9 Apr 2002 [EMAIL PROTECTED] wrote: > > > I am writing my own database access at the moment. What > sorts of "gotchas" > > do I need to worry about? I am a little fuzzy as to how > WebKit works and > > what issues I face. > > Do I need to worry about thread

Re: [Webware-discuss] database connectivity?

2002-04-10 Thread dennis
On Tue, 9 Apr 2002 [EMAIL PROTECTED] wrote: > I am writing my own database access at the moment. What sorts of "gotchas" > do I need to worry about? I am a little fuzzy as to how WebKit works and > what issues I face. Do I need to worry about threading issues, etc? -- --- Dennis Sacks [EMAIL