[Zope] working with urls

Jonathan dev101 at magma.ca
Mon Jul 25 09:43:59 EDT 2005


Why don't you identify the variable data portion of the urls you are building as standard http-type arguments:

eg.    http://www.myweb.com/amethod?var1=val1&var2=val2...

This way var1, var2 etc will be accessible to your method as entries in REQUEST.


Jonathan
  ----- Original Message ----- 
  From: Nicholas Wieland 
  To: zope at zope.org 
  Sent: Monday, July 25, 2005 9:39 AM
  Subject: [Zope] working with urls


  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.

  Now I'm rewriting urls by substituting the href attribute with custom data, and everything works fine.
  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 internal data).
  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.
  Is it possible inside Zope without mod_rewriting and similar stuff ? I don't like querystring, the resulting url would be too long and difficult to paste.
  I know that this is not the way Zope works ...

  TIA,
    ngw 


------------------------------------------------------------------------------
  Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3


------------------------------------------------------------------------------


  _______________________________________________
  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 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20050725/1dca3b64/attachment.htm


More information about the Zope mailing list