I trying the next, but not work say "
invalid syntax (Script (Python), line 11)"<br><br><div class="gmail_quote">2008/12/6 robert rottermann <span dir="ltr"><robert@redcor.ch></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi,<br>
<br>
I think you should write in a python script:<br>
<br>
try:<br>
result = context.insert_data.zsql<br>
msg = 'data inserted'<br>
except StandardError as e: <-- error here<br>
msg = 'Error type %s. <br>Value: %s' % (e.type, e.value)<br>
<br>
return msg<br>
<br></blockquote></div><br>If change to<br><br><br>try:<br> result=context.proyecto_alta_zsql()<br> msg="Se incertaron los datos correctamente"<br>except StandardError, (e1,e2):<br> msg = "Error valor %s y %s" % (e1,e2)<br>
return msg<br><br>say<br>Tipo: Unauthorized<br>Valor: You are not allowed to access 'a particular str' in this context<br><br>(same error with type?)<br>