[Seaside] input of uncompilable code error hags the session

Sebastián Sastre ssastre at seaswork.com.ar
Sat Oct 15 02:05:51 UTC 2005


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
 
 <mailto:ssastre at seaswork.com.ar> ssastre at seaswork.com.ar 
Seaswork 
Special Software Solutions
www.seaswork.com.ar <http://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.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://liststest.squeakfoundation.org/pipermail/seaside/attachments/20051014/fed08911/attachment.htm


More information about the Seaside mailing list