[web2py] Re: Exception: (Client closed socket.)

2010-10-22 Thread mdipierro
You do not show the select but from this: recipient=item.contactpersoon.email looks like you do a join. If this is the case recipient=item[0].email should be recipient=item[0].contactpersoon.email On Oct 20, 5:00 am, annet wrote: > When I expose this function in controller locato

[web2py] Re: Exception: (Client closed socket.)

2010-10-21 Thread annet
In both cases, when I expose the functions neither m_list nor item is empty (I tried print db(...).select(...)). The problem doesn't occur in the first function, where m_list can contain more than one row, the problem occurs in the second function, where item contains one row. Furthermore the seco

[web2py] Re: Exception: (Client closed socket.)

2010-10-20 Thread ron_m
The first version protects from the case m_list is empty so IMHO it is better. I don't think that is what you are experiencing with the local vs remote web server observation. On Oct 20, 3:00 am, annet wrote: > When I expose this function in controller locatormail: > > def send_mail(): >     m_li