I ended up doing the following, which probably isn't that elegant, but it
works:

[% customer_info = xmb.get_customer_info( systemname = session.username ) %]

[% # Reset cgi parameters to overule stickiness.
    IF q.param('choice') == 'Start over';
       FOREACH param IN ['systemname', 'customer_nr', 'firstname',
'lastname', 'info', 'email'];
           CALL q.param( param, customer_info.$param );
       END;
   END
%]

-- 
Kiffin Rex Gish
Gouda, The Netherlands

 



> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Kiffin Gish
> Sent: Wednesday, October 26, 2005 15:06
> To: Randal L. Schwartz
> Cc: [email protected]
> Subject: Re: [Templates] CGI qw(-nosticky) pragma ...
> 
> 
> Randal L. Schwartz wrote:
> 
> >>>>>>"Kiffin" == Kiffin Gish <[EMAIL PROTECTED]> writes:
> >>>>>>            
> >>>>>>
> >
> >Kiffin> *How can I get the -nosticky parameter to work 
> properly with [% 
> >Kiffin> USE CGI %]? I want to be able to reload a form with the 
> >Kiffin> original values.
> >
> >[% USE CGI; CGI.nosticky(1) %]
> >
> >(Figured out by looking at source of CGI.pm.  Thank goodness for 
> >source.)
> >
> >  
> >
> thanks alot, but it still doesn't help -- must be something else.
> 
> -- 
> Kiffin Gish
> Development Team, Demon (THUS plc)
> 
> Postbus 15829
> 1001 NH Amsterdam
> The Netherlands
> 
> T: +31 (0)20-422 20 00
> F: +31 (0)20-422 20 01
> M: +31 (0)6-21 83 68 28
> http://www.demon.nl
> 
> 
> _______________________________________________
> templates mailing list
> [email protected] 
> http://lists.template-toolkit.org/mailman/listinfo/templates
> 


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to