On Dec 6, 2007 10:18 AM, Glauco <[EMAIL PROTECTED]> wrote:
>
>  This is true ONLY for submit action... but  I've done a deeper analisys on
> paginate and paginate use   a link !!!
>
>  """
>  <a href="${tg.paginate.get_href(1)}">&lt;&lt;</a>
>  """
>
>  so the problem isn't solved :-(
>

My question is this:  Why do you need to paginate on a form?  Is your
form really long enough to require pagination?  Even if it requires a
few pages worth of input, using @paginate is entirely the wrong way to
do things.  Assuming that I've guessed what you are trying to do
correctly, you need to have a few controller methods that take a user
through a few 'steps' if you need more than one page for a set of data
input.

Lets take a user signup as a trivial example.  Your user signup might
require some account settings to be filled in as well as the standard
details.  I'll take you through a request chain as I would handle it.

/register/ - user fills in basic info such as username, password and
email address.  This form POSTs to...

/register/step2 - the previous data has either been stored in your db
backend or however else you'd like to keep track of things.  A new
form is also shown with the extra data that is required (blog address?
 dogs name?  whatever you need).  This can either POST to another step
if you still need further information or to something like...

/register/complete - A thank you message telling the user how great
they are for hanging in for all the previous steps and telling them
how they might continue and what your site has to offer.

If I've got your use case wrong here, try to explain more fully what
you require.

Lee



-- 
Lee McFadden

blog: http://www.splee.co.uk
work: http://fireflisystems.com
skype: fireflisystems

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to