On Dec 30, 2010, at 9:49 AM, mattynoce wrote: > > if i can override request.extension and have it propagate, that's > totally fine. if, for example, i could do this: > > def formControllerFromComponent: > # *** new line *** > request.extension = 'html' > > doSomething() > doSomethingElse() > redirect(URL(..., extension='')) > > and have that stick as i bounce from function to function, that's > absolutely what i need. i don't need it to be handled by a central > handler so long as i know what the process is. it's simply a matter of > knowing how to affect the necessary change. > > i already changed my code to work on a redirect so i'd get around the > extension piece, but if this will work in concept, i'll go back to > using it in the future.
That'll work, and you don't have to set extension= in the redirect. Also, you can set request.extension = None, which sets things back to their default state (effectively). I'm not sure how formControllerFromComponent figures in your flow. In general, you can set request.extension = None in any .load controller to avoid propagation.