You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just implementing a project and read up on the documentation about specifying base views. While this works, it seems a little clunky and prone to errors. I was wondering if the project would be open to inferring the routes from the class' __dict__?
Something akin to this (could be cleaned up a little, but as an example works fine:
I was just implementing a project and read up on the documentation about specifying base views. While this works, it seems a little clunky and prone to errors. I was wondering if the project would be open to inferring the routes from the class'
__dict__
?Something akin to this (could be cleaned up a little, but as an example works fine:
The above example would return
['get']
, avoids gathering any methods defined on parent classes, and works for larger inheritance chains AFAICT.(I added the bit obviously about not starting with
_
, but it seems like a reasonable addition?)The text was updated successfully, but these errors were encountered: