-
Notifications
You must be signed in to change notification settings - Fork 88
support for flask app factory pattern #85
base: master
Are you sure you want to change the base?
Conversation
Conflicts: flask_mongorest/__init__.py
…List method doesn't break the whole response
Merge commit 'refs/pull/55/head' of https://github.com/closeio/flask-mongorest # Conflicts: # example/app.py # flask_mongorest/views.py
ping ;) The errors from CircleCI are just pyflakes. There's quite a few for * imports. Do you guys want to update the flake8 config or fix them? |
''' | ||
Takes optional Flask application instance. If supplied, `init_app` will be | ||
called to update application url map. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary newline
Hey @frankV, thanks for championing this :) Overall it looks good aside from a few minor issues I commented on in the code (though @thomasst should also take a look). As for pyflakes, I see that all of the issues happen in the |
@wojcikstefan fixed up the minor things and I'll finish up the others tomorrow. I'll wait for @thomasst's remarks before issuing another PR. |
didn't forget about this, getting back to it so for now I'm going to reissue the PR with the changes I implemented... let's go from there |
@wojcikstefan I got it all in with the exception of
|
Just wanted to ping you guys one more time on this, let me know if you want something changed. Let's get this merged in! 👍 |
Hi @frankV, I've been on vacation for the last 2 weeks - will look at it soon! Thank you so much for following up on this one! |
I just reviewed this code and read up on While this PR allows lazy initialization, it still doesn't conform to the guidelines. See http://flask.pocoo.org/docs/0.11/extensiondev/:
That being said, I'm not sure if there's a good solution to make sure the URL map is applied to all the apps, in case |
I'm not sure I can understand the use case, but that may be my limited experience with using multiple apps. All I can think to do is investigate how similar extensions handle this, then test it out in my fork. |
Hey, can someone please merge this pull request. I need this functionality in one of my projects |
Lazy initialization is a must on any flask extension, will this ever be merged? 😢 |
Ohh god 3 years and |
Sorry! I just stumbled across this and didn't realize a PR was pending here for so long. I've just merged delayed |
settled the conflicts I found after fetching #55 @andviro
closes #81