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 {
171
171
// ---------------------------------------------------------------------------
172
172
// routing modeling
173
173
// ---------------------------------------------------------------------------
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
+ */
175
178
class FlaskViewClass extends Class {
176
179
API:: Node api_node ;
177
180
@@ -195,6 +198,10 @@ module Flask {
195
198
API:: Node asViewResult ( ) { result = api_node .getMember ( "as_view" ) .getReturn ( ) }
196
199
}
197
200
201
+ /**
202
+ * A class that is a subclass of the `flask.views.MethodView` class.
203
+ * thereby being able to handle incoming HTTP requests.
204
+ */
198
205
class FlaskMethodViewClass extends FlaskViewClass {
199
206
FlaskMethodViewClass ( ) {
200
207
this .getABase ( ) = Views:: MethodView:: subclassRef ( ) .getAUse ( ) .asExpr ( ) and
You can’t perform that action at this time.
0 commit comments