src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.djangoSqlInjection.html

branch
eric7
changeset 10479
856476537696
parent 10259
b51dfacef37f
child 10684
58c7f23ae1cb
equal deleted inserted replaced
10478:de9106c55c3d 10479:856476537696
5 <link rel="stylesheet" href="styles.css"> 5 <link rel="stylesheet" href="styles.css">
6 </head> 6 </head>
7 <body> 7 <body>
8 <a NAME="top" ID="top"></a> 8 <a NAME="top" ID="top"></a>
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.djangoSqlInjection</h1> 9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.djangoSqlInjection</h1>
10
11 <p> 10 <p>
12 Module implementing checks for potential SQL injections risks. 11 Module implementing checks for potential SQL injections risks.
13 </p> 12 </p>
13
14 <h3>Global Attributes</h3> 14 <h3>Global Attributes</h3>
15
16 <table> 15 <table>
17 <tr><td>None</td></tr> 16 <tr><td>None</td></tr>
18 </table> 17 </table>
18
19 <h3>Classes</h3> 19 <h3>Classes</h3>
20
21 <table> 20 <table>
22 <tr><td>None</td></tr> 21 <tr><td>None</td></tr>
23 </table> 22 </table>
23
24 <h3>Functions</h3> 24 <h3>Functions</h3>
25
26 <table> 25 <table>
27
28 <tr> 26 <tr>
29 <td><a href="#checkDjangoExtraUsed">checkDjangoExtraUsed</a></td> 27 <td><a href="#checkDjangoExtraUsed">checkDjangoExtraUsed</a></td>
30 <td>Function to check for potential SQL injection on extra function.</td> 28 <td>Function to check for potential SQL injection on extra function.</td>
31 </tr> 29 </tr>
32 <tr> 30 <tr>
40 <tr> 38 <tr>
41 <td><a href="#keywords2dict">keywords2dict</a></td> 39 <td><a href="#keywords2dict">keywords2dict</a></td>
42 <td>Function to extract keywords arguments into a dictionary.</td> 40 <td>Function to extract keywords arguments into a dictionary.</td>
43 </tr> 41 </tr>
44 </table> 42 </table>
43
45 <hr /> 44 <hr />
46 <hr /> 45 <hr />
47 <a NAME="checkDjangoExtraUsed" ID="checkDjangoExtraUsed"></a> 46 <a NAME="checkDjangoExtraUsed" ID="checkDjangoExtraUsed"></a>
48 <h2>checkDjangoExtraUsed</h2> 47 <h2>checkDjangoExtraUsed</h2>
49 <b>checkDjangoExtraUsed</b>(<i>reportError, context, config</i>) 48 <b>checkDjangoExtraUsed</b>(<i>reportError, context, config</i>)
50
51 <p> 49 <p>
52 Function to check for potential SQL injection on extra function. 50 Function to check for potential SQL injection on extra function.
53 </p> 51 </p>
52
54 <dl> 53 <dl>
55 54
56 <dt><i>reportError</i> (func)</dt> 55 <dt><i>reportError</i> (func)</dt>
57 <dd> 56 <dd>
58 function to be used to report errors 57 function to be used to report errors
70 <hr /> 69 <hr />
71 <hr /> 70 <hr />
72 <a NAME="checkDjangoRawSqlUsed" ID="checkDjangoRawSqlUsed"></a> 71 <a NAME="checkDjangoRawSqlUsed" ID="checkDjangoRawSqlUsed"></a>
73 <h2>checkDjangoRawSqlUsed</h2> 72 <h2>checkDjangoRawSqlUsed</h2>
74 <b>checkDjangoRawSqlUsed</b>(<i>reportError, context, config</i>) 73 <b>checkDjangoRawSqlUsed</b>(<i>reportError, context, config</i>)
75
76 <p> 74 <p>
77 Function to check for potential SQL injection on RawSQL function. 75 Function to check for potential SQL injection on RawSQL function.
78 </p> 76 </p>
77
79 <dl> 78 <dl>
80 79
81 <dt><i>reportError</i> (func)</dt> 80 <dt><i>reportError</i> (func)</dt>
82 <dd> 81 <dd>
83 function to be used to report errors 82 function to be used to report errors
95 <hr /> 94 <hr />
96 <hr /> 95 <hr />
97 <a NAME="getChecks" ID="getChecks"></a> 96 <a NAME="getChecks" ID="getChecks"></a>
98 <h2>getChecks</h2> 97 <h2>getChecks</h2>
99 <b>getChecks</b>(<i></i>) 98 <b>getChecks</b>(<i></i>)
100
101 <p> 99 <p>
102 Public method to get a dictionary with checks handled by this module. 100 Public method to get a dictionary with checks handled by this module.
103 </p> 101 </p>
102
104 <dl> 103 <dl>
105 <dt>Return:</dt> 104 <dt>Return:</dt>
106 <dd> 105 <dd>
107 dictionary containing checker lists containing checker function and 106 dictionary containing checker lists containing checker function and
108 list of codes 107 list of codes
118 <hr /> 117 <hr />
119 <hr /> 118 <hr />
120 <a NAME="keywords2dict" ID="keywords2dict"></a> 119 <a NAME="keywords2dict" ID="keywords2dict"></a>
121 <h2>keywords2dict</h2> 120 <h2>keywords2dict</h2>
122 <b>keywords2dict</b>(<i>keywords</i>) 121 <b>keywords2dict</b>(<i>keywords</i>)
123
124 <p> 122 <p>
125 Function to extract keywords arguments into a dictionary. 123 Function to extract keywords arguments into a dictionary.
126 </p> 124 </p>
125
127 <dl> 126 <dl>
128 127
129 <dt><i>keywords</i> (list of ast.keyword)</dt> 128 <dt><i>keywords</i> (list of ast.keyword)</dt>
130 <dd> 129 <dd>
131 list of keyword nodes 130 list of keyword nodes

eric ide

mercurial