flask-script icon indicating copy to clipboard operation
flask-script copied to clipboard

Question: When is __call__ called if Manager receives a function

Open adamcunnington opened this issue 10 years ago • 0 comments

I'm assuming that because you need manage to be global in order to take advantage of the decorator, you have deliberately allowed Manager to receive either the app instance or a callable.

I have a func, app_factory that creates the app but I wanted to know when it is actually called, I checked the source code but couldn't work out where. Perhaps run is responsible for the calling of the app func?

adamcunnington avatar Jun 09 '14 23:06 adamcunnington