autocomplete list behavouir

Pierre-Yves Chibon pingou at pingoured.fr
Tue Oct 2 13:05:05 PDT 2012


On Tue, 2012-10-02 at 12:55 -0700, Dirk Hohndel wrote:
> Pierre-Yves Chibon <pingou at pingoured.fr> writes:
> >> >
> >> > Ok, I have a working POC (API only) which is available at:
> >> > http://ambre.pingoured.fr/cgit/subsurface-companion.git/
> >> >
> >> > This is still very new so there is no problem to change things the way
> >> > we want :)
> >> 
> >> Quick test shows this:
> >> 
> >> http://127.0.0.1:5000/newlogin
> >> 
> >> Not Found
> >> 
> >> The requested URL was not found on the server.
> >> 
> >> If you entered the URL manually please check your spelling and try
> >> again.
> >> 
> >> (I am accessing this through a proxy, but the main page loads correctly,
> >> so I don't think it's the proxy that messes things up...)
> >
> > Check
> > http://127.0.0.1:5000/api 
> > It's all nicely explained there ;-)
> 
> Hehe... what trigged me was that the links on http://127.0.0.1:5000 are
> wrong.
> 
> How about this?
> 
> 
> Fix URLs used in template/index.html
> 
> Signed-of-by: Dirk Hohndel <dirk at hohndel.org>
> 
> index 2ea927f..29131bf 100644
> --- a/templates/index.html
> +++ b/templates/index.html
> @@ -17,9 +17,9 @@
>  
>    <p>Your options are:</p>
>    <ul>
> -    <li> Generate a new login, see: <a href="/newlogin">/newlogin</a></li>
> -    <li> Upload a new dive, see: <a href="/dive/login/lat/long/name">/dive/login/lat/long/name</a></li>
> -    <li> Download your dives, see: <a href="/mydives/login">/mydives/login</a></li>
> +    <li> Generate a new login, see: <a href="/api/newlogin">/api/newlogin</a></li>
> +    <li> Upload a new dive, see: <a href="/api/dive/login/lat/long/name">/api/dive/login/lat/long/name</a></li>
> +    <li> Download your dives, see: <a href="/api/mydives/login">/api/mydives/login</a></li>
>    </ul>
>  
>  {% endblock %}

I had in mind to have this for the user interface, but I do see how this
is confusing at the moment.

I just pushed something so the documentation of the API is easier to
find.

Pierre


More information about the subsurface mailing list