[Zope] How to get REST friendly urls from sql database
Gaute Amundsen
gaute at div.org
Tue Feb 27 04:52:44 EST 2007
On Wednesday 21 February 2007 16:27, Paul Winkler wrote:
> On Wed, Feb 21, 2007 at 12:32:30PM +0100, Gaute Amundsen wrote:
> > On Tuesday 20 February 2007 17:39, Paul Winkler wrote:
> > <snip>
<snip>
>
>
> You could instead follow Andreas' suggestion and use a through-the-web
> Script. It might look something like:
>
> article_id = traverse_subpath[-1]
> data = context.get_the_data_somehow(article_id)
> return data
>
> Your URLs would then look like:
>
> http://example.com/folder_id/script_id/article_id
I had no idea it could be that simple.
And certainly not from Andreas riddles ;)
That will do nicely for now.
Thanks
Gaute
> --
>
> Paul Winkler
> http://www.slinkp.com
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
More information about the Zope
mailing list