geovisio 2.7.1__py3-none-any.whl → 2.8.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. geovisio/__init__.py +10 -2
  2. geovisio/admin_cli/__init__.py +3 -1
  3. geovisio/admin_cli/user.py +75 -0
  4. geovisio/config_app.py +87 -4
  5. geovisio/templates/main.html +2 -2
  6. geovisio/templates/viewer.html +3 -3
  7. geovisio/translations/da/LC_MESSAGES/messages.mo +0 -0
  8. geovisio/translations/da/LC_MESSAGES/messages.po +850 -0
  9. geovisio/translations/de/LC_MESSAGES/messages.mo +0 -0
  10. geovisio/translations/de/LC_MESSAGES/messages.po +97 -1
  11. geovisio/translations/el/LC_MESSAGES/messages.mo +0 -0
  12. geovisio/translations/en/LC_MESSAGES/messages.mo +0 -0
  13. geovisio/translations/en/LC_MESSAGES/messages.po +210 -127
  14. geovisio/translations/eo/LC_MESSAGES/messages.mo +0 -0
  15. geovisio/translations/eo/LC_MESSAGES/messages.po +790 -0
  16. geovisio/translations/es/LC_MESSAGES/messages.mo +0 -0
  17. geovisio/translations/fi/LC_MESSAGES/messages.mo +0 -0
  18. geovisio/translations/fr/LC_MESSAGES/messages.mo +0 -0
  19. geovisio/translations/fr/LC_MESSAGES/messages.po +39 -2
  20. geovisio/translations/hu/LC_MESSAGES/messages.mo +0 -0
  21. geovisio/translations/it/LC_MESSAGES/messages.mo +0 -0
  22. geovisio/translations/it/LC_MESSAGES/messages.po +875 -0
  23. geovisio/translations/ja/LC_MESSAGES/messages.mo +0 -0
  24. geovisio/translations/ja/LC_MESSAGES/messages.po +719 -0
  25. geovisio/translations/ko/LC_MESSAGES/messages.mo +0 -0
  26. geovisio/translations/messages.pot +191 -122
  27. geovisio/translations/nl/LC_MESSAGES/messages.mo +0 -0
  28. geovisio/translations/pl/LC_MESSAGES/messages.mo +0 -0
  29. geovisio/translations/pl/LC_MESSAGES/messages.po +727 -0
  30. geovisio/translations/zh_Hant/LC_MESSAGES/messages.mo +0 -0
  31. geovisio/translations/zh_Hant/LC_MESSAGES/messages.po +719 -0
  32. geovisio/utils/auth.py +80 -8
  33. geovisio/utils/link.py +3 -2
  34. geovisio/utils/model_query.py +55 -0
  35. geovisio/utils/pictures.py +12 -43
  36. geovisio/utils/semantics.py +120 -0
  37. geovisio/utils/sequences.py +10 -1
  38. geovisio/utils/tokens.py +5 -3
  39. geovisio/utils/upload_set.py +50 -15
  40. geovisio/utils/website.py +50 -0
  41. geovisio/web/annotations.py +17 -0
  42. geovisio/web/auth.py +9 -5
  43. geovisio/web/collections.py +217 -61
  44. geovisio/web/configuration.py +17 -1
  45. geovisio/web/docs.py +64 -53
  46. geovisio/web/items.py +220 -96
  47. geovisio/web/map.py +48 -18
  48. geovisio/web/pages.py +240 -0
  49. geovisio/web/params.py +17 -0
  50. geovisio/web/prepare.py +165 -0
  51. geovisio/web/stac.py +17 -4
  52. geovisio/web/tokens.py +14 -4
  53. geovisio/web/upload_set.py +10 -4
  54. geovisio/web/users.py +176 -44
  55. geovisio/workers/runner_pictures.py +61 -22
  56. {geovisio-2.7.1.dist-info → geovisio-2.8.0.dist-info}/METADATA +5 -4
  57. geovisio-2.8.0.dist-info/RECORD +89 -0
  58. geovisio-2.7.1.dist-info/RECORD +0 -70
  59. {geovisio-2.7.1.dist-info → geovisio-2.8.0.dist-info}/LICENSE +0 -0
  60. {geovisio-2.7.1.dist-info → geovisio-2.8.0.dist-info}/WHEEL +0 -0
@@ -1,20 +1,20 @@
1
1
  # Translations template for PROJECT.
2
- # Copyright (C) 2024 ORGANIZATION
2
+ # Copyright (C) 2025 ORGANIZATION
3
3
  # This file is distributed under the same license as the PROJECT project.
4
- # Automatically generated, 2024.
4
+ # Automatically generated, 2025.
5
5
  #
6
6
  msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: PROJECT VERSION\n"
9
9
  "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
10
- "POT-Creation-Date: 2024-10-28 10:15+0100\n"
11
- "PO-Revision-Date: 2024-10-28 10:15+0100\n"
10
+ "POT-Creation-Date: 2025-01-28 15:02+0100\n"
11
+ "PO-Revision-Date: 2025-01-28 15:02+0100\n"
12
12
  "Last-Translator: Automatically generated\n"
13
13
  "Language-Team: none\n"
14
14
  "MIME-Version: 1.0\n"
15
15
  "Content-Type: text/plain; charset=UTF-8\n"
16
16
  "Content-Transfer-Encoding: 8bit\n"
17
- "Generated-By: Babel 2.15.0\n"
17
+ "Generated-By: Babel 2.16.0\n"
18
18
  "Language: en\n"
19
19
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
20
 
@@ -70,11 +70,20 @@ msgstr "Repositories"
70
70
  msgid "You need to enable JavaScript to run this app."
71
71
  msgstr "You need to enable JavaScript to run this app."
72
72
 
73
- #: geovisio/utils/auth.py:201
73
+ #: geovisio/utils/auth.py:257
74
74
  msgid "Authentication is mandatory"
75
75
  msgstr "Authentication is mandatory"
76
76
 
77
- #: geovisio/utils/auth.py:330
77
+ #: geovisio/utils/auth.py:283
78
+ #, python-format
79
+ msgid ""
80
+ "You need to accept the terms of service before uploading any pictures. You "
81
+ "can do so by validating them here: %(url)s"
82
+ msgstr ""
83
+ "You need to accept the terms of service before uploading any pictures. You "
84
+ "can do so by validating them here: %(url)s"
85
+
86
+ #: geovisio/utils/auth.py:400
78
87
  msgid "Only Bearer token are supported"
79
88
  msgstr "Only Bearer token are supported"
80
89
 
@@ -82,7 +91,7 @@ msgstr "Only Bearer token are supported"
82
91
  msgid "Impossible to find excluded area"
83
92
  msgstr "Impossible to find excluded area"
84
93
 
85
- #: geovisio/utils/pictures.py:303
94
+ #: geovisio/utils/pictures.py:304
86
95
  #, python-format
87
96
  msgid ""
88
97
  "Invalid '%(format)s' format for image, only the following formats are "
@@ -91,33 +100,33 @@ msgstr ""
91
100
  "Invalid '%(format)s' format for image, only the following formats are "
92
101
  "available: %(allowed_formats)s"
93
102
 
94
- #: geovisio/utils/pictures.py:417
103
+ #: geovisio/utils/pictures.py:418
95
104
  msgid "Picture can't be found, you may check its ID"
96
105
  msgstr "Picture can't be found, you may check its ID"
97
106
 
98
- #: geovisio/utils/pictures.py:420
107
+ #: geovisio/utils/pictures.py:421
99
108
  msgid "Picture is not available (either hidden by admin or processing)"
100
109
  msgstr "Picture is not available (either hidden by admin or processing)"
101
110
 
102
- #: geovisio/utils/pictures.py:428
111
+ #: geovisio/utils/pictures.py:429
103
112
  msgid "HD Picture file is not available"
104
113
  msgstr "HD Picture file is not available"
105
114
 
106
- #: geovisio/utils/pictures.py:447
115
+ #: geovisio/utils/pictures.py:448
107
116
  msgid "Picture derivates file are not available"
108
117
  msgstr "Picture derivates file are not available"
109
118
 
110
- #: geovisio/utils/pictures.py:464 geovisio/web/pictures.py:53
119
+ #: geovisio/utils/pictures.py:465 geovisio/web/pictures.py:53
111
120
  #: geovisio/web/pictures.py:98 geovisio/web/pictures.py:208
112
121
  msgid "Unable to read picture on filesystem"
113
122
  msgstr "Unable to read picture on filesystem"
114
123
 
115
- #: geovisio/utils/reports.py:142 geovisio/utils/upload_set.py:352
124
+ #: geovisio/utils/reports.py:142 geovisio/utils/upload_set.py:367
116
125
  #: geovisio/web/params.py:356
117
126
  msgid "Unsupported filter parameter"
118
127
  msgstr "Unsupported filter parameter"
119
128
 
120
- #: geovisio/utils/sequences.py:377
129
+ #: geovisio/utils/sequences.py:388
121
130
  msgid ""
122
131
  "Sort by file date is not possible on this sequence (no file date information "
123
132
  "available on pictures)"
@@ -125,7 +134,7 @@ msgstr ""
125
134
  "Sort by file date is not possible on this sequence (no file date information "
126
135
  "available on pictures)"
127
136
 
128
- #: geovisio/utils/sequences.py:402
137
+ #: geovisio/utils/sequences.py:413
129
138
  #, python-format
130
139
  msgid ""
131
140
  "Sort using %(sort)s is not possible on this sequence, picture %(pic)s is "
@@ -134,7 +143,8 @@ msgstr ""
134
143
  "Sort using %(sort)s is not possible on this sequence, picture %(pic)s is "
135
144
  "missing mandatory metadata"
136
145
 
137
- #: geovisio/utils/sequences.py:590 geovisio/web/collections.py:618
146
+ #: geovisio/utils/sequences.py:605 geovisio/web/collections.py:690
147
+ #: geovisio/web/prepare.py:148
138
148
  #, python-format
139
149
  msgid "Collection %(c)s wasn't found in database"
140
150
  msgstr "Collection %(c)s wasn't found in database"
@@ -155,7 +165,7 @@ msgstr ""
155
165
  "Token not yet claimed, this token cannot be used yet. Either claim this "
156
166
  "token or generate a new one"
157
167
 
158
- #: geovisio/utils/upload_set.py:158
168
+ #: geovisio/utils/upload_set.py:177
159
169
  msgid ""
160
170
  "The picture is too similar to another one (nearby and taken almost at the "
161
171
  "same time)"
@@ -163,20 +173,28 @@ msgstr ""
163
173
  "The picture is too similar to another one (nearby and taken almost at the "
164
174
  "same time)"
165
175
 
166
- #: geovisio/utils/upload_set.py:161
176
+ #: geovisio/utils/upload_set.py:180
167
177
  msgid "The sent file is not a valid JPEG"
168
178
  msgstr "The sent file is not a valid JPEG"
169
179
 
170
- #: geovisio/utils/upload_set.py:164
180
+ #: geovisio/utils/upload_set.py:183
171
181
  msgid ""
172
182
  "The picture has invalid EXIF or XMP metadata, making it impossible to use"
173
183
  msgstr ""
174
184
  "The picture has invalid EXIF or XMP metadata, making it impossible to use"
175
185
 
176
- #: geovisio/utils/upload_set.py:167
186
+ #: geovisio/utils/upload_set.py:186
177
187
  msgid "Something went very wrong, but not due to the picture itself"
178
188
  msgstr "Something went very wrong, but not due to the picture itself"
179
189
 
190
+ #: geovisio/utils/upload_set.py:600
191
+ msgid ""
192
+ "A different picture with the same name has already been added to this "
193
+ "uploadset"
194
+ msgstr ""
195
+ "A different picture with the same name has already been added to this "
196
+ "uploadset"
197
+
180
198
  #: geovisio/web/auth.py:60
181
199
  msgid "Impossible to finish authentication flow"
182
200
  msgstr "Impossible to finish authentication flow"
@@ -189,41 +207,35 @@ msgstr ""
189
207
  "You can try to clear your cookies and retry. If the problem persists, "
190
208
  "contact your instance administrator."
191
209
 
192
- #: geovisio/web/collections.py:288
210
+ #: geovisio/web/collections.py:309
193
211
  #, python-format
194
212
  msgid "There is no collection created after %(d)s"
195
213
  msgstr "There is no collection created after %(d)s"
196
214
 
197
- #: geovisio/web/collections.py:290
215
+ #: geovisio/web/collections.py:311
198
216
  #, python-format
199
217
  msgid "There is no collection created before %(d)s"
200
218
  msgstr "There is no collection created before %(d)s"
201
219
 
202
- #: geovisio/web/collections.py:399 geovisio/web/items.py:397
220
+ #: geovisio/web/collections.py:431 geovisio/web/items.py:406
203
221
  msgid "Collection doesn't exist"
204
222
  msgstr "Collection doesn't exist"
205
223
 
206
- #: geovisio/web/collections.py:458
224
+ #: geovisio/web/collections.py:490
207
225
  msgid "Impossible to find a thumbnail for the collection"
208
226
  msgstr "Impossible to find a thumbnail for the collection"
209
227
 
210
- #: geovisio/web/collections.py:578 geovisio/web/items.py:1174
228
+ #: geovisio/web/collections.py:594 geovisio/web/items.py:1198
211
229
  msgid ""
212
230
  "Picture visibility parameter (visible) should be either unset, true or false"
213
231
  msgstr ""
214
232
  "Picture visibility parameter (visible) should be either unset, true or false"
215
233
 
216
- #: geovisio/web/collections.py:584
217
- msgid ""
218
- "Sequence title is not valid, should be a string with a max of 250 characters"
219
- msgstr ""
220
- "Sequence title is not valid, should be a string with a max of 250 characters"
221
-
222
- #: geovisio/web/collections.py:590
234
+ #: geovisio/web/collections.py:601
223
235
  msgid "Sort order parameter is invalid"
224
236
  msgstr "Sort order parameter is invalid"
225
237
 
226
- #: geovisio/web/collections.py:601
238
+ #: geovisio/web/collections.py:614
227
239
  msgid ""
228
240
  "Relative heading is not valid, should be an integer in degrees from -180 to "
229
241
  "180"
@@ -231,32 +243,52 @@ msgstr ""
231
243
  "Relative heading is not valid, should be an integer in degrees from -180 to "
232
244
  "180"
233
245
 
234
- #: geovisio/web/collections.py:622
235
- msgid "You're not authorized to edit this sequence"
236
- msgstr "You're not authorized to edit this sequence"
246
+ #: geovisio/web/collections.py:674 geovisio/web/items.py:1298
247
+ #: geovisio/web/prepare.py:62 geovisio/web/prepare.py:128
248
+ #: geovisio/web/reports.py:349 geovisio/web/reports.py:392
249
+ #: geovisio/web/upload_set.py:272 geovisio/web/upload_set.py:392
250
+ #: geovisio/web/users.py:369
251
+ msgid "Impossible to parse parameters"
252
+ msgstr "Impossible to parse parameters"
237
253
 
