couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Hinrichs - DM&T" <dunde...@gmail.com>
Subject Re: external 404
Date Tue, 13 Jan 2009 01:47:58 GMT
On Mon, Jan 12, 2009 at 6:25 PM, Paul Davis <paul.joseph.davis@gmail.com> wrote:
> On Mon, Jan 12, 2009 at 7:23 PM, Jeff Hinrichs - DM&T
> <dundeemt@gmail.com> wrote:
>>>> Futon on Apache CouchDB  0.9.0a733593-incubating
>>>>
>>>> --local.ini--
>>>> [external]
>>>> test = /home/jlh/Projects/venvs/couch1/test_external.py
>>>>
>>>
>>> Try also adding something like:
>>>
>>> [httpd_db_handlers]
>>> _test = {couch_httpd_external, handle_external_req, <<"test">>}
>>>
>>> And then hit the url:
>>>
>>> http://127.0.0.1:5984/delasco-test/_test/
>>>
>>> Notice that _test is what the url becomes, and <<"test">> matches
the
>>> name you specified in the [external] section.
>>>
>>> At least, I'm pretty sure that's the idea. I haven't had the chance to
>>> test this since it got changed.
>>>
>>
>> Thanks! that is the bit of mojo I needed.
>>
>> Should I file a bug against,
>> http://wiki.apache.org/couchdb/ExternalProcesses ?  Doesn't appear
>> that I can make the change nor submit a patch.
>>
>
> You just need to create an account to edit the wiki. But yes please
> update the docs.
>
I've updated the wiki,
http://wiki.apache.org/couchdb/ExternalProcesses if someone wouldn't
mind reviewing.  I was just parroting what I was told.

Why was the additional level of abstraction necessary?   I saw the
committ message
r727973 | jchris | 2008-12-19 02:25:19 -0600 (Fri, 19 Dec 2008) | 1 line

shorter path to _action servers, external supports better routing control

It does make the url shorter, but I assume that there is more to it
than just that.

curious-ly,

-Jeff

Mime
View raw message