[Zope3-dev] Re: Stateless Root

Tres Seaver tseaver at palladion.com
Fri Jul 15 14:40:34 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Shane Hathaway wrote:
> For a Zope 3 project I'm working on, I'd like the root of the site to be
> stateless.  In other words, I don't want the root of my application to
> be stored in ZODB; I want it to come from either the filesystem or
> Python code.  In fact, at the moment, I'd prefer not to open a ZODB
> connection at all.  Is there any way to do that?
> 
> A stateless root would let me treat Zope like Apache.  It would be
> easier than ever to create a new site.  Scaling would become a more
> "boring" problem [1].  Many Python developers would probably find Zope
> more comprehensible and interesting.
> 
> [1] http://www.loudthinking.com/arc/000479.html

Funny you should be the one asking;  I would have been coming to find
*you* to ask that question. ;)  I think this is tied up with how ZServer
finds the "published module" bit when dispacthing an accepted
connection.  ZServer.medusa.http_bobo uses os.environ['SCRIPT_NAME'] to
get the 'module_name'.

At any rate, if you can change the published module, then "Bob's your
uncle" (pace Jim).


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC2AMh+gerLs4ltQ4RAp9BAKCXBAR6hV+LIdhdVbmllaqpJysmfgCgyavc
J+vCxtSn4T3A73+pOJCzYyw=
=f8nx
-----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list