238
- #: geovisio/web/collections.py:631
254
+ #: geovisio/web/collections.py:697
255
+ msgid ""
256
+ "You're not authorized to edit those fields for this sequence. Only the owner "
257
+ "can change the visibility and the title"
258
+ msgstr ""
259
+ "You're not authorized to edit those fields for this sequence. Only the owner "
260
+ "can change the visibility and the title"
261
+
262
+ #: geovisio/web/collections.py:707
263
+ msgid ""
264
+ "You're not authorized to edit this sequence, collaborative editing is not "
265
+ "allowed"
266
+ msgstr ""
267
+ "You're not authorized to edit this sequence, collaborative editing is not "
268
+ "allowed"
269
+
270
+ #: geovisio/web/collections.py:719
239
271
  #, python-format
240
272
  msgid ""
241
273
  "Sequence %(c)s is in %(s)s state, its visibility can't be changed for now"
242
274
  msgstr ""
243
275
  "Sequence %(c)s is in %(s)s state, its visibility can't be changed for now"
244
276
 
245
- #: geovisio/web/collections.py:766
277
+ #: geovisio/web/collections.py:858
246
278
  msgid "Sequence doesn't exists"
247
279
  msgstr "Sequence doesn't exists"
248
280
 
249
- #: geovisio/web/collections.py:911 geovisio/web/stac.py:337
281
+ #: geovisio/web/collections.py:1027 geovisio/web/stac.py:347
250
282
  #, python-format
251
283
  msgid "Impossible to find user %(u)s"
252
284
  msgstr "Impossible to find user %(u)s"
253
285
 
254
- #: geovisio/web/collections.py:943 geovisio/web/stac.py:347
286
+ #: geovisio/web/collections.py:1062 geovisio/web/stac.py:357
255
287
  #, python-format
256
288
  msgid "No data loaded for user %(u)s"
257
289
  msgstr "No data loaded for user %(u)s"
258
290
 
259
- #: geovisio/web/collections.py:945
291
+ #: geovisio/web/collections.py:1064
260
292
  msgid "No matching sequences found"
261
293
  msgstr "No matching sequences found"
262
294
 
@@ -293,52 +325,52 @@ msgstr "Parameter for replacing all Excluded Areas should be a valid JSON"
293
325
  msgid "You must be logged-in as admin to delete excluded areas"
294
326
  msgstr "You must be logged-in as admin to delete excluded areas"
295
327
 
296
- #: geovisio/web/items.py:360
328
+ #: geovisio/web/items.py:369
297
329
  msgid "limit parameter should be an integer between 1 and 10000"
298
330
  msgstr "limit parameter should be an integer between 1 and 10000"
299
331
 
300
- #: geovisio/web/items.py:362
332
+ #: geovisio/web/items.py:371
301
333
  msgid ""
302
334
  "limit parameter should be a valid, positive integer (between 1 and 10000)"
303
335
  msgstr ""
304
336
  "limit parameter should be a valid, positive integer (between 1 and 10000)"
305
337
 
306
- #: geovisio/web/items.py:367
338
+ #: geovisio/web/items.py:376
307
339
  msgid "`startAfterRank` and `withPicture` are mutually exclusive parameters"
308
340
  msgstr "`startAfterRank` and `withPicture` are mutually exclusive parameters"
309
341
 
310
- #: geovisio/web/items.py:374
342
+ #: geovisio/web/items.py:383
311
343
  msgid "startAfterRank parameter should be a positive integer (starting from 1)"
312
344
  msgstr ""
313
345
  "startAfterRank parameter should be a positive integer (starting from 1)"
314
346
 
315
- #: geovisio/web/items.py:376
347
+ #: geovisio/web/items.py:385
316
348
  msgid "startAfterRank parameter should be a valid, positive integer"
317
349
  msgstr "startAfterRank parameter should be a valid, positive integer"
318
350
 
319
- #: geovisio/web/items.py:403
351
+ #: geovisio/web/items.py:412
320
352
  #, python-format
321
353
  msgid "No more items in this collection (last available rank is %(r)s)"
322
354
  msgstr "No more items in this collection (last available rank is %(r)s)"
323
355
 
324
- #: geovisio/web/items.py:413
356
+ #: geovisio/web/items.py:422
325
357
  #, python-format
326
358
  msgid "Picture with id %(p)s does not exists"
327
359
  msgstr "Picture with id %(p)s does not exists"
328
360
 
329
- #: geovisio/web/items.py:699
361
+ #: geovisio/web/items.py:726
330
362
  msgid "Item doesn't exist"
331
363
  msgstr "Item doesn't exist"
332
364
 
333
- #: geovisio/web/items.py:758
365
+ #: geovisio/web/items.py:785
334
366
  msgid "Search using POST method should have a JSON body"
335
367
  msgstr "Search using POST method should have a JSON body"
336
368
 
337
- #: geovisio/web/items.py:767
369
+ #: geovisio/web/items.py:794
338
370
  msgid "Parameter limit must be either empty or a number between 1 and 10000"
339
371
  msgstr "Parameter limit must be either empty or a number between 1 and 10000"
340
372
 
341
- #: geovisio/web/items.py:823
373
+ #: geovisio/web/items.py:850
342
374
  msgid ""
343
375
  "Parameter place_fov_tolerance must be either empty or a number between 2 and "
344
376
  "180"
@@ -346,145 +378,205 @@ msgstr ""
346
378
  "Parameter place_fov_tolerance must be either empty or a number between 2 and "
347
379
  "180"
348
380
 
349
- #: geovisio/web/items.py:845
381
+ #: geovisio/web/items.py:872
350
382
  msgid ""
351
383
  "Parameter intersects should contain a valid GeoJSON Geometry (not a Feature)"
352
384
  msgstr ""
353
385
  "Parameter intersects should contain a valid GeoJSON Geometry (not a Feature)"
354
386
 
355
- #: geovisio/web/items.py:861
387
+ #: geovisio/web/items.py:888
356
388
  msgid "Parameter ids should be a JSON array of strings"
357
389
  msgstr "Parameter ids should be a JSON array of strings"
358
390
 
359
- #: geovisio/web/items.py:873
391
+ #: geovisio/web/items.py:900
360
392
  msgid "Parameter collections should be a JSON array of strings"
361
393
  msgstr "Parameter collections should be a JSON array of strings"
362
394
 
363
- #: geovisio/web/items.py:884
395
+ #: geovisio/web/items.py:911
364
396
  msgid "Picture doesn't exist"
365
397
  msgstr "Picture doesn't exist"
366
398
 
367
- #: geovisio/web/items.py:987 geovisio/web/upload_set.py:527
399
+ #: geovisio/web/items.py:1023 geovisio/web/upload_set.py:534
368
400
  msgid "Content type should be multipart/form-data"
369
401
  msgstr "Content type should be multipart/form-data"
370
402
 
371
- #: geovisio/web/items.py:991
403
+ #: geovisio/web/items.py:1027
372
404
  msgid "Missing \"position\" parameter"
373
405
  msgstr "Missing \"position\" parameter"
374
406
 
375
- #: geovisio/web/items.py:998
407
+ #: geovisio/web/items.py:1034
376
408
  msgid "Position in sequence should be a positive integer"
377
409
  msgstr "Position in sequence should be a positive integer"
378
410
 
379
- #: geovisio/web/items.py:1012 geovisio/web/upload_set.py:336
411
+ #: geovisio/web/items.py:1048 geovisio/web/upload_set.py:343
380
412
  msgid ""
381
413
  "Longitude cannot be overridden alone, override_latitude also needs to be set"
382
414
  msgstr ""
383
415
  "Longitude cannot be overridden alone, override_latitude also needs to be set"
384
416
 
385
- #: geovisio/web/items.py:1014 geovisio/web/upload_set.py:338
417
+ #: geovisio/web/items.py:1050 geovisio/web/upload_set.py:345
386
418
  msgid ""
387
419
  "Latitude cannot be overridden alone, override_longitude also needs to be set"
388
420
  msgstr ""
389
421
  "Latitude cannot be overridden alone, override_longitude also needs to be set"
390
422
 
391
- #: geovisio/web/items.py:1015 geovisio/web/upload_set.py:311
423
+ #: geovisio/web/items.py:1051 geovisio/web/upload_set.py:318
392
424
  #, python-format
393
425
  msgid "For parameter `override_longitude`, `%(v)s` is not a valid longitude"
394
426
  msgstr "For parameter `override_longitude`, `%(v)s` is not a valid longitude"
395
427
 
396
- #: geovisio/web/items.py:1016 geovisio/web/upload_set.py:316
428
+ #: geovisio/web/items.py:1052 geovisio/web/upload_set.py:323
397
429
  #, python-format
398
430
  msgid "For parameter `override_latitude`, `%(v)s` is not a valid latitude"
399
431
  msgstr "For parameter `override_latitude`, `%(v)s` is not a valid latitude"
400
432
 
401
- #: geovisio/web/items.py:1035
433
+ #: geovisio/web/items.py:1071
402
434
  msgid "Picture blur status should be either unset, true or false"
403
435
  msgstr "Picture blur status should be either unset, true or false"
404
436
 
405
- #: geovisio/web/items.py:1039
437
+ #: geovisio/web/items.py:1075
406
438
  msgid "No picture file was sent"
407
439
  msgstr "No picture file was sent"
408
440
 
409
- #: geovisio/web/items.py:1045 geovisio/web/upload_set.py:377
441
+ #: geovisio/web/items.py:1081 geovisio/web/upload_set.py:384
410
442
  msgid ""
411
443
  "Picture file is either missing or in an unsupported format (should be jpg)"
412
444
  msgstr ""
413
445
  "Picture file is either missing or in an unsupported format (should be jpg)"
414
446
 
415
- #: geovisio/web/items.py:1052
447
+ #: geovisio/web/items.py:1088
416
448
  #, python-format
417
449
  msgid "Collection %(s)s wasn't found in database"
418
450
  msgstr "Collection %(s)s wasn't found in database"
419
451
 
420
- #: geovisio/web/items.py:1056
452
+ #: geovisio/web/items.py:1092
421
453
  msgid "You're not authorized to add picture to this collection"
422
454
  msgstr "You're not authorized to add picture to this collection"
423
455
 
424
- #: geovisio/web/items.py:1061
456
+ #: geovisio/web/items.py:1097
425
457
  msgid "The collection has been deleted, impossible to add pictures to it"
