-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove Application dependency from UrlDispatcher #1510
Conversation
we need to update docs and add deprecation warning to i think |
9ce16ef
to
295e288
Compare
Current coverage is 98.69% (diff: 58.06%)@@ master #1510 diff @@
==========================================
Files 30 30
Lines 6986 7070 +84
Methods 0 0
Messages 0 0
Branches 1163 1180 +17
==========================================
+ Hits 6907 6978 +71
- Misses 39 52 +13
Partials 40 40
|
raise RuntimeError( | ||
"Cannod add sub application to frozen application") | ||
if subapp.frozen: | ||
raise RuntimeError("Cannod add frozen application") |
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.
"cannod" typo
|
||
def _wrap_add_subbapp(app): | ||
|
||
def add_subapp(prefix, subapp): | ||
if subapp.frozen: | ||
raise RuntimeError("Cannod add frozen application") |
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.
...a-ha, copied from here — "cannod"
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.
good catch
295e288
to
dc13304
Compare
@asvetlov objections? also what about |
Hmm. I dislike Also I doubt if it will work with all possible router implementations. I suggest keeping the code as is. |
|
I think UrlDispatcher should not depend on Application object.
Here is backward compatible change to remove this dependency.
@asvetlov