Re: URLs again

Kimbro Staken <[email protected]> Sat, 15 Nov 2003 10:29:33 -0700
Newsgroups gmane.comp.web.syncato.general
Message-ID <[email protected]>
On Nov 15, 2003, at 6:58 AM, nemilya wrote:

>
>
> <skip/>
>
> KS> The URLs now look something like this.
> KS> http://host/WK/blog/893_title_of_post.item
> KS> Though this will also work if "title of post" is unique.
> KS> http://host/WK/blog/title_of_post.item
>
> I.e. if I understund properly: by first looking for post with title 
> '893_title_of_post'
> and if not found then looking for post with '^(\d+)_?' id?
>
No it just uses the id, the title is actually ignored.

> KS> The other problem with the title scheme is that changing the title 
> on a
> KS> post changes its URL. When the id is included that's all that is 
> used
> KS> to find the post.
>
> ok,
> and note from not english based users, in our case title is not latin.
> Possible variant - separate field for english language title.
>
I'm curious have you actually tried storing non-latin text in Syncato? 
I assume it won't work since I haven't been worrying about UTF-8 at the 
Python level. It's a todo item.

> And as I note now there is no 't' argument for xslt stylesheet?
> It replaced to after dot extension?
> Nice.
>
> Also if 'item' replace to 'html', we comeback to begin :)
> http://host/WK/blog/893_title_of_post.html
>
Yeah, kind of a round about way to get there, but it can work that way.

> KS> For pages it may or not be a good idea to use the title, but the 
> option
> KS> exists.
>
> KS> One other point to make about this is that these are just 
> alternative
> KS> ways of accessing an item. The true identity of the item is to use 
> just
> KS> the ID in the URL as was originally done. i.e. 
> http://host/WK/blog/893
>
> I.e. if stylesheet is not specified, then default is 'item'?
>
No, it returns the XML source for the item. It's part of the Syncato 
REST API. HTML is just a view onto that data.
>
>
Kimbro Staken
Software, Consulting and Writing http://www.xmldatabases.org/
Apache Xindice native XML database http://xml.apache.org/xindice
XML:DB Initiative http://www.xmldb.org



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl