From e33d90ad3bfe62df954ce71d2bf2827db9479b86 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 1 Aug 2024 21:31:30 +0100 Subject: [PATCH 1/2] Remove mongoengine references from translation files --- babel/admin.pot | 20 ------- .../translations/af/LC_MESSAGES/admin.po | 20 ------- .../translations/ar/LC_MESSAGES/admin.po | 20 ------- .../translations/be/LC_MESSAGES/admin.po | 20 ------- .../translations/ca_ES/LC_MESSAGES/admin.po | 20 ------- .../translations/cs/LC_MESSAGES/admin.po | 20 ------- .../translations/da/LC_MESSAGES/admin.po | 20 ------- .../translations/de/LC_MESSAGES/admin.po | 20 ------- .../translations/el/LC_MESSAGES/admin.po | 20 ------- .../translations/en/LC_MESSAGES/admin.po | 19 ------ .../translations/es/LC_MESSAGES/admin.po | 20 ------- .../translations/et/LC_MESSAGES/admin.po | 20 ------- .../translations/fa/LC_MESSAGES/admin.po | 20 ------- .../translations/fi/LC_MESSAGES/admin.po | 20 ------- .../translations/fr/LC_MESSAGES/admin.po | 20 ------- .../translations/he/LC_MESSAGES/admin.po | 20 ------- .../translations/hu/LC_MESSAGES/admin.po | 58 ++++++------------- .../translations/it/LC_MESSAGES/admin.po | 20 ------- .../translations/ja/LC_MESSAGES/admin.po | 20 ------- .../translations/ko/LC_MESSAGES/admin.po | 20 ------- .../translations/nl/LC_MESSAGES/admin.po | 20 ------- .../translations/no/LC_MESSAGES/admin.po | 20 ------- .../translations/pa/LC_MESSAGES/admin.po | 20 ------- .../translations/pl/LC_MESSAGES/admin.po | 20 ------- .../translations/pt/LC_MESSAGES/admin.po | 20 ------- .../translations/pt_BR/LC_MESSAGES/admin.po | 20 ------- .../translations/ro/LC_MESSAGES/admin.po | 20 ------- .../translations/ru/LC_MESSAGES/admin.po | 20 ------- .../translations/sk/LC_MESSAGES/admin.po | 20 ------- .../translations/sr/LC_MESSAGES/admin.po | 20 ------- .../translations/sv/LC_MESSAGES/admin.po | 20 ------- .../translations/tr/LC_MESSAGES/admin.po | 20 ------- .../translations/uk/LC_MESSAGES/admin.po | 20 ------- .../translations/vi/LC_MESSAGES/admin.po | 20 ------- .../zh_Hans_CN/LC_MESSAGES/admin.po | 20 ------- .../zh_Hant_TW/LC_MESSAGES/admin.po | 20 ------- 36 files changed, 19 insertions(+), 738 deletions(-) diff --git a/babel/admin.pot b/babel/admin.pot index 355ea2f97..0233536bb 100644 --- a/babel/admin.pot +++ b/babel/admin.pot @@ -197,7 +197,6 @@ msgid "Editing %(path)s" msgstr "" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -224,67 +223,57 @@ msgstr "" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -294,16 +283,13 @@ msgstr "" msgid "not between" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -311,7 +297,6 @@ msgstr "" msgid "Failed to create record. %(error)s" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -320,7 +305,6 @@ msgstr "" msgid "Failed to update record. %(error)s" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -328,14 +312,12 @@ msgstr "" msgid "Failed to delete record. %(error)s" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -345,7 +327,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "" msgstr[1] "" -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -659,4 +640,3 @@ msgstr "" #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "" - diff --git a/flask_admin/translations/af/LC_MESSAGES/admin.po b/flask_admin/translations/af/LC_MESSAGES/admin.po index 3cf6f5704..db643f262 100644 --- a/flask_admin/translations/af/LC_MESSAGES/admin.po +++ b/flask_admin/translations/af/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Redigering %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Wysig" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "gelyk" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "nie gelyk" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "bevat" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "nie bevat" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "groter as" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "kleiner as" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "leë" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "in lys" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "nie in die lys" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "nie in die lys" msgid "not between" msgstr "nie tussen" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Kon model kry. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Kon model kry. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Kon rekord te skep. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Kon rekord te skep. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Kon rekord te werk. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Kon rekord te werk. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Kon rekord verwyder. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Is jy seker jy wil gekies rekords skrap?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Rekord is suksesvol verwyder." msgstr[1] "%(count)s rekords is suksesvol verwyder." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Kies ten minste een rekord." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Is jy seker jy wil hierdie rekord verwyder?" - diff --git a/flask_admin/translations/ar/LC_MESSAGES/admin.po b/flask_admin/translations/ar/LC_MESSAGES/admin.po index a864e1d11..0012ba85b 100644 --- a/flask_admin/translations/ar/LC_MESSAGES/admin.po +++ b/flask_admin/translations/ar/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "تحرير %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "عدل" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "يساوي" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "لا تساوي" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "يحتوي على" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "لا تحتوي علي" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "اكبر من" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "أصغر من" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "فارغ" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "في قائمة" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "غير موجود في قائمة" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "غير موجود في قائمة" msgid "not between" msgstr "ليس بين" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "فشل في الحصول على نموذج. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "فشل في الحصول على نموذج. %(error)s" msgid "Failed to create record. %(error)s" msgstr "فشل في إنشاء سجل. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "فشل في إنشاء سجل. %(error)s" msgid "Failed to update record. %(error)s" msgstr "فشل في إنشاء سجل. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "فشل في إنشاء سجل. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "فشل في حذف السجل. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "هل أنت متأكد من أنك تريد حذف السجلات المحددة؟?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -348,7 +330,6 @@ msgstr[3] "تم بنجاح حذف السجلات %(count)s." msgstr[4] "تم بنجاح حذف السجلات %(count)s." msgstr[5] "تم بنجاح حذف السجلات %(count)s." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -666,4 +647,3 @@ msgstr "الرجاء تحديد سجل واحد على الأقل." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "هل أنت متأكد من أنك تريد حذف هذا السجل؟" - diff --git a/flask_admin/translations/be/LC_MESSAGES/admin.po b/flask_admin/translations/be/LC_MESSAGES/admin.po index bf81ed082..da1923928 100644 --- a/flask_admin/translations/be/LC_MESSAGES/admin.po +++ b/flask_admin/translations/be/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Рэдагаванне %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Рэдагаваць" msgid "Cannot operate on non empty directories" msgstr "Дзеянне з непустымі тэчкамі немагчымае" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "роўны" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "няроўны" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "утрымлівае" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "ня ўтрымлівае" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "большы за" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "меншы за" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "пусты" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "у спісе" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "ня ў спісе" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "ня ў спісе" msgid "not between" msgstr "не паміж" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "ObjectId роўны" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Памылка атрымання мадэлі. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Памылка атрымання мадэлі. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Памылка стварэння запісу. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Памылка стварэння запісу. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Памылка аднаўлення запісу. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Памылка аднаўлення запісу. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Памылка выдалення запісу. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Вы дакладна хочаце выдаліць пазначаныя запісы?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -345,7 +327,6 @@ msgstr[0] "Запіс быў паспяхова выдалены." msgstr[1] "%(count)s запісы былі паспяхова выдаленыя." msgstr[2] "%(count)s запісаў было паспяхова выдалена." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -660,4 +641,3 @@ msgstr "Выберыце, калі ласка, як найменш адзін з #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Вы дакладна жадаеце выдаліць гэты запіс?" - diff --git a/flask_admin/translations/ca_ES/LC_MESSAGES/admin.po b/flask_admin/translations/ca_ES/LC_MESSAGES/admin.po index eb366d905..7de4fcf09 100644 --- a/flask_admin/translations/ca_ES/LC_MESSAGES/admin.po +++ b/flask_admin/translations/ca_ES/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "%(path)s d'edició" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Editar" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "igual" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "no és igual" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "te" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "no te" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "més que" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "menor que" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "buit" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "en la llista" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "no en la llista" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "no en la llista" msgid "not between" msgstr "no entre" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "No s'ha pogut obtenir el model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "No s'ha pogut obtenir el model. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Error en eliminar el registre. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Error en eliminar el registre. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Error en actualitzar el registre. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Error en actualitzar el registre. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Error en eliminar el registre. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "¿Segur que vols esborrar els registres seleccionats?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "El registre he sigut eliminat correctament." msgstr[1] "%(count)s registres s'han eliminat amb èxit." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Seleccionar almenys un registre." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Esteu segurs que voleu eliminar el registre?" - diff --git a/flask_admin/translations/cs/LC_MESSAGES/admin.po b/flask_admin/translations/cs/LC_MESSAGES/admin.po index 47067b5b5..444812275 100644 --- a/flask_admin/translations/cs/LC_MESSAGES/admin.po +++ b/flask_admin/translations/cs/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Editace %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Úpravy" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "rovno" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "není rovno" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "obsahuje" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "neobsahuje" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "větší než" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "menší než" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "prázdné" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "v seznamu" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "není v seznamu" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "není v seznamu" msgid "not between" msgstr "není mezi" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Nepodařilo se získat modelu. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Nepodařilo se získat modelu. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Chyba při vytváření modelu. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Chyba při vytváření modelu. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Chyba při aktualizaci modelu. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Chyba při aktualizaci modelu. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Chyba při mazání modelu. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Skutečně chcete vymazat vybrané modely?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -345,7 +327,6 @@ msgstr[0] "%(count)s model byl úspěšně smazán." msgstr[1] "%(count)s modely byly úspěšně smazány." msgstr[2] "%(count)s modelů bylo úspěšně smazáno." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -660,4 +641,3 @@ msgstr "Vyberte prosím alespoň jeden model." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Opravdu chcete vymazat tento záznam?" - diff --git a/flask_admin/translations/da/LC_MESSAGES/admin.po b/flask_admin/translations/da/LC_MESSAGES/admin.po index 6dbbaddc4..6e89f14d6 100644 --- a/flask_admin/translations/da/LC_MESSAGES/admin.po +++ b/flask_admin/translations/da/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Redigering af %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Rediger" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "er lig med" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "ikke lige" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "indeholder" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "ikke indeholder" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "større end" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "mindre end" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "Tom" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "i listen" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "ikke på listen" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "ikke på listen" msgid "not between" msgstr "ikke mellem" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Undladt at få model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Undladt at få model. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Kunne ikke oprette posten. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Kunne ikke oprette posten. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Kunne ikke oprette posten. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Kunne ikke oprette posten. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Kunne ikke slette posten. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Er du sikker på du vil slette de valgte poster?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Posten blev slettet." msgstr[1] "%(count)s poster blev slettet." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Vælg mindst én post." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Er du sikker på du vil slette denne post?" - diff --git a/flask_admin/translations/de/LC_MESSAGES/admin.po b/flask_admin/translations/de/LC_MESSAGES/admin.po index 3b8a1d7f8..f129a83c7 100644 --- a/flask_admin/translations/de/LC_MESSAGES/admin.po +++ b/flask_admin/translations/de/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Bearbeiten von %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Bearbeiten" msgid "Cannot operate on non empty directories" msgstr "Operieren in nicht-leeren Verzeichnissen nicht möglich" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "gleich" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "ungleich" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "enthält" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "enthält nicht" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "größer als" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "kleiner als" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "leer" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "in Liste" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "nicht in Liste" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "nicht in Liste" msgid "not between" msgstr "nicht zwischen" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "ObjectId entspricht" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Fehler beim Holen des Modells. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Fehler beim Holen des Modells. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Erstellen von Eintrag fehlgeschlagen: %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Erstellen von Eintrag fehlgeschlagen: %(error)s" msgid "Failed to update record. %(error)s" msgstr "Aktualisieren von Eintrag fehlgeschlagen: %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Aktualisieren von Eintrag fehlgeschlagen: %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Eintrag konnte nicht gelöscht werden: %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Sind Sie sicher, dass Sie die ausgewählten Einträge löschen möchten?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Eintrag wurde erfolgreich gelöscht." msgstr[1] "%(count)s Einträge wurden erfolgreich gelöscht." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Bitte wählen Sie mindestens einen Eintrag aus." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Sind Sie sicher, dass Sie diesen Eintrag löschen möchten?" - diff --git a/flask_admin/translations/el/LC_MESSAGES/admin.po b/flask_admin/translations/el/LC_MESSAGES/admin.po index 9be4a5aa2..825634517 100644 --- a/flask_admin/translations/el/LC_MESSAGES/admin.po +++ b/flask_admin/translations/el/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Επεξεργασία %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Επεξεργασία" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "ισούται με" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "διάφορο" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "περιέχει" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "δεν περιέχει" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "μεγαλύτερο από" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "μικρότερο από" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "κενό" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "στη λίστα" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "εκτός λίστας" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "εκτός λίστας" msgid "not between" msgstr "δεν μεταξύ" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Απέτυχε η λήψη του μοντέλου. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Απέτυχε η λήψη του μοντέλου. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Απέτυχε η δημιουργία ρεκόρ. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Απέτυχε η δημιουργία ρεκόρ. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Απέτυχε η δημιουργία εγγραφής. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Απέτυχε η δημιουργία εγγραφής. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Απέτυχε η διαγραφή της εγγραφής. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Είστε βέβαιοι ότι θέλετε να διαγράψετε τις επιλεγμένες εγγραφές;" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Η εγγραφή διαγράφηκε με επιτυχία." msgstr[1] "%(count)s εγγραφές διαγράφηκαν με επιτυχία." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Παρακαλώ επιλέξτε τουλάχιστον μία εγγρ #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτήν την εγγραφή;" - diff --git a/flask_admin/translations/en/LC_MESSAGES/admin.po b/flask_admin/translations/en/LC_MESSAGES/admin.po index ff882d61f..4099a1869 100644 --- a/flask_admin/translations/en/LC_MESSAGES/admin.po +++ b/flask_admin/translations/en/LC_MESSAGES/admin.po @@ -154,7 +154,6 @@ msgid "Cannot edit %(name)s." msgstr "Cannot edit %(name)s." #: ../flask_admin/contrib/fileadmin.py:881 -#: ../flask_admin/contrib/mongoengine/view.py:626 #: ../flask_admin/contrib/peewee/view.py:429 #: ../flask_admin/contrib/pymongo/view.py:349 #: ../flask_admin/contrib/sqla/view.py:956 @@ -181,67 +180,57 @@ msgstr "Cli: Invalid command." msgid "Invalid JSON" msgstr "Invalid JSON" -#: ../flask_admin/contrib/mongoengine/filters.py:38 #: ../flask_admin/contrib/peewee/filters.py:38 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:38 msgid "equals" msgstr "equals" -#: ../flask_admin/contrib/mongoengine/filters.py:47 #: ../flask_admin/contrib/peewee/filters.py:46 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:46 msgid "not equal" msgstr "not equal" -#: ../flask_admin/contrib/mongoengine/filters.py:57 #: ../flask_admin/contrib/peewee/filters.py:55 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:55 msgid "contains" msgstr "contains" -#: ../flask_admin/contrib/mongoengine/filters.py:67 #: ../flask_admin/contrib/peewee/filters.py:64 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:64 msgid "not contains" msgstr "not contains" -#: ../flask_admin/contrib/mongoengine/filters.py:76 #: ../flask_admin/contrib/peewee/filters.py:72 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:72 msgid "greater than" msgstr "greater than" -#: ../flask_admin/contrib/mongoengine/filters.py:85 #: ../flask_admin/contrib/peewee/filters.py:80 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:80 msgid "smaller than" msgstr "smaller than" -#: ../flask_admin/contrib/mongoengine/filters.py:97 #: ../flask_admin/contrib/peewee/filters.py:91 #: ../flask_admin/contrib/sqla/filters.py:91 msgid "empty" msgstr "empty" -#: ../flask_admin/contrib/mongoengine/filters.py:112 #: ../flask_admin/contrib/peewee/filters.py:105 #: ../flask_admin/contrib/sqla/filters.py:105 msgid "in list" msgstr "in list" -#: ../flask_admin/contrib/mongoengine/filters.py:121 #: ../flask_admin/contrib/peewee/filters.py:114 #: ../flask_admin/contrib/sqla/filters.py:114 msgid "not in list" msgstr "not in list" -#: ../flask_admin/contrib/mongoengine/filters.py:221 #: ../flask_admin/contrib/peewee/filters.py:208 #: ../flask_admin/contrib/peewee/filters.py:245 #: ../flask_admin/contrib/peewee/filters.py:282 @@ -251,12 +240,10 @@ msgstr "not in list" msgid "not between" msgstr "not between" -#: ../flask_admin/contrib/mongoengine/view.py:520 #, python-format msgid "Failed to get model. %(error)s" msgstr "Failed to get model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:539 #: ../flask_admin/contrib/peewee/view.py:380 #: ../flask_admin/contrib/pymongo/view.py:284 #: ../flask_admin/contrib/sqla/view.py:888 @@ -264,7 +251,6 @@ msgstr "Failed to get model. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Failed to create record. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:565 #: ../flask_admin/contrib/peewee/view.py:399 #: ../flask_admin/contrib/pymongo/view.py:309 #: ../flask_admin/contrib/sqla/view.py:914 ../flask_admin/model/base.py:1671 @@ -273,7 +259,6 @@ msgstr "Failed to create record. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Failed to update record. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:589 #: ../flask_admin/contrib/peewee/view.py:415 #: ../flask_admin/contrib/pymongo/view.py:335 #: ../flask_admin/contrib/sqla/view.py:940 @@ -281,14 +266,12 @@ msgstr "Failed to update record. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Failed to delete record. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:627 #: ../flask_admin/contrib/peewee/view.py:430 #: ../flask_admin/contrib/pymongo/view.py:350 #: ../flask_admin/contrib/sqla/view.py:957 msgid "Are you sure you want to delete selected records?" msgstr "Are you sure you want to delete selected records?" -#: ../flask_admin/contrib/mongoengine/view.py:636 #: ../flask_admin/contrib/peewee/view.py:446 #: ../flask_admin/contrib/pymongo/view.py:360 #: ../flask_admin/contrib/sqla/view.py:973 ../flask_admin/model/base.py:1619 @@ -298,7 +281,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Record was successfully deleted." msgstr[1] "%(count)s records were successfully deleted." -#: ../flask_admin/contrib/mongoengine/view.py:642 #: ../flask_admin/contrib/peewee/view.py:452 #: ../flask_admin/contrib/pymongo/view.py:365 #: ../flask_admin/contrib/sqla/view.py:981 @@ -532,4 +514,3 @@ msgstr "Delete record" #: ../flask_admin/templates/bootstrap3/admin/model/list.html:158 msgid "Please select at least one record." msgstr "Please select at least one record." - diff --git a/flask_admin/translations/es/LC_MESSAGES/admin.po b/flask_admin/translations/es/LC_MESSAGES/admin.po index 09ae2cd0e..f3c89ecd0 100644 --- a/flask_admin/translations/es/LC_MESSAGES/admin.po +++ b/flask_admin/translations/es/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Edición %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Editar" msgid "Cannot operate on non empty directories" msgstr "No puede funcionar en directorios no vacíos" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "igual a" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "no es igual a" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "contiene" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "no contiene" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "mayor que" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "menor que" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "vacío" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "en la lista" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "no en la lista" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "no en la lista" msgid "not between" msgstr "No entre" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "ObjectId es igual a" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Error al obtener el modelo. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Error al obtener el modelo. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Error al crear el registro. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Error al crear el registro. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Error al actualizar el registro. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Error al actualizar el registro. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Error al borrar el registro. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "¿Está seguro de que desea borrar los elementos seleccionados?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "El elemento se ha borrado correctamente." msgstr[1] "%(count)s elementos se han borrado correctamente." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Por favor, seleccione al menos un elemento." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "¿Está seguro de que quiere borrar este elemento?" - diff --git a/flask_admin/translations/et/LC_MESSAGES/admin.po b/flask_admin/translations/et/LC_MESSAGES/admin.po index 050cb4999..705d32f74 100644 --- a/flask_admin/translations/et/LC_MESSAGES/admin.po +++ b/flask_admin/translations/et/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "%(path)s redigeerimine" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Redigeeri" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "võrdub" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "ei võrdu" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "sisaldab" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "ei sisalda" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "suurem kui" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "väiksem kui" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "tühi" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "loendis" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "pole loendis" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "pole loendis" msgid "not between" msgstr "pole vahemikus" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Mudeli päring ebaõnnestus. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Mudeli päring ebaõnnestus. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Kirje loomine nurjus. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Kirje loomine nurjus. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Kirje uuendamine nurjus. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Kirje uuendamine nurjus. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Kirje kustutamine nurjus. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Kas soovite kindlasti valitud kirjed kustutada?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Kirje kustutati edukalt." msgstr[1] "%(count)s kirjet kustutati edukalt." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Palun valige vähemalt üks kirje." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Kas soovite kindlasti selle kirje kustutada?" - diff --git a/flask_admin/translations/fa/LC_MESSAGES/admin.po b/flask_admin/translations/fa/LC_MESSAGES/admin.po index 2faf70771..9dd90ebe3 100644 --- a/flask_admin/translations/fa/LC_MESSAGES/admin.po +++ b/flask_admin/translations/fa/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "ویرایش %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "ویرایش" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "برابر با" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "برابر نیست با" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "محتوی" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "محتوی نیست" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "بزرگتر از" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "کوچکتر از" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "خالی باشد" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "در این لیست باشد" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "در این لیست نباشد" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "در این لیست نباشد" msgid "not between" msgstr "بین این دو نباشد" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "خواندن مدل با مشکل روبرو شد. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "خواندن مدل با مشکل روبرو شد. %(error)s" msgid "Failed to create record. %(error)s" msgstr "ساخت مدل با مشکل روبرو شد %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "ساخت مدل با مشکل روبرو شد %(error)s" msgid "Failed to update record. %(error)s" msgstr "بروزرسانی مدل با مشکل روبرو شد%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "بروزرسانی مدل با مشکل روبرو شد%(error)s" msgid "Failed to delete record. %(error)s" msgstr "حذف مدل با مشکل روبرو شد %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "آیا از حذف مدل ها اطمینان دارید" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "مدل با موفقیت حذف شد" msgstr[1] "%(count)s رکورد با موفقیت حذف شد." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "حداقل یک پوشه انتخاب کنید" #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "آیا از حذف این موارد اطمینان دارید؟" - diff --git a/flask_admin/translations/fi/LC_MESSAGES/admin.po b/flask_admin/translations/fi/LC_MESSAGES/admin.po index 43e9db4ee..837264fc8 100644 --- a/flask_admin/translations/fi/LC_MESSAGES/admin.po +++ b/flask_admin/translations/fi/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Muokkaus %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Muokkaa" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "vastaa" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "eri suuri" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "sisältää" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "ei sisällä" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "suurempi kuin" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "pienempi kuin" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "tyhjä" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "-luettelosta" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "ei luettelossa" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "ei luettelossa" msgid "not between" msgstr "ei välillä" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Ei saanut malli. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Ei saanut malli. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Tietueen luominen epäonnistui. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Tietueen luominen epäonnistui. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Tietueen luominen epäonnistui. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Tietueen luominen epäonnistui. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Tietueen poistaminen epäonnistui. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Oletko varma, että haluat poistaa valitut tietueet?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Tietueen poistaminen onnistui." msgstr[1] "%(count)s tietueet on poistettu." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Valitse vähintään yksi tietue." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Oletko varma, että haluat poistaa tämän tietueen?" - diff --git a/flask_admin/translations/fr/LC_MESSAGES/admin.po b/flask_admin/translations/fr/LC_MESSAGES/admin.po index 0884b6d2b..93258f465 100644 --- a/flask_admin/translations/fr/LC_MESSAGES/admin.po +++ b/flask_admin/translations/fr/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Montage %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Editer" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "vaut" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "est différent de" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "contient" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "ne contient pas" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "plus grand que" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "plus petit que" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "vide" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "dans la liste" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "pas dans la liste" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "pas dans la liste" msgid "not between" msgstr "pas entre" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Impossible d'obtenir le modèle. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Impossible d'obtenir le modèle. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Échec dans la création de l'objet. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Échec dans la création de l'objet. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Échec dans la mise à jour de l'objet. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Échec dans la mise à jour de l'objet. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Échec dans la suppression de l'objet: %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Êtes-vous bien sûr de vouloir supprimer ces objets?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "L'objet a bien été détruit." msgstr[1] "Les %(count)s objets ont bien été détruits." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Veuillez choisir au moins un modèle." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Êtes-vous bien sûr de vouloir supprimer cet objet?" - diff --git a/flask_admin/translations/he/LC_MESSAGES/admin.po b/flask_admin/translations/he/LC_MESSAGES/admin.po index fe8beac74..a7a4b1f0b 100644 --- a/flask_admin/translations/he/LC_MESSAGES/admin.po +++ b/flask_admin/translations/he/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "עריכת %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "עריכה" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "שווה ל-" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "לא שווה" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "מכיל" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "לא מכיל" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "גדול מ-" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "קטן יותר" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "ריק" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "ברשימה" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "לא ברשימה" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "לא ברשימה" msgid "not between" msgstr "לא בין" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "מודל נכשלה. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "מודל נכשלה. %(error)s" msgid "Failed to create record. %(error)s" msgstr "יצירת רשומה נכשלה. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "יצירת רשומה נכשלה. %(error)s" msgid "Failed to update record. %(error)s" msgstr "יצירת רשומה נכשלה. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "יצירת רשומה נכשלה. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "לא ניתן למחוק רשומה. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "האם אתה בטוח שברצונך למחוק את הרשומות שנבחרו?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -346,7 +328,6 @@ msgstr[1] "%(count)s רשומות נמחקו בהצלחה." msgstr[2] "%(count)s רשומות נמחקו בהצלחה." msgstr[3] "%(count)s רשומות נמחקו בהצלחה." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -662,4 +643,3 @@ msgstr "נא בחר רשומה אחת לפחות." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "האם אתה בטוח שברצונך למחוק רשומה זו?" - diff --git a/flask_admin/translations/hu/LC_MESSAGES/admin.po b/flask_admin/translations/hu/LC_MESSAGES/admin.po index ba449f48f..037b1c241 100644 --- a/flask_admin/translations/hu/LC_MESSAGES/admin.po +++ b/flask_admin/translations/hu/LC_MESSAGES/admin.po @@ -195,8 +195,7 @@ msgstr "Nem lehet szerkeszteni a %(name)s." msgid "Editing %(path)s" msgstr "%(path)s szerkesztése" -#: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 +#: ../flask_admin/contrib/fileadmin/__init__.py:1163s #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -222,68 +221,58 @@ msgstr "Szerkesztése" #: ../flask_admin/contrib/fileadmin/s3.py:153 msgid "Cannot operate on non empty directories" msgstr "" - -#: ../flask_admin/contrib/mongoengine/filters.py:39 +s #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "egyenlő" - -#: ../flask_admin/contrib/mongoengine/filters.py:48 +s #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "nem egyenlő" - -#: ../flask_admin/contrib/mongoengine/filters.py:58 +s #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "tartalmaz" - -#: ../flask_admin/contrib/mongoengine/filters.py:68 +s #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "nem tartalmaz" - -#: ../flask_admin/contrib/mongoengine/filters.py:77 +s #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "nagyobb, mint" - -#: ../flask_admin/contrib/mongoengine/filters.py:86 +s #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "kisebb, mint" - -#: ../flask_admin/contrib/mongoengine/filters.py:98 +s #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "üres" - -#: ../flask_admin/contrib/mongoengine/filters.py:113 +s #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "a lista" - -#: ../flask_admin/contrib/mongoengine/filters.py:122 +s #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "listán nem szereplő" - -#: ../flask_admin/contrib/mongoengine/filters.py:222 +s #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -292,25 +281,21 @@ msgstr "listán nem szereplő" #: ../flask_admin/contrib/sqla/filters.py:287 msgid "not between" msgstr "nem között" - -#: ../flask_admin/contrib/mongoengine/filters.py:247 +s msgid "ObjectId equals" msgstr "" - -#: ../flask_admin/contrib/mongoengine/view.py:551 +s #, python-format msgid "Failed to get model. %(error)s" msgstr "Nem sikerült lekérni a modell. %(error)s" - -#: ../flask_admin/contrib/mongoengine/view.py:570 +s #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 #, python-format msgid "Failed to create record. %(error)s" msgstr "Nem sikerült létrehozni a rekord. %(error)s" - -#: ../flask_admin/contrib/mongoengine/view.py:596 +s #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -318,23 +303,20 @@ msgstr "Nem sikerült létrehozni a rekord. %(error)s" #, python-format msgid "Failed to update record. %(error)s" msgstr "Nem sikerült létrehozni a rekord. %(error)s" - -#: ../flask_admin/contrib/mongoengine/view.py:619 +s #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 #, python-format msgid "Failed to delete record. %(error)s" msgstr "Nem sikerült törölni a rekordot. %(error)s" - -#: ../flask_admin/contrib/mongoengine/view.py:659 +s #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Biztosan törli a kijelölt rekordokat?" - -#: ../flask_admin/contrib/mongoengine/view.py:668 +s #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -343,8 +325,7 @@ msgid "Record was successfully deleted." msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Rekord törlésének sikerességét." msgstr[1] "%(count)s rekordok törlése sikeres volt." - -#: ../flask_admin/contrib/mongoengine/view.py:674 +s #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Jelöljön ki legalább egy bejegyzést." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Biztosan törli ezt a rekordot?" - diff --git a/flask_admin/translations/it/LC_MESSAGES/admin.po b/flask_admin/translations/it/LC_MESSAGES/admin.po index a2cf2cdc5..e17835aaa 100644 --- a/flask_admin/translations/it/LC_MESSAGES/admin.po +++ b/flask_admin/translations/it/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Modifica %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Modifica" msgid "Cannot operate on non empty directories" msgstr "Non può funzionare in directory non vuote" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "uguale" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "differente" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "contiene" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "non contiene" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "piú grande di" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "piú piccolo di" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "vuoto" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "nell'elenco" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "non in elenco" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "non in elenco" msgid "not between" msgstr "non tra" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "ObjectId uguale" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Impossibile ottenere il modello. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Impossibile ottenere il modello. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Impossibile creare il record. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Impossibile creare il record. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Impossibile aggiornare il record. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Impossibile aggiornare il record. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Impossibile eliminare il record: %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Sei sicuro di voler eliminare i record selezionati?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Il record é stato eliminato con successo." msgstr[1] "%(count)s records eliminati con successo." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Selezionare almeno un record." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Sei sicuro di voler eliminare questo record?" - diff --git a/flask_admin/translations/ja/LC_MESSAGES/admin.po b/flask_admin/translations/ja/LC_MESSAGES/admin.po index 18201bc84..932a747d4 100644 --- a/flask_admin/translations/ja/LC_MESSAGES/admin.po +++ b/flask_admin/translations/ja/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "%(path)s を編集中" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "編集" msgid "Cannot operate on non empty directories" msgstr "ディレクトリがからではないため、操作できません" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "等しい" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "等しくない" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "含む" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "含まれていません" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "より大きい" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "より小さい" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "空" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "一覧にある" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "一覧にない" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "一覧にない" msgid "not between" msgstr "間ではなく" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "モデルを取得できませんでした。%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "モデルを取得できませんでした。%(error)s" msgid "Failed to create record. %(error)s" msgstr "レコードの作成に失敗しました。%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "レコードの作成に失敗しました。%(error)s" msgid "Failed to update record. %(error)s" msgstr "レコードの更新に失敗しました。%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "レコードの更新に失敗しました。%(error)s" msgid "Failed to delete record. %(error)s" msgstr "レコードの削除に失敗しました。%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "選択したレコードを削除してもよろしいですか。" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -343,7 +325,6 @@ msgid "Record was successfully deleted." msgid_plural "%(count)s records were successfully deleted." msgstr[0] "%(count)s レコードが正常に削除されました。" -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -656,4 +637,3 @@ msgstr "少なくとも1つのレコードを選択してください。" #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "このレコードを削除してもよろしいですか。" - diff --git a/flask_admin/translations/ko/LC_MESSAGES/admin.po b/flask_admin/translations/ko/LC_MESSAGES/admin.po index 6334aa1ca..93182ab97 100644 --- a/flask_admin/translations/ko/LC_MESSAGES/admin.po +++ b/flask_admin/translations/ko/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "%(path)s 편집 중" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "편집" msgid "Cannot operate on non empty directories" msgstr "비어 있지 않은 디렉토리에 작업할 수 없습니다." -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "같음" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "같지 않음" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "포함" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "포함되지않은" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "보다 큰" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "보다 작은" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "빈" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "목록에서" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "목록에 없는" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "목록에 없는" msgid "not between" msgstr "사이에 존재하지않는" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "ObjectId 같음" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "모델을 가져오는 데 실패하였습니다. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "모델을 가져오는 데 실패하였습니다. %(error)s" msgid "Failed to create record. %(error)s" msgstr "레코드를 만들지 못했습니다. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "레코드를 만들지 못했습니다. %(error)s" msgid "Failed to update record. %(error)s" msgstr "레코드를 업데이트하지 못했습니다. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "레코드를 업데이트하지 못했습니다. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "레코드를 삭제하지 못했습니다. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "선택한 레코드를 삭제하시겠습니까?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -343,7 +325,6 @@ msgid "Record was successfully deleted." msgid_plural "%(count)s records were successfully deleted." msgstr[0] "%(count)s 레코드 성공적으로 삭제되었습니다." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -656,4 +637,3 @@ msgstr "최소한 하나 이상의 레코드를 선택하십시오." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "이 레코드를 삭제 하시겠습니까?" - diff --git a/flask_admin/translations/nl/LC_MESSAGES/admin.po b/flask_admin/translations/nl/LC_MESSAGES/admin.po index 0dd1ac8de..2b5b76aca 100644 --- a/flask_admin/translations/nl/LC_MESSAGES/admin.po +++ b/flask_admin/translations/nl/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "%(path)s bewerken" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Bewerken" msgid "Cannot operate on non empty directories" msgstr "Operatie kan alleen worden uitgevoerd op lege mappen" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "gelijk" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "niet gelijk" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "bevat" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "bevat niet" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "groter dan" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "kleiner dan" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "leeg" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "in lijst" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "niet in lijst" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "niet in lijst" msgid "not between" msgstr "niet tussen" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Fout bij het ophalen van model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Fout bij het ophalen van model. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Is mislukt om record te maken. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Is mislukt om record te maken. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Is mislukt om record te maken. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Is mislukt om record te maken. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Fout bij het verwijderen van de record. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Weet u zeker dat u wilt verwijderen van geselecteerde records?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Record is met succes verwijderd." msgstr[1] "%(count)s records zijn met succes verwijderd." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Selecteer ten minste één record." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Weet u zeker dat u wilt verwijderen van deze record?" - diff --git a/flask_admin/translations/no/LC_MESSAGES/admin.po b/flask_admin/translations/no/LC_MESSAGES/admin.po index fe4763d47..3e83eee35 100644 --- a/flask_admin/translations/no/LC_MESSAGES/admin.po +++ b/flask_admin/translations/no/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Redigerer %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Rediger" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "er lik" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "ikke lik" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "inneholder" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "inneholder ikke" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "større enn" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "mindre enn" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "Tom" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "i listen" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "ikke i listen" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "ikke i listen" msgid "not between" msgstr "ikke mellom" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Kan ikke hente modell. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Kan ikke hente modell. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Kan ikke opprette posten. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Kan ikke opprette posten. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Kan ikke opprette posten. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Kan ikke opprette posten. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Kan ikke slette posten. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Er du sikker på at du vil slette valgte oppføringer?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Posten ble slettet." msgstr[1] "%(count)s poster ble slettet." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Velg minst én post." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Er du sikker på at du vil slette denne posten?" - diff --git a/flask_admin/translations/pa/LC_MESSAGES/admin.po b/flask_admin/translations/pa/LC_MESSAGES/admin.po index 60c0eaa35..b3a367c37 100644 --- a/flask_admin/translations/pa/LC_MESSAGES/admin.po +++ b/flask_admin/translations/pa/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr " %(path)s ਬਦਲਿਆ ਜਾ ਰਿਹਾ " #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "ਬਦਲੋ" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "ਬਰਾਬਰ" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "ਨਾ ਬਰਾਬਰ" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "ਸ਼ਾਮਲ" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "ਸ਼ਾਮਲ ਨਹੀਂ" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "ਤੋਂ ਵੱਧ ਹੈ" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "ਤੋਂ ਘੱਟ ਹੈ" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "ਖਾਲੀ" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "ਸੂਚੀ ਵਿੱਚ ਹੈ" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "ਸੂਚੀ ਵਿੱਚ ਨਹੀਂ ਹੈ " -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "ਸੂਚੀ ਵਿੱਚ ਨਹੀਂ ਹੈ " msgid "not between" msgstr "ਵਿਚਾਲੇ ਨਹੀਂ ਹੈ " -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "ਮੌਡਲ ਕੱਢਣ ਵਿੱਚ ਨਾਕਾਮਯਾਬੀ | %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "ਮੌਡਲ ਕੱਢਣ ਵਿੱਚ ਨਾਕਾਮਯਾਬੀ | %( msgid "Failed to create record. %(error)s" msgstr "ਰਿਕਾਰਡ ਬਨਾਉਣ ਵਿੱਚ ਨਾਕਾਮਯਾਬੀ | %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "ਰਿਕਾਰਡ ਬਨਾਉਣ ਵਿੱਚ ਨਾਕਾਮਯਾਬ msgid "Failed to update record. %(error)s" msgstr "ਰਿਕਾਰਡ ਬਦਲਣ ਵਿੱਚ ਨਾਕਾਮਯਾਬੀ | %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "ਰਿਕਾਰਡ ਬਦਲਣ ਵਿੱਚ ਨਾਕਾਮਯਾਬੀ msgid "Failed to delete record. %(error)s" msgstr "ਰਿਕਾਰਡ ਮਿਟਾਉਣ ਵਿੱਚ ਨਾਕਾਮਯਾਬੀ | %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ ਕਿ ਤੁਸੀਂ ਚੁਣੇ ਹੋਏ ਰਿਕਾਰਡ ਮਿਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "ਰਿਕਾਰਡ ਕਾਮਯਾਬੀ ਨਾਲ ਮਿਟਾਇਆ ਗਿਆ |" msgstr[1] "%(count)s ਰਿਕਾਰਡ ਕਾਮਯਾਬੀ ਨਾਲ ਮਿਟਾਏ ਗਏ |" -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "ਕਿਰਪਾ ਕਰਕੇ ਘੱਟੋ ਘੱਟ ਇੱਕ ਰਿਕ #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ ਕਿ ਤੁਸੀਂ ਰਿਕੌਰਡ ਮਿਟਾਉਣਾ ਚਾਹੁੰਦੇ ਹੋ?" - diff --git a/flask_admin/translations/pl/LC_MESSAGES/admin.po b/flask_admin/translations/pl/LC_MESSAGES/admin.po index 54bea4759..b01df7afa 100644 --- a/flask_admin/translations/pl/LC_MESSAGES/admin.po +++ b/flask_admin/translations/pl/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Edycja %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Edycja" msgid "Cannot operate on non empty directories" msgstr "Nie może operować na niepustych katalogach" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "jest równe" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "nie równe" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "zawiera" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "nie zawiera" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "większe niż" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "mniejsze niż" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "puste" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "na liście" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "nie na liście" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "nie na liście" msgid "not between" msgstr "nie pomiędzy" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Nie udało się uzyskać modelu. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Nie udało się uzyskać modelu. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Nie udało się utworzyć rekordu. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Nie udało się utworzyć rekordu. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Nie udało się zaktualizować rekordu. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Nie udało się zaktualizować rekordu. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Nie można usunąć rekordu. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Czy na pewno chcesz usunąć zaznaczone rekordy?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -345,7 +327,6 @@ msgstr[0] "Rekord został pomyślnie usunięty." msgstr[1] "%(count)s rekordy zostały pomyślnie usunięte." msgstr[2] "%(count)s rekordy zostały pomyślnie usunięte." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -660,4 +641,3 @@ msgstr "Wybierz co najmniej jeden rekord." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Czy na pewno chcesz usunąć ten rekord?" - diff --git a/flask_admin/translations/pt/LC_MESSAGES/admin.po b/flask_admin/translations/pt/LC_MESSAGES/admin.po index e1f21d0d6..660748539 100644 --- a/flask_admin/translations/pt/LC_MESSAGES/admin.po +++ b/flask_admin/translations/pt/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Edição %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Editar" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "igual" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "diferente" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "contém" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "não contém" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "maior que" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "menor que" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "vazio" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "na lista" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "Não está na lista" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "Não está na lista" msgid "not between" msgstr "Não entre" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Falha ao obter model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Falha ao obter model. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Falha ao criar model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Falha ao criar model. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Falha ao atualizar model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Falha ao atualizar model. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Falha ao excluir model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Você tem certeza que deseja excluir os models selecionados?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Registo eliminado com sucesso." msgstr[1] "%(count)s registos foram eliminados com sucesso." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Por favor, selecione pelo menos um model." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Você tem a certeza que deseja excluir este item?" - diff --git a/flask_admin/translations/pt_BR/LC_MESSAGES/admin.po b/flask_admin/translations/pt_BR/LC_MESSAGES/admin.po index 9f8671111..a8a02ae89 100644 --- a/flask_admin/translations/pt_BR/LC_MESSAGES/admin.po +++ b/flask_admin/translations/pt_BR/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Edição %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Editar" msgid "Cannot operate on non empty directories" msgstr "Não é possível operar em diretórios não-vazios" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "igual" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "diferente" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "contém" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "não contém" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "maior que" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "menor que" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "vazio" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "na lista" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "Não está na lista" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "Não está na lista" msgid "not between" msgstr "não entre" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "ObjectId é igual a" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Falha ao obter registro. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Falha ao obter registro. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Falha ao criar o registro. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Falha ao criar o registro. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Falha ao atualizar registro. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Falha ao atualizar registro. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Falha ao excluir o registro. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Tem certeza que deseja excluir os registros selecionados?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Registro foi excluído com êxito." msgstr[1] "%(count)s registros foram excluídos com êxito." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Por favor, selecione pelo menos um registro." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Você tem certeza que deseja excluir este item?" - diff --git a/flask_admin/translations/ro/LC_MESSAGES/admin.po b/flask_admin/translations/ro/LC_MESSAGES/admin.po index 359a4e87c..4a208eda0 100644 --- a/flask_admin/translations/ro/LC_MESSAGES/admin.po +++ b/flask_admin/translations/ro/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Editare %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Editare" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "este egal cu" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "nu este egal" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "conţine" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "nu conţine" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "mai mare decât" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "mai mică decât" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "gol" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "în lista" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "nu în lista" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "nu în lista" msgid "not between" msgstr "nu între" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Nu pentru a obţine model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Nu pentru a obţine model. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Nu a reuşit să creaţi înregistrarea. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Nu a reuşit să creaţi înregistrarea. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Nu a reuşit să creaţi înregistrarea. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Nu a reuşit să creaţi înregistrarea. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Imposibil de șters înregistrări. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Sigur ștergeți înregistrările selectate?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -345,7 +327,6 @@ msgstr[0] "Recordul a fost şters cu succes." msgstr[1] "%(count)s înregistrări au fost şters cu succes." msgstr[2] "%(count)s înregistrări au fost şters cu succes." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -660,4 +641,3 @@ msgstr "Vă rugăm să selectaţi cel puţin o înregistrare." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Sigur ștergeți această înregistrare?" - diff --git a/flask_admin/translations/ru/LC_MESSAGES/admin.po b/flask_admin/translations/ru/LC_MESSAGES/admin.po index e288a57b8..9e5d2024b 100644 --- a/flask_admin/translations/ru/LC_MESSAGES/admin.po +++ b/flask_admin/translations/ru/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Редактирование %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Изменить" msgid "Cannot operate on non empty directories" msgstr "Невозможно редактировать непустые директории" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "равно" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "не равно" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "содержит" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "не содержит" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "больше чем" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "меньше чем" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "пусто" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "в списке" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "нет в списке" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "нет в списке" msgid "not between" msgstr "не между" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "Id объекта равно" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Не удалось получить модель. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Не удалось получить модель. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Ошибка создания записи: %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Ошибка создания записи: %(error)s" msgid "Failed to update record. %(error)s" msgstr "Ошибка обновления записи: %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Ошибка обновления записи: %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Ошибка удаления записи: %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Вы уверены что хотите удалить ?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -345,7 +327,6 @@ msgstr[0] "Запись успешно удалена." msgstr[1] "Было удалено %(count)s записей." msgstr[2] "Было удалено %(count)s записей." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -660,4 +641,3 @@ msgstr "Выберите по крайней мере одну запись." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Вы уверены что хотите удалить эту запись?" - diff --git a/flask_admin/translations/sk/LC_MESSAGES/admin.po b/flask_admin/translations/sk/LC_MESSAGES/admin.po index 2396f78a0..b0e0c25e4 100644 --- a/flask_admin/translations/sk/LC_MESSAGES/admin.po +++ b/flask_admin/translations/sk/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Editovať %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Upraviť" msgid "Cannot operate on non empty directories" msgstr "Nedá sa pracovať s prázdnymi adresármi" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "rovná sa" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "nerovná sa" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "obsahuje" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "neobsahuje" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "viac než" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "menej než" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "prázdne" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "v zozname" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "nie je v zozname" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "nie je v zozname" msgid "not between" msgstr "nie je medzi" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Nepodarilo sa získať model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Nepodarilo sa získať model. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Nepodarilo sa vytvoriť záznam. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Nepodarilo sa vytvoriť záznam. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Nepodarilo sa aktualizovať záznam. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Nepodarilo sa aktualizovať záznam. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Nepodarilo sa odstrániť záznam. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Naozaj chcete odstrániť vybrané záznamy?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -345,7 +327,6 @@ msgstr[0] "Záznam bol úspešne odstránený." msgstr[1] "%(count)s záznamy boli úspešne odstránené." msgstr[2] "%(count)s záznamov bolo úspešne odstránených." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -660,4 +641,3 @@ msgstr "Prosím, vyberte aspoň jeden záznam." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Ste si istý, že chcete odstrániť tento záznam?" - diff --git a/flask_admin/translations/sr/LC_MESSAGES/admin.po b/flask_admin/translations/sr/LC_MESSAGES/admin.po index e5e215dfa..26908d7c5 100644 --- a/flask_admin/translations/sr/LC_MESSAGES/admin.po +++ b/flask_admin/translations/sr/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Uređivanje %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Snimanje" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "jednaki" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "Ne ravnopravan" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "sadrži" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "ne sadrži" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "veći od" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "manji nego" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "prazan" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "na listi" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "nije na listi" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "nije na listi" msgid "not between" msgstr "Ne između" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Nije uspeo da dobije model. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Nije uspeo da dobije model. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Nije uspeo da se stvori rekord. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Nije uspeo da se stvori rekord. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Nije uspeo da se stvori rekord. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Nije uspeo da se stvori rekord. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Nije uspeo da obrišem rekord. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Da li si siguran da želiš da obrišem odabrani ploče?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -345,7 +327,6 @@ msgstr[0] "Rekord uspešno izbriše." msgstr[1] "%(count)s ploče su uspešno izbriše." msgstr[2] "%(count)s ploče su uspešno izbriše." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -660,4 +641,3 @@ msgstr "Molimo odaberite najmanje jedan zapis." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Da li ste sigurani da želite obrisati ovaj zapis?" - diff --git a/flask_admin/translations/sv/LC_MESSAGES/admin.po b/flask_admin/translations/sv/LC_MESSAGES/admin.po index 312974e1c..8982f84d8 100644 --- a/flask_admin/translations/sv/LC_MESSAGES/admin.po +++ b/flask_admin/translations/sv/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Redigera %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Ändra" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "motsvarar" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "inte jämnlikt" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "innehåller" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "innehåller inte" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "större än" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "mindre än" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "tom" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "i listan" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "inte i listan" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "inte i listan" msgid "not between" msgstr "inte mellan" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Det gick inte att få modell. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Det gick inte att få modell. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Det gick inte att skapa post. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Det gick inte att skapa post. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Det gick inte att skapa post. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Det gick inte att skapa post. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Det gick inte att ta bort posten. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Är du säker du vill ta bort markerade poster?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Posten har tagits bort." msgstr[1] "%(count)s poster togs framgångsrikt bort." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Välj minst en post." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Är du säker du vill ta bort denna post?" - diff --git a/flask_admin/translations/tr/LC_MESSAGES/admin.po b/flask_admin/translations/tr/LC_MESSAGES/admin.po index e484d35a1..74ed83710 100644 --- a/flask_admin/translations/tr/LC_MESSAGES/admin.po +++ b/flask_admin/translations/tr/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "%(path)s düzenleme" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Düzenle" msgid "Cannot operate on non empty directories" msgstr "Boş olmayan dizinler üzerinde çalışamaz" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "eşittir" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "eşit değil" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "içerir" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "değil içerir" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "daha büyük" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "daha küçük" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "boş" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "listede" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "liste değildir" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "liste değildir" msgid "not between" msgstr "arasında değil" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "ObjectId eşittir" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Model alma başarısız oldu. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Model alma başarısız oldu. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Kayıt oluşturulamadı. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Kayıt oluşturulamadı. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Kaydı oluşturulamadı. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Kaydı oluşturulamadı. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Kaydı silinemedi. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Seçili kayıtları silmek istediğinizden emin misiniz?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgid_plural "%(count)s records were successfully deleted." msgstr[0] "Kaydı başarıyla silindi." msgstr[1] "%(count)s kayıtlarını başarıyla silindi." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -658,4 +639,3 @@ msgstr "Lütfen en az bir kayıt seçin." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Bu kaydı silmek istediğinizden emin misiniz?" - diff --git a/flask_admin/translations/uk/LC_MESSAGES/admin.po b/flask_admin/translations/uk/LC_MESSAGES/admin.po index 138b1431f..948ce3802 100644 --- a/flask_admin/translations/uk/LC_MESSAGES/admin.po +++ b/flask_admin/translations/uk/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Редагування %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Редагувати" msgid "Cannot operate on non empty directories" msgstr "Не можу працювати с непорожніми директоріями" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "дорівнює" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "не дорівнює" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "містить" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "не містить" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "більше, ніж" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "менше, ніж" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "порожній" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "у списку" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "немає у списку" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "немає у списку" msgid "not between" msgstr "не між" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Не вдалося отримати моделі. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Не вдалося отримати моделі. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Не вдалося створити запис. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Не вдалося створити запис. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Не вдалося створити запис. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Не вдалося створити запис. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Не вдалося видалити запис. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Ви дійсно бажаєте видалити вибрані записи?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -345,7 +327,6 @@ msgstr[0] "Запис успішно вилучено." msgstr[1] "%(count)s records були успішно вилучено." msgstr[2] "%(count)s records були успішно вилучено." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -660,4 +641,3 @@ msgstr "Будь ласка, оберіть хоча б один запис." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Ви дійсно бажаєте видалити цей запис?" - diff --git a/flask_admin/translations/vi/LC_MESSAGES/admin.po b/flask_admin/translations/vi/LC_MESSAGES/admin.po index 1fe50798d..bc361494b 100644 --- a/flask_admin/translations/vi/LC_MESSAGES/admin.po +++ b/flask_admin/translations/vi/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "Chỉnh sửa %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "Chỉnh sửa" msgid "Cannot operate on non empty directories" msgstr "Không thể hoạt động trên thư mục không trống" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "bằng" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "không bằng" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "chứa" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "không có" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "lớn hơn" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "nhỏ hơn" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "sản phẩm nào" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "trong danh sách" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "không có trong danh sách" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "không có trong danh sách" msgid "not between" msgstr "không giữa" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "Không thể có được mô hình. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "Không thể có được mô hình. %(error)s" msgid "Failed to create record. %(error)s" msgstr "Hỏng khi tạo hồ sơ. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "Hỏng khi tạo hồ sơ. %(error)s" msgid "Failed to update record. %(error)s" msgstr "Hỏng khi tạo hồ sơ. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "Hỏng khi tạo hồ sơ. %(error)s" msgid "Failed to delete record. %(error)s" msgstr "Không xóa hồ sơ. %(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "Bạn có chắc bạn muốn xóa hồ sơ đã chọn không?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -343,7 +325,6 @@ msgid "Record was successfully deleted." msgid_plural "%(count)s records were successfully deleted." msgstr[0] "%(count)s hồ sơ đã được xóa thành công." -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -656,4 +637,3 @@ msgstr "Vui lòng chọn ít nhất một kỷ lục." #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "Bạn có chắc bạn muốn xóa hồ sơ này không?" - diff --git a/flask_admin/translations/zh_Hans_CN/LC_MESSAGES/admin.po b/flask_admin/translations/zh_Hans_CN/LC_MESSAGES/admin.po index edbc113d3..6d35fa3b9 100644 --- a/flask_admin/translations/zh_Hans_CN/LC_MESSAGES/admin.po +++ b/flask_admin/translations/zh_Hans_CN/LC_MESSAGES/admin.po @@ -196,7 +196,6 @@ msgid "Editing %(path)s" msgstr "编辑 %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -223,67 +222,57 @@ msgstr "编辑" msgid "Cannot operate on non empty directories" msgstr "无法对非空的目录操作" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "等于" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "不等于" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "包含" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "不包含" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "大于" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "小于" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "空" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "在列表中" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "不在列表中" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -293,16 +282,13 @@ msgstr "不在列表中" msgid "not between" msgstr "不是之间" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "ObjectId 等于" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "获取 model 失败。%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -310,7 +296,6 @@ msgstr "获取 model 失败。%(error)s" msgid "Failed to create record. %(error)s" msgstr "创建 model 失败。%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -319,7 +304,6 @@ msgstr "创建 model 失败。%(error)s" msgid "Failed to update record. %(error)s" msgstr "更新记录失败。%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -327,14 +311,12 @@ msgstr "更新记录失败。%(error)s" msgid "Failed to delete record. %(error)s" msgstr "删除记录失败。%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "你打算要删除这些选中的记录吗?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -343,7 +325,6 @@ msgid "Record was successfully deleted." msgid_plural "%(count)s records were successfully deleted." msgstr[0] "%(count)s 记录被成功删除。" -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -656,4 +637,3 @@ msgstr "请至少选择一个 model。" #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "你打算删除这条记录?" - diff --git a/flask_admin/translations/zh_Hant_TW/LC_MESSAGES/admin.po b/flask_admin/translations/zh_Hant_TW/LC_MESSAGES/admin.po index 35291d093..ba876be3f 100644 --- a/flask_admin/translations/zh_Hant_TW/LC_MESSAGES/admin.po +++ b/flask_admin/translations/zh_Hant_TW/LC_MESSAGES/admin.po @@ -198,7 +198,6 @@ msgid "Editing %(path)s" msgstr "編輯 %(path)s" #: ../flask_admin/contrib/fileadmin/__init__.py:1163 -#: ../flask_admin/contrib/mongoengine/view.py:658 #: ../flask_admin/contrib/peewee/view.py:487 #: ../flask_admin/contrib/pymongo/view.py:384 #: ../flask_admin/contrib/sqla/view.py:1149 @@ -225,67 +224,57 @@ msgstr "編輯" msgid "Cannot operate on non empty directories" msgstr "" -#: ../flask_admin/contrib/mongoengine/filters.py:39 #: ../flask_admin/contrib/peewee/filters.py:35 #: ../flask_admin/contrib/pymongo/filters.py:38 #: ../flask_admin/contrib/sqla/filters.py:41 msgid "equals" msgstr "等於" -#: ../flask_admin/contrib/mongoengine/filters.py:48 #: ../flask_admin/contrib/peewee/filters.py:43 #: ../flask_admin/contrib/pymongo/filters.py:47 #: ../flask_admin/contrib/sqla/filters.py:49 msgid "not equal" msgstr "不等於" -#: ../flask_admin/contrib/mongoengine/filters.py:58 #: ../flask_admin/contrib/peewee/filters.py:52 #: ../flask_admin/contrib/pymongo/filters.py:57 #: ../flask_admin/contrib/sqla/filters.py:58 msgid "contains" msgstr "包含" -#: ../flask_admin/contrib/mongoengine/filters.py:68 #: ../flask_admin/contrib/peewee/filters.py:61 #: ../flask_admin/contrib/pymongo/filters.py:67 #: ../flask_admin/contrib/sqla/filters.py:67 msgid "not contains" msgstr "不包含" -#: ../flask_admin/contrib/mongoengine/filters.py:77 #: ../flask_admin/contrib/peewee/filters.py:69 #: ../flask_admin/contrib/pymongo/filters.py:80 #: ../flask_admin/contrib/sqla/filters.py:75 msgid "greater than" msgstr "大於" -#: ../flask_admin/contrib/mongoengine/filters.py:86 #: ../flask_admin/contrib/peewee/filters.py:77 #: ../flask_admin/contrib/pymongo/filters.py:93 #: ../flask_admin/contrib/sqla/filters.py:83 msgid "smaller than" msgstr "小於" -#: ../flask_admin/contrib/mongoengine/filters.py:98 #: ../flask_admin/contrib/peewee/filters.py:88 #: ../flask_admin/contrib/sqla/filters.py:94 msgid "empty" msgstr "空" -#: ../flask_admin/contrib/mongoengine/filters.py:113 #: ../flask_admin/contrib/peewee/filters.py:102 #: ../flask_admin/contrib/sqla/filters.py:108 msgid "in list" msgstr "在清單中" -#: ../flask_admin/contrib/mongoengine/filters.py:122 #: ../flask_admin/contrib/peewee/filters.py:111 #: ../flask_admin/contrib/sqla/filters.py:118 msgid "not in list" msgstr "不在清單中" -#: ../flask_admin/contrib/mongoengine/filters.py:222 #: ../flask_admin/contrib/peewee/filters.py:207 #: ../flask_admin/contrib/peewee/filters.py:244 #: ../flask_admin/contrib/peewee/filters.py:281 @@ -295,16 +284,13 @@ msgstr "不在清單中" msgid "not between" msgstr "不是之間" -#: ../flask_admin/contrib/mongoengine/filters.py:247 msgid "ObjectId equals" msgstr "" -#: ../flask_admin/contrib/mongoengine/view.py:551 #, python-format msgid "Failed to get model. %(error)s" msgstr "未能獲取資料。%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:570 #: ../flask_admin/contrib/peewee/view.py:435 #: ../flask_admin/contrib/pymongo/view.py:316 #: ../flask_admin/contrib/sqla/view.py:1078 @@ -312,7 +298,6 @@ msgstr "未能獲取資料。%(error)s" msgid "Failed to create record. %(error)s" msgstr "建立紀錄的時候發生異常:%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:596 #: ../flask_admin/contrib/peewee/view.py:454 #: ../flask_admin/contrib/pymongo/view.py:341 #: ../flask_admin/contrib/sqla/view.py:1104 ../flask_admin/model/base.py:2305 @@ -321,7 +306,6 @@ msgstr "建立紀錄的時候發生異常:%(error)s" msgid "Failed to update record. %(error)s" msgstr "更新紀錄的時候發生異常:%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:619 #: ../flask_admin/contrib/peewee/view.py:469 #: ../flask_admin/contrib/pymongo/view.py:366 #: ../flask_admin/contrib/sqla/view.py:1129 @@ -329,14 +313,12 @@ msgstr "更新紀錄的時候發生異常:%(error)s" msgid "Failed to delete record. %(error)s" msgstr "刪除紀錄的時候發生異常:%(error)s" -#: ../flask_admin/contrib/mongoengine/view.py:659 #: ../flask_admin/contrib/peewee/view.py:488 #: ../flask_admin/contrib/pymongo/view.py:385 #: ../flask_admin/contrib/sqla/view.py:1150 msgid "Are you sure you want to delete selected records?" msgstr "您確定要刪除這些紀錄嗎?" -#: ../flask_admin/contrib/mongoengine/view.py:668 #: ../flask_admin/contrib/peewee/view.py:505 #: ../flask_admin/contrib/pymongo/view.py:395 #: ../flask_admin/contrib/sqla/view.py:1166 ../flask_admin/model/base.py:2118 @@ -344,7 +326,6 @@ msgstr "您確定要刪除這些紀錄嗎?" msgid "Record was successfully deleted." msgstr "紀錄刪除成功。" -#: ../flask_admin/contrib/mongoengine/view.py:674 #: ../flask_admin/contrib/peewee/view.py:511 #: ../flask_admin/contrib/pymongo/view.py:400 #: ../flask_admin/contrib/sqla/view.py:1174 @@ -657,4 +638,3 @@ msgstr "請至少選擇一筆資料。" #: ../flask_admin/templates/bootstrap3/admin/model/row_actions.html:34 msgid "Are you sure you want to delete this record?" msgstr "您確定要刪除這筆記錄嗎?" - From ef0cd5847e806659c08b2c931cc7730d66229b6e Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 1 Aug 2024 21:32:23 +0100 Subject: [PATCH 2/2] Remove (flask-)mongoengine support Support for `mongoengine` relies heavily on `flask-mongoengine` to provide wtforms integration. Unfortunately, `flask-mongoengine` has not seen much activity of support over the last two years, and is no longer compatible with recent versions of our core dependencies (eg flask). Given this, it feels inappropriate and undesirable for us to try to continue to support the functionality that project brings, as it will increasingly apply a higher maintenance burden on us and eventually likely cause compatibility issues for Flask-Admin users generally (if someone wants to use both sqlalchemy and mongoengine views in Flask-Admin, they'd be forced onto the lowest common denominator dependency versions). --- .github/workflows/tests.yaml | 2 - README.md | 5 +- doc/advanced.rst | 34 +- doc/api/index.rst | 2 - doc/api/mod_contrib_mongoengine.rst | 22 - doc/api/mod_contrib_mongoengine_fields.rst | 13 - doc/introduction.rst | 1 - examples/auth-mongoengine/README.rst | 23 - examples/auth-mongoengine/app.py | 151 -- examples/auth-mongoengine/requirements.txt | 4 - examples/auth-mongoengine/templates/form.html | 21 - .../auth-mongoengine/templates/index.html | 15 - examples/mongoengine/README.rst | 22 - examples/mongoengine/app.py | 133 -- examples/mongoengine/requirements.txt | 3 - flask_admin/contrib/mongoengine/__init__.py | 11 - flask_admin/contrib/mongoengine/ajax.py | 143 -- flask_admin/contrib/mongoengine/fields.py | 88 -- flask_admin/contrib/mongoengine/filters.py | 297 ---- flask_admin/contrib/mongoengine/form.py | 259 ---- flask_admin/contrib/mongoengine/helpers.py | 40 - flask_admin/contrib/mongoengine/subdoc.py | 24 - flask_admin/contrib/mongoengine/tools.py | 28 - flask_admin/contrib/mongoengine/typefmt.py | 50 - flask_admin/contrib/mongoengine/view.py | 680 --------- flask_admin/contrib/mongoengine/widgets.py | 63 - flask_admin/tests/mongoengine/__init__.py | 0 flask_admin/tests/mongoengine/conftest.py | 20 - flask_admin/tests/mongoengine/test_basic.py | 1242 ----------------- pyproject.toml | 17 - .../constraints-flaskmongoengine.txt | 3 - tox.ini | 12 +- 32 files changed, 6 insertions(+), 3422 deletions(-) delete mode 100644 doc/api/mod_contrib_mongoengine.rst delete mode 100644 doc/api/mod_contrib_mongoengine_fields.rst delete mode 100644 examples/auth-mongoengine/README.rst delete mode 100644 examples/auth-mongoengine/app.py delete mode 100644 examples/auth-mongoengine/requirements.txt delete mode 100644 examples/auth-mongoengine/templates/form.html delete mode 100644 examples/auth-mongoengine/templates/index.html delete mode 100644 examples/mongoengine/README.rst delete mode 100644 examples/mongoengine/app.py delete mode 100644 examples/mongoengine/requirements.txt delete mode 100644 flask_admin/contrib/mongoengine/__init__.py delete mode 100644 flask_admin/contrib/mongoengine/ajax.py delete mode 100644 flask_admin/contrib/mongoengine/fields.py delete mode 100644 flask_admin/contrib/mongoengine/filters.py delete mode 100644 flask_admin/contrib/mongoengine/form.py delete mode 100644 flask_admin/contrib/mongoengine/helpers.py delete mode 100644 flask_admin/contrib/mongoengine/subdoc.py delete mode 100644 flask_admin/contrib/mongoengine/tools.py delete mode 100644 flask_admin/contrib/mongoengine/typefmt.py delete mode 100644 flask_admin/contrib/mongoengine/view.py delete mode 100644 flask_admin/contrib/mongoengine/widgets.py delete mode 100644 flask_admin/tests/mongoengine/__init__.py delete mode 100644 flask_admin/tests/mongoengine/conftest.py delete mode 100644 flask_admin/tests/mongoengine/test_basic.py delete mode 100644 requirements-skip/constraints-flaskmongoengine.txt diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 93142195f..9a2c4ce52 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -29,8 +29,6 @@ jobs: tox: 'py38-min' - python: '3.12' tox: 'py312-noflaskbabel' - - python: '3.12' - tox: 'py312-flaskmongoengine-sqlalchemy1' - python: '3.8' tox: 'py38-sqlalchemy1' - python: '3.12' diff --git a/README.md b/README.md index 5f43d6f7c..0c0db81c0 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,6 @@ application. Out-of-the-box, Flask-Admin plays nicely with various ORM\'s, including - [SQLAlchemy](http://www.sqlalchemy.org/) -- [MongoEngine](http://mongoengine.org/) - [pymongo](http://api.mongodb.org/python/current/) - and [Peewee](https://github.com/coleifer/peewee). @@ -51,7 +50,7 @@ add your own, or improve on the existing examples, and submit a To run the examples in your local environment: 1. Clone the repository: - + ```bash git clone https://github.com/pallets-eco/flask-admin.git cd flask-admin @@ -62,7 +61,7 @@ To run the examples in your local environment: # Windows: python -m venv .venv .venv\Scripts\activate - + # Linux: python3 -m venv .venv source .venv/bin/activate diff --git a/doc/advanced.rst b/doc/advanced.rst index ac05eaea1..006487bd9 100644 --- a/doc/advanced.rst +++ b/doc/advanced.rst @@ -259,8 +259,6 @@ installed if you need to do any processing on the image files. Have a look at the example at https://github.com/flask-admin/Flask-Admin/tree/master/examples/forms-files-images. -If you are using the MongoEngine backend, Flask-Admin supports GridFS-backed image and file uploads through WTForms fields. Documentation can be found at :mod:`flask_admin.contrib.mongoengine.fields`. - If you just want to manage static files in a directory, without tying them to a database model, then use the :ref:`File-Admin` plug-in. @@ -469,36 +467,6 @@ a model that violates a unique-constraint leads to an Sqlalchemy-Integrity-Error a proper error message and you can change the data in the form. When the application has been started with ``debug=True`` the ``werkzeug`` debugger will catch the exception and will display the stacktrace. -MongoEngine -*********** - -If you're looking for something simpler than SQLAlchemy, and your data models -are reasonably self-contained, then `MongoDB `_, a popular *NoSQL* database, -could be a better option. - -`MongoEngine `_ is a python wrapper for MongoDB. -For an example of using MongoEngine with Flask-Admin, see -https://github.com/flask-admin/flask-admin/tree/master/examples/mongoengine. - - -Features: - - - MongoEngine 0.7+ support - - Paging, sorting, filters, etc - - Supports complex document structure (lists, subdocuments and so on) - - GridFS support for file and image uploads - -In order to use MongoEngine integration, install the -`Flask-MongoEngine `_ package. -Flask-Admin uses form scaffolding from it. - -Known issues: - - - Search functionality can't split query into multiple terms due to - MongoEngine query language limitations - -For more, check the :class:`~flask_admin.contrib.mongoengine` API documentation. - Peewee ****** @@ -577,7 +545,7 @@ though it is easy to get started with a simple `CRUD =0.3.0 diff --git a/examples/auth-mongoengine/templates/form.html b/examples/auth-mongoengine/templates/form.html deleted file mode 100644 index 5a7bbd4be..000000000 --- a/examples/auth-mongoengine/templates/form.html +++ /dev/null @@ -1,21 +0,0 @@ - - -
- {{ form.hidden_tag() if form.hidden_tag }} - {% for f in form if f.type != 'CSRFTokenField' %} -
- {{ f.label }} - {{ f }} - {% if f.errors %} -
    - {% for e in f.errors %} -
  • {{ e }}
  • - {% endfor %} -
- {% endif %} -
- {% endfor %} - -
- - diff --git a/examples/auth-mongoengine/templates/index.html b/examples/auth-mongoengine/templates/index.html deleted file mode 100644 index 9c87bc141..000000000 --- a/examples/auth-mongoengine/templates/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - -
- {% if user and user.is_authenticated %} - Hello {{ user.login }}! Logout - {% else %} - Welcome anonymous user! - Login Register - {% endif %} -
- - - diff --git a/examples/mongoengine/README.rst b/examples/mongoengine/README.rst deleted file mode 100644 index c81873095..000000000 --- a/examples/mongoengine/README.rst +++ /dev/null @@ -1,22 +0,0 @@ -MongoEngine model backend integration. - -To run this example: - -1. Clone the repository:: - - git clone https://github.com/flask-admin/flask-admin.git - cd flask-admin - -2. Create and activate a virtual environment:: - - virtualenv env - source env/bin/activate - -3. Install requirements:: - - pip install -r 'examples/mongoengine/requirements.txt' - -4. Run the application:: - - python examples/mongoengine/app.py - diff --git a/examples/mongoengine/app.py b/examples/mongoengine/app.py deleted file mode 100644 index ec4c5ae71..000000000 --- a/examples/mongoengine/app.py +++ /dev/null @@ -1,133 +0,0 @@ -import datetime - -from flask import Flask - -import flask_admin as admin -from flask_mongoengine import MongoEngine -from flask_admin.form import rules -from flask_admin.contrib.mongoengine import ModelView - -# Create application -app = Flask(__name__) - -# Create dummy secrey key so we can use sessions -app.config['SECRET_KEY'] = '123456790' -app.config['MONGODB_SETTINGS'] = {'DB': 'testing'} - -# Create models -db = MongoEngine() -db.init_app(app) - - -# Define mongoengine documents -class User(db.Document): - name = db.StringField(max_length=40) - tags = db.ListField(db.ReferenceField('Tag')) - password = db.StringField(max_length=40) - - def __unicode__(self): - return self.name - - -class Todo(db.Document): - title = db.StringField(max_length=60) - text = db.StringField() - done = db.BooleanField(default=False) - pub_date = db.DateTimeField(default=datetime.datetime.now) - user = db.ReferenceField(User, required=False) - - # Required for administrative interface - def __unicode__(self): - return self.title - - -class Tag(db.Document): - name = db.StringField(max_length=10) - - def __unicode__(self): - return self.name - - -class Comment(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - tag = db.ReferenceField(Tag) - - -class Post(db.Document): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - inner = db.ListField(db.EmbeddedDocumentField(Comment)) - lols = db.ListField(db.StringField(max_length=20)) - - -class File(db.Document): - name = db.StringField(max_length=20) - data = db.FileField() - - -class Image(db.Document): - name = db.StringField(max_length=20) - image = db.ImageField(thumbnail_size=(100, 100, True)) - - -# Customized admin views -class UserView(ModelView): - column_filters = ['name'] - - column_searchable_list = ('name', 'password') - - form_ajax_refs = { - 'tags': { - 'fields': ('name',) - } - } - - -class TodoView(ModelView): - column_filters = ['done'] - - form_ajax_refs = { - 'user': { - 'fields': ['name'] - } - } - - -class PostView(ModelView): - form_subdocuments = { - 'inner': { - 'form_subdocuments': { - None: { - # Add
at the end of the form - 'form_rules': ('name', 'tag', 'value', rules.HTML('
')), - 'form_widget_args': { - 'name': { - 'style': 'color: red' - } - } - } - } - } - } - -# Flask views -@app.route('/') -def index(): - return 'Click me to get to Admin!' - - -if __name__ == '__main__': - # Create admin - admin = admin.Admin(app, 'Example: MongoEngine') - - # Add views - admin.add_view(UserView(User)) - admin.add_view(TodoView(Todo)) - admin.add_view(ModelView(Tag)) - admin.add_view(PostView(Post)) - admin.add_view(ModelView(File)) - admin.add_view(ModelView(Image)) - - # Start app - app.run(debug=True) diff --git a/examples/mongoengine/requirements.txt b/examples/mongoengine/requirements.txt deleted file mode 100644 index b92cbe6f8..000000000 --- a/examples/mongoengine/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -../..[mongoengine,images] - -Flask-Login>=0.3.0 diff --git a/flask_admin/contrib/mongoengine/__init__.py b/flask_admin/contrib/mongoengine/__init__.py deleted file mode 100644 index 6559404c6..000000000 --- a/flask_admin/contrib/mongoengine/__init__.py +++ /dev/null @@ -1,11 +0,0 @@ -# flake8: noqa -try: - import flask_mongoengine -except ImportError: - raise Exception( - 'Could not import `flask-mongoengine`. ' - 'Enable `mongoengine` integration by installing `flask-admin[mongoengine]`' - ) - -from .view import ModelView -from .form import EmbeddedForm diff --git a/flask_admin/contrib/mongoengine/ajax.py b/flask_admin/contrib/mongoengine/ajax.py deleted file mode 100644 index 470911fbc..000000000 --- a/flask_admin/contrib/mongoengine/ajax.py +++ /dev/null @@ -1,143 +0,0 @@ -import mongoengine - -from flask_admin._compat import string_types, as_unicode, iteritems -from flask_admin.model.ajax import AjaxModelLoader, DEFAULT_PAGE_SIZE - - -class QueryAjaxModelLoader(AjaxModelLoader): - def __init__(self, name, model, **options): - """ - Constructor. - - :param fields: - Fields to run query against - """ - super(QueryAjaxModelLoader, self).__init__(name, options) - - self.model = model - self.fields = options.get('fields') - - self._cached_fields = self._process_fields() - - if not self.fields: - raise ValueError('AJAX loading requires `fields` to be specified for %s.%s' % (model, self.name)) - - def _process_fields(self): - remote_fields = [] - - for field in self.fields: - if isinstance(field, string_types): - attr = getattr(self.model, field, None) - - if not attr: - raise ValueError('%s.%s does not exist.' % (self.model, field)) - - remote_fields.append(attr) - else: - remote_fields.append(field) - - return remote_fields - - def format(self, model): - if not model: - return None - - return (as_unicode(model.pk), as_unicode(model)) - - def get_one(self, pk): - return self.model.objects.filter(pk=pk).first() - - def get_list(self, term, offset=0, limit=DEFAULT_PAGE_SIZE): - query = self.model.objects - - if len(term) > 0: - criteria = None - - for field in self._cached_fields: - flt = {u'%s__icontains' % field.name: term} - - if not criteria: - criteria = mongoengine.Q(**flt) - else: - criteria |= mongoengine.Q(**flt) - - query = query.filter(criteria) - - if offset: - query = query.skip(offset) - - return query.limit(limit).all() - - -def create_ajax_loader(model, name, field_name, opts): - prop = getattr(model, field_name, None) - - if prop is None: - raise ValueError('Model %s does not have field %s.' % (model, field_name)) - - ftype = type(prop).__name__ - - if ftype == 'ListField' or ftype == 'SortedListField': - prop = prop.field - ftype = type(prop).__name__ - - if ftype != 'ReferenceField': - raise ValueError('Dont know how to convert %s type for AJAX loader' % ftype) - - remote_model = prop.document_type - return QueryAjaxModelLoader(name, remote_model, **opts) - - -def process_ajax_references(references, view): - def make_name(base, name): - if base: - return ('%s-%s' % (base, name)).lower() - else: - return as_unicode(name).lower() - - def handle_field(field, subdoc, base): - ftype = type(field).__name__ - - if ftype == 'ListField' or ftype == 'SortedListField': - child_doc = getattr(subdoc, '_form_subdocuments', {}).get(None) - - if child_doc: - handle_field(field.field, child_doc, base) - elif ftype == 'EmbeddedDocumentField': - result = {} - - ajax_refs = getattr(subdoc, 'form_ajax_refs', {}) - - for field_name, opts in iteritems(ajax_refs): - child_name = make_name(base, field_name) - - if isinstance(opts, dict): - loader = create_ajax_loader(field.document_type_obj, child_name, field_name, opts) - else: - loader = opts - - result[field_name] = loader - references[child_name] = loader - - subdoc._form_ajax_refs = result - - child_doc = getattr(subdoc, '_form_subdocuments', None) - if child_doc: - handle_subdoc(field.document_type_obj, subdoc, base) - else: - raise ValueError('Failed to process subdocument field %s' % (field,)) - - def handle_subdoc(model, subdoc, base): - documents = getattr(subdoc, '_form_subdocuments', {}) - - for name, doc in iteritems(documents): - field = getattr(model, name, None) - - if not field: - raise ValueError('Invalid subdocument field %s.%s' % (model, name)) - - handle_field(field, doc, make_name(base, name)) - - handle_subdoc(view.model, view, '') - - return references diff --git a/flask_admin/contrib/mongoengine/fields.py b/flask_admin/contrib/mongoengine/fields.py deleted file mode 100644 index 23a0287fe..000000000 --- a/flask_admin/contrib/mongoengine/fields.py +++ /dev/null @@ -1,88 +0,0 @@ -from mongoengine.base import get_document - -from werkzeug.datastructures import FileStorage - -from wtforms import fields -from wtforms.utils import unset_value - -from . import widgets -from flask_admin.model.fields import InlineFormField - - -def is_empty(file_object): - file_object.seek(0) - first_char = file_object.read(1) - file_object.seek(0) - return not bool(first_char) - - -class ModelFormField(InlineFormField): - """ - Customized ModelFormField for MongoEngine EmbeddedDocuments. - """ - def __init__(self, model, view, form_class, form_opts=None, **kwargs): - super(ModelFormField, self).__init__(form_class, **kwargs) - - self.model = model - if isinstance(self.model, str): - self.model = get_document(self.model) - - self.view = view - self.form_opts = form_opts - - def populate_obj(self, obj, name): - candidate = getattr(obj, name, None) - is_created = candidate is None - if is_created: - candidate = self.model() - setattr(obj, name, candidate) - - self.form.populate_obj(candidate) - - self.view._on_model_change(self.form, candidate, is_created) - - -class MongoFileField(fields.FileField): - """ - GridFS file field. - """ - widget = widgets.MongoFileInput() - - def __init__(self, label=None, validators=None, **kwargs): - super(MongoFileField, self).__init__(label, validators, **kwargs) - - self._should_delete = False - - def process(self, formdata, data=unset_value, extra_filters=None): - if formdata: - marker = '_%s-delete' % self.name - if marker in formdata: - self._should_delete = True - - return super(MongoFileField, self).process(formdata, data, extra_filters) - - def populate_obj(self, obj, name): - field = getattr(obj, name, None) - if field is not None: - # If field should be deleted, clean it up - if self._should_delete: - field.delete() - return - - if isinstance(self.data, FileStorage) and not is_empty(self.data.stream): - if not field.grid_id: - func = field.put - else: - func = field.replace - - func(self.data.stream, - filename=self.data.filename, - content_type=self.data.content_type) - - -class MongoImageField(MongoFileField): - """ - GridFS image field. - """ - - widget = widgets.MongoImageInput() # type: ignore[assignment] diff --git a/flask_admin/contrib/mongoengine/filters.py b/flask_admin/contrib/mongoengine/filters.py deleted file mode 100644 index ccbe30368..000000000 --- a/flask_admin/contrib/mongoengine/filters.py +++ /dev/null @@ -1,297 +0,0 @@ -from flask_admin.babel import lazy_gettext -from flask_admin.model import filters - -from .tools import parse_like_term -from mongoengine.queryset import Q -from bson.errors import InvalidId -from bson.objectid import ObjectId - - -class BaseMongoEngineFilter(filters.BaseFilter): - """ - Base MongoEngine filter. - """ - def __init__(self, column, name, options=None, data_type=None): - """ - Constructor. - - :param column: - Model field - :param name: - Display name - :param options: - Fixed set of options. If provided, will use drop down instead of textbox. - :param data_type: - Client data type - """ - super(BaseMongoEngineFilter, self).__init__(name, options, data_type) - - self.column = column - - -# Common filters -class FilterEqual(BaseMongoEngineFilter): - def apply(self, query, value): - flt = {'%s' % self.column.name: value} - return query.filter(**flt) - - def operation(self): - return lazy_gettext('equals') - - -class FilterNotEqual(BaseMongoEngineFilter): - def apply(self, query, value): - flt = {'%s__ne' % self.column.name: value} - return query.filter(**flt) - - def operation(self): - return lazy_gettext('not equal') - - -class FilterLike(BaseMongoEngineFilter): - def apply(self, query, value): - term, data = parse_like_term(value) - flt = {'%s__%s' % (self.column.name, term): data} - return query.filter(**flt) - - def operation(self): - return lazy_gettext('contains') - - -class FilterNotLike(BaseMongoEngineFilter): - def apply(self, query, value): - term, data = parse_like_term(value) - flt = {'%s__not__%s' % (self.column.name, term): data} - return query.filter(**flt) - - def operation(self): - return lazy_gettext('not contains') - - -class FilterGreater(BaseMongoEngineFilter): - def apply(self, query, value): - flt = {'%s__gt' % self.column.name: value} - return query.filter(**flt) - - def operation(self): - return lazy_gettext('greater than') - - -class FilterSmaller(BaseMongoEngineFilter): - def apply(self, query, value): - flt = {'%s__lt' % self.column.name: value} - return query.filter(**flt) - - def operation(self): - return lazy_gettext('smaller than') - - -class FilterEmpty(BaseMongoEngineFilter, filters.BaseBooleanFilter): - def apply(self, query, value): - if value == '1': - flt = {'%s' % self.column.name: None} - else: - flt = {'%s__ne' % self.column.name: None} - return query.filter(**flt) - - def operation(self): - return lazy_gettext('empty') - - -class FilterInList(BaseMongoEngineFilter): - def __init__(self, column, name, options=None, data_type=None): - super(FilterInList, self).__init__(column, name, options, data_type='select2-tags') - - def clean(self, value): - return [v.strip() for v in value.split(',') if v.strip()] - - def apply(self, query, value): - flt = {'%s__in' % self.column.name: value} - return query.filter(**flt) - - def operation(self): - return lazy_gettext('in list') - - -class FilterNotInList(FilterInList): - def apply(self, query, value): - flt = {'%s__nin' % self.column.name: value} - return query.filter(**flt) - - def operation(self): - return lazy_gettext('not in list') - - -# Customized type filters -class BooleanEqualFilter(FilterEqual, filters.BaseBooleanFilter): - def apply(self, query, value): - flt = {'%s' % self.column.name: value == '1'} - return query.filter(**flt) - - -class BooleanNotEqualFilter(FilterNotEqual, filters.BaseBooleanFilter): - def apply(self, query, value): - flt = {'%s' % self.column.name: value != '1'} - return query.filter(**flt) - - -class IntEqualFilter(FilterEqual, filters.BaseIntFilter): - pass - - -class IntNotEqualFilter(FilterNotEqual, filters.BaseIntFilter): - pass - - -class IntGreaterFilter(FilterGreater, filters.BaseIntFilter): - pass - - -class IntSmallerFilter(FilterSmaller, filters.BaseIntFilter): - pass - - -class IntInListFilter(filters.BaseIntListFilter, FilterInList): - pass - - -class IntNotInListFilter(filters.BaseIntListFilter, FilterNotInList): - pass - - -class FloatEqualFilter(FilterEqual, filters.BaseFloatFilter): - pass - - -class FloatNotEqualFilter(FilterNotEqual, filters.BaseFloatFilter): - pass - - -class FloatGreaterFilter(FilterGreater, filters.BaseFloatFilter): - pass - - -class FloatSmallerFilter(FilterSmaller, filters.BaseFloatFilter): - pass - - -class FloatInListFilter(filters.BaseFloatListFilter, FilterInList): - pass - - -class FloatNotInListFilter(filters.BaseFloatListFilter, FilterNotInList): - pass - - -class DateTimeEqualFilter(FilterEqual, filters.BaseDateTimeFilter): - pass - - -class DateTimeNotEqualFilter(FilterNotEqual, filters.BaseDateTimeFilter): - pass - - -class DateTimeGreaterFilter(FilterGreater, filters.BaseDateTimeFilter): - pass - - -class DateTimeSmallerFilter(FilterSmaller, filters.BaseDateTimeFilter): - pass - - -class DateTimeBetweenFilter(BaseMongoEngineFilter, filters.BaseDateTimeBetweenFilter): - def __init__(self, column, name, options=None, data_type=None): - super(DateTimeBetweenFilter, self).__init__(column, - name, - options, - data_type='datetimerangepicker') - - def apply(self, query, value): - start, end = value - flt = {'%s__gte' % self.column.name: start, '%s__lte' % self.column.name: end} - return query.filter(**flt) - - -class DateTimeNotBetweenFilter(DateTimeBetweenFilter): - def apply(self, query, value): - start, end = value - return query.filter(Q(**{'%s__not__gte' % self.column.name: start}) | - Q(**{'%s__not__lte' % self.column.name: end})) - - def operation(self): - return lazy_gettext('not between') - - -class ReferenceObjectIdFilter(BaseMongoEngineFilter): - def validate(self, value): - """ - Validate value. - If value is valid, returns `True` and `False` otherwise. - :param value: - Value to validate - """ - try: - self.clean(value) - return True - except InvalidId: - return False - - def clean(self, value): - return ObjectId(value.strip()) - - def apply(self, query, value): - flt = {'%s' % self.column.name: value} - return query.filter(**flt) - - def operation(self): - return lazy_gettext('ObjectId equals') - - -# Base MongoEngine filter field converter -class FilterConverter(filters.BaseFilterConverter): - strings = (FilterLike, FilterNotLike, FilterEqual, FilterNotEqual, - FilterEmpty, FilterInList, FilterNotInList) - int_filters = (IntEqualFilter, IntNotEqualFilter, IntGreaterFilter, - IntSmallerFilter, FilterEmpty, IntInListFilter, - IntNotInListFilter) - float_filters = (FloatEqualFilter, FloatNotEqualFilter, FloatGreaterFilter, - FloatSmallerFilter, FilterEmpty, FloatInListFilter, - FloatNotInListFilter) - bool_filters = (BooleanEqualFilter, BooleanNotEqualFilter) - datetime_filters = (DateTimeEqualFilter, DateTimeNotEqualFilter, - DateTimeGreaterFilter, DateTimeSmallerFilter, - DateTimeBetweenFilter, DateTimeNotBetweenFilter, - FilterEmpty) - reference_filters = (ReferenceObjectIdFilter,) - - def convert(self, type_name, column, name): - filter_name = type_name.lower() - - if filter_name in self.converters: - return self.converters[filter_name](column, name) - - return None - - @filters.convert('StringField', 'EmailField', 'URLField') - def conv_string(self, column, name): - return [f(column, name) for f in self.strings] - - @filters.convert('BooleanField') - def conv_bool(self, column, name): - return [f(column, name) for f in self.bool_filters] - - @filters.convert('IntField', 'LongField') - def conv_int(self, column, name): - return [f(column, name) for f in self.int_filters] - - @filters.convert('DecimalField', 'FloatField') - def conv_float(self, column, name): - return [f(column, name) for f in self.float_filters] - - @filters.convert('DateTimeField', 'ComplexDateTimeField') - def conv_datetime(self, column, name): - return [f(column, name) for f in self.datetime_filters] - - @filters.convert('ReferenceField') - def conv_reference(self, column, name): - return [f(column, name) for f in self.reference_filters] diff --git a/flask_admin/contrib/mongoengine/form.py b/flask_admin/contrib/mongoengine/form.py deleted file mode 100644 index 1934f2bc3..000000000 --- a/flask_admin/contrib/mongoengine/form.py +++ /dev/null @@ -1,259 +0,0 @@ -from mongoengine import ReferenceField, ListField -from mongoengine.base import BaseDocument, DocumentMetaclass, get_document - -from wtforms import fields, validators -from flask_mongoengine.wtf import orm, fields as mongo_fields - -from flask_admin import form -from flask_admin.model.form import FieldPlaceholder -from flask_admin.model.fields import InlineFieldList, AjaxSelectField, AjaxSelectMultipleField -from flask_admin.form.validators import FieldListInputRequired -from flask_admin._compat import iteritems - -from .fields import ModelFormField, MongoFileField, MongoImageField -from .subdoc import EmbeddedForm - - -class CustomModelConverter(orm.ModelConverter): - """ - Customized MongoEngine form conversion class. - - Injects various Flask-Admin widgets and handles lists with - customized InlineFieldList field. - """ - - def __init__(self, view): - super(CustomModelConverter, self).__init__() - - self.view = view - - def _get_field_override(self, name): - form_overrides = getattr(self.view, 'form_overrides', None) - - if form_overrides: - return form_overrides.get(name) - - return None - - def _get_subdocument_config(self, name): - config = getattr(self.view, '_form_subdocuments', {}) - - p = config.get(name) - if not p: - return EmbeddedForm() - - return p - - def _convert_choices(self, choices): - for c in choices: - if isinstance(c, tuple): - yield c - else: - yield (c, c) - - def clone_converter(self, view): - return self.__class__(view) - - def convert(self, model, field, field_args): - # Check if it is overridden field - if isinstance(field, FieldPlaceholder): - return form.recreate_field(field.field) - - kwargs = { - 'label': getattr(field, 'verbose_name', None), - 'description': getattr(field, 'help_text', ''), - 'validators': [], - 'filters': [], - 'default': field.default - } - - if field_args: - kwargs.update(field_args) - - if kwargs['validators']: - # Create a copy of the list since we will be modifying it. - kwargs['validators'] = list(kwargs['validators']) - - if field.required: - if isinstance(field, ListField): - kwargs['validators'].append(FieldListInputRequired()) - else: - kwargs['validators'].append(validators.InputRequired()) - elif not isinstance(field, ListField): - kwargs['validators'].append(validators.Optional()) - - ftype = type(field).__name__ - - if field.choices: - kwargs['choices'] = list(self._convert_choices(field.choices)) - - if ftype in self.converters: - kwargs["coerce"] = self.coerce(ftype) - if kwargs.pop('multiple', False): - return fields.SelectMultipleField(**kwargs) - return fields.SelectField(**kwargs) - - ftype = type(field).__name__ - - if hasattr(field, 'to_form_field'): - return field.to_form_field(model, kwargs) - - override = self._get_field_override(field.name) - if override: - return override(**kwargs) - - if ftype in self.converters: - return self.converters[ftype](model, field, kwargs) - - @orm.converts('DateTimeField') - def conv_DateTime(self, model, field, kwargs): - kwargs['widget'] = form.DateTimePickerWidget() - return orm.ModelConverter.conv_DateTime(self, model, field, kwargs) - - @orm.converts('ListField') - def conv_List(self, model, field, kwargs): - if field.field is None: - raise ValueError('ListField "%s" must have field specified for model %s' % (field.name, model)) - - if isinstance(field.field, ReferenceField): - loader = getattr(self.view, '_form_ajax_refs', {}).get(field.name) - if loader: - return AjaxSelectMultipleField(loader, **kwargs) - - kwargs['widget'] = form.Select2Widget(multiple=True) - kwargs.setdefault('validators', []).append(validators.Optional()) - - # TODO: Support AJAX multi-select - doc_type = field.field.document_type - return mongo_fields.ModelSelectMultipleField(model=doc_type, **kwargs) - - # Create converter - view = self._get_subdocument_config(field.name) - converter = self.clone_converter(view) - - if field.field.choices: - kwargs['multiple'] = True - return converter.convert(model, field.field, kwargs) - - unbound_field = converter.convert(model, field.field, {}) - return InlineFieldList(unbound_field, min_entries=0, **kwargs) - - @orm.converts('EmbeddedDocumentField') - def conv_EmbeddedDocument(self, model, field, kwargs): - # FormField does not support validators - kwargs['validators'] = [] - - view = self._get_subdocument_config(field.name) - - form_opts = form.FormOpts(widget_args=getattr(view, 'form_widget_args', None), - form_rules=view._form_rules) - - form_class = view.get_form() - if form_class is None: - converter = self.clone_converter(view) - form_class = get_form(field.document_type_obj, converter, - base_class=view.form_base_class or form.BaseForm, - only=view.form_columns, - exclude=view.form_excluded_columns, - field_args=view.form_args, - extra_fields=view.form_extra_fields) - - form_class = view.postprocess_form(form_class) - - return ModelFormField(field.document_type_obj, view, form_class, form_opts=form_opts, **kwargs) - - @orm.converts('ReferenceField') - def conv_Reference(self, model, field, kwargs): - kwargs['allow_blank'] = not field.required - - loader = getattr(self.view, '_form_ajax_refs', {}).get(field.name) - if loader: - return AjaxSelectField(loader, **kwargs) - - kwargs['widget'] = form.Select2Widget() - - return orm.ModelConverter.conv_Reference(self, model, field, kwargs) - - @orm.converts('FileField') - def conv_File(self, model, field, kwargs): - return MongoFileField(**kwargs) - - @orm.converts('ImageField') - def conv_image(self, model, field, kwargs): - return MongoImageField(**kwargs) - - -def get_form(model, converter, - base_class=form.BaseForm, - only=None, - exclude=None, - field_args=None, - extra_fields=None): - """ - Create a wtforms Form for a given mongoengine Document schema:: - - from flask_mongoengine.wtf import model_form - from myproject.myapp.schemas import Article - ArticleForm = model_form(Article) - - :param model: - A mongoengine Document schema class - :param base_class: - Base form class to extend from. Must be a ``wtforms.Form`` subclass. - :param only: - An optional iterable with the property names that should be included in - the form. Only these properties will have fields. - :param exclude: - An optional iterable with the property names that should be excluded - from the form. All other properties will have fields. - :param field_args: - An optional dictionary of field names mapping to keyword arguments used - to construct each field object. - :param converter: - A converter to generate the fields based on the model properties. If - not set, ``ModelConverter`` is used. - """ - - if isinstance(model, str): - model = get_document(model) - - if not isinstance(model, (BaseDocument, DocumentMetaclass)): - raise TypeError('Model must be a mongoengine Document schema') - - field_args = field_args or {} - - # Find properties - properties = sorted(((k, v) for k, v in iteritems(model._fields)), - key=lambda v: v[1].creation_counter) - - if only: - props = dict(properties) - - def find(name): - if extra_fields and name in extra_fields: - return FieldPlaceholder(extra_fields[name]) - - p = props.get(name) - if p is not None: - return p - - raise ValueError('Invalid model property name %s.%s' % (model, name)) - - properties = ((p, find(p)) for p in only) - elif exclude: - properties = (p for p in properties if p[0] not in exclude) - - # Create fields - field_dict = {} - for name, p in properties: - field = converter.convert(model, p, field_args.get(name)) - if field is not None: - field_dict[name] = field - - # Contribute extra fields - if not only and extra_fields: - for name, field in iteritems(extra_fields): - field_dict[name] = form.recreate_field(field) - - field_dict['model_class'] = model - return type(model.__name__ + 'Form', (base_class,), field_dict) diff --git a/flask_admin/contrib/mongoengine/helpers.py b/flask_admin/contrib/mongoengine/helpers.py deleted file mode 100644 index 48ee9f77c..000000000 --- a/flask_admin/contrib/mongoengine/helpers.py +++ /dev/null @@ -1,40 +0,0 @@ -from mongoengine import ValidationError -from wtforms.validators import ValidationError as wtfValidationError -from flask_admin._compat import itervalues, as_unicode - - -def make_gridfs_args(value): - args = { - 'id': value.grid_id, - 'coll': value.collection_name - } - - if value.db_alias != 'default': - args['db'] = value.db_alias - - return args - - -def make_thumb_args(value): - if getattr(value, 'thumbnail', None): - args = { - 'id': value.thumbnail._id, - 'coll': value.collection_name - } - - if value.db_alias != 'default': - args['db'] = value.db_alias - - return args - else: - return make_gridfs_args(value) - - -def format_error(error): - if isinstance(error, ValidationError): - return as_unicode(error) - - if isinstance(error, wtfValidationError): - return '. '.join(itervalues(error.to_dict())) - - return as_unicode(error) diff --git a/flask_admin/contrib/mongoengine/subdoc.py b/flask_admin/contrib/mongoengine/subdoc.py deleted file mode 100644 index fde8e98f2..000000000 --- a/flask_admin/contrib/mongoengine/subdoc.py +++ /dev/null @@ -1,24 +0,0 @@ -from flask_admin._compat import iteritems -from flask_admin.model.form import InlineBaseFormAdmin - - -class EmbeddedForm(InlineBaseFormAdmin): - def __init__(self, **kwargs): - super(EmbeddedForm, self).__init__(**kwargs) - - self._form_subdocuments = convert_subdocuments(getattr(self, 'form_subdocuments', {})) - - -def convert_subdocuments(values): - result = {} - - for name, p in iteritems(values): - if isinstance(p, dict): - result[name] = EmbeddedForm(**p) - elif isinstance(p, EmbeddedForm): - result[name] = p - else: - raise ValueError('Invalid subdocument type: expecting dict or ' - 'instance of flask_admin.contrib.mongoengine.EmbeddedForm, got %s' % type(p)) - - return result diff --git a/flask_admin/contrib/mongoengine/tools.py b/flask_admin/contrib/mongoengine/tools.py deleted file mode 100644 index 4d52671ce..000000000 --- a/flask_admin/contrib/mongoengine/tools.py +++ /dev/null @@ -1,28 +0,0 @@ -def parse_like_term(term): - """ - Parse search term into (operation, term) tuple. Recognizes operators - in the beginning of the search term. Case insensitive is the default. - - * = case sensitive (can precede other operators) - ^ = starts with - = = exact - - :param term: - Search term - """ - case_sensitive = term.startswith('*') - if case_sensitive: - term = term[1:] - # apply operators - if term.startswith('^'): - oper = 'startswith' - term = term[1:] - elif term.startswith('='): - oper = 'exact' - term = term[1:] - else: - oper = 'contains' - # add case insensitive flag - if not case_sensitive: - oper = 'i' + oper - return oper, term diff --git a/flask_admin/contrib/mongoengine/typefmt.py b/flask_admin/contrib/mongoengine/typefmt.py deleted file mode 100644 index a6b597329..000000000 --- a/flask_admin/contrib/mongoengine/typefmt.py +++ /dev/null @@ -1,50 +0,0 @@ -from typing import Union - -from markupsafe import Markup, escape - -from mongoengine.base import BaseList -from mongoengine.fields import GridFSProxy, ImageGridFsProxy - -from flask_admin.model.typefmt import BASE_FORMATTERS, list_formatter - -from . import helpers - - -def grid_formatter(view, value, name) -> Union[str, Markup]: - if not value.grid_id: - return '' - - args = helpers.make_gridfs_args(value) - - return Markup( - ('' + - '%(name)s' + - ' %(size)dk (%(content_type)s)') % - { - 'url': view.get_url('.api_file_view', **args), - 'name': escape(value.name), - 'size': value.length // 1024, - 'content_type': escape(value.content_type) - }) - - -def grid_image_formatter(view, value, name) -> Union[str, Markup]: - if not value.grid_id: - return '' - - return Markup( - ('
' + - '' + - '
') % - { - 'url': view.get_url('.api_file_view', **helpers.make_gridfs_args(value)), - 'thumb': view.get_url('.api_file_view', **helpers.make_thumb_args(value)), - }) - - -DEFAULT_FORMATTERS = BASE_FORMATTERS.copy() -DEFAULT_FORMATTERS.update({ - BaseList: list_formatter, - GridFSProxy: grid_formatter, - ImageGridFsProxy: grid_image_formatter -}) diff --git a/flask_admin/contrib/mongoengine/view.py b/flask_admin/contrib/mongoengine/view.py deleted file mode 100644 index fc984182b..000000000 --- a/flask_admin/contrib/mongoengine/view.py +++ /dev/null @@ -1,680 +0,0 @@ -import logging - -from flask import request, flash, abort, Response - -from flask_admin import expose -from flask_admin.babel import gettext, ngettext, lazy_gettext -from flask_admin.model import BaseModelView -from flask_admin.model.form import create_editable_list_form -from flask_admin._compat import iteritems, string_types - -import mongoengine -import gridfs -from mongoengine.connection import get_db -from bson.objectid import ObjectId - -from flask_admin.actions import action -from .filters import FilterConverter, BaseMongoEngineFilter -from .form import get_form, CustomModelConverter -from .typefmt import DEFAULT_FORMATTERS -from .tools import parse_like_term -from .helpers import format_error -from .ajax import process_ajax_references, create_ajax_loader -from .subdoc import convert_subdocuments - -# Set up logger -log = logging.getLogger("flask-admin.mongo") - - -SORTABLE_FIELDS = set(( - mongoengine.StringField, - mongoengine.IntField, - mongoengine.FloatField, - mongoengine.BooleanField, - mongoengine.DateField, - mongoengine.DateTimeField, - mongoengine.ComplexDateTimeField, - mongoengine.ObjectIdField, - mongoengine.DecimalField, - mongoengine.ReferenceField, - mongoengine.EmailField, - mongoengine.UUIDField, - mongoengine.URLField -)) - - -class ModelView(BaseModelView): - """ - MongoEngine model scaffolding. - """ - - column_filters = None - """ - Collection of the column filters. - - Can contain either field names or instances of - :class:`flask_admin.contrib.mongoengine.filters.BaseMongoEngineFilter` - classes. - - Filters will be grouped by name when displayed in the drop-down. - - For example:: - - class MyModelView(BaseModelView): - column_filters = ('user', 'email') - - or:: - - from flask_admin.contrib.mongoengine.filters import BooleanEqualFilter - - class MyModelView(BaseModelView): - column_filters = (BooleanEqualFilter(column=User.name, name='Name'),) - - or:: - - from flask_admin.contrib.mongoengine.filters import BaseMongoEngineFilter - - class FilterLastNameBrown(BaseMongoEngineFilter): - def apply(self, query, value): - if value == '1': - return query.filter(self.column == "Brown") - else: - return query.filter(self.column != "Brown") - - def operation(self): - return 'is Brown' - - class MyModelView(BaseModelView): - column_filters = [ - FilterLastNameBrown( - column=User.last_name, name='Last Name', - options=(('1', 'Yes'), ('0', 'No')) - ) - ] - """ - - model_form_converter = CustomModelConverter - """ - Model form conversion class. Use this to implement custom - field conversion logic. - - Custom class should be derived from the - `flask_admin.contrib.mongoengine.form.CustomModelConverter`. - - For example:: - - class MyModelConverter(AdminModelConverter): - pass - - - class MyAdminView(ModelView): - model_form_converter = MyModelConverter - """ - - object_id_converter = ObjectId - """ - Mongodb ``_id`` value conversion function. Default is `bson.ObjectId`. - Use this if you are using String, Binary and etc. - - For example:: - - class MyModelView(BaseModelView): - object_id_converter = int - - or:: - - class MyModelView(BaseModelView): - object_id_converter = str - """ - - filter_converter = FilterConverter() - """ - Field to filter converter. - - Override this attribute to use a non-default converter. - """ - - column_type_formatters = DEFAULT_FORMATTERS - """ - Customized type formatters for MongoEngine backend - """ - - allowed_search_types = (mongoengine.StringField, - mongoengine.URLField, - mongoengine.EmailField, - mongoengine.ReferenceField) - """ - List of allowed search field types. - """ - - form_subdocuments = None - """ - Subdocument configuration options. - - This field accepts dictionary, where key is field name and value is either dictionary or instance of the - `flask_admin.contrib.mongoengine.EmbeddedForm`. - - Consider following example:: - - class Comment(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - - class Post(db.Document): - text = db.StringField(max_length=30) - data = db.EmbeddedDocumentField(Comment) - - class MyAdmin(ModelView): - form_subdocuments = { - 'data': { - 'form_columns': ('name',) - } - } - - In this example, `Post` model has child `Comment` subdocument. When generating form for `Comment` embedded - document, Flask-Admin will only create `name` field. - - It is also possible to use class-based embedded document configuration:: - - class CommentEmbed(EmbeddedForm): - form_columns = ('name',) - - class MyAdmin(ModelView): - form_subdocuments = { - 'data': CommentEmbed() - } - - Arbitrary depth nesting is supported:: - - class SomeEmbed(EmbeddedForm): - form_excluded_columns = ('test',) - - class CommentEmbed(EmbeddedForm): - form_columns = ('name',) - form_subdocuments = { - 'inner': SomeEmbed() - } - - class MyAdmin(ModelView): - form_subdocuments = { - 'data': CommentEmbed() - } - - There's also support for forms embedded into `ListField`. All you have - to do is to create nested rule with `None` as a name. Even though it - is slightly confusing, but that's how Flask-MongoEngine creates - form fields embedded into ListField:: - - class Comment(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - - class Post(db.Document): - text = db.StringField(max_length=30) - data = db.ListField(db.EmbeddedDocumentField(Comment)) - - class MyAdmin(ModelView): - form_subdocuments = { - 'data': { - 'form_subdocuments': { - None: { - 'form_columns': ('name',) - } - } - - } - } - """ - - def __init__(self, model, name=None, - category=None, endpoint=None, url=None, static_folder=None, - menu_class_name=None, menu_icon_type=None, menu_icon_value=None): - """ - Constructor - - :param model: - Model class - :param name: - Display name - :param category: - Display category - :param endpoint: - Endpoint - :param url: - Custom URL - :param menu_class_name: - Optional class name for the menu item. - :param menu_icon_type: - Optional icon. Possible icon types: - - - `flask_admin.consts.ICON_TYPE_GLYPH` - Bootstrap glyph icon - - `flask_admin.consts.ICON_TYPE_FONT_AWESOME` - Font Awesome icon - - `flask_admin.consts.ICON_TYPE_IMAGE` - Image relative to Flask static directory - - `flask_admin.consts.ICON_TYPE_IMAGE_URL` - Image with full URL - - :param menu_icon_value: - Icon glyph name or URL, depending on `menu_icon_type` setting - """ - self._search_fields = [] - - super(ModelView, self).__init__(model, name, category, endpoint, url, static_folder, - menu_class_name=menu_class_name, - menu_icon_type=menu_icon_type, - menu_icon_value=menu_icon_value) - - self._primary_key = self.scaffold_pk() - - def _refresh_cache(self): - """ - Refresh cache. - """ - # Process subdocuments - if self.form_subdocuments is None: - self.form_subdocuments = {} - - self._form_subdocuments = convert_subdocuments(self.form_subdocuments) - - # Cache other properties - super(ModelView, self)._refresh_cache() - - def _process_ajax_references(self): - """ - AJAX endpoint is exposed by top-level admin view class, but - subdocuments might have AJAX references too. - - This method will recursively go over subdocument configuration - and will precompute AJAX references for them ensuring that - subdocuments can also use AJAX to populate their ReferenceFields. - """ - references = super(ModelView, self)._process_ajax_references() - return process_ajax_references(references, self) - - def _get_model_fields(self, model=None): - """ - Inspect model and return list of model fields - - :param model: - Model to inspect - """ - if model is None: - model = self.model - - return sorted(iteritems(model._fields), key=lambda n: n[1].creation_counter) - - def scaffold_pk(self): - # MongoEngine models have predefined 'id' as a key - return 'id' - - def get_pk_value(self, model): - """ - Return the primary key value from the model instance - - :param model: - Model instance - """ - return model.pk - - def scaffold_list_columns(self): - """ - Scaffold list columns - """ - columns = [] - - for n, f in self._get_model_fields(): - if isinstance(f, mongoengine.ListField) and isinstance(f.field, mongoengine.EmbeddedDocumentField): - continue - - if isinstance(f, mongoengine.EmbeddedDocumentField): - continue - - if self.column_display_pk or not isinstance(f, mongoengine.ObjectIdField): - columns.append(n) - - return columns - - def scaffold_sortable_columns(self): - """ - Return a dictionary of sortable columns (name, field) - """ - columns = {} - - for n, f in self._get_model_fields(): - if type(f) in SORTABLE_FIELDS: - if self.column_display_pk or not isinstance(f, mongoengine.ObjectIdField): - columns[n] = f - - return columns - - def init_search(self): - """ - Init search - """ - if self.column_searchable_list: - for p in self.column_searchable_list: - if isinstance(p, string_types): - p = self.model._fields.get(p) - - if p is None: - raise Exception('Invalid search field') - - field_type = type(p) - - # Check type - if (field_type not in self.allowed_search_types): - raise Exception('Can only search on text columns. ' + - 'Failed to setup search for "%s"' % p) - - self._search_fields.append(p) - - return bool(self._search_fields) - - def scaffold_filters(self, name): - """ - Return filter object(s) for the field - - :param name: - Either field name or field instance - """ - if isinstance(name, string_types): - attr = self.model._fields.get(name) - else: - attr = name - - if attr is None: - raise Exception('Failed to find field for filter: %s' % name) - - # Find name - visible_name = None - - if not isinstance(name, string_types): - visible_name = self.get_column_name(attr.name) - - if not visible_name: - visible_name = self.get_column_name(name) - - # Convert filter - type_name = type(attr).__name__ - flt = self.filter_converter.convert(type_name, - attr, - visible_name) - - return flt - - def is_valid_filter(self, filter): - """ - Validate if the provided filter is a valid MongoEngine filter - - :param filter: - Filter object - """ - return isinstance(filter, BaseMongoEngineFilter) - - def scaffold_form(self): - """ - Create form from the model. - """ - form_class = get_form(self.model, - self.model_form_converter(self), - base_class=self.form_base_class, - only=self.form_columns, - exclude=self.form_excluded_columns, - field_args=self.form_args, - extra_fields=self.form_extra_fields) - - return form_class - - def scaffold_list_form(self, widget=None, validators=None): - """ - Create form for the `index_view` using only the columns from - `self.column_editable_list`. - - :param widget: - WTForms widget class. Defaults to `XEditableWidget`. - :param validators: - `form_args` dict with only validators - {'name': {'validators': [required()]}} - """ - form_class = get_form(self.model, - self.model_form_converter(self), - base_class=self.form_base_class, - only=self.column_editable_list, - field_args=validators) - - return create_editable_list_form(self.form_base_class, form_class, - widget) - - # AJAX foreignkey support - def _create_ajax_loader(self, name, opts): - return create_ajax_loader(self.model, name, name, opts) - - def get_query(self): - """ - Returns the QuerySet for this view. By default, it returns all the - objects for the current model. - """ - return self.model.objects - - def _search(self, query, search_term): - # TODO: Unfortunately, MongoEngine contains bug which - # prevents running complex Q queries and, as a result, - # Flask-Admin does not support per-word searching like - # in other backends - op, term = parse_like_term(search_term) - - criteria = None - - for field in self._search_fields: - if isinstance(field, mongoengine.ReferenceField): - import re - regex = re.compile('.*%s.*' % term) - else: - regex = term - flt = {'%s__%s' % (field.name, op): regex} - q = mongoengine.Q(**flt) - - if criteria is None: - criteria = q - else: - criteria |= q - - return query.filter(criteria) - - def get_list(self, page, sort_column, sort_desc, search, filters, - execute=True, page_size=None): - """ - Get list of objects from MongoEngine - - :param page: - Page number - :param sort_column: - Sort column - :param sort_desc: - Sort descending - :param search: - Search criteria - :param filters: - List of applied filters - :param execute: - Run query immediately or not - :param page_size: - Number of results. Defaults to ModelView's page_size. Can be - overriden to change the page_size limit. Removing the page_size - limit requires setting page_size to 0 or False. - """ - query = self.get_query() - - # Filters - if self._filters: - for flt, flt_name, value in filters: - f = self._filters[flt] - query = f.apply(query, f.clean(value)) - - # Search - if self._search_supported and search: - query = self._search(query, search) - - # Get count - count = query.count() if not self.simple_list_pager else None - - # Sorting - if sort_column: - query = query.order_by('%s%s' % ('-' if sort_desc else '', sort_column)) - else: - order = self._get_default_order() - - if order: - keys = ['%s%s' % ('-' if desc else '', col) - for (col, desc) in order] - query = query.order_by(*keys) - - # Pagination - if page_size is None: - page_size = self.page_size - - if page_size: - query = query.limit(page_size) - - if page and page_size: - query = query.skip(page * page_size) - - if execute: - query = query.all() - - return count, query - - def get_one(self, id): - """ - Return a single model instance by its ID - - :param id: - Model ID - """ - try: - return self.get_query().filter(pk=id).first() - except mongoengine.ValidationError as ex: - flash(gettext('Failed to get model. %(error)s', - error=format_error(ex)), - 'error') - return None - - def create_model(self, form): - """ - Create model helper - - :param form: - Form instance - """ - try: - model = self.model() - form.populate_obj(model) - self._on_model_change(form, model, True) - model.save() - except Exception as ex: - if not self.handle_view_exception(ex): - flash(gettext('Failed to create record. %(error)s', - error=format_error(ex)), - 'error') - log.exception('Failed to create record.') - - return False - else: - self.after_model_change(form, model, True) - - return model - - def update_model(self, form, model): - """ - Update model helper - - :param form: - Form instance - :param model: - Model instance to update - """ - try: - form.populate_obj(model) - self._on_model_change(form, model, False) - model.save() - except Exception as ex: - if not self.handle_view_exception(ex): - flash(gettext('Failed to update record. %(error)s', - error=format_error(ex)), - 'error') - log.exception('Failed to update record.') - - return False - else: - self.after_model_change(form, model, False) - - return True - - def delete_model(self, model): - """ - Delete model helper - - :param model: - Model instance - """ - try: - self.on_model_delete(model) - model.delete() - except Exception as ex: - if not self.handle_view_exception(ex): - flash(gettext('Failed to delete record. %(error)s', - error=format_error(ex)), - 'error') - log.exception('Failed to delete record.') - - return False - else: - self.after_model_delete(model) - - return True - - # FileField access API - @expose('/api/file/') - def api_file_view(self): - pk = request.args.get('id') - coll = request.args.get('coll') - db = request.args.get('db', 'default') - - if not pk or not coll or not db: - abort(404) - - fs = gridfs.GridFS(get_db(db), coll) - - data = fs.get(self.object_id_converter(pk)) - if not data: - abort(404) - - return Response(data.read(), - content_type=data.content_type, - headers={'Content-Length': data.length}) - - # Default model actions - def is_action_allowed(self, name): - # Check delete action permission - if name == 'delete' and not self.can_delete: - return False - - return super(ModelView, self).is_action_allowed(name) - - @action('delete', - lazy_gettext('Delete'), - lazy_gettext('Are you sure you want to delete selected records?')) - def action_delete(self, ids): - try: - count = 0 - - all_ids = [self.object_id_converter(pk) for pk in ids] - for obj in self.get_query().in_bulk(all_ids).values(): - count += self.delete_model(obj) - - flash(ngettext('Record was successfully deleted.', - '%(count)s records were successfully deleted.', - count, - count=count), 'success') - except Exception as ex: - if not self.handle_view_exception(ex): - flash(gettext('Failed to delete records. %(error)s', error=str(ex)), - 'error') diff --git a/flask_admin/contrib/mongoengine/widgets.py b/flask_admin/contrib/mongoengine/widgets.py deleted file mode 100644 index 55a503c81..000000000 --- a/flask_admin/contrib/mongoengine/widgets.py +++ /dev/null @@ -1,63 +0,0 @@ -from wtforms.widgets import html_params - -from markupsafe import escape - -from mongoengine.fields import GridFSProxy, ImageGridFsProxy - -from flask_admin._backwards import Markup -from flask_admin.helpers import get_url -from . import helpers - - -class MongoFileInput(object): - """ - Renders a file input chooser field. - """ - template = ('
' - ' %(name)s %(size)dk (%(content_type)s)' - ' Delete' - '
') - - def __call__(self, field, **kwargs): - kwargs.setdefault('id', field.id) - - placeholder = '' - if field.data and isinstance(field.data, GridFSProxy): - data = field.data - - placeholder = self.template % { - 'name': escape(data.name), - 'content_type': escape(data.content_type), - 'size': data.length // 1024, - 'marker': '_%s-delete' % field.name - } - - return Markup('%s' % (placeholder, - html_params(name=field.name, - type='file', - **kwargs))) - - -class MongoImageInput(object): - """ - Renders a file input chooser field. - """ - template = ('
' - ' ' - ' Delete' - '
') - - def __call__(self, field, **kwargs): - kwargs.setdefault('id', field.id) - placeholder = '' - if field.data and isinstance(field.data, ImageGridFsProxy): - args = helpers.make_thumb_args(field.data) - placeholder = self.template % { - 'thumb': get_url('.api_file_view', **args), - 'marker': '_%s-delete' % field.name - } - - return Markup('%s' % (placeholder, - html_params(name=field.name, - type='file', - **kwargs))) diff --git a/flask_admin/tests/mongoengine/__init__.py b/flask_admin/tests/mongoengine/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/flask_admin/tests/mongoengine/conftest.py b/flask_admin/tests/mongoengine/conftest.py deleted file mode 100644 index 5a504e7f8..000000000 --- a/flask_admin/tests/mongoengine/conftest.py +++ /dev/null @@ -1,20 +0,0 @@ -import pytest - -from flask_admin import Admin -from flask_mongoengine import MongoEngine - - -@pytest.fixture -def db(): - db = MongoEngine() - yield db - - -@pytest.fixture -def admin(app, babel, db): - app.config['MONGODB_SETTINGS'] = {'DB': 'tests'} - - db.init_app(app) - - admin = Admin(app) - yield admin diff --git a/flask_admin/tests/mongoengine/test_basic.py b/flask_admin/tests/mongoengine/test_basic.py deleted file mode 100644 index aca1ac8ef..000000000 --- a/flask_admin/tests/mongoengine/test_basic.py +++ /dev/null @@ -1,1242 +0,0 @@ -from wtforms import fields, validators - -from flask_admin import form -from flask_admin._compat import as_unicode -from flask_admin.contrib.mongoengine import ModelView - -from datetime import datetime - - -class CustomModelView(ModelView): - def __init__(self, model, - name=None, category=None, endpoint=None, url=None, - **kwargs): - for k, v in kwargs.items(): - setattr(self, k, v) - - super(CustomModelView, self).__init__(model, - name, category, - endpoint, url) - - -def create_models(db): - class Model1(db.Document): - test1 = db.StringField(max_length=20) - test2 = db.StringField(max_length=20) - test3 = db.StringField() - test4 = db.StringField() - date_field = db.DateField() - datetime_field = db.DateTimeField() - - def __str__(self): - return self.test1 - - class Model2(db.Document): - string_field = db.StringField() - int_field = db.IntField() - float_field = db.FloatField() - bool_field = db.BooleanField() - - model1 = db.ReferenceField(Model1) - - Model1.objects.delete() - Model2.objects.delete() - - return Model1, Model2 - - -def fill_db(Model1, Model2): - Model1(test1='test1_val_1', test2='test2_val_1').save() - Model1(test1='test1_val_2', test2='test2_val_2').save() - Model1(test1='test1_val_3', test2='test2_val_3').save() - Model1(test1='test1_val_4', test2='test2_val_4').save() - Model1(test1=None, test2='empty_obj').save() - - Model2(string_field='string_field_val_1', int_field=None, - float_field=None, bool_field=True).save() - Model2(string_field='string_field_val_2', int_field=None, - float_field=None, bool_field=False).save() - Model2(string_field='string_field_val_3', int_field=5000, - float_field=25.9).save() - Model2(string_field='string_field_val_4', int_field=9000, - float_field=75.5).save() - Model2(string_field='string_field_val_5', - int_field=6169453081680413441).save() - - Model1(test1='datetime_obj1', - datetime_field=datetime(2014, 4, 3, 1, 9, 0)).save() - Model1(test1='datetime_obj2', - datetime_field=datetime(2013, 3, 2, 0, 8, 0)).save() - - -def test_model(app, db, admin): - Model1, Model2 = create_models(db) - - view = CustomModelView(Model1) - admin.add_view(view) - - assert view.model == Model1 - assert view.name == 'Model1' - assert view.endpoint == 'model1' - - assert view._primary_key == 'id' - - assert 'test1' in view._sortable_columns - assert 'test2' in view._sortable_columns - assert 'test3' in view._sortable_columns - assert 'test4' in view._sortable_columns - assert 'date_field' in view._sortable_columns - - assert view._create_form_class is not None - assert view._edit_form_class is not None - assert not view._search_supported - assert view._filters is None - - assert view._create_form_class.test1.field_class == fields.StringField - assert view._create_form_class.test2.field_class == fields.StringField - - assert view._create_form_class.test3.field_class == fields.TextAreaField - assert view._create_form_class.test4.field_class == fields.TextAreaField - - # Make some test clients - client = app.test_client() - - rv = client.get('/admin/model1/') - assert rv.status_code == 200 - - rv = client.get('/admin/model1/new/') - assert rv.status_code == 200 - - rv = client.post('/admin/model1/new/', - data=dict(test1='test1large', test2='test2')) - assert rv.status_code == 302 - - model = Model1.objects.first() - assert model.test1 == 'test1large' - assert model.test2 == 'test2' - assert model.test3 == '' - assert model.test4 == '' - - rv = client.get('/admin/model1/') - assert rv.status_code == 200 - assert b'test1large' in rv.data - - url = '/admin/model1/edit/?id=%s' % model.id - rv = client.get(url) - assert rv.status_code == 200 - - rv = client.post(url, - data=dict(test1='test1small', test2='test2large')) - assert rv.status_code == 302 - - model = Model1.objects.first() - assert model.test1 == 'test1small' - assert model.test2 == 'test2large' - assert model.test3 == '' - assert model.test4 == '' - - url = '/admin/model1/delete/?id=%s' % model.id - rv = client.post(url) - assert rv.status_code == 302 - assert Model1.objects.count() == 0 - - -def test_column_editable_list(app, db, admin): - Model1, Model2 = create_models(db) - - view = CustomModelView(Model1, - column_editable_list=['test1', 'datetime_field']) - admin.add_view(view) - - # Test in-line editing for relations - view = CustomModelView(Model2, column_editable_list=['model1']) - admin.add_view(view) - - fill_db(Model1, Model2) - - client = app.test_client() - - # Test in-line edit field rendering - rv = client.get('/admin/model1/') - data = rv.data.decode('utf-8') - assert 'data-role="x-editable"' in data - - # Form - Test basic in-line edit functionality - obj1 = Model1.objects.get(test1='test1_val_3') - rv = client.post('/admin/model1/ajax/update/', data={ - 'list_form_pk': str(obj1.id), - 'test1': 'change-success-1', - }) - data = rv.data.decode('utf-8') - assert 'Record was successfully saved.' == data - - # confirm the value has changed - rv = client.get('/admin/model1/') - data = rv.data.decode('utf-8') - assert 'change-success-1' in data - - # Test validation error - obj2 = Model1.objects.get(test1='datetime_obj1') - rv = client.post('/admin/model1/ajax/update/', data={ - 'list_form_pk': str(obj2.id), - 'datetime_field': 'problematic-input', - }) - assert rv.status_code == 500 - - # Test invalid primary key - rv = client.post('/admin/model1/ajax/update/', data={ - 'list_form_pk': '1000', - 'test1': 'problematic-input', - }) - data = rv.data.decode('utf-8') - assert rv.status_code == 500 - - # Test editing column not in column_editable_list - rv = client.post('/admin/model1/ajax/update/', data={ - 'list_form_pk': '1', - 'test2': 'problematic-input', - }) - data = rv.data.decode('utf-8') - assert 'problematic-input' not in data - - obj3 = Model2.objects.get(string_field='string_field_val_1') - rv = client.post('/admin/model2/ajax/update/', data={ - 'list_form_pk': str(obj3.id), - 'model1': str(obj1.id), - }) - data = rv.data.decode('utf-8') - assert 'Record was successfully saved.' == data - - # confirm the value has changed - rv = client.get('/admin/model2/') - data = rv.data.decode('utf-8') - assert 'test1_val_1' in data - - -def test_details_view(app, db, admin): - Model1, Model2 = create_models(db) - - view_no_details = CustomModelView(Model1) - admin.add_view(view_no_details) - - # fields are scaffolded - view_w_details = CustomModelView(Model2, can_view_details=True) - admin.add_view(view_w_details) - - # show only specific fields in details w/ column_details_list - string_field_view = CustomModelView(Model2, can_view_details=True, - column_details_list=["string_field"], - endpoint="sf_view") - admin.add_view(string_field_view) - - fill_db(Model1, Model2) - - client = app.test_client() - - m1_id = Model1.objects.first().id - m2_id = Model2.objects.first().id - - # ensure link to details is hidden when can_view_details is disabled - rv = client.get('/admin/model1/') - data = rv.data.decode('utf-8') - assert '/admin/model1/details/' not in data - - # ensure link to details view appears - rv = client.get('/admin/model2/') - data = rv.data.decode('utf-8') - assert '/admin/model2/details/' in data - - # test redirection when details are disabled - url = '/admin/model1/details/?url=%2Fadmin%2Fmodel1%2F&id=' + str(m1_id) - rv = client.get(url) - assert rv.status_code == 302 - - # test if correct data appears in details view when enabled - url = '/admin/model2/details/?url=%2Fadmin%2Fmodel2%2F&id=' + str(m2_id) - rv = client.get(url) - data = rv.data.decode('utf-8') - assert 'String Field' in data - assert 'string_field_val_1' in data - assert 'Int Field' in data - - # test column_details_list - url = '/admin/sf_view/details/?url=%2Fadmin%2Fsf_view%2F&id=' + str(m2_id) - rv = client.get(url) - data = rv.data.decode('utf-8') - assert 'String Field' in data - assert 'string_field_val_1' in data - assert 'Int Field' not in data - - -def test_column_filters(app, db, admin): - Model1, Model2 = create_models(db) - - # fill DB with values - fill_db(Model1, Model2) - - # Test string filter - view1 = CustomModelView(Model1, column_filters=['test1']) - admin.add_view(view1) - - assert len(view1._filters) == 7 - - assert \ - [(f['index'], f['operation']) for f in view1._filter_groups[u'Test1']] == \ - [ - (0, 'contains'), - (1, 'not contains'), - (2, 'equals'), - (3, 'not equal'), - (4, 'empty'), - (5, 'in list'), - (6, 'not in list'), - ] - - # Test numeric filter - view2 = CustomModelView(Model2, column_filters=['int_field']) - admin.add_view(view2) - - assert \ - [(f['index'], f['operation']) for f in view2._filter_groups[u'Int Field']] == \ - [ - (0, 'equals'), - (1, 'not equal'), - (2, 'greater than'), - (3, 'smaller than'), - (4, 'empty'), - (5, 'in list'), - (6, 'not in list'), - ] - - # Test boolean filter - view3 = CustomModelView(Model2, column_filters=['bool_field'], - endpoint="_bools") - admin.add_view(view3) - - assert \ - [(f['index'], f['operation']) for f in view3._filter_groups[u'Bool Field']] == \ - [ - (0, 'equals'), - (1, 'not equal'), - ] - - # Test float filter - view4 = CustomModelView(Model2, column_filters=['float_field'], - endpoint="_float") - admin.add_view(view4) - - assert \ - [(f['index'], f['operation']) for f in view4._filter_groups[u'Float Field']] == \ - [ - (0, 'equals'), - (1, 'not equal'), - (2, 'greater than'), - (3, 'smaller than'), - (4, 'empty'), - (5, 'in list'), - (6, 'not in list'), - ] - - # Test datetime filter - view5 = CustomModelView(Model1, - column_filters=['datetime_field'], - endpoint="_datetime") - admin.add_view(view5) - - assert \ - [(f['index'], f['operation']) for f in view5._filter_groups[u'Datetime Field']] == \ - [ - (0, 'equals'), - (1, 'not equal'), - (2, 'greater than'), - (3, 'smaller than'), - (4, 'between'), - (5, 'not between'), - (6, 'empty'), - ] - - # Make some test clients - client = app.test_client() - - # string - equals - rv = client.get('/admin/model1/?flt0_0=test1_val_1') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'test2_val_1' in data - assert 'test1_val_2' not in data - - # string - not equal - rv = client.get('/admin/model1/?flt0_1=test1_val_1') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'test2_val_1' not in data - assert 'test1_val_2' in data - - # string - contains - rv = client.get('/admin/model1/?flt0_2=test1_val_1') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'test2_val_1' in data - assert 'test1_val_2' not in data - - # string - not contains - rv = client.get('/admin/model1/?flt0_3=test1_val_1') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'test2_val_1' not in data - assert 'test1_val_2' in data - - # string - empty - rv = client.get('/admin/model1/?flt0_4=1') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'empty_obj' in data - assert 'test1_val_1' not in data - assert 'test1_val_2' not in data - - # string - not empty - rv = client.get('/admin/model1/?flt0_4=0') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'empty_obj' not in data - assert 'test1_val_1' in data - assert 'test1_val_2' in data - - # string - in list - rv = client.get('/admin/model1/?flt0_5=test1_val_1%2Ctest1_val_2') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'test2_val_1' in data - assert 'test2_val_2' in data - assert 'test1_val_3' not in data - assert 'test1_val_4' not in data - - # string - not in list - rv = client.get('/admin/model1/?flt0_6=test1_val_1%2Ctest1_val_2') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'test2_val_1' not in data - assert 'test2_val_2' not in data - assert 'test1_val_3' in data - assert 'test1_val_4' in data - - # integer - equals - rv = client.get('/admin/model2/?flt0_0=5000') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_3' in data - assert 'string_field_val_4' not in data - - # integer - equals (huge number) - rv = client.get('/admin/model2/?flt0_0=6169453081680413441') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_5' in data - assert 'string_field_val_4' not in data - - # integer - equals - test validation - rv = client.get('/admin/model2/?flt0_0=badval') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'Invalid Filter Value' in data - - # integer - not equal - rv = client.get('/admin/model2/?flt0_1=5000') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_3' not in data - assert 'string_field_val_4' in data - - # integer - greater - rv = client.get('/admin/model2/?flt0_2=6000') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_3' not in data - assert 'string_field_val_4' in data - - # integer - smaller - rv = client.get('/admin/model2/?flt0_3=6000') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_3' in data - assert 'string_field_val_4' not in data - - # integer - empty - rv = client.get('/admin/model2/?flt0_4=1') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' in data - assert 'string_field_val_2' in data - assert 'string_field_val_3' not in data - assert 'string_field_val_4' not in data - - # integer - not empty - rv = client.get('/admin/model2/?flt0_4=0') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' not in data - assert 'string_field_val_2' not in data - assert 'string_field_val_3' in data - assert 'string_field_val_4' in data - - # integer - in list - rv = client.get('/admin/model2/?flt0_5=5000%2C9000') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' not in data - assert 'string_field_val_2' not in data - assert 'string_field_val_3' in data - assert 'string_field_val_4' in data - - # integer - in list (huge number) - rv = client.get('/admin/model2/?flt0_5=6169453081680413441') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' not in data - assert 'string_field_val_5' in data - - # integer - in list - test validation - rv = client.get('/admin/model2/?flt0_5=5000%2Cbadval') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'Invalid Filter Value' in data - - # integer - not in list - rv = client.get('/admin/model2/?flt0_6=5000%2C9000') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' in data - assert 'string_field_val_2' in data - assert 'string_field_val_3' not in data - assert 'string_field_val_4' not in data - - # boolean - equals - Yes - rv = client.get('/admin/_bools/?flt0_0=1') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' in data - assert 'string_field_val_2' not in data - - # boolean - equals - No - rv = client.get('/admin/_bools/?flt0_0=0') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' not in data - assert 'string_field_val_2' in data - - # boolean - not equals - Yes - rv = client.get('/admin/_bools/?flt0_1=1') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' not in data - assert 'string_field_val_2' in data - - # boolean - not equals - No - rv = client.get('/admin/_bools/?flt0_1=0') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' in data - assert 'string_field_val_2' not in data - - # float - equals - rv = client.get('/admin/_float/?flt0_0=25.9') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_3' in data - assert 'string_field_val_4' not in data - - # float - equals - test validation - rv = client.get('/admin/_float/?flt0_0=badval') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'Invalid Filter Value' in data - - # float - not equal - rv = client.get('/admin/_float/?flt0_1=25.9') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_3' not in data - assert 'string_field_val_4' in data - - # float - greater - rv = client.get('/admin/_float/?flt0_2=60.5') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_3' not in data - assert 'string_field_val_4' in data - - # float - smaller - rv = client.get('/admin/_float/?flt0_3=60.5') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_3' in data - assert 'string_field_val_4' not in data - - # float - empty - rv = client.get('/admin/_float/?flt0_4=1') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' in data - assert 'string_field_val_2' in data - assert 'string_field_val_3' not in data - assert 'string_field_val_4' not in data - - # float - not empty - rv = client.get('/admin/_float/?flt0_4=0') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' not in data - assert 'string_field_val_2' not in data - assert 'string_field_val_3' in data - assert 'string_field_val_4' in data - - # float - in list - rv = client.get('/admin/_float/?flt0_5=25.9%2C75.5') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' not in data - assert 'string_field_val_2' not in data - assert 'string_field_val_3' in data - assert 'string_field_val_4' in data - - # float - in list - test validation - rv = client.get('/admin/_float/?flt0_5=25.9%2Cbadval') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'Invalid Filter Value' in data - - # float - not in list - rv = client.get('/admin/_float/?flt0_6=25.9%2C75.5') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'string_field_val_1' in data - assert 'string_field_val_2' in data - assert 'string_field_val_3' not in data - assert 'string_field_val_4' not in data - - # datetime - equals - rv = client.get('/admin/_datetime/?flt0_0=2014-04-03+01%3A09%3A00') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'datetime_obj1' in data - assert 'datetime_obj2' not in data - - # datetime - not equal - rv = client.get('/admin/_datetime/?flt0_1=2014-04-03+01%3A09%3A00') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'datetime_obj1' not in data - assert 'datetime_obj2' in data - - # datetime - greater - rv = client.get('/admin/_datetime/?flt0_2=2014-04-03+01%3A08%3A00') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'datetime_obj1' in data - assert 'datetime_obj2' not in data - - # datetime - smaller - rv = client.get('/admin/_datetime/?flt0_3=2014-04-03+01%3A08%3A00') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'datetime_obj1' not in data - assert 'datetime_obj2' in data - - # datetime - between - rv = client.get('/admin/_datetime/?flt0_4=2014-04-02+00%3A00%3A00+to+2014-11-20+23%3A59%3A59') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'datetime_obj1' in data - assert 'datetime_obj2' not in data - - # datetime - not between - rv = client.get('/admin/_datetime/?flt0_5=2014-04-02+00%3A00%3A00+to+2014-11-20+23%3A59%3A59') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'datetime_obj1' not in data - assert 'datetime_obj2' in data - - # datetime - empty - rv = client.get('/admin/_datetime/?flt0_6=1') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'test1_val_1' in data - assert 'datetime_obj1' not in data - assert 'datetime_obj2' not in data - - # datetime - not empty - rv = client.get('/admin/_datetime/?flt0_6=0') - assert rv.status_code == 200 - data = rv.data.decode('utf-8') - assert 'test1_val_1' not in data - assert 'datetime_obj1' in data - assert 'datetime_obj2' in data - - -def test_default_sort(app, db, admin): - M1, _ = create_models(db) - - M1(test1='c', test2='x').save() - M1(test1='b', test2='x').save() - M1(test1='a', test2='y').save() - - assert M1.objects.count() == 3 - - view = CustomModelView(M1, column_default_sort='test1') - admin.add_view(view) - - _, data = view.get_list(0, None, None, None, None) - - assert data[0].test1 == 'a' - assert data[1].test1 == 'b' - assert data[2].test1 == 'c' - - # test default sort with multiple columns - order = [('test2', False), ('test1', False)] - view2 = CustomModelView(M1, column_default_sort=order, endpoint='m1_2') - admin.add_view(view2) - - _, data = view2.get_list(0, None, None, None, None) - - assert len(data) == 3 - assert data[0].test1 == 'b' - assert data[1].test1 == 'c' - assert data[2].test1 == 'a' - - -def test_extra_fields(app, db, admin): - Model1, _ = create_models(db) - - view = CustomModelView( - Model1, - form_extra_fields={ - 'extra_field': fields.StringField('Extra Field') - } - ) - admin.add_view(view) - - client = app.test_client() - - rv = client.get('/admin/model1/new/') - assert rv.status_code == 200 - - # Check presence and order - data = rv.data.decode('utf-8') - assert 'Extra Field' in data - pos1 = data.find('Extra Field') - pos2 = data.find('Test1') - assert pos2 < pos1 - - -def test_extra_field_order(app, db, admin): - Model1, _ = create_models(db) - - view = CustomModelView( - Model1, - form_extra_fields={ - 'extra_field': fields.StringField('Extra Field') - } - ) - admin.add_view(view) - - client = app.test_client() - - rv = client.get('/admin/model1/new/') - assert rv.status_code == 200 - - # Check presence and order - data = rv.data.decode('utf-8') - assert 'Extra Field' in data - pos1 = data.find('Extra Field') - pos2 = data.find('Test1') - assert pos2 < pos1 - - -def test_custom_form_base(app, db, admin): - class TestForm(form.BaseForm): - pass - - Model1, _ = create_models(db) - - view = CustomModelView( - Model1, - form_base_class=TestForm - ) - admin.add_view(view) - - assert hasattr(view._create_form_class, 'test1') - - create_form = view.create_form() - assert isinstance(create_form, TestForm) - - -def test_subdocument_config(app, db, admin): - class Comment(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - - class Model1(db.Document): - test1 = db.StringField(max_length=20) - subdoc = db.EmbeddedDocumentField(Comment) - - # Check only - view1 = CustomModelView( - Model1, - form_subdocuments={ - 'subdoc': { - 'form_columns': ('name',) - } - } - ) - - assert hasattr(view1._create_form_class, 'subdoc') - - form = view1.create_form() - assert 'name' in dir(form.subdoc.form) - assert 'value' not in dir(form.subdoc.form) - - # Check exclude - view2 = CustomModelView( - Model1, - form_subdocuments={ - 'subdoc': { - 'form_excluded_columns': ('value',) - } - } - ) - - form = view2.create_form() - assert 'name' in dir(form.subdoc.form) - assert 'value' not in dir(form.subdoc.form) - - -def test_subdocument_class_config(app, db, admin): - from flask_admin.contrib.mongoengine import EmbeddedForm - - class Comment(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - - class Model1(db.Document): - test1 = db.StringField(max_length=20) - subdoc = db.EmbeddedDocumentField(Comment) - - class EmbeddedConfig(EmbeddedForm): - form_columns = ('name',) - - # Check only - view1 = CustomModelView( - Model1, - form_subdocuments={ - 'subdoc': EmbeddedConfig() - } - ) - - form = view1.create_form() - assert 'name' in dir(form.subdoc.form) - assert 'value' not in dir(form.subdoc.form) - - -def test_nested_subdocument_config(app, db, admin): - # Check recursive - class Comment(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - - class Nested(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - comment = db.EmbeddedDocumentField(Comment) - - class Model1(db.Document): - test1 = db.StringField(max_length=20) - nested = db.EmbeddedDocumentField(Nested) - - view1 = CustomModelView( - Model1, - form_subdocuments={ - 'nested': { - 'form_subdocuments': { - 'comment': { - 'form_columns': ('name',) - } - } - } - } - ) - - form = view1.create_form() - assert 'name' in dir(form.nested.form.comment.form) - assert 'value' not in dir(form.nested.form.comment.form) - - -def test_nested_list_subdocument(app, db, admin): - class Comment(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - - class Model1(db.Document): - test1 = db.StringField(max_length=20) - subdoc = db.ListField(db.EmbeddedDocumentField(Comment)) - - # Check only - view1 = CustomModelView( - Model1, - form_subdocuments={ - 'subdoc': { - 'form_subdocuments': { - None: { - 'form_columns': ('name',) - } - } - - } - } - ) - - form = view1.create_form() - inline_form = form.subdoc.unbound_field.args[2] - - assert 'name' in dir(inline_form) - assert 'value' not in dir(inline_form) - - -def test_nested_sortedlist_subdocument(app, db, admin): - class Comment(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - - class Model1(db.Document): - test1 = db.StringField(max_length=20) - subdoc = db.SortedListField(db.EmbeddedDocumentField(Comment)) - - # Check only - view1 = CustomModelView( - Model1, - form_subdocuments={ - 'subdoc': { - 'form_subdocuments': { - None: { - 'form_columns': ('name',) - } - } - } - } - ) - - form = view1.create_form() - inline_form = form.subdoc.unbound_field.args[2] - - assert 'name' in dir(inline_form) - assert 'value' not in dir(inline_form) - - -def test_sortedlist_subdocument_validation(app, db, admin): - class Comment(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - - class Model1(db.Document): - test1 = db.StringField(max_length=20) - subdoc = db.SortedListField(db.EmbeddedDocumentField(Comment)) - - view = CustomModelView(Model1) - admin.add_view(view) - client = app.test_client() - - rv = client.post('/admin/model1/new/', - data={'test1': 'test1large', 'subdoc-0-name': 'comment', 'subdoc-0-value': 'test'}) - assert rv.status_code == 302 - - rv = client.post('/admin/model1/new/', - data={'test1': 'test1large', 'subdoc-0-name': '', 'subdoc-0-value': 'test'}) - assert rv.status_code == 200 - assert b'This field is required' in rv.data - - -def test_list_subdocument_validation(app, db, admin): - class Comment(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - - class Model1(db.Document): - test1 = db.StringField(max_length=20) - subdoc = db.ListField(db.EmbeddedDocumentField(Comment)) - - view = CustomModelView(Model1) - admin.add_view(view) - client = app.test_client() - - rv = client.post('/admin/model1/new/', - data={'test1': 'test1large', 'subdoc-0-name': 'comment', 'subdoc-0-value': 'test'}) - assert rv.status_code == 302 - - rv = client.post('/admin/model1/new/', - data={'test1': 'test1large', 'subdoc-0-name': '', 'subdoc-0-value': 'test'}) - assert rv.status_code == 200 - assert b'This field is required' in rv.data - - -def test_ajax_fk(app, db, admin): - Model1, Model2 = create_models(db) - - view = CustomModelView( - Model2, - url='view', - form_ajax_refs={ - 'model1': { - 'fields': ('test1', 'test2') - } - } - ) - admin.add_view(view) - - assert u'model1' in view._form_ajax_refs - - model = Model1(test1=u'first') - model.save() - model2 = Model1(test1=u'foo', test2=u'bar').save() - - # Check loader - loader = view._form_ajax_refs[u'model1'] - mdl = loader.get_one(model.id) - assert mdl.test1 == model.test1 - - items = loader.get_list(u'fir') - assert len(items) == 1 - assert items[0].id == model.id - - items = loader.get_list(u'bar') - assert len(items) == 1 - assert items[0].test1 == u'foo' - - # Check form generation - form = view.create_form() - assert form.model1.__class__.__name__ == u'AjaxSelectField' - - with app.test_request_context('/admin/view/'): - assert u'value=""' not in form.model1() - - form.model1.data = model - assert (u'data-json="["%s", "first"]"' % as_unicode(model.id) in form.model1() or - u'data-json="["%s", "first"]"' % as_unicode(model.id) in form.model1()) - assert u'value="%s"' % as_unicode(model.id) in form.model1() - - # Check querying - client = app.test_client() - - req = client.get(u'/admin/view/ajax/lookup/?name=model1&query=foo') - assert req.data.decode('utf-8') == u'[["%s", "foo"]]' % model2.id - - # Check submitting - client.post('/admin/view/new/', data={u'model1': as_unicode(model.id)}) - mdl = Model2.objects.first() - - assert mdl is not None - assert mdl.model1 is not None - assert mdl.model1.id == model.id - assert mdl.model1.test1 == u'first' - - -def test_nested_ajax_refs(app, db, admin): - # Check recursive - class Comment(db.Document): - name = db.StringField(max_length=20, required=True) - value = db.StringField(max_length=20) - - class Nested(db.EmbeddedDocument): - name = db.StringField(max_length=20, required=True) - comment = db.ReferenceField(Comment) - - class Model1(db.Document): - test1 = db.StringField(max_length=20) - nested = db.EmbeddedDocumentField(Nested) - - view1 = CustomModelView( - Model1, - form_subdocuments={ - 'nested': { - 'form_ajax_refs': { - 'comment': { - 'fields': ['name'] - } - } - } - } - ) - - form = view1.create_form() - assert type(form.nested.form.comment).__name__ == 'AjaxSelectField' - assert 'nested-comment' in view1._form_ajax_refs - - -def test_form_flat_choices(app, db, admin): - class Model(db.Document): - name = db.StringField(max_length=20, choices=('a', 'b', 'c')) - - view = CustomModelView(Model) - admin.add_view(view) - - form = view.create_form() - assert form.name.choices == [('a', 'a'), ('b', 'b'), ('c', 'c')] - - -def test_form_args(app, db, admin): - class Model(db.Document): - test = db.StringField(required=True) - - shared_form_args = {'test': {'validators': [validators.Regexp('test')]}} - - view = CustomModelView(Model, form_args=shared_form_args) - admin.add_view(view) - - # ensure shared field_args don't create duplicate validators - create_form = view.create_form() - assert len(create_form.test.validators) == 2 - - edit_form = view.edit_form() - assert len(edit_form.test.validators) == 2 - - -def test_form_args_embeddeddoc(app, db, admin): - class Info(db.EmbeddedDocument): - name = db.StringField() - age = db.StringField() - - class Model(db.Document): - info = db.EmbeddedDocumentField('Info') - timestamp = db.DateTimeField() - - view = CustomModelView( - Model, - form_args={ - 'info': {'label': 'Information'}, - 'timestamp': {'label': 'Last Updated Time'} - } - ) - admin.add_view(view) - form = view.create_form() - assert form.timestamp.label.text == 'Last Updated Time' - # This is the failure - assert form.info.label.text == 'Information' - - -def test_simple_list_pager(app, db, admin): - Model1, _ = create_models(db) - - class TestModelView(CustomModelView): - simple_list_pager = True - - def get_count_query(self): - assert False - - view = TestModelView(Model1) - admin.add_view(view) - - count, data = view.get_list(0, None, None, None, None) - assert count is None - - -def test_customising_page_size(app, db, admin): - with app.app_context(): - M1, _ = create_models(db) - - instances = [M1(test1=f'instance-{x+1:03d}') for x in range(101)] - for instance in instances: - instance.save() - - view1 = CustomModelView(M1, endpoint='view1', page_size=20, can_set_page_size=False) - admin.add_view(view1) - - view2 = CustomModelView(M1, db, endpoint='view2', page_size=5, can_set_page_size=False) - admin.add_view(view2) - - view3 = CustomModelView(M1, db, endpoint='view3', page_size=20, can_set_page_size=True) - admin.add_view(view3) - - view4 = CustomModelView(M1, db, endpoint='view4', page_size=5, page_size_options=(5, 10, 15), can_set_page_size=True) - admin.add_view(view4) - - client = app.test_client() - - rv = client.get('/admin/view1/') - assert 'instance-020' in rv.text - assert 'instance-021' not in rv.text - - # `can_set_page_size=False`, so only the default of 20 is available. - rv = client.get('/admin/view1/?page_size=50') - assert 'instance-020' in rv.text - assert 'instance-021' not in rv.text - - # Check view2, which has `page_size=5` to change the default page size - rv = client.get('/admin/view2/') - assert 'instance-005' in rv.text - assert 'instance-006' not in rv.text - - # Check view3, which has `can_set_page_size=True` - rv = client.get('/admin/view3/') - assert 'instance-020' in rv.text - assert 'instance-021' not in rv.text - - rv = client.get('/admin/view3/?page_size=50') - assert 'instance-050' in rv.text - assert 'instance-051' not in rv.text - - rv = client.get('/admin/view3/?page_size=100') - assert 'instance-100' in rv.text - assert 'instance-101' not in rv.text - - # Invalid page sizes are reset to the default - rv = client.get('/admin/view3/?page_size=1') - assert 'instance-020' in rv.text - assert 'instance-021' not in rv.text - - # Check view4, which has custom `page_size_options` - rv = client.get('/admin/view4/') - assert 'instance-005' in rv.text - assert 'instance-006' not in rv.text - - # Invalid page sizes are reset to the default - rv = client.get('/admin/view4/?page_size=1') - assert 'instance-005' in rv.text - assert 'instance-006' not in rv.text - - rv = client.get('/admin/view4/?page_size=10') - assert 'instance-010' in rv.text - assert 'instance-011' not in rv.text - - rv = client.get('/admin/view4/?page_size=15') - assert 'instance-015' in rv.text - assert 'instance-016' not in rv.text - - -def test_export_csv(app, db, admin): - Model1, Model2 = create_models(db) - - view1 = CustomModelView(Model1, can_export=True, - column_list=['test1', 'test2'], export_max_rows=2, - endpoint='row_limit_2') - admin.add_view(view1) - - view2 = CustomModelView(Model1, can_export=True, - column_list=['test1', 'test2'], - endpoint='no_row_limit') - admin.add_view(view2) - - for x in range(5): - fill_db(Model1, Model2) - - client = app.test_client() - - # test export_max_rows - rv = client.get('/admin/row_limit_2/export/csv/') - data = rv.data.decode('utf-8') - assert rv.status_code == 200 - assert "Test1,Test2\r\n" + \ - "test1_val_1,test2_val_1\r\n" + \ - "test1_val_2,test2_val_2\r\n" == data - - # test row limit without export_max_rows - rv = client.get('/admin/no_row_limit/export/csv/') - data = rv.data.decode('utf-8') - assert rv.status_code == 200 - assert len(data.splitlines()) > 21 diff --git a/pyproject.toml b/pyproject.toml index af2c37065..f02d13737 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,13 +44,6 @@ geoalchemy = [ "geoalchemy2>=0.14.0", "shapely>=2", ] -mongoengine = [ # TODO: seems out-of-date/unmaintained; replace or deprecate? - "Flask-Admin[sqlalchemy]", - "flask-mongoengine<1", - "Flask<2.3.0", # flask-mongoengine tries to access `flask.json`, - "sqlalchemy>=1.4,<2", - "wtforms>=2,<3", -] pymongo = ["pymongo>=3.7.0"] peewee = [ "peewee>=3.14.0", @@ -66,11 +59,6 @@ all = [ "Flask-Admin[sqlalchemy]", "Flask-Admin[sqlalchemy-with-utils]", "Flask-Admin[geoalchemy]", - -# FIXME: disabling mongoengine as flask-mongoengine is now out-of-date and is -# incompatible with newer versions of flask that we want to test. -# "Flask-Admin[mongoengine]", - "Flask-Admin[pymongo]", "Flask-Admin[peewee]", "Flask-Admin[s3]", @@ -105,9 +93,6 @@ filterwarnings = [ "ignore:Flags should be stored in dicts and not in tuples. The next version of WTForms will abandon support for flags in tuples.:DeprecationWarning", "ignore:'HTMLString' will be removed in WTForms 3.0. Use 'markupsafe.Markup' instead.:DeprecationWarning", - # flask-mongoengine is responsible for the below deprecation warning, and hasn't been updated recently - "default:No uuidRepresentation is specified:DeprecationWarning", - # Werkzeug is responsible for the below deprecation warning; remove when they have updated their code. "default:ast\\.Str is deprecated and will be removed in Python 3\\.14:DeprecationWarning", "default:Attribute s is deprecated and will be removed in Python 3\\.14:DeprecationWarning", @@ -173,11 +158,9 @@ module = [ "citext", "colour", "flask_babel", - "flask_mongoengine.*", "flask_wtf", "gridfs", "marker", - "mongoengine.*", "playhouse.*", "pymongo", "sqlalchemy.*", diff --git a/requirements-skip/constraints-flaskmongoengine.txt b/requirements-skip/constraints-flaskmongoengine.txt deleted file mode 100644 index bfa9e9639..000000000 --- a/requirements-skip/constraints-flaskmongoengine.txt +++ /dev/null @@ -1,3 +0,0 @@ -Flask==2.1.3 -Werkzeug==2.3.8 -flask-sqlalchemy<3 diff --git a/tox.ini b/tox.ini index 3b60eec87..658cc1fb5 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,6 @@ envlist = py3{8,12}-sqlalchemy1 py312-noflaskbabel # only tested against latest of all configurations, sans flask-babel py38-min - py312-flaskmongoengine-sqlalchemy1 # style typing docs @@ -13,9 +12,7 @@ skip_missing_interpreters = true [testenv] package = wheel wheel_build_env = .pkg -extras = - flaskmongoengine: all,mongoengine - !flaskmongoengine: all +extras = all constrain_package_deps = true use_frozen_constraints = true # TODO: Remove SQLALCHEMY_SILENCE_UBER_WARNING when Flask-Admin is compatible with SQLAlchemy>=2.0.0 @@ -24,17 +21,14 @@ setenv = AZURE_STORAGE_CONNECTION_STRING = DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1; deps = sqlalchemy1: -c requirements-skip/constraints-sqlalchemy1.txt - flaskmongoengine: -c requirements-skip/constraints-flaskmongoengine.txt -r requirements/tests.txt commands_pre = noflaskbabel: pip uninstall -y flask-babel -commands = - flaskmongoengine: pytest -v --tb=short --basetemp={envtmpdir} flask_admin/tests -W 'default::DeprecationWarning' {posargs} - !flaskmongoengine: pytest -v --tb=short --basetemp={envtmpdir} flask_admin/tests --ignore flask_admin/tests/mongoengine {posargs} +commands = pytest -v --tb=short --basetemp={envtmpdir} flask_admin/tests {posargs} [testenv:py38-min] deps = -r requirements-skip/tests-min.txt -commands = pytest -v --tb=short --basetemp={envtmpdir} flask_admin/tests -W 'default::DeprecationWarning' --ignore flask_admin/tests/mongoengine {posargs} +commands = pytest -v --tb=short --basetemp={envtmpdir} flask_admin/tests -W 'default::DeprecationWarning' {posargs} [testenv:style] deps = pre-commit