[MERGE] Updates to the doc/http_smart_server.txt
John Arbash Meinel
john at arbash-meinel.com
Fri Dec 15 22:28:29 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It turns out that our http_smart_server.txt documentation is a little
bit wrong. Fortunately, it is close enough that I could work out the rest.
Attached is a patch which will actually get things working. It turns out
that our client cannot talk to it (yet), because of problems with local
paths versus absolute paths. I have some good ideas of how to make it
work, but I'm currently debugging it. So I'll send a patch later, but I
figured this would be easier to get approved.
In testing, it seems to default to calling your module.handler(), so
both of these work:
PythonHandler bzr-smart::handler
PythonHandler bzr-smart
But I thought it would be better to be explicit.
Also, this seems to work in the bzr-smart.py:
wsgi_server = modpywsgi.WSGIServer(smart_server_app)
def handler(req):
return wsgi_server.run(req)
versus:
def handler(req):
wsgi_server = modpywsgi.WSGIServer(smart_server_app)
return wsgi_server.run(req)
But I wasn't sure about the lifetimes for the script. Is it imported 1
time, and then run multiple times? Or is it imported every time. At the
very least it seems to be imported again if it is changed, but that
could be done using timestamps.
If people don't like the vim: line at the bottom, I can remove it. But
since we aren't using .rst as our extension, it is nice to have.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFgyGNJdeBCYSNAAMRAmoIAJ4sD+5fZnS8Vl3ZK57UkE5k0zCuFgCgkco9
8XAn7r3dT0Kheml7TOQbXyA=
=kA1V
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr_http_fixes_doc.patch
Type: text/x-patch
Size: 1596 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20061215/11d606de/attachment.bin
More information about the bazaar
mailing list