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
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
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
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
== 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
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
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
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
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
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
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 (.*
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
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
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
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
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
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
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
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
[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
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
21 matches
Mail list logo