Forum OpenACS Development: Re: FYI: User message feature
On the minor question of adding some sort of "
switch to ad_returnredirect, no, IMNSHO, I don't think that's such a
good idea. This is a minor and not at all particularly important
issue, but I figured I might as well present my reasoning:
There are perfectly good reasons to do a redirect without stopping
further execution of the Tcl script (we all know that). Currently,
ad_returnredirect is a nice simple proc that does exactly one thing
(this is good). And I don't see how any advantage to the developer in
adding an "
-abort_script_p 1" "
whatever switch to his ad_returnredirect call rather than adding a
ad_script_abort" line immediately after
ad_returnredirect. Adding the switch isn't any savings in typing nor
easier to remember, so I don't see any advantage at all to the extra
tiny little bit of complexity. Adding such a switch to
ad_returnredirect looks like pointless and fattening syntactic sugar