[Maypole] Redirecting after do_edit()

From: Drew Taylor (taylor.andrew.j at gmail.com)
Date: Fri Dec 31 2004 - 02:44:17 GMT


I'm firmly in the camp of preferring to do a redirect after running an
action, ie do_edit(). But looking at Maypole::Model::CDBI, it doesn't
look like there is an easy way to have it do a redirect instead of the
template switcheroo. And I'm not sure how to do a redirect either for
that matter. I'm surprised that Maypole doesn't have a built-in
functionality to do this with everything else it does...

I'd be happy to put together a patch for redirect(), and to patch
do_edit() to take a config option to determine if it redirects or
switches templates.

Drew

-- 
----------------------------------------------------------------
 Drew Taylor                 *  Web development & consulting
 Email: drew at drewtaylor.com  *  Site implementation & hosting
 Web  : www.drewtaylor.com   *  perl/mod_perl/DBI/mysql/postgres
 ----------------------------------------------------------------

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT