All pastes #168335 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-09-12 22:08 UTC
rendered paste body
Zpt
<body tal:define="codigo request/codigo | nothing;
                    fp_session python:request.SESSION.set('codigo',codigo); 
                    fp_pegacodigo request/SESSION/codigo;
                    fp_sql python:context.zsql_select_configuracaoacesso(codigo=fp_pegacodigo);">


Python
# Import a standard function, and get the HTML request and response objects.
from Products.PythonScripts.standard import html_quote
request = context.REQUEST
RESPONSE =  request.RESPONSE

mensagem = "Encontrei o codigo"

return RESPONSE.redirect('%s/informacoes_acesso?mensagem=%s' % (context.absolute_url(),mensagem))