Project

General

Profile

Revision 9332c7c0

ID9332c7c04417af65a4039ebc70245f1a37ea7391
Parent ecf084d9
Child cea946f5

Added by Yves OUATTARA about 9 years ago

[#1316] ContrĂ´les sur les dates dans le formulaire

Ajout de contrĂ´les sur les dates du formulaire de recherche dans
VigiBoard.

[+] Ajout de tests unitaires

Change-Id: I8f5afce9617f812ccdfad9cde2cd8476eb5fd67d
Refs: #1316
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/1694
Tested-by: Build system <>
Reviewed-by: Thomas BURGUIERE <>

View differences:

vigiboard/i18n/en/LC_MESSAGES/vigiboard.po
8 8
msgstr ""
9 9
"Project-Id-Version: vigilo-vigiboard 3.5\n"
10 10
"Report-Msgid-Bugs-To: contact@projet-vigilo.org\n"
11
"POT-Creation-Date: 2015-04-21 11:49+0200\n"
12
"PO-Revision-Date: 2015-04-21 11:49+0200\n"
11
"POT-Creation-Date: 2015-04-23 18:04+0200\n"
12
"PO-Revision-Date: 2015-04-23 18:04+0200\n"
13 13
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14
"Language-Team: en <LL@li.org>\n"
15 15
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
......
24 24
msgstr "Vigilo has detected a breakdown on the following collector(s): %(list)s"
25 25

  
26 26
#: vigiboard/controllers/root.py:89 vigiboard/controllers/root.py:99
27
#: vigiboard/controllers/root.py:582 vigiboard/controllers/silence.py:70
27
#: vigiboard/controllers/root.py:582 vigiboard/controllers/silence.py:72
28 28
msgid "You need to be authenticated"
29 29
msgstr "You need to be authenticated"
30 30

  
......
130 130
msgid "Next %(limit)s"
131 131
msgstr "Next %(limit)s"
132 132

  
133
#: vigiboard/controllers/silence.py:73
133
#: vigiboard/controllers/silence.py:75
134 134
msgid "Insufficient privileges for this action"
135 135
msgstr "Insufficient privileges for this action"
136 136

  
137
#: vigiboard/controllers/silence.py:172
137
#: vigiboard/controllers/silence.py:160
138 138
#, python-format
139 139
msgid "Another rule already exists for service '%s' on host '%s'."
140 140
msgstr "Another rule already exists for service '%s' on host '%s'."
141 141

  
142
#: vigiboard/controllers/silence.py:176
142
#: vigiboard/controllers/silence.py:164
143 143
#, python-format
144 144
msgid "Another rule already exists for host '%s'."
145 145
msgstr "Another rule already exists for host '%s'."
146 146

  
147
#: vigiboard/controllers/silence.py:258
147
#: vigiboard/controllers/silence.py:246
148 148
#: vigiboard/controllers/plugins/hostname.py:38
149 149
msgid "Host"
150 150
msgstr "Host"
151 151

  
152
#: vigiboard/controllers/silence.py:259
152
#: vigiboard/controllers/silence.py:247
153 153
#: vigiboard/controllers/plugins/servicename.py:41
154 154
msgid "Service"
155 155
msgstr "Service"
156 156

  
157
#: vigiboard/controllers/silence.py:260
157
#: vigiboard/controllers/silence.py:248
158 158
msgid "States"
159 159
msgstr "States"
160 160

  
161
#: vigiboard/controllers/silence.py:261
161
#: vigiboard/controllers/silence.py:249
162 162
msgid "Last modification"
163 163
msgstr "Last modification"
164 164

  
165
#: vigiboard/controllers/silence.py:262
165
#: vigiboard/controllers/silence.py:250
166 166
msgid "Author"
167 167
msgstr "Author"
168 168

  
169
#: vigiboard/controllers/silence.py:263
169
#: vigiboard/controllers/silence.py:251
170 170
msgid "Comment"
171 171
msgstr "Comment"
172 172

  
173
#: vigiboard/controllers/silence.py:313 vigiboard/controllers/silence.py:412
174
#: vigiboard/controllers/silence.py:434 vigiboard/controllers/silence.py:583
173
#: vigiboard/controllers/silence.py:301 vigiboard/controllers/silence.py:400
174
#: vigiboard/controllers/silence.py:422 vigiboard/controllers/silence.py:571
175 175
#, python-format
176 176
msgid "An exception has been raised while querying the database: %s"
177 177
msgstr "An exception has been raised while querying the database: %s"
178 178

  
179
#: vigiboard/controllers/silence.py:317 vigiboard/controllers/silence.py:324
180
#: vigiboard/controllers/silence.py:438 vigiboard/controllers/silence.py:605
179
#: vigiboard/controllers/silence.py:305 vigiboard/controllers/silence.py:312
180
#: vigiboard/controllers/silence.py:426 vigiboard/controllers/silence.py:593
181 181
#, python-format
182 182
msgid "Silence rule #%s does not exist."
183 183
msgstr "Silence rule #%s does not exist."
184 184

  
185
#: vigiboard/controllers/silence.py:395
185
#: vigiboard/controllers/silence.py:383
186 186
msgid "No state specified for the silence rule."
187 187
msgstr "No state specified for the silence rule."
188 188

  
189
#: vigiboard/controllers/silence.py:417
189
#: vigiboard/controllers/silence.py:405
190 190
#, python-format
191 191
msgid "Host '%s' does not exist."
192 192
msgstr "Host '%s' does not exist."
193 193

  
194
#: vigiboard/controllers/silence.py:420
194
#: vigiboard/controllers/silence.py:408
195 195
#, python-format
196 196
msgid "Service '%s' does not exist for host '%s'."
197 197
msgstr "Service '%s' does not exist for host '%s'."
198 198

  
199
#: vigiboard/controllers/silence.py:472
199
#: vigiboard/controllers/silence.py:460
200 200
#, python-format
201 201
msgid "An exception has been raised while updating the database: %s"
202 202
msgstr "An exception has been raised while updating the database: %s"
203 203

  
204
#: vigiboard/controllers/silence.py:482
204
#: vigiboard/controllers/silence.py:470
205 205
#, python-format
206 206
msgid ""
207 207
"User %(user)s (IP: %(ip)s) updated silence rule #%(id)s for service "
......
210 210
"User %(user)s (IP: %(ip)s) updated silence rule #%(id)s for service "
211 211
"%(service)s on host %(host)s."
212 212

  
213
#: vigiboard/controllers/silence.py:492
213
#: vigiboard/controllers/silence.py:480
214 214
#, python-format
215 215
msgid ""
216 216
"Silence rule #%(id)s (host: %(host)s, service: %(service)s) has been "
......
219 219
"Silence rule #%(id)s (host: %(host)s, service: %(service)s) has been "
220 220
"successfully updated."
221 221

  
222
#: vigiboard/controllers/silence.py:501
222
#: vigiboard/controllers/silence.py:489
223 223
#, python-format
224 224
msgid "User %(user)s (IP: %(ip)s) updated silence rule #%(id)s for host %(host)s."
225 225
msgstr "User %(user)s (IP: %(ip)s) updated silence rule #%(id)s for host %(host)s."
226 226

  
227
#: vigiboard/controllers/silence.py:509
227
#: vigiboard/controllers/silence.py:497
228 228
#, python-format
229 229
msgid "Silence rule #%(id)s (host: %(host)s) has been successfully updated."
230 230
msgstr "Silence rule #%(id)s (host: %(host)s) has been successfully updated."
231 231

  
232
#: vigiboard/controllers/silence.py:518
232
#: vigiboard/controllers/silence.py:506
233 233
#, python-format
234 234
msgid ""
235 235
"User %(user)s (IP: %(ip)s) added a silence rule (#%(id)s) for service "
......
238 238
"User %(user)s (IP: %(ip)s) added a silence rule (#%(id)s) for service "
239 239
"%(service)s on host %(host)s."
240 240

  
241
#: vigiboard/controllers/silence.py:528
241
#: vigiboard/controllers/silence.py:516
242 242
#, python-format
243 243
msgid ""
244 244
"A new silence rule (#%(id)s) has been added for service \"%(service)s\" "
......
247 247
"A new silence rule (#%(id)s) has been added for service \"%(service)s\" "
248 248
"on host \"%(host)s\"."
249 249

  
250
#: vigiboard/controllers/silence.py:536
250
#: vigiboard/controllers/silence.py:524
251 251
#, python-format
252 252
msgid ""
253 253
"User %(user)s (IP: %(ip)s) added a silence rule (#%(id)s) for host "
......
256 256
"User %(user)s (IP: %(ip)s) added a silence rule (#%(id)s) for host "
257 257
"%(host)s."
258 258

  
259
#: vigiboard/controllers/silence.py:544
259
#: vigiboard/controllers/silence.py:532
260 260
#, python-format
261 261
msgid "A new silence rule (#%(id)s) has been added for the host \"%(host)s\"."
262 262
msgstr "A new silence rule (#%(id)s) has been added for the host \"%(host)s\"."
263 263

  
264
#: vigiboard/controllers/silence.py:574
264
#: vigiboard/controllers/silence.py:562
265 265
msgid "No silence rule id specified."
266 266
msgstr "No silence rule id specified."
267 267

  
268
#: vigiboard/controllers/silence.py:593
268
#: vigiboard/controllers/silence.py:581
269 269
#, python-format
270 270
msgid "Error: the following silence rules do not exist: %s."
271 271
msgstr "Error: the following silence rules do not exist: %s."
272 272

  
273
#: vigiboard/controllers/silence.py:596
273
#: vigiboard/controllers/silence.py:584
274 274
#, python-format
275 275
msgid "Error: silence rule #%s does not exist."
276 276
msgstr "Error: silence rule #%s does not exist."
277 277

  
278
#: vigiboard/controllers/silence.py:614
278
#: vigiboard/controllers/silence.py:602
279 279
#, python-format
280 280
msgid "An exception has been raised while deleting the silence rules: %s"
281 281
msgstr "An exception has been raised while deleting the silence rules: %s"
282 282

  
283
#: vigiboard/controllers/silence.py:624
283
#: vigiboard/controllers/silence.py:612
284 284
#, python-format
285 285
msgid ""
286 286
"User %(user)s (IP: %(ip)s) deleted silence rule #%(id)s for service "
......
289 289
"User %(user)s (IP: %(ip)s) deleted silence rule #%(id)s for service "
290 290
"%(service)s on host %(host)s"
291 291

  
292
#: vigiboard/controllers/silence.py:636
292
#: vigiboard/controllers/silence.py:624
293 293
#, python-format
294 294
msgid "User %(user)s (IP: %(ip)s) deleted silence rule #%(id)s for host %(host)s"
295 295
msgstr "User %(user)s (IP: %(ip)s) deleted silence rule #%(id)s for host %(host)s"
296 296

  
297
#: vigiboard/controllers/silence.py:647
297
#: vigiboard/controllers/silence.py:635
298 298
#, python-format
299 299
msgid "The following silence rules have been successfully deleted: %s."
300 300
msgstr "The following silence rules have been successfully deleted: %s."
301 301

  
302
#: vigiboard/controllers/silence.py:650
302
#: vigiboard/controllers/silence.py:638
303 303
#, python-format
304 304
msgid "Silence rule #%s has been successfully deleted."
305 305
msgstr "Silence rule #%s has been successfully deleted."
......
327 327
msgid "And"
328 328
msgstr "And"
329 329

  
330
#: vigiboard/controllers/plugins/date.py:109
331
msgid "Start date cannot be greater than current date"
332
msgstr "Start date cannot be greater than current date"
333

  
334
#: vigiboard/controllers/plugins/date.py:112
335
msgid "Start date cannot be greater than end date"
336
msgstr "Start date cannot be greater than end date"
337

  
338
#: vigiboard/controllers/plugins/date.py:120
339
msgid "End date cannot be greater than current date"
340
msgstr "End date cannot be greater than current date"
341

  
330 342
#: vigiboard/controllers/plugins/details.py:195
331 343
#: vigiboard/controllers/plugins/state.py:47
332 344
msgid "Current state"

Also available in: Unified diff