hi all,
I want to share a bunch of functions between controllers, so I moved
them to a module called 'utilities' in the modules folder, and in the
controller I import the module as suggested here in the forum:

import applications.myapp.modules.utilities as util
reload(util)

the problem is, it's not working, I get an error:

NameError: global name 'db' is not defined

how can I get my 'utilities' file to recognize the global variable
'db'?

Reply via email to