My controllers are getting a bit cluttered in my web2py app, and I would like to move functions to another place.
I was initially thinking of moving them to modules, but I access the db sometimes, and have other parameters set in db.py (me for user id, now for the date, etc.).
Is there a clean way to move these functions to a new file while still having access to the variables I need? I'm not opposed to something like from db import me, now