File tree Expand file tree Collapse file tree
lib/semmle/python/frameworks
test/library-tests/frameworks/bottle Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,12 +24,17 @@ module Bottle {
2424
2525 /** Provides models for the `bottle` module. */
2626 module BottleModule {
27+ /**
28+ * Provides models for Bottle applications.
29+ */
2730 module App {
31+ /** Gets class `bottle.Bottle`) */
2832 API:: Node cls ( ) { result = API:: moduleImport ( "bottle" ) .getMember ( "Bottle" ) }
2933
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`) */
3135 API:: Node instance ( ) { result = cls ( ) .getReturn ( ) }
3236
37+ /** Gets a reference to a Bottle application (an instance of `bottle.app`) */
3338 API:: Node app ( ) { result = bottle ( ) .getMember ( "app" ) .getReturn ( ) }
3439 }
3540
@@ -71,6 +76,7 @@ module Bottle {
7176 /** Gets a reference to the `bottle.response` module. */
7277 API:: Node response ( ) { result = bottle ( ) .getMember ( "response" ) }
7378
79+ /** A response returned by a view callable. */
7480 class BottleReturnResponse extends Http:: Server:: HttpResponse:: Range {
7581 BottleReturnResponse ( ) {
7682 this .asCfgNode ( ) = any ( View:: ViewCallable vc ) .getAReturnValueFlowNode ( )
Original file line number Diff line number Diff line change 11import experimental.meta.InlineTaintTest
2- import MakeInlineTaintTest< TestTaintTrackingConfig >
2+ import MakeInlineTaintTest< TestTaintTrackingConfig >
You can’t perform that action at this time.
0 commit comments