File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
python/ql/src/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,10 @@ module Flask {
171171 // ---------------------------------------------------------------------------
172172 // routing modeling
173173 // ---------------------------------------------------------------------------
174- /** A flask View class defined in project code. */
174+ /**
175+ * A class that is a subclass of the `flask.views.View` class,
176+ * thereby being able to handle incoming HTTP requests.
177+ */
175178 class FlaskViewClass extends Class {
176179 API:: Node api_node ;
177180
@@ -195,6 +198,10 @@ module Flask {
195198 API:: Node asViewResult ( ) { result = api_node .getMember ( "as_view" ) .getReturn ( ) }
196199 }
197200
201+ /**
202+ * A class that is a subclass of the `flask.views.MethodView` class.
203+ * thereby being able to handle incoming HTTP requests.
204+ */
198205 class FlaskMethodViewClass extends FlaskViewClass {
199206 FlaskMethodViewClass ( ) {
200207 this .getABase ( ) = Views:: MethodView:: subclassRef ( ) .getAUse ( ) .asExpr ( ) and
You can’t perform that action at this time.
0 commit comments