Opa Senhores. Ja resolvi.

Fiz assim:
function Vincula(nfazenda, codcli, codigocpr){
  if (confirm("Deseja vincular ?")){
     var matricula = window.prompt("Informe a matricula")
    
Abrir('vincula_fazenda_py?numerofazenda='+nfazenda+'&codigocliente='+codcli+'&codigocpr='+codigocpr+'&matricula='+matricula)
     return true;
  }else{
     return false;
  }
}

<a href="#"
            tal:attributes="onClick string:return
Vincula('${items/codigo_fazenda}','${cliente}','${cpr_id}')"/>

Funcionou blzinha.

[]'s
Fernando Paiva


--- Em zope-pt@yahoogrupos.com.br, "pythondeveloper"
<[EMAIL PROTECTED]> escreveu
>
> Salve galera.
> 
> Seguinte, eu tenho a seguinte função JavaScript.
> function Vincula(){
>   if (confirm("Deseja vincular ?")){
>      var matricula = window.prompt("Informe a matricula")
>      return true;
>   }else{
>      return false;
>   }
> }
> 
> Nesta função, eu preciso pegar o valor da variavel "matricula" e
> envia-la a um script.py. Estou tentando fazer assim.
> 
> <a href="#"
>    tal:attributes="onClick string:return Vincula();
>                    href
> string:${context/pyscript/absolute_url}?matricula=${matricula}"/>
> 
> Não estou tendo sucesso...Alguma sugestão ?
> 
> []'s
> Fernando Paiva
>


Responder a