http://localhost:8080/gnumatrix?ref=bob
would render the register form and have the referrer field populated
with 'bob'
I have already altered the RegisterData and RegisterEditor classes with
the referrer field:
http://www.bitbucket.org/metaperl/gnumatrix/changeset/d1928b1eb4bd/#chg-gnumatrix/gnumatrix/gnumatrix.py
but do not know how to detect query string data and change the form
rendering logic based on it.
I want to have my application go directly to the register page with the
referrer field filled in if the application was visited with a URL
containing a referrer name, eg:
http://localhost:8080/gnumatrix?ref=bob
would render the register form and have the referrer field populated
with 'bob'
I have already altered the RegisterData and RegisterEditor classes with
the referrer field:
but do not know how to detect query string data and change the form
rendering logic based on it.
Vincent Rialland wrote:
>
> you can use the request.params attribute on your renderer that contains the
> parameters given in the URL.
Ok, that code is written,
http://www.bitbucket.org/metaperl/gnumatrix/src/cecc2df5a610/gnumatrix/gnumatrix/gnumatrix.py#cl-198
but just because the URL has a query string, that does not route the
person to the right page...
the default page for the website is the home page, not the register page.
I've also decided to change the URL scheme a bit:
http://localhost:8080/gnumatrix/register/under/bob
should render the register form with the referrer field set to bob