('/index/(.*)/(.*)', 'index')
def GET(self, param1, param2)

On 15 Wrz, 08:04, Rakotomandimby Mihamina <[email protected]> wrote:
> Hi all,
> In the tutorial there is a cute feature for pretty URLs:
>
> -  ('/(.*)', 'index') in urls
> -  def GET(self, name)
>
> With this, if I get the URL:http://localhost:8080/index/JoeBar
> "JoeBar" is affected to "name".
>
> OK.
>
> Now if I want to pass multiple parameter, the first idea coming is to
> do:http://localhost:8080/index/JoeBar-Harley-USAand then split("-").
>
> That would work.
>
> What are the other ways to have pretty URLs and multiple parameters?
> Thank you.
>
> --
>        Architecte Informatique chez Blueline/Gulfsat:
>     Administration Systeme, Recherche & Developpement
>                                     +261 34 29 155 34
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to