Doesn't this work:

referer = cherrypy.request.headers['REFERER']
HiddenField(name='referer', default=referer)

(Me thinks I'm missing the point here ... :-S )

On May 4, 11:10 pm, [EMAIL PROTECTED] wrote:
> This seems simple but I'm not seeing how to do it.  I'd like to put the
> current referer into a HiddenField in my form.  I tried:
>
>      HiddenField(name='referer', default=lambda: 
> cherrypy.request.headers['REFERER'])
>
> but that didn't evaluate the function.  Is there a way to do this or do
> I need to write my own widget?
>
> --David


--~--~---------~--~----~------------~-------~--~----~
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