426
458
  msgstr "The collection has been deleted, impossible to add pictures to it"
427
459
 
428
- #: geovisio/web/items.py:1091
460
+ #: geovisio/web/items.py:1127
429
461
  msgid "Picture at given position already exist"
430
462
  msgstr "Picture at given position already exist"
431
463
 
432
- #: geovisio/web/items.py:1093 geovisio/web/upload_set.py:613
464
+ #: geovisio/web/items.py:1129 geovisio/web/upload_set.py:620
433
465
  msgid "Impossible to parse picture metadata"
434
466
  msgstr "Impossible to parse picture metadata"
435
467
 
436
- #: geovisio/web/items.py:1095 geovisio/web/upload_set.py:620
468
+ #: geovisio/web/items.py:1131 geovisio/web/upload_set.py:627
437
469
  msgid "Picture has invalid metadata"
438
470
  msgstr "Picture has invalid metadata"
439
471
 
440
- #: geovisio/web/items.py:1103 geovisio/web/upload_set.py:646
472
+ #: geovisio/web/items.py:1139 geovisio/web/upload_set.py:653
441
473
  msgid "Picture wasn't correctly saved in filesystem"
442
474
  msgstr "Picture wasn't correctly saved in filesystem"
443
475
 
444
- #: geovisio/web/items.py:1186
476
+ #: geovisio/web/items.py:1208
445
477
  msgid ""
446
- "Heading is not valid, should be an integer in degrees from 0° to 360°. North "
447
- "is 0°, East = 90°, South = 180° and West = 270°."
478
+ "Parameter `capture_time` is not a valid datetime, it should be an iso "
479
+ "formated datetime (like '2017-07-21T17:32:28Z')."
448
480
  msgstr ""
449
- "Heading is not valid, should be an integer in degrees from 0° to 360°. North "
450
- "is 0°, East = 90°, South = 180° and West = 270°."
481
+ "Parameter `capture_time` is not a valid datetime, it should be an iso "
482
+ "formated datetime (like '2017-07-21T17:32:28Z')."
483
+
484
+ #: geovisio/web/items.py:1216
485
+ #, python-format
486
+ msgid "For parameter `longitude`, `%(v)s` is not a valid longitude"
487
+ msgstr "For parameter `longitude`, `%(v)s` is not a valid longitude"
488
+
489
+ #: geovisio/web/items.py:1221
490
+ #, python-format
491
+ msgid "For parameter `latitude`, `%(v)s` is not a valid latitude"
492
+ msgstr "For parameter `latitude`, `%(v)s` is not a valid latitude"
493
+
494
+ #: geovisio/web/items.py:1226
495
+ msgid "Longitude cannot be overridden alone, latitude also needs to be set"
496
+ msgstr "Longitude cannot be overridden alone, latitude also needs to be set"
497
+
498
+ #: geovisio/web/items.py:1228
499
+ msgid "Latitude cannot be overridden alone, longitude also needs to be set"
500
+ msgstr "Latitude cannot be overridden alone, longitude also needs to be set"
451
501
 
452
- #: geovisio/web/items.py:1203 geovisio/web/items.py:1294
502
+ #: geovisio/web/items.py:1311 geovisio/web/items.py:1421
503
+ #: geovisio/web/prepare.py:84
453
504
  #, python-format
454
505
  msgid "Picture %(p)s wasn't found in database"
455
506
  msgstr "Picture %(p)s wasn't found in database"
456
507
 
457
- #: geovisio/web/items.py:1207 geovisio/web/items.py:1298
458
- msgid "You're not authorized to edit this picture"
459
- msgstr "You're not authorized to edit this picture"
508
+ #: geovisio/web/items.py:1318
509
+ msgid ""
510
+ "You're not authorized to edit the visibility of this picture. Only the owner "
511
+ "can change this."
512
+ msgstr ""
513
+ "You're not authorized to edit the visibility of this picture. Only the owner "
514
+ "can change this."
460
515
 
461
- #: geovisio/web/items.py:1217
516
+ #: geovisio/web/items.py:1325
517
+ msgid ""
518
+ "You're not authorized to edit this picture, collaborative editing is not "
519
+ "allowed"
520
+ msgstr ""
521
+ "You're not authorized to edit this picture, collaborative editing is not "
522
+ "allowed"
523
+
524
+ #: geovisio/web/items.py:1336
462
525
  #, python-format
463
526
  msgid ""
464
527
  "Picture %(p)s is in %(s)s state, its visibility can't be changed for now"
465
528
  msgstr ""
466
529
  "Picture %(p)s is in %(s)s state, its visibility can't be changed for now"
467
530
 
468
- #: geovisio/web/map.py:143
531
+ #: geovisio/web/items.py:1425
532
+ msgid "You're not authorized to edit this picture"
533
+ msgstr "You're not authorized to edit this picture"
534
+
535
+ #: geovisio/web/map.py:165
469
536
  msgid "One of required parameter is empty"
470
537
  msgstr "One of required parameter is empty"
471
538
 
472
- #: geovisio/web/map.py:145
539
+ #: geovisio/web/map.py:167
473
540
  msgid "Tile format is invalid, should be either pbf or mvt"
474
541
  msgstr "Tile format is invalid, should be either pbf or mvt"
475
542
 
476
- #: geovisio/web/map.py:149 geovisio/web/map.py:151
543
+ #: geovisio/web/map.py:171 geovisio/web/map.py:173
477
544
  msgid "X or Y parameter is out of bounds"
478
545
  msgstr "X or Y parameter is out of bounds"
479
546
 
480
- #: geovisio/web/map.py:153
547
+ #: geovisio/web/map.py:175
481
548
  msgid "Z parameter is out of bounds (should be 0-15)"
482
549
  msgstr "Z parameter is out of bounds (should be 0-15)"
483
550
 
484
- #: geovisio/web/map.py:164
551
+ #: geovisio/web/map.py:186
485
552
  msgid "Impossible to get tile"
486
553
  msgstr "Impossible to get tile"
487
554
 
555
+ #: geovisio/web/pages.py:44
556
+ msgid "Page name is not recognized"
557
+ msgstr "Page name is not recognized"
558
+
559
+ #: geovisio/web/pages.py:126 geovisio/web/pages.py:235
560
+ #, python-format
561
+ msgid "Page not available in language %(l)s"
562
+ msgstr "Page not available in language %(l)s"
563
+
564
+ #: geovisio/web/pages.py:175 geovisio/web/pages.py:229
565
+ msgid "You must be logged-in as admin to edit pages"
566
+ msgstr "You must be logged-in as admin to edit pages"
567
+
568
+ #: geovisio/web/pages.py:177
569
+ msgid "Page content must be HTML (with Content-Type: text/html header set)"
570
+ msgstr "Page content must be HTML (with Content-Type: text/html header set)"
571
+
572
+ #: geovisio/web/pages.py:191
573
+ msgid "Could not update page content"
574
+ msgstr "Could not update page content"
575
+
576
+ #: geovisio/web/pages.py:237
577
+ msgid "Could not delete page content"
578
+ msgstr "Could not delete page content"
579
+
488
580
  #: geovisio/web/params.py:98
489
581
  msgid "Parameter datetime should contain one or two dates"
490
582
  msgstr "Parameter datetime should contain one or two dates"
@@ -538,31 +630,39 @@ msgstr "Parameter %(p)s has a min value greater than its max value"
538
630
  msgid "Parameter %(p)s must be a valid list"
539
631
  msgstr "Parameter %(p)s must be a valid list"
540
632
 
541
- #: geovisio/web/params.py:441
633
+ #: geovisio/web/params.py:371
634
+ msgid ""
635
+ "Heading is not valid, should be an integer in degrees from 0° to 360°. North "
636
+ "is 0°, East = 90°, South = 180° and West = 270°."
637
+ msgstr ""
638
+ "Heading is not valid, should be an integer in degrees from 0° to 360°. North "
639
+ "is 0°, East = 90°, South = 180° and West = 270°."
640
+
641
+ #: geovisio/web/params.py:458
542
642
  msgid "Unsupported sortby parameter: invalid column name"
543
643
  msgstr "Unsupported sortby parameter: invalid column name"
544
644
 
545
- #: geovisio/web/params.py:449
645
+ #: geovisio/web/params.py:466
546
646
  msgid "Unsupported sortby parameter: syntax isn't correct"
547
647
  msgstr "Unsupported sortby parameter: syntax isn't correct"
548
648
 
549
- #: geovisio/web/params.py:475
649
+ #: geovisio/web/params.py:492
550
650
  #, python-format
551
651
  msgid ""
552
652
  "limit parameter should be a valid, positive integer (between 1 and %(v)s)"
553
653
  msgstr ""
554
654
  "limit parameter should be a valid, positive integer (between 1 and %(v)s)"
555
655
 
556
- #: geovisio/web/params.py:478
656
+ #: geovisio/web/params.py:495
557
657
  #, python-format
558
658
  msgid "limit parameter should be an integer between 1 and %(v)s"
559
659
  msgstr "limit parameter should be an integer between 1 and %(v)s"
560
660
 
561
- #: geovisio/web/params.py:489
661
+ #: geovisio/web/params.py:506
562
662
  msgid "longitude needs to be between -180 and 180"
563
663
  msgstr "longitude needs to be between -180 and 180"
564
664
 
565
- #: geovisio/web/params.py:499
665
+ #: geovisio/web/params.py:516
566
666
  msgid "latitude needs to be between -90 and 90"
567
667
  msgstr "latitude needs to be between -90 and 90"
568
668
 
@@ -618,11 +718,6 @@ msgstr "Impossible to edit the Report"
618
718
  msgid "Parameter for editing the Report should be a valid JSON"
619
719
  msgstr "Parameter for editing the Report should be a valid JSON"
620
720
 
621
- #: geovisio/web/reports.py:349 geovisio/web/reports.py:392
622
- #: geovisio/web/upload_set.py:265 geovisio/web/upload_set.py:385
623
- msgid "Impossible to parse parameters"
624
- msgstr "Impossible to parse parameters"
625
-
626
721
  #: geovisio/web/reports.py:352
627
722
  msgid "You're not authorized to list reports"
628
723
  msgstr "You're not authorized to list reports"
@@ -632,14 +727,6 @@ msgstr "You're not authorized to list reports"
632
727
  msgid "Sequence \"%(name)s\" by \"%(user)s\" was captured on %(date)s."
633
728
  msgstr "Sequence \"%(name)s\" by \"%(user)s\" was captured on %(date)s."
634
729
 
635
- #: geovisio/web/rss.py:40
636
- msgid "View on the map"
637
- msgstr "View on the map"
638
-
639
- #: geovisio/web/rss.py:40
640
- msgid "JSON metadata"
641
- msgstr "JSON metadata"
642
-
643
730
  #: geovisio/web/rss.py:49
644
731
  msgid "GeoVisio collections"
645
732
  msgstr "GeoVisio collections"
@@ -661,24 +748,20 @@ msgstr "Impossible to generate a new token"
661
748
  msgid "Token already claimed by another account"
662
749
  msgstr "Token already claimed by another account"
663
750
 
664
- #: geovisio/web/upload_set.py:133
751
+ #: geovisio/web/upload_set.py:134
665
752
  msgid "Impossible to create an UploadSet"
666
753
  msgstr "Impossible to create an UploadSet"
667
754
 
668
- #: geovisio/web/upload_set.py:135
755
+ #: geovisio/web/upload_set.py:136
669
756
  msgid "Parameter for creating an UploadSet should be a valid JSON"
670
757
  msgstr "Parameter for creating an UploadSet should be a valid JSON"
671
758
 
672
- #: geovisio/web/upload_set.py:181 geovisio/web/upload_set.py:214
673
- #: geovisio/web/upload_set.py:724
759
+ #: geovisio/web/upload_set.py:182 geovisio/web/upload_set.py:216
760
+ #: geovisio/web/upload_set.py:735
674
761
  msgid "UploadSet doesn't exist"
675
762
  msgstr "UploadSet doesn't exist"
676
763
 
677
- #: geovisio/web/upload_set.py:216
678
- msgid "You're not authorized to list pictures in this upload set"
679
- msgstr "You're not authorized to list pictures in this upload set"
680
-
681
- #: geovisio/web/upload_set.py:303
764
+ #: geovisio/web/upload_set.py:310
682
765
  msgid ""
683
766
  "Parameter `override_capture_time` is not a valid datetime, it should be an "
684
767
  "iso formated datetime (like '2017-07-21T17:32:28Z')."
@@ -686,46 +769,46 @@ msgstr ""
686
769
  "Parameter `override_capture_time` is not a valid datetime, it should be an "
687
770
  "iso formated datetime (like '2017-07-21T17:32:28Z')."
688
771
 
689
- #: geovisio/web/upload_set.py:370
772
+ #: geovisio/web/upload_set.py:377
690
773
  msgid "No file was sent"
691
774
  msgstr "No file was sent"
692
775
 
693
- #: geovisio/web/upload_set.py:534 geovisio/web/upload_set.py:710
776
+ #: geovisio/web/upload_set.py:541 geovisio/web/upload_set.py:721
694
777
  #, python-format
695
778
  msgid "UploadSet %(u)s does not exist"
696
779
  msgstr "UploadSet %(u)s does not exist"
697
780
 
698
- #: geovisio/web/upload_set.py:538
781
+ #: geovisio/web/upload_set.py:545
699
782
  msgid "You're not authorized to add picture to this upload set"
700
783
  msgstr "You're not authorized to add picture to this upload set"
701
784
 
702
- #: geovisio/web/upload_set.py:578
785
+ #: geovisio/web/upload_set.py:585
703
786
  msgid "The item has already been added to this upload set"
704
787
  msgstr "The item has already been added to this upload set"
705
788
 
706
- #: geovisio/web/upload_set.py:585
789
+ #: geovisio/web/upload_set.py:592
707
790
  msgid "The same picture has already been sent in a past upload"
708
791
  msgstr "The same picture has already been sent in a past upload"
709
792
 
710
- #: geovisio/web/upload_set.py:628
793
+ #: geovisio/web/upload_set.py:635
711
794
  msgid ""
712
795
  "Impossible to open file as image. The only supported image format is jpg."
713
796
  msgstr ""
714
797
  "Impossible to open file as image. The only supported image format is jpg."
715
798
 
716
- #: geovisio/web/upload_set.py:714
799
+ #: geovisio/web/upload_set.py:725
717
800
  msgid "You're not authorized to complete this upload set"
718
801
  msgstr "You're not authorized to complete this upload set"
719
802
 
720
- #: geovisio/web/upload_set.py:759
803
+ #: geovisio/web/upload_set.py:770
721
804
  msgid "You're not authorized to delete this upload set"
722
805
  msgstr "You're not authorized to delete this upload set"
723
806
 
724
- #: geovisio/web/users.py:84
807
+ #: geovisio/web/users.py:110
725
808
  msgid "Impossible to find user"
726
809
  msgstr "Impossible to find user"
727
810
 
728
- #: geovisio/web/users.py:160
811
+ #: geovisio/web/users.py:213
729
812
  msgid ""
730
813
  "No search parameter given, you should provide `q=<pattern>` as query "
731
814
  "parameter"