[Seaside] input of uncompilable code error hags the session

stephane ducasse stephane.ducasse at free.fr
Sat Oct 15 16:59:15 UTC 2005

ideally if the compiler would be nicely done you could trap  
exception. In practice this is ugly and you have to patch it.
I had to do that for my bot env.
With the new compiler life will be easier but we have to work on it  


On 15 oct. 05, at 04:05, Sebastián Sastre wrote:

> Hi all,
>     I working on a system that has an input of thext that makes a  
> query with smalltalk sintax.
>     In this case, the query is made evaluating a #select: block in  
> the target collection. Somthing like this:
>     [:e| e interested and:[ e surname notNil]]
>     In the seaside component who manages that text entered by the  
> user in a textArea field, there is a point in wich that text cames  
> to the method as aQuery, so it makes something like this:
>         ...
>         filter := Compiler evaluate: aQuery codeString.
>         results := collection select: filter.
>         self call: (WAInformXXXX new contacts: results).
>     The problem I had with this is that the seaside session is  
> bloqued when the user enters text that is not compilable. A missing  
> braket is the typical error. That means the entire session to get  
> lost because the squeak interface pops up a window and seaside gets  
> eternally waiting for somethig.
>     How can I detect an uncompilable smalltalk code so I can avoid  
> this inconvenience?
>     thank you,
> Sebastián Sastre
> ssastre at seaswork.com.ar
> Seaswork
> Special Software Solutions
> www.seaswork.com.ar
> Este mensaje y sus adjuntos son confidenciales y de uso exclusivo  
> para el usuario a quien esta dirigido. Puede contener información  
> amparada por el secreto profesional.
> Si Ud. no es el destinatario especificado no debe copiar,  
> transmitir o utilizar ninguna parte del mismo y/o de sus adjuntos  
> por ningún medio tecnológico.
> Las opiniones vertidas son responsabilidad del autor y no son  
> emitidas ni avaladas por SEASWORK a menos que se indique claramente  
> lo contrario y que la identidad y autoridad del autor, para  
> comprometer a nuestra empresa, puedan ser verificados.
> No se garantiza la integridad de los mensajes enviados por e-mail  
> ni que los mismos sean enviados en termino, o que no contengan  
> errores o virus. El emisor no aceptara responsabilidad por los  
> errores, modificaciones u omisiones que resulten en el mensaje,  
> bajo la hipótesis de que pudo ser modificado.
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the Seaside mailing list