On 12/12/05, Michael Graham <[EMAIL PROTECTED]> wrote:

> I think the run mode should only be taken from path_info when explicitly
> requested by the rule (e.g. /foo/:app/:rm ).

I guess my concern is how do you automate the selection of run mode in
the dispatcher if it can be anywhere (or not at all). is :rm a special
variable declaration or is each app module required to know something
about the dispatch table in order to select the right run mode? This
is an interesting question.

> For most apps I want the run mode set, but every so often I have an
> exception, e.g:
>
>     /get/path/to/file.html
>     /get/other/path/to/other/file.html
>
> For an app like this, I don't want the run mode being set to 'path' or
> 'other'.  And I also don't want to be forced to make my URLs
> artificially longer by including a dummy run mode:
>
>     /get/view/path/to/file.html
>     /get/view/other_path/to/other_file.html

Sorry I'm not following what you mean here.

<tim/>

--
Timothy Appnel
http://www.timaoutloud.org/

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to