File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
lib/semmle/python/frameworks
test/library-tests/frameworks/bottle Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,17 @@ module Bottle {
24
24
25
25
/** Provides models for the `bottle` module. */
26
26
module BottleModule {
27
+ /**
28
+ * Provides models for Bottle applications.
29
+ */
27
30
module App {
31
+ /** Gets class `bottle.Bottle`) */
28
32
API:: Node cls ( ) { result = API:: moduleImport ( "bottle" ) .getMember ( "Bottle" ) }
29
33
30
- /** Gets a reference to a FastAPI application (an instance of `fastapi.FastAPI`). */
34
+ /** Gets a reference to a Bottle application (an instance of `bottle.Bottle`) */
31
35
API:: Node instance ( ) { result = cls ( ) .getReturn ( ) }
32
36
37
+ /** Gets a reference to a Bottle application (an instance of `bottle.app`) */
33
38
API:: Node app ( ) { result = bottle ( ) .getMember ( "app" ) .getReturn ( ) }
34
39
}
35
40
@@ -71,6 +76,7 @@ module Bottle {
71
76
/** Gets a reference to the `bottle.response` module. */
72
77
API:: Node response ( ) { result = bottle ( ) .getMember ( "response" ) }
73
78
79
+ /** A response returned by a view callable. */
74
80
class BottleReturnResponse extends Http:: Server:: HttpResponse:: Range {
75
81
BottleReturnResponse ( ) {
76
82
this .asCfgNode ( ) = any ( View:: ViewCallable vc ) .getAReturnValueFlowNode ( )
Original file line number Diff line number Diff line change 1
1
import experimental.meta.InlineTaintTest
2
- import MakeInlineTaintTest< TestTaintTrackingConfig >
2
+ import MakeInlineTaintTest< TestTaintTrackingConfig >
You can’t perform that action at this time.
0 commit comments