-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support class-based views #162
Comments
cc @davidoc |
Hi @KevinHock , |
Hi @nightwarrior-xxx, nice to meet you. Let me know if this helps, it's a rough idea on how to do this: Read the framework part of the docs
elif args.adaptor and args.adaptor.lower().startswith('c'):
framework_route_criteria = is_class_based_view_function See https://github.com/python-security/pyt/pull/75/files for something similar The part I will leave up to you, unless you would like me to try to figure it out:
Extra/Optional, check the class being inherited from ends in View. Do this in Use my Update the framework part of the docs |
It may be possible to look at the class hierarchy of a Then if the class does not have I'm not very familiar with pyt so I'm not sure if this idea fits its current design. |
I wrote some of the code to do this in a branch https://github.com/python-security/pyt/compare/class_based_views, but since I'm working on other things and this feature seems cool and important I'm making this issue 👍
Let me know if you would like any help in implementing.
The text was updated successfully, but these errors were encountered: