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