[Zope] - How to circumvent url to object mapping ?
(correction)
Phillip J. Eby
pje@telecommunity.com
Mon, 18 Jan 1999 13:10:12 -0500
At 01:42 PM 1/16/99 +0000, Guido Sohne wrote:
>I want to have a URL called say,
>
>http://www.webstar.com.gh/articles/1998/01/15/Ashanti_Records_Record_Revenues
>
>which should map to a python method/object that queries an external
>database with the arguments 1998+01+15+Ashanti_Records_Record_Revenues
>
>Is there a way to do this *without* using Apache rewrite rules ?
>
> ^^^^^^^^^^^^^
> I meant to say without but said with ...
>
If you don't mind making the URL:
http://www.webstar.com.gh/articles/1998+01+15+Ashanti_Records_Record_Revenues
Then you can simply give your object a __getitem__ method that does the
query. ZPublisher will pass "1998+01+15+Ashanti_Records_Record_Revenues"
to the __getitem__ method.