I wonder how to correctly use python 2.7 callback functions.
I have some callback functions from Cherrypy auth examples in my code.
(These callbacks return
If you execute it, it is plain simple.
member_of() will return method object check. you have to execute to get result by doing something like if member_of('admin')(): or,
member_of()
member_of('admin')()
k=member_of('admin') if k():
To do your task.