On Monday 11 November 2002 11:50 pm, David McNab wrote:
> PS I've taken a lot of shit on #python for doing this. People seem to
> think that only lamers use CGI for Python, and ignore any arguments
> that commercial hosts with Zope are in the tiniest minority and are
> much mroe expensive.
Not to mention that some of us feel that Zope gets in our way more than
it helps.
Most of the Webware community uses the WebKit app server because it's
performance is much better. Especially considering that you can reuse
things in memory like database connections, data from files or
databases, etc.
I was in a situation, however, where a client already had a host
provider that they weren't going to leave. I deployed the app with
WebKit's OneShot.cgi which worked because the box was fast and the
traffic was low. You might consider that approach if you can afford to.
Then you can "upgrade" to a persistent server down the road.
A hosting option that looks interesting is "freebsd virtual server"
which I believe would let you run anything you want. The last time I
researched them, entry level ones were around $50/month and many of the
companies looked, um, "mainstream".
Some comments on your code:
- I like Ian's idea of using lower case letters. Faster to type.
- Instead of a bunch of these:
class A(TagWriter):
def __init__(self, *contents): TagWriter.__init__(self, 'a',
contents)
class ABBR(TagWriter):
def __init__(self, *contents): TagWriter.__init__(self, 'abbr',
contents)
You could go with the much more simple:
class A(TagWriter): pass
class ABBR(TagWriter): pass
And use self.__class__.lower() to get the name of the tag.
- Or you could use a more generic design like Ian did where you don't
have to declare the tags at all.
- HTMLTag.HTMLReader has a self._tagContainmentConfig that you could
utilize to raise exceptions if invalid HTML was ever constructed. Like
if you tried to make html.table(html.pre('foo')).
Just some thoughts,
-Chuck
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss