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

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8596
d64760b2da50
child 10070
9f5758c0fec1
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.djangoSqlInjection</title>
4 <meta charset="UTF-8">
5 <link rel="stylesheet" href="styles.css">
6 </head>
7 <body>
8 <a NAME="top" ID="top"></a>
9 <h1>eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.djangoSqlInjection</h1>
10
11 <p>
12 Module implementing checks for potential SQL injections risks.
13 </p>
14 <h3>Global Attributes</h3>
15
16 <table>
17 <tr><td>None</td></tr>
18 </table>
19 <h3>Classes</h3>
20
21 <table>
22 <tr><td>None</td></tr>
23 </table>
24 <h3>Functions</h3>
25
26 <table>
27
28 <tr>
29 <td><a href="#checkDjangoExtraUsed">checkDjangoExtraUsed</a></td>
30 <td>Function to check for potential SQL injection on extra function.</td>
31 </tr>
32 <tr>
33 <td><a href="#checkDjangoRawSqlUsed">checkDjangoRawSqlUsed</a></td>
34 <td>Function to check for potential SQL injection on RawSQL function.</td>
35 </tr>
36 <tr>
37 <td><a href="#getChecks">getChecks</a></td>
38 <td>Public method to get a dictionary with checks handled by this module.</td>
39 </tr>
40 <tr>
41 <td><a href="#keywords2dict">keywords2dict</a></td>
42 <td>Function to extract keywords arguments into a dictionary.</td>
43 </tr>
44 </table>
45 <hr />
46 <hr />
47 <a NAME="checkDjangoExtraUsed" ID="checkDjangoExtraUsed"></a>
48 <h2>checkDjangoExtraUsed</h2>
49 <b>checkDjangoExtraUsed</b>(<i>reportError, context, config</i>)
50
51 <p>
52 Function to check for potential SQL injection on extra function.
53 </p>
54 <dl>
55
56 <dt><i>reportError</i> (func)</dt>
57 <dd>
58 function to be used to report errors
59 </dd>
60 <dt><i>context</i> (SecurityContext)</dt>
61 <dd>
62 security context object
63 </dd>
64 <dt><i>config</i> (dict)</dt>
65 <dd>
66 dictionary with configuration data
67 </dd>
68 </dl>
69 <div align="right"><a href="#top">Up</a></div>
70 <hr />
71 <hr />
72 <a NAME="checkDjangoRawSqlUsed" ID="checkDjangoRawSqlUsed"></a>
73 <h2>checkDjangoRawSqlUsed</h2>
74 <b>checkDjangoRawSqlUsed</b>(<i>reportError, context, config</i>)
75
76 <p>
77 Function to check for potential SQL injection on RawSQL function.
78 </p>
79 <dl>
80
81 <dt><i>reportError</i> (func)</dt>
82 <dd>
83 function to be used to report errors
84 </dd>
85 <dt><i>context</i> (SecurityContext)</dt>
86 <dd>
87 security context object
88 </dd>
89 <dt><i>config</i> (dict)</dt>
90 <dd>
91 dictionary with configuration data
92 </dd>
93 </dl>
94 <div align="right"><a href="#top">Up</a></div>
95 <hr />
96 <hr />
97 <a NAME="getChecks" ID="getChecks"></a>
98 <h2>getChecks</h2>
99 <b>getChecks</b>(<i></i>)
100
101 <p>
102 Public method to get a dictionary with checks handled by this module.
103 </p>
104 <dl>
105 <dt>Return:</dt>
106 <dd>
107 dictionary containing checker lists containing checker function and
108 list of codes
109 </dd>
110 </dl>
111 <dl>
112 <dt>Return Type:</dt>
113 <dd>
114 dict
115 </dd>
116 </dl>
117 <div align="right"><a href="#top">Up</a></div>
118 <hr />
119 <hr />
120 <a NAME="keywords2dict" ID="keywords2dict"></a>
121 <h2>keywords2dict</h2>
122 <b>keywords2dict</b>(<i>keywords</i>)
123
124 <p>
125 Function to extract keywords arguments into a dictionary.
126 </p>
127 <dl>
128
129 <dt><i>keywords</i> (list of ast.keyword)</dt>
130 <dd>
131 list of keyword nodes
132 </dd>
133 </dl>
134 <dl>
135 <dt>Return:</dt>
136 <dd>
137 dictionary with keyword name and value
138 </dd>
139 </dl>
140 <dl>
141 <dt>Return Type:</dt>
142 <dd>
143 dict
144 </dd>
145 </dl>
146 <div align="right"><a href="#top">Up</a></div>
147 <hr />
148 </body></html>

eric ide

mercurial