Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
URL Dispatcher with optional "parameters"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Agony  
View profile  
 More options Jul 2, 6:30 pm
From: Agony <afie...@gmail.com>
Date: Thu, 2 Jul 2009 15:30:24 -0700 (PDT)
Local: Thurs, Jul 2 2009 6:30 pm
Subject: URL Dispatcher with optional "parameters"
Hello,

I am trying to create a view that has a lot of optional parameters,
each of these should be able to left out of not according to the
situation so for example:

/article/(title) -- shows the abriged article
/article/(title)/revision/(revision_id) -- shows the given revision of
the article
/article/(title)/print --show print version of the article
/article/(title)/revision/(revision_id)/print -- shows the print
version of the given revision of the article

So in this case there are 4 possible urls with just two optional
arguments, in the app I am trying to make there are at least 5
optional parameters, which would result in 32 possible urls, not very
pleasant stuff to work with.

Another problem in this the {% url %}  function does not support named
parameters, but I can live with that by sending the full parameter
list on each call.

Please someone help


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google