>
> def get_user(id=None, first_name=None):

return db((db.auth_user.id == id) & (db.auth_user.first_name == 
first_name)).select()


This code seems very wrong. Because if the id is None then it will never 
return anything. If the id is not None then why do you care about 
first_name?

It seems to me, all your BOs are doing is obfuscating the DAL interaction.  
  
Please read:
http://c0de517e.blogspot.pt/2016/10/over-engineering-root-of-all-evil.html




-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to