Following your suggestion, I looked up how to use ipython console shell 
mode. The key is to load models by -M. Ahah! I hope this -M option could be 
documented better in the book. Now I have my friend iPython with me.

Recursive indeed works:

In [5]: rowtosend = db(db.auth_criteria.toSend==1).select()

In [7]: rowtosend
Out[7]: <Rows (1)>

In [8]: for row in rowtosend:
   ...:     print row.user_id.email
   ...:
[email protected]

Then I have found my stupid real problem:

myList = []
for row in rowsToSend:
    email = row.user_id.email
    myList = myList.append(email)

after the for loop, myList became a Nonetype.

I should simply use myList.append(email)

Well, thanks everyone. I learned how to use iPython with web2py today. It 
will help me a lot in future develpment. 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to