[Seaside] accepting a "legacy" form for an initial state
philippe.marschall at gmail.com
Tue Oct 16 05:28:01 UTC 2007
2007/10/16, Randal L. Schwartz <merlyn at stonehenge.com>:
> I'm replacing a badly-written (that is, not *mine*) Perl application with a
> seaside application. Let's say I've installed my application at
> /seaside/booking. How do I intercept, say,
> /seaside/booking?legacy=app&does=this and turn that into an initial
> hit into my app with a couple of instance vars set, so that
> all the remaining /seaside/booking?_s=...&_c=... still work?
Implement #initialRequest (don't forget to send super). WABrowser has
an example. If you want the parameters (legacy and does) to stay
you'll also have to implement #updateUrl:
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
> See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside