<DIV>
<DIV>
<DIV>Because it's a bit ugly - my url will grow a lot, because I have to include the variable name. It's also really simple to make the product generate a PDF if the user know the ref_date and code, without playing with variable names.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Obviously if it's not possible I will generate a normal querystring, no problem at all, I'm just curious to know if it's possible to have urls like in ruby on rails :)</DIV>
<DIV>&nbsp;</DIV>
<DIV>TIA,</DIV>
<DIV>&nbsp; ngw<BR><BR><B><I>Jonathan &lt;dev101@magma.ca&gt;</I></B> ha scritto: </DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>

<DIV><FONT face=Arial size=2>Why don't you identify the variable data portion of the urls you are building as standard http-type arguments:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>eg.&nbsp;&nbsp;&nbsp; <A href="http://www.myweb.com/amethod?var1=val1&amp;var2=val2">http://www.myweb.com/amethod?var1=val1&amp;var2=val2</A>...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This way var1, var2 etc will be accessible to your method as entries in REQUEST.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Jonathan</FONT></DIV>
<BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=nicholas_wieland@yahoo.it href="mailto:nicholas_wieland@yahoo.it">Nicholas Wieland</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=zope@zope.org href="mailto:zope@zope.org">zope@zope.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, July 25, 2005 9:39 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Zope] working with urls</DIV>
<DIV><BR></DIV>
<DIV>First of all thanks everyone for the help, I've resolved my problems one after the other thanks to the suggestions I've found here.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Now I'm rewriting urls by substituting the href attribute with custom data, and everything works fine.</DIV>
<DIV>What I'd like is having an url like: myproduct/generate/20050301/PG2, and actually that's exactly what I've got. This url will make my app generate a pdf report for the ref_date 2005/03/01 and code PG2 (ref_date and code are&nbsp;internal data).</DIV>
<DIV>Zope obviously maps the url as an object, but that's not what I want: I want to parse the url and use the ref_date and code data inside a generate method.</DIV>
<DIV>Is it possible inside Zope without mod_rewriting and&nbsp;similar stuff ? I don't like&nbsp;querystring,&nbsp;the resulting url would be too long and difficult to paste.</DIV>
<DIV>I know that this is not the way Zope works ...</DIV>
<DIV>&nbsp;</DIV>
<DIV>TIA,</DIV>
<DIV>&nbsp; ngw&nbsp;</DIV>
<P>
<HR SIZE=1>
<FONT face=Arial size=2><A href="http://us.rd.yahoo.com/mail_it/taglines/*http://it.mail.yahoo.com"><B>Yahoo! Mail</B></A>: gratis 1GB per i messaggi, antispam, antivirus, POP3</FONT> 
<P>
<HR>

<P></P>_______________________________________________<BR>Zope maillist&nbsp; -&nbsp; Zope@zope.org<BR>http://mail.zope.org/mailman/listinfo/zope<BR>**&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp; **<BR>(Related lists - <BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-announce<BR>&nbsp;http://mail.zope.org/mailman/listinfo/zope-dev )<BR></BLOCKQUOTE></BLOCKQUOTE></DIV></DIV><p>
                <hr size=1><font face="Arial" size="2"><a href="http://us.rd.yahoo.com/mail_it/taglines/*http://it.mail.yahoo.com"><b>Yahoo! Mail</b></a>: gratis 1GB per i messaggi, antispam, antivirus, POP3</font>