Repository: jet-admin/jet-django Branch: master Commit: 9bd4536e02d5 Files: 403 Total size: 1.9 MB Directory structure: gitextract_c7mt80bt/ ├── .gitignore ├── LICENSE ├── MANIFEST.in ├── README.rst ├── build/ │ └── lib/ │ └── jet_django/ │ ├── __init__.py │ ├── admin/ │ │ ├── __init__.py │ │ ├── jet.py │ │ ├── model_action.py │ │ └── model_description.py │ ├── apps.py │ ├── filters/ │ │ ├── __init__.py │ │ ├── model.py │ │ ├── model_aggregate.py │ │ ├── model_group.py │ │ ├── view_settings.py │ │ └── widget.py │ ├── management/ │ │ └── commands/ │ │ └── register_token.py │ ├── migrations/ │ │ ├── 0001_initial.py │ │ └── __init__.py │ ├── models/ │ │ ├── dashboard.py │ │ ├── menu_item.py │ │ ├── model_description.py │ │ ├── token.py │ │ ├── view_settings.py │ │ └── widget.py │ ├── pagination.py │ ├── permissions.py │ ├── serializers/ │ │ ├── __init__.py │ │ ├── dashboard.py │ │ ├── dashboard_set_widgets.py │ │ ├── menu_settings.py │ │ ├── model.py │ │ ├── model_description.py │ │ ├── model_detail.py │ │ ├── reorder.py │ │ ├── sql.py │ │ ├── view_settings.py │ │ ├── widget_detail.py │ │ ├── widget_list.py │ │ └── widget_update_position.py │ ├── settings.py │ ├── urls.py │ ├── utils/ │ │ ├── __init__.py │ │ ├── backend.py │ │ └── siblings.py │ └── views/ │ ├── __init__.py │ ├── dashboard.py │ ├── menu_settings.py │ ├── model.py │ ├── model_description.py │ ├── register.py │ ├── sql.py │ ├── view_settings.py │ └── widget.py ├── jet_django/ │ ├── __init__.py │ ├── admin/ │ │ ├── __init__.py │ │ ├── jet.py │ │ ├── model_action.py │ │ └── model_description.py │ ├── apps.py │ ├── deps/ │ │ ├── __init__.py │ │ ├── django_filters/ │ │ │ ├── __init__.py │ │ │ ├── compat.py │ │ │ ├── conf.py │ │ │ ├── constants.py │ │ │ ├── exceptions.py │ │ │ ├── fields.py │ │ │ ├── filters.py │ │ │ ├── filterset.py │ │ │ ├── locale/ │ │ │ │ ├── be/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── cs/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── da/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── de/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── el/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── es_AR/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── es_ES/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── fr/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── pl/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── pt_BR/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── ru/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── sk/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ ├── uk/ │ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ │ ├── django.mo │ │ │ │ │ └── django.po │ │ │ │ └── zh_CN/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ └── django.po │ │ │ ├── models.py │ │ │ ├── rest_framework/ │ │ │ │ ├── __init__.py │ │ │ │ ├── backends.py │ │ │ │ ├── filters.py │ │ │ │ └── filterset.py │ │ │ ├── utils.py │ │ │ ├── views.py │ │ │ └── widgets.py │ │ └── rest_framework/ │ │ ├── __init__.py │ │ ├── apps.py │ │ ├── authentication.py │ │ ├── authtoken/ │ │ │ ├── __init__.py │ │ │ ├── admin.py │ │ │ ├── apps.py │ │ │ ├── management/ │ │ │ │ ├── __init__.py │ │ │ │ └── commands/ │ │ │ │ ├── __init__.py │ │ │ │ └── drf_create_token.py │ │ │ ├── migrations/ │ │ │ │ ├── 0001_initial.py │ │ │ │ ├── 0002_auto_20160226_1747.py │ │ │ │ └── __init__.py │ │ │ ├── models.py │ │ │ ├── serializers.py │ │ │ └── views.py │ │ ├── checks.py │ │ ├── compat.py │ │ ├── decorators.py │ │ ├── documentation.py │ │ ├── exceptions.py │ │ ├── fields.py │ │ ├── filters.py │ │ ├── generics.py │ │ ├── locale/ │ │ │ ├── ach/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── ar/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── be/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── ca/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── ca_ES/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── cs/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── da/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── de/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── el/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── el_GR/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── en/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── en_AU/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── en_CA/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── en_US/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── es/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── et/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── fa/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── fa_IR/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── fi/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── fr/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── fr_CA/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── gl/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── gl_ES/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── he_IL/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── hu/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── id/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── it/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── ja/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── ko_KR/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── lv/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── mk/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── nb/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── nl/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── nn/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── no/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── pl/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── pt/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── pt_BR/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── pt_PT/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── ro/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── ru/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── sk/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── sl/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── sv/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── tr/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── tr_TR/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── uk/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── vi/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── zh_CN/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── zh_Hans/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ ├── zh_Hant/ │ │ │ │ └── LC_MESSAGES/ │ │ │ │ ├── django.mo │ │ │ │ └── django.po │ │ │ └── zh_TW/ │ │ │ └── LC_MESSAGES/ │ │ │ ├── django.mo │ │ │ └── django.po │ │ ├── metadata.py │ │ ├── mixins.py │ │ ├── models.py │ │ ├── negotiation.py │ │ ├── pagination.py │ │ ├── parsers.py │ │ ├── permissions.py │ │ ├── relations.py │ │ ├── renderers.py │ │ ├── request.py │ │ ├── response.py │ │ ├── reverse.py │ │ ├── routers.py │ │ ├── schemas/ │ │ │ ├── __init__.py │ │ │ ├── generators.py │ │ │ ├── inspectors.py │ │ │ ├── utils.py │ │ │ └── views.py │ │ ├── serializers.py │ │ ├── settings.py │ │ ├── status.py │ │ ├── test.py │ │ ├── throttling.py │ │ ├── urlpatterns.py │ │ ├── urls.py │ │ ├── utils/ │ │ │ ├── __init__.py │ │ │ ├── breadcrumbs.py │ │ │ ├── encoders.py │ │ │ ├── field_mapping.py │ │ │ ├── formatting.py │ │ │ ├── html.py │ │ │ ├── humanize_datetime.py │ │ │ ├── json.py │ │ │ ├── mediatypes.py │ │ │ ├── model_meta.py │ │ │ ├── representation.py │ │ │ ├── serializer_helpers.py │ │ │ └── urls.py │ │ ├── validators.py │ │ ├── versioning.py │ │ ├── views.py │ │ └── viewsets.py │ ├── fields/ │ │ └── raw_file.py │ ├── filters/ │ │ ├── __init__.py │ │ ├── geos_geometry.py │ │ ├── model.py │ │ ├── model_aggregate.py │ │ └── model_group.py │ ├── management/ │ │ └── commands/ │ │ ├── jet_register_token.py │ │ ├── jet_reset_token.py │ │ ├── jet_set_token.py │ │ └── jet_token.py │ ├── messages.py │ ├── migrations/ │ │ ├── 0001_initial.py │ │ ├── 0002_auto_20181014_2002.py │ │ └── __init__.py │ ├── mixins/ │ │ ├── cors_api_view.py │ │ └── method_override.py │ ├── models/ │ │ └── token.py │ ├── pagination.py │ ├── permissions.py │ ├── serializers/ │ │ ├── __init__.py │ │ ├── file_upload.py │ │ ├── message.py │ │ ├── model.py │ │ ├── model_detail.py │ │ ├── reorder.py │ │ ├── reset_order.py │ │ └── sql.py │ ├── settings.py │ ├── static/ │ │ └── jet_django.deps.rest_framework/ │ │ ├── css/ │ │ │ ├── bootstrap-tweaks.css │ │ │ ├── default.css │ │ │ ├── font-awesome-4.0.3.css │ │ │ └── prettify.css │ │ ├── docs/ │ │ │ ├── css/ │ │ │ │ ├── base.css │ │ │ │ └── highlight.css │ │ │ └── js/ │ │ │ ├── api.js │ │ │ └── highlight.pack.js │ │ └── js/ │ │ ├── ajax-form.js │ │ ├── coreapi-0.1.1.js │ │ ├── csrf.js │ │ ├── default.js │ │ └── prettify-min.js │ ├── templates/ │ │ ├── jet_django.deps.django_filters/ │ │ │ ├── rest_framework/ │ │ │ │ ├── crispy_form.html │ │ │ │ └── form.html │ │ │ └── widgets/ │ │ │ └── multiwidget.html │ │ └── jet_django.deps.rest_framework/ │ │ ├── admin/ │ │ │ ├── detail.html │ │ │ ├── dict_value.html │ │ │ ├── list.html │ │ │ ├── list_value.html │ │ │ └── simple_list_value.html │ │ ├── admin.html │ │ ├── api.html │ │ ├── base.html │ │ ├── docs/ │ │ │ ├── auth/ │ │ │ │ ├── basic.html │ │ │ │ ├── session.html │ │ │ │ └── token.html │ │ │ ├── document.html │ │ │ ├── error.html │ │ │ ├── index.html │ │ │ ├── interact.html │ │ │ ├── langs/ │ │ │ │ ├── javascript-intro.html │ │ │ │ ├── javascript.html │ │ │ │ ├── python-intro.html │ │ │ │ ├── python.html │ │ │ │ ├── shell-intro.html │ │ │ │ └── shell.html │ │ │ ├── link.html │ │ │ └── sidebar.html │ │ ├── filters/ │ │ │ ├── base.html │ │ │ ├── ordering.html │ │ │ └── search.html │ │ ├── horizontal/ │ │ │ ├── checkbox.html │ │ │ ├── checkbox_multiple.html │ │ │ ├── dict_field.html │ │ │ ├── fieldset.html │ │ │ ├── form.html │ │ │ ├── input.html │ │ │ ├── list_field.html │ │ │ ├── list_fieldset.html │ │ │ ├── radio.html │ │ │ ├── select.html │ │ │ ├── select_multiple.html │ │ │ └── textarea.html │ │ ├── inline/ │ │ │ ├── checkbox.html │ │ │ ├── checkbox_multiple.html │ │ │ ├── dict_field.html │ │ │ ├── fieldset.html │ │ │ ├── form.html │ │ │ ├── input.html │ │ │ ├── list_field.html │ │ │ ├── list_fieldset.html │ │ │ ├── radio.html │ │ │ ├── select.html │ │ │ ├── select_multiple.html │ │ │ └── textarea.html │ │ ├── login.html │ │ ├── login_base.html │ │ ├── pagination/ │ │ │ ├── numbers.html │ │ │ └── previous_and_next.html │ │ ├── raw_data_form.html │ │ ├── schema.js │ │ └── vertical/ │ │ ├── checkbox.html │ │ ├── checkbox_multiple.html │ │ ├── dict_field.html │ │ ├── fieldset.html │ │ ├── form.html │ │ ├── input.html │ │ ├── list_field.html │ │ ├── list_fieldset.html │ │ ├── radio.html │ │ ├── select.html │ │ ├── select_multiple.html │ │ └── textarea.html │ ├── templatetags/ │ │ ├── __init__.py │ │ └── jet_django_deps_rest_framework.py │ ├── urls.py │ ├── utils/ │ │ ├── __init__.py │ │ ├── backend.py │ │ └── siblings.py │ └── views/ │ ├── __init__.py │ ├── exception_handler.py │ ├── file_upload.py │ ├── message.py │ ├── model.py │ ├── model_description.py │ ├── register.py │ ├── root.py │ └── sql.py ├── manage.py ├── setup.py └── upload.sh ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ *.pyc *.DS_Store *.egg* /.idea /dist/ /docs/_build/ ================================================ FILE: LICENSE ================================================ ================================================ FILE: MANIFEST.in ================================================ include README.rst include LICENSE recursive-include jet_django * ================================================ FILE: README.rst ================================================ =================== Jet Bridge (Django) =================== **Universal admin panel for Django** .. image:: https://raw.githubusercontent.com/jet-admin/jet-django/master/static/overview.gif :alt: Preview :align: center :target: https://raw.githubusercontent.com/jet-admin/jet-django/master/static/overview.gif Description =========== * Jet Admin: https://about.jetadmin.io * **Live Demo**: https://app.jetadmin.io/demo * Support: support@jetadmin.io **Jet** is a SaaS service that automatically generates back office for your Django Application through REST API of **Jet Bridge** package installed to your project. – **Visual**. Admin interface can be easily changed without need of development with the help of Visual Editor. – **Secure**. Jet does not access your data: its transferred directly from browser to your application. – **Customizable**. Flex functions allow you to solve your specific business tasks when standard functionality is not enough. This is a complete remake of popular `Django Jet `_ admin interface. Features ======== - **CRUD (create, read, update, delete):** Create, view, update and delete data. Display it in an easy format, and then search and filter your data. - **Dashboard:** Create reports and visualize KPIs. Monitor new data like new orders, comments, etc. - **Works with any technology:** The interface is generated automatically based on an analysis of the data and data structure of your applications. - **Visual editor:** Customize the admin area to make it easy for any manager to use. Allow managers to modify the interface, configure features, and set up analytics widgets without using any developers — just like WIX, Squarespace…. - **Secure:** Your data is safe. We do not have access to your information. We simply plug your information in to an easy-to-use interface for you to interact with it better. - **Works on any device:** The interface is optimized for any device from phones to tablets to desktops. - **Quick installation:** It takes only a few hours to integrate with your project. - **Available 24/7:** Use it around the clock and don’t worry about updates — we take care of that. - **Manage users:** Assign access rights to any data from within the panel. - **Activity log:** Track the history of all changes and know who made them. Requirements ============ - **Python** – 3.4, 3.5, 3.6, 3.7 - **Django** – 1.11, 2.0, 2.1 Installation ============ In order to install Jet Admin on your project please follow this guide: https://app.jetadmin.io/projects/create .. note:: If you don't have **Jet** account yet you will be asked to create one and sign in with the existing account. After registering your project you will be redirected to your project and can start working with **Jet** Support ======= Feel free to Email us – support@jetadmin.io License ======= This project is **MIT** licensed - see the LICENCE file for details. ================================================ FILE: build/lib/jet_django/__init__.py ================================================ VERSION = '0.0.1' default_app_config = 'jet_django.apps.JetDjangoConfig' ================================================ FILE: build/lib/jet_django/admin/__init__.py ================================================ ================================================ FILE: build/lib/jet_django/admin/jet.py ================================================ from jet_django.admin.model_description import JetAdminModelDescription from rest_framework import views from rest_framework.response import Response from django.apps import apps from jet_django.permissions import HasProjectPermissions class JetAdmin(object): models = [] def models_view(self): Admin = self class View(views.APIView): authentication_classes = () permission_classes = (HasProjectPermissions,) def get(self, request, *args, **kwargs): return Response(map(lambda x: x.serialize(), Admin.models)) return View def register(self, Model, fields=None, actions=list(), ordering_field=None, hidden=False): self.models.append(JetAdminModelDescription(Model, fields, actions, ordering_field, hidden)) def register_related_models(self): def model_key(x): return '{}_{}'.format( x['app_label'], x['model'] ) registered = set(map(lambda x: model_key(x.get_model()), self.models)) for models_description in self.models: for item in models_description.get_related_models(): key = model_key(item['model_info']) if key in registered: continue self.register(item['model'], hidden=True) registered.add(key) jet = JetAdmin() models = apps.get_models() for model in models: jet.register(model) ================================================ FILE: build/lib/jet_django/admin/model_action.py ================================================ from django import forms from django.utils.text import camel_case_to_spaces class JetAdminModelAction(forms.Form): _ids = forms.CharField(label='object ids') class Meta: pass @classmethod def init_meta(cls): name = camel_case_to_spaces(cls.__name__).replace(' ', '_') verbose_name = getattr(cls.Meta, 'verbose_name', name) cls._meta = cls.Meta cls._meta.name = name cls._meta.verbose_name = verbose_name def clean__ids(self): return self.cleaned_data['_ids'].split(',') def get_fields(self): fields = self.fields.copy() del fields['_ids'] return fields def filer_queryset(self, queryset): return queryset.filter(pk__in=self.cleaned_data['_ids']) def save(self, queryset): raise NotImplementedError ================================================ FILE: build/lib/jet_django/admin/model_description.py ================================================ from django.contrib.contenttypes.models import ContentType from django.db import models from jet_django.filters.model import model_filter_class_factory from jet_django.serializers.model import model_serializer_factory from jet_django.serializers.model_detail import model_detail_serializer_factory from jet_django.views.model import model_viewset_factory class JetAdminModelDescription(object): def __init__(self, Model, fields=None, actions=list(), ordering_field=None, hidden=False): self.model = Model self.fields = fields self.hidden = hidden for action in actions: action.init_meta() self.actions = actions self.ordering_field = ordering_field \ if ordering_field in map(lambda x: x.name, self.get_model_fields()) \ else None self.content_type = ContentType.objects.get_for_model(Model) self.field_names = list(map(lambda x: x.name, self.get_display_model_fields())) self.serializer = model_serializer_factory(Model, self.field_names) self.detail_serializer = model_detail_serializer_factory(Model, self.field_names) self.filter_class = model_filter_class_factory(Model, self.get_display_model_fields()) self.queryset = Model.objects.all() self.viewset = model_viewset_factory( Model, self.filter_class, self.serializer, self.detail_serializer, self.queryset, self.actions, self.ordering_field ) @property def viewset_url(self): return 'models/{}/{}'.format(self.content_type.app_label, self.content_type.model) def get_model_fields(self): fields = self.model._meta.get_fields() def filter_fields(x): if any(map(lambda rel: isinstance(x, rel), [ models.OneToOneRel, models.OneToOneField, models.ManyToOneRel, models.ManyToManyField, models.ManyToManyRel ])): return False return True return filter(filter_fields, fields) def get_model_relations(self): fields = self.model._meta.get_fields(include_hidden=True) def filter_fields(x): if any(map(lambda rel: isinstance(x, rel), [ models.OneToOneRel, models.OneToOneField, models.ManyToOneRel, models.ManyToManyField, models.ManyToManyRel ])): return True return False return filter(filter_fields, fields) def get_display_model_fields(self): fields = self.get_model_fields() def filter_fields(x): if x.name == self.ordering_field: return True elif self.fields: return x.name in self.fields return True return filter(filter_fields, fields) def serialize(self): return { 'model': self.content_type.model, 'app_label': self.content_type.app_label, 'db_table': self.model._meta.db_table, 'verbose_name': self.model._meta.verbose_name, 'verbose_name_plural': self.model._meta.verbose_name_plural, 'hidden': self.hidden, 'fields': map(lambda field: { 'name': field.name, 'verbose_name': field.verbose_name, 'is_relation': field.is_relation, 'field': field.__class__.__name__, 'editable': field.editable, 'filterable': field.name in self.filter_class.Meta.fields, 'params': { 'related_model': self.serialize_model(field.related_model) } }, self.get_display_model_fields()), 'flex_fields': [], 'relations': map(lambda field: { 'name': field.name, 'verbose_name': field.related_model._meta.verbose_name_plural, 'related_model': self.serialize_model(field.related_model), 'field': field.__class__.__name__, 'related_model_field': field.remote_field.name, 'through': self.serialize_model(field.through) if isinstance(field, models.ManyToManyRel) else None }, self.get_model_relations()), 'actions': map(lambda action: { 'name': action._meta.name, 'verbose_name': action._meta.verbose_name, 'fields': map(lambda field: { 'name': field[0], 'verbose_name': field[1].label or field[0], 'related_model': self.serialize_model(field[1].queryset.model) if hasattr(field[1], 'queryset') else None, 'field': field[1].__class__.__name__ }, action.get_fields().items()), }, map(lambda action: action(), self.actions)), 'ordering_field': self.ordering_field } def get_model(self): return { 'model': self.content_type.model, 'app_label': self.content_type.app_label, } def get_related_models(self): return map(lambda field: { 'model': field.related_model, 'model_info': self.serialize_model(field.related_model) }, self.get_model_relations()) def serialize_model(self, Model): if not Model: return content_type = ContentType.objects.get_for_model(Model) return { 'model': content_type.model, 'app_label': content_type.app_label } ================================================ FILE: build/lib/jet_django/apps.py ================================================ from django.apps import AppConfig class JetDjangoConfig(AppConfig): name = 'jet_django' def ready(self): from jet_django.utils.backend import register_token try: register_token() except: # if no migrations yet pass ================================================ FILE: build/lib/jet_django/filters/__init__.py ================================================ ================================================ FILE: build/lib/jet_django/filters/model.py ================================================ from functools import reduce import django_filters from django.db.models import Q, fields from django_filters import filters from django_filters.constants import EMPTY_VALUES def model_filter_class_factory(build_model, model_fields): model_fields = list(model_fields) def filter_field(field): try: django_filters.FilterSet.filter_for_field(field, field.name) return True except AssertionError: return False def search_field(field): return isinstance(field, (fields.CharField, fields.TextField)) search_fields = list(map(lambda x: x.name, filter(search_field, model_fields))) filter_field_names = list(map(lambda x: x.name, filter(filter_field, model_fields))) filter_fields = dict(map( lambda x: [x.name, list(x.get_lookups().keys())], filter(lambda x: x.name in filter_field_names, build_model._meta.fields) )) class SearchFilter(django_filters.CharFilter): def filter(self, qs, value): if value in EMPTY_VALUES: return qs query = reduce(lambda q, field: q | Q(**dict([('{}__icontains'.format(field), value)])), search_fields, Q()) qs = qs.filter(query) return qs class FilterSet(django_filters.FilterSet): _order_by = filters.OrderingFilter(fields=filter_field_names) _search = SearchFilter() class Meta: model = build_model fields = filter_fields return FilterSet ================================================ FILE: build/lib/jet_django/filters/model_aggregate.py ================================================ import django_filters from django.db.models import Count, Sum, Min, Max, Avg from django_filters.constants import EMPTY_VALUES class AggregateFilter(django_filters.CharFilter): def filter(self, qs, value): if value in EMPTY_VALUES: return qs if value['y_func'] == 'count': y_func = Count(value['y_column']) elif value['y_func'] == 'sum': y_func = Sum(value['y_column']) elif value['y_func'] == 'min': y_func = Min(value['y_column']) elif value['y_func'] == 'max': y_func = Max(value['y_column']) elif value['y_func'] == 'avg': y_func = Avg(value['y_column']) else: return qs.none() qs = qs \ .aggregate(y_func=y_func) return qs ================================================ FILE: build/lib/jet_django/filters/model_group.py ================================================ import django_filters from django.db.models import Count, Sum, Min, Max, Avg, F from django_filters.constants import EMPTY_VALUES class GroupFilter(django_filters.CharFilter): def filter(self, qs, value): if value in EMPTY_VALUES: return qs if value['y_func'] == 'count': y_func = Count(value['y_column']) elif value['y_func'] == 'sum': y_func = Sum(value['y_column']) elif value['y_func'] == 'min': y_func = Min(value['y_column']) elif value['y_func'] == 'max': y_func = Max(value['y_column']) elif value['y_func'] == 'avg': y_func = Avg(value['y_column']) else: return qs.none() x_lookup = value['x_lookup'] if value['x_lookup'] else F qs = qs \ .annotate(group=x_lookup(value['x_column']))\ .values('group')\ .annotate(y_func=y_func)\ .order_by('group') return qs ================================================ FILE: build/lib/jet_django/filters/view_settings.py ================================================ import django_filters from jet_django.models.view_settings import ViewSettings class ViewSettingsFilterSet(django_filters.FilterSet): class Meta: model = ViewSettings fields = ( 'app_label', 'model', 'view', ) ================================================ FILE: build/lib/jet_django/filters/widget.py ================================================ import django_filters from jet_django.models.widget import Widget class WidgetFilterSet(django_filters.FilterSet): class Meta: model = Widget fields = ( 'dashboard', ) ================================================ FILE: build/lib/jet_django/management/commands/register_token.py ================================================ from django.core.management import BaseCommand from jet_django.utils.backend import register_token class Command(BaseCommand): def handle(self, *args, **options): token, created = register_token() if not created and token: print('Token already exists: {}'.format(token.token)) elif not created and not token: print('Token creation failed') elif created and token: print('Token created: {}'.format(token.token)) ================================================ FILE: build/lib/jet_django/migrations/0001_initial.py ================================================ # -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-08-26 17:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Dashboard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='name')), ('ordering', models.PositiveIntegerField(default=0, verbose_name='ordering')), ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ], options={ 'verbose_name': 'dashboard', 'verbose_name_plural': 'dashboards', 'ordering': ('ordering',), }, ), migrations.CreateModel( name='MenuSettings', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('items', models.TextField(blank=True, default='', verbose_name='items')), ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ], options={ 'verbose_name': 'menu settings', 'verbose_name_plural': 'menu settings', }, ), migrations.CreateModel( name='ModelDescription', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('app_label', models.CharField(max_length=255, verbose_name='app_label')), ('model', models.CharField(blank=True, default='', max_length=255, verbose_name='model')), ('params', models.TextField(blank=True, default='', verbose_name='params')), ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ], options={ 'verbose_name': 'model description', 'verbose_name_plural': 'model descriptions', }, ), migrations.CreateModel( name='Token', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('project', models.CharField(blank=True, default='', max_length=30, verbose_name='project')), ('token', models.UUIDField(verbose_name='token')), ('date_add', models.DateTimeField(verbose_name='date added')), ], options={ 'verbose_name': 'token', 'verbose_name_plural': 'tokens', }, ), migrations.CreateModel( name='ViewSettings', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('app_label', models.CharField(max_length=255, verbose_name='app_label')), ('model', models.CharField(blank=True, default='', max_length=255, verbose_name='model')), ('view', models.CharField(blank=True, default='change', max_length=255, verbose_name='view')), ('params', models.TextField(blank=True, default='', verbose_name='params')), ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ], options={ 'verbose_name': 'view settings', 'verbose_name_plural': 'views settings', }, ), migrations.CreateModel( name='Widget', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('widget_type', models.CharField(max_length=255, verbose_name='type')), ('name', models.CharField(max_length=255, verbose_name='name')), ('x', models.PositiveSmallIntegerField(verbose_name='x')), ('y', models.PositiveSmallIntegerField(verbose_name='y')), ('width', models.PositiveSmallIntegerField(default=1, verbose_name='width')), ('height', models.PositiveSmallIntegerField(default=1, verbose_name='height')), ('params', models.TextField(blank=True, default='', verbose_name='params')), ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ('dashboard', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='widgets', to='jet_django.Dashboard', verbose_name='dashboard')), ], options={ 'verbose_name': 'widget', 'verbose_name_plural': 'widgets', 'ordering': ('y', 'x'), }, ), ] ================================================ FILE: build/lib/jet_django/migrations/__init__.py ================================================ ================================================ FILE: build/lib/jet_django/models/dashboard.py ================================================ from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ class Dashboard(models.Model): name = models.CharField( verbose_name=_('name'), max_length=255 ) ordering = models.PositiveIntegerField( verbose_name=_('ordering'), default=0 ) date_add = models.DateTimeField( verbose_name=_('date added'), default=timezone.now ) class Meta: verbose_name = _('dashboard') verbose_name_plural = _('dashboards') ordering = ('ordering',) def __str__(self): return str(self.name) ================================================ FILE: build/lib/jet_django/models/menu_item.py ================================================ from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ class MenuSettings(models.Model): items = models.TextField( verbose_name=_('items'), blank=True, default='' ) date_add = models.DateTimeField( verbose_name=_('date added'), default=timezone.now ) class Meta: verbose_name = _('menu settings') verbose_name_plural = _('menu settings') def __str__(self): return '{}'.format(self.date_add) ================================================ FILE: build/lib/jet_django/models/model_description.py ================================================ from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ class ModelDescription(models.Model): app_label = models.CharField( verbose_name=_('app_label'), max_length=255 ) model = models.CharField( verbose_name=_('model'), max_length=255, blank=True, default='' ) params = models.TextField( verbose_name=_('params'), blank=True, default='' ) date_add = models.DateTimeField( verbose_name=_('date added'), default=timezone.now ) class Meta: verbose_name = _('model description') verbose_name_plural = _('model descriptions') def __str__(self): return '{} {}'.format(self.app_label, self.model) ================================================ FILE: build/lib/jet_django/models/token.py ================================================ from django.db import models from django.utils.translation import ugettext_lazy as _ class Token(models.Model): project = models.CharField( verbose_name=_('project'), max_length=30, blank=True, default='' ) token = models.UUIDField( verbose_name=_('token') ) date_add = models.DateTimeField( verbose_name=_('date added') ) class Meta: verbose_name = _('token') verbose_name_plural = _('tokens') def __str__(self): return str(self.token) ================================================ FILE: build/lib/jet_django/models/view_settings.py ================================================ from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ class ViewSettings(models.Model): app_label = models.CharField( verbose_name=_('app_label'), max_length=255 ) model = models.CharField( verbose_name=_('model'), max_length=255, blank=True, default='' ) view = models.CharField( verbose_name=_('view'), max_length=255, blank=True, default='change' ) params = models.TextField( verbose_name=_('params'), blank=True, default='' ) date_add = models.DateTimeField( verbose_name=_('date added'), default=timezone.now ) class Meta: verbose_name = _('view settings') verbose_name_plural = _('views settings') def __str__(self): return '{} {}'.format(self.app_label, self.model) ================================================ FILE: build/lib/jet_django/models/widget.py ================================================ from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ class Widget(models.Model): dashboard = models.ForeignKey( to='jet_django.Dashboard', verbose_name=_('dashboard'), related_name='widgets' ) widget_type = models.CharField( verbose_name=_('type'), max_length=255 ) name = models.CharField( verbose_name=_('name'), max_length=255 ) x = models.PositiveSmallIntegerField( verbose_name=_('x') ) y = models.PositiveSmallIntegerField( verbose_name=_('y') ) width = models.PositiveSmallIntegerField( verbose_name=_('width'), default=1 ) height = models.PositiveSmallIntegerField( verbose_name=_('height'), default=1 ) params = models.TextField( verbose_name=_('params'), blank=True, default='' ) date_add = models.DateTimeField( verbose_name=_('date added'), default=timezone.now ) class Meta: verbose_name = _('widget') verbose_name_plural = _('widgets') ordering = ('y', 'x') def __str__(self): return str(self.name) ================================================ FILE: build/lib/jet_django/pagination.py ================================================ from collections import OrderedDict from rest_framework.pagination import PageNumberPagination from rest_framework.response import Response class CustomPageNumberPagination(PageNumberPagination): page_size_query_param = '_per_page' def get_paginated_response(self, data): return Response(OrderedDict([ ('count', self.page.paginator.count), ('next', self.get_next_link()), ('previous', self.get_previous_link()), ('results', data), ('num_pages', self.page.paginator.num_pages), ('per_page', self.page.paginator.per_page), ])) ================================================ FILE: build/lib/jet_django/permissions.py ================================================ from rest_framework.permissions import BasePermission from jet_django import settings from jet_django.utils.backend import project_auth class HasProjectPermissions(BasePermission): token_prefix = 'Token ' project_token_prefix = 'ProjectToken ' def has_permission(self, request, view): # return True token = request.META.get('HTTP_AUTHORIZATION') if not token: return False if token[:len(self.token_prefix)] == self.token_prefix: token = token[len(self.token_prefix):] return project_auth(token) elif token[:len(self.project_token_prefix)] == self.project_token_prefix: token = token[len(self.project_token_prefix):] return project_auth(token) else: return False class ModifyNotInDemo(BasePermission): def has_permission(self, request, view): if not settings.JET_DEMO: return True if view.action in ['create', 'update', 'partial_update', 'destroy']: return False return True ================================================ FILE: build/lib/jet_django/serializers/__init__.py ================================================ ================================================ FILE: build/lib/jet_django/serializers/dashboard.py ================================================ from rest_framework import serializers from jet_django.models.dashboard import Dashboard from jet_django.serializers.widget_list import WidgetListSerializer class DashboardSerializer(serializers.ModelSerializer): widgets = WidgetListSerializer(many=True, read_only=True) class Meta: model = Dashboard fields = ( 'id', 'name', 'ordering', 'date_add', 'widgets' ) ================================================ FILE: build/lib/jet_django/serializers/dashboard_set_widgets.py ================================================ from django.db import transaction from rest_framework import serializers from jet_django.models.dashboard import Dashboard from jet_django.models.widget import Widget from jet_django.serializers.widget_update_position import WidgetUpdatePositionSerializer class DashboardSetWidgetsSerializer(serializers.ModelSerializer): widgets = WidgetUpdatePositionSerializer(many=True) class Meta: model = Dashboard fields = ( 'widgets', ) def update(self, instance, validated_data): with transaction.atomic(): widgets = Widget.objects.filter(dashboard=instance) for widget in validated_data['widgets']: widgets.filter(pk=widget['id']).update( x=widget['x'], y=widget['y'], width=widget['width'], height=widget['height'], params=widget['params'] ) widgets.exclude(pk__in=map(lambda x: x['id'], validated_data['widgets'])).delete() return instance ================================================ FILE: build/lib/jet_django/serializers/menu_settings.py ================================================ from rest_framework import serializers from jet_django.models.menu_item import MenuSettings class MenuSettingsSerializer(serializers.ModelSerializer): class Meta: model = MenuSettings fields = ( 'items', 'date_add' ) ================================================ FILE: build/lib/jet_django/serializers/model.py ================================================ from rest_framework import serializers def model_serializer_factory(build_model, build_fields): class Serializer(serializers.ModelSerializer): class Meta: model = build_model fields = build_fields + ['__str__'] return Serializer ================================================ FILE: build/lib/jet_django/serializers/model_description.py ================================================ from rest_framework import serializers from jet_django.models.model_description import ModelDescription class ModelDescriptionSerializer(serializers.ModelSerializer): class Meta: model = ModelDescription fields = ( 'app_label', 'model', 'params', 'date_add' ) ================================================ FILE: build/lib/jet_django/serializers/model_detail.py ================================================ from rest_framework import serializers from jet_django.utils.siblings import get_model_sibling def model_detail_serializer_factory(build_model, build_fields): class Serializer(serializers.ModelSerializer): __previous_sibling__ = serializers.SerializerMethodField('get_previous_sibling') __next_sibling__ = serializers.SerializerMethodField('get_next_sibling') class Meta: model = build_model fields = build_fields + ['__str__', '__previous_sibling__', '__next_sibling__'] def sibling_response(self, sibling): if not sibling: return return { 'id': sibling.pk, '__str__': str(sibling) } def get_previous_sibling(self, instance, ordering=None): sibling = get_model_sibling(build_model, instance, False, ordering) return self.sibling_response(sibling) def get_next_sibling(self, instance, ordering=None): sibling = get_model_sibling(build_model, instance, True, ordering) return self.sibling_response(sibling) return Serializer ================================================ FILE: build/lib/jet_django/serializers/reorder.py ================================================ from django.db import transaction from django.db.models import F from rest_framework import serializers, relations def reorder_serializer_factory(build_queryset, ordering_field): class ReorderSerializer(serializers.Serializer): forward = serializers.BooleanField() segment_from = relations.PrimaryKeyRelatedField(queryset=build_queryset) segment_to = relations.PrimaryKeyRelatedField(queryset=build_queryset) item = relations.PrimaryKeyRelatedField(queryset=build_queryset) def save(self): with transaction.atomic(): if self.validated_data['forward']: build_queryset.filter( **{ '{}__gte'.format(ordering_field): getattr(self.validated_data['segment_from'], ordering_field), '{}__lte'.format(ordering_field): getattr(self.validated_data['segment_to'], ordering_field) } ).update( **{ordering_field: F(ordering_field) - 1} ) build_queryset.filter( pk=self.validated_data['item'].pk ).update( **{ordering_field: getattr(self.validated_data['segment_to'], ordering_field)} ) else: build_queryset.filter( **{ '{}__gte'.format(ordering_field): getattr(self.validated_data['segment_from'], ordering_field), '{}__lte'.format(ordering_field): getattr(self.validated_data['segment_to'], ordering_field) } ).update( **{ordering_field: F(ordering_field) + 1} ) build_queryset.filter( pk=self.validated_data['item'].pk ).update( **{ordering_field: getattr(self.validated_data['segment_from'], ordering_field)} ) return ReorderSerializer ================================================ FILE: build/lib/jet_django/serializers/sql.py ================================================ from rest_framework import serializers from rest_framework.exceptions import ValidationError class SqlSerializer(serializers.Serializer): query = serializers.CharField() params = serializers.CharField(required=False) def validate_query(self, value): forbidden = ['insert', 'update', 'delete', 'grant', 'show'] for i in range(len(forbidden)): forbidden.append('({}'.format(forbidden[i])) if any(map(lambda x: ' {} '.format(value.lower()).find(' {} '.format(x)) != -1, forbidden)): raise ValidationError('forbidden query') return value ================================================ FILE: build/lib/jet_django/serializers/view_settings.py ================================================ from rest_framework import serializers from jet_django.models.view_settings import ViewSettings class ViewSettingsSerializer(serializers.ModelSerializer): class Meta: model = ViewSettings fields = ( 'app_label', 'model', 'view', 'params', 'date_add' ) ================================================ FILE: build/lib/jet_django/serializers/widget_detail.py ================================================ from rest_framework import serializers from jet_django.models.widget import Widget class WidgetDetailSerializer(serializers.ModelSerializer): class Meta: model = Widget fields = ( 'id', 'widget_type', 'name', 'x', 'y', 'width', 'height', 'params', 'date_add', 'dashboard' ) ================================================ FILE: build/lib/jet_django/serializers/widget_list.py ================================================ from rest_framework import serializers from jet_django.models.widget import Widget class WidgetListSerializer(serializers.ModelSerializer): class Meta: model = Widget fields = ( 'id', 'widget_type', 'name', 'x', 'y', 'width', 'height', 'params', 'date_add' ) ================================================ FILE: build/lib/jet_django/serializers/widget_update_position.py ================================================ from rest_framework import serializers from jet_django.models.widget import Widget class WidgetUpdatePositionSerializer(serializers.ModelSerializer): class Meta: model = Widget fields = ( 'id', 'x', 'y', 'width', 'height', 'params' ) extra_kwargs = {'id': {'read_only': False}} ================================================ FILE: build/lib/jet_django/settings.py ================================================ from django.conf import settings JET_BACKEND_API_BASE_URL = getattr(settings, 'JET_BACKEND_API_BASE_URL', 'https://api.jetadmin.io/api') JET_BACKEND_WEB_BASE_URL = getattr(settings, 'JET_BACKEND_WEB_BASE_URL', 'https://app.jetadmin.io') JET_DEMO = getattr(settings, 'JET_DEMO', False) ================================================ FILE: build/lib/jet_django/urls.py ================================================ from django.conf.urls import url from rest_framework.routers import DefaultRouter from jet_django.admin.jet import jet from jet_django.views.dashboard import DashboardViewSet from jet_django.views.menu_settings import MenuSettingsViewSet from jet_django.views.model_description import ModelDescriptionViewSet from jet_django.views.register import RegisterView from jet_django.views.sql import SqlView from jet_django.views.view_settings import ViewSettingsViewSet from jet_django.views.widget import WidgetViewSet def init_urls(): class Router(DefaultRouter): include_root_view = False router = Router() jet.register_related_models() for model in jet.models: router.register(model.viewset_url, model.viewset) router.register('model_descriptions', ModelDescriptionViewSet) router.register('dashboards', DashboardViewSet) router.register('widgets', WidgetViewSet) router.register('view_settings', ViewSettingsViewSet) router.register('menu_settings', MenuSettingsViewSet) extra_urls = [ url(r'^model_descriptions_base/', jet.models_view().as_view(), name='model-descriptions'), url(r'^register/', RegisterView.as_view(), name='register'), url(r'^sql/', SqlView.as_view(), name='sql') ] api_urls = router.urls + extra_urls return api_urls jet_urls = init_urls() ================================================ FILE: build/lib/jet_django/utils/__init__.py ================================================ ================================================ FILE: build/lib/jet_django/utils/backend.py ================================================ import requests from jet_django import settings from jet_django.models.token import Token def api_method_url(method): return '{}/{}'.format(settings.JET_BACKEND_API_BASE_URL, method) def register_token(): token = Token.objects.all().first() if token: return token, False url = api_method_url('project_tokens/') headers = { 'User-Agent': 'Jet Django' } r = requests.request('POST', url, headers=headers) success = 200 <= r.status_code < 300 if not success: print('Register Token request error', r.status_code, r.reason) return None, False result = r.json() token = Token.objects.create(token=result['token'], date_add=result['date_add']) return token, True def project_auth(token): project_token = Token.objects.all().first() if not project_token: return False url = api_method_url('project_auth/') data = { 'project_token': project_token.token, 'token': token } headers = { 'User-Agent': 'Jet Django' } r = requests.request('POST', url, data=data, headers=headers) success = 200 <= r.status_code < 300 if not success: print('Project Auth request error', r.status_code, r.reason) return False return True ================================================ FILE: build/lib/jet_django/utils/siblings.py ================================================ from collections import OrderedDict def get_model_sibling(Model, instance, next, ordering=None): if len(Model._meta.ordering): ordering = list(Model._meta.ordering) + ['-id'] elif ordering is None: ordering = ['-id'] elif ordering != ['-id']: ordering = list(ordering) + ['-id'] def inverse_ordering(x): if x[0:1] == '-': return x[1:] else: return '-{}'.format(x) if not next: ordering = list(map(inverse_ordering, ordering)) def map_ordering(x): asc = x[0:1] != '-' name = x if asc else x[1:] operator = 'gte' if asc else 'lte' return '{}__{}'.format(name, operator), getattr(instance, name) params = OrderedDict(map(map_ordering, ordering[0:1])) found_instance = False sibling = None for item in Model.objects.filter(**params).order_by(*ordering).all(): if item.pk == instance.pk: found_instance = True elif found_instance: sibling = item break return sibling ================================================ FILE: build/lib/jet_django/views/__init__.py ================================================ ================================================ FILE: build/lib/jet_django/views/dashboard.py ================================================ from rest_framework import viewsets from rest_framework.decorators import detail_route from rest_framework.response import Response from jet_django.models.dashboard import Dashboard from jet_django.permissions import HasProjectPermissions from jet_django.serializers.dashboard import DashboardSerializer from jet_django.serializers.dashboard_set_widgets import DashboardSetWidgetsSerializer class DashboardViewSet(viewsets.ModelViewSet): model = Dashboard serializer_class = DashboardSerializer queryset = Dashboard.objects.prefetch_related('widgets').all() pagination_class = None authentication_classes = () permission_classes = (HasProjectPermissions,) @detail_route(methods=['put']) def set_widgets(self, request, *args, **kwargs): serializer = DashboardSetWidgetsSerializer(instance=self.get_object(), data=request.data) serializer.is_valid(raise_exception=True) serializer.save() instance_serializer = self.get_serializer(instance=self.get_object()) return Response(instance_serializer.data) ================================================ FILE: build/lib/jet_django/views/menu_settings.py ================================================ from django.http import Http404 from django.shortcuts import get_object_or_404 from rest_framework import viewsets from jet_django.models.menu_item import MenuSettings from jet_django.permissions import HasProjectPermissions from jet_django.serializers.menu_settings import MenuSettingsSerializer class MenuSettingsViewSet(viewsets.ModelViewSet): model = MenuSettings serializer_class = MenuSettingsSerializer queryset = MenuSettings.objects.all() pagination_class = None authentication_classes = () permission_classes = (HasProjectPermissions,) def create(self, request, *args, **kwargs): try: self.get_object() return super().update(request, *args, **kwargs) except Http404: return super().create(request, *args, **kwargs) def get_object(self): queryset = self.get_queryset()[:1] obj = get_object_or_404(queryset) # May raise a permission denied self.check_object_permissions(self.request, obj) return obj ================================================ FILE: build/lib/jet_django/views/model.py ================================================ from django.core.exceptions import NON_FIELD_ERRORS from rest_framework import status, viewsets, serializers from rest_framework.decorators import list_route from rest_framework.response import Response from rest_framework.serializers import ModelSerializer from jet_django.filters.model_aggregate import AggregateFilter from jet_django.filters.model_group import GroupFilter from jet_django.pagination import CustomPageNumberPagination from jet_django.permissions import HasProjectPermissions, ModifyNotInDemo from jet_django.serializers.reorder import reorder_serializer_factory class AggregateSerializer(serializers.Serializer): y_func = serializers.IntegerField() def __init__(self, *args, **kwargs): if 'y_func_serializer' in kwargs: self.fields['y_func'] = kwargs.pop('y_func_serializer') super().__init__(*args, **kwargs) class GroupSerializer(serializers.Serializer): group = serializers.CharField() y_func = serializers.IntegerField() def __init__(self, *args, **kwargs): if 'group_serializer' in kwargs: self.fields['group'] = kwargs.pop('group_serializer') if 'y_func_serializer' in kwargs: self.fields['y_func'] = kwargs.pop('y_func_serializer') super().__init__(*args, **kwargs) def model_viewset_factory(build_model, build_filter_class, build_serializer_class, build_detail_serializer_class, build_queryset, build_actions, ordering_field): ReorderSerializer = reorder_serializer_factory(build_queryset, ordering_field) class Viewset(viewsets.ModelViewSet): model = build_model queryset = build_queryset pagination_class = CustomPageNumberPagination filter_class = build_filter_class authentication_classes = () permission_classes = (HasProjectPermissions, ModifyNotInDemo) def get_serializer_class(self): if self.action == 'aggregate': return AggregateSerializer elif self.action == 'group': return GroupSerializer elif self.action == 'retrieve': return build_detail_serializer_class else: return build_serializer_class @list_route(methods=['get']) def aggregate(self, request): queryset = self.filter_queryset(self.get_queryset()) y_func = request.GET['_y_func'].lower() y_column = request.GET.get('_y_column', 'id') y_field = self.model._meta.get_field(y_column) y_serializer_class, y_serializer_kwargs = ModelSerializer().build_standard_field(y_column, y_field) y_serializer = y_serializer_class(**y_serializer_kwargs) queryset = AggregateFilter().filter(queryset, { 'y_func': y_func, 'y_column': y_column }) serializer = self.get_serializer( queryset, y_func_serializer=y_serializer ) return Response(serializer.data) @list_route(methods=['get']) def group(self, request): queryset = self.filter_queryset(self.get_queryset()) x_column = request.GET['_x_column'] x_lookup_name = request.GET.get('_x_lookup') y_func = request.GET['_y_func'].lower() y_column = request.GET.get('_y_column', 'id') x_field = self.model._meta.get_field(x_column) x_lookup = x_field.class_lookups.get(x_lookup_name) y_field = self.model._meta.get_field(y_column) if x_lookup: x_field = x_lookup('none').output_field x_serializer_class, x_serializer_kwargs = ModelSerializer().build_standard_field(x_column, x_field) x_serializer = x_serializer_class(**x_serializer_kwargs) y_serializer_class, y_serializer_kwargs = ModelSerializer().build_standard_field(y_column, y_field) y_serializer = y_serializer_class(**y_serializer_kwargs) queryset = GroupFilter().filter(queryset, { 'x_column': x_column, 'x_lookup': x_lookup, 'y_func': y_func, 'y_column': y_column }) serializer = self.get_serializer( queryset, many=True, group_serializer=x_serializer, y_func_serializer=y_serializer ) return Response(serializer.data) def get_serializer(self, *args, **kwargs): """ Return the serializer instance that should be used for validating and deserializing input, and for serializing output. """ serializer_class = self.get_serializer_class() kwargs['context'] = self.get_serializer_context() return serializer_class(*args, **kwargs) @list_route(methods=['post']) def reorder(self, request): serializer = ReorderSerializer(data=request.data) serializer.is_valid(raise_exception=True) serializer.save() return Response(serializer.data) @list_route(methods=['post']) def reset_order(self, request): i = 1 for instance in build_queryset: setattr(instance, ordering_field, i) instance.save() i += 1 return Response({}) for action in build_actions: def route(self, request): form = action(data=request.data) if not form.is_valid(): return Response(form.errors, status=status.HTTP_400_BAD_REQUEST) queryset = form.filer_queryset(self.get_queryset()) try: result = form.save(queryset) except Exception as e: return Response({NON_FIELD_ERRORS: str(e)}, status=status.HTTP_400_BAD_REQUEST) return Response({'action': form._meta.name, 'result': result}) decorator = list_route(methods=['post']) route = decorator(route) setattr(Viewset, action._meta.name, route) return Viewset ================================================ FILE: build/lib/jet_django/views/model_description.py ================================================ import json from django.http import Http404 from django.shortcuts import get_object_or_404 from rest_framework import viewsets from rest_framework.response import Response from jet_django.admin.jet import jet from jet_django.models.model_description import ModelDescription from jet_django.permissions import HasProjectPermissions from jet_django.serializers.model_description import ModelDescriptionSerializer class ModelDescriptionViewSet(viewsets.ModelViewSet): model = ModelDescription serializer_class = ModelDescriptionSerializer queryset = ModelDescription.objects pagination_class = None authentication_classes = () permission_classes = (HasProjectPermissions,) def create(self, request, *args, **kwargs): try: object = self.get_object() return super().update(request, *args, **kwargs) except Http404: return super().create(request, *args, **kwargs) def list(self, request, *args, **kwargs): def map_override(x): try: item = json.loads(x.params) except ValueError: item = {} item['app_label'] = x.app_label item['model'] = x.model return item def find_index(ar, x): i = 0 for item in ar: if x(item): return i else: i += 1 base = list(map(lambda x: x.serialize(), jet.models)) overrides = list(map(map_override, self.get_queryset().all())) for md_override in overrides: md_i = find_index( base, lambda x: x.get('app_label') == md_override.get('app_label') and x.get('model') == md_override.get('model')) if md_i is None: continue for item in ['db_table', 'verbose_name', 'verbose_name_plural', 'hidden', 'ordering_field']: if item in base[md_i] and item in md_override: base[md_i][item] = md_override[item] md_fields = list(base[md_i]['fields']) for field_override in md_override.get('fields', []): field_i = find_index(md_fields, lambda x: x.get('name') == field_override.get('name')) if field_i is None: continue for item in ['verbose_name', 'field', 'editable', 'filterable', 'params']: if item in md_fields[field_i] and item in field_override: md_fields[field_i][item] = field_override[item] base[md_i]['fields'] = md_fields md_flex_fields = list(base[md_i]['flex_fields']) for field_override in md_override.get('flex_fields', []): field_i = find_index(md_flex_fields, lambda x: x.get('name') == field_override.get('name')) if field_i is None: field = {'name': field_override.get('name')} md_flex_fields.append(field) field_i = len(md_flex_fields) - 1 for item in ['verbose_name', 'field', 'query', 'code', 'params']: if item in field_override: md_flex_fields[field_i][item] = field_override[item] base[md_i]['flex_fields'] = md_flex_fields md_relations = list(base[md_i]['relations']) for relation_override in md_override.get('relations', []): relation_i = find_index(md_relations, lambda x: x.get('name') == relation_override.get('name')) if relation_i is None: continue for item in ['verbose_name', 'field']: if item in md_relations[relation_i] and item in relation_override: md_relations[relation_i][item] = relation_override[item] base[md_i]['relations'] = md_relations return Response(base) def get_object(self): queryset = self.filter_queryset(self.get_queryset()) filter_kwargs = { 'app_label': self.request.data.get('app_label'), 'model': self.request.data.get('model') } obj = get_object_or_404(queryset, **filter_kwargs) # May raise a permission denied self.check_object_permissions(self.request, obj) return obj ================================================ FILE: build/lib/jet_django/views/register.py ================================================ from django.http import HttpResponseBadRequest from django.views import generic from jet_django import settings from jet_django.utils.backend import register_token class RegisterView(generic.RedirectView): def get(self, request, *args, **kwargs): token, created = register_token() if not token: return HttpResponseBadRequest self.url = '{}/projects/register/{}'.format(settings.JET_BACKEND_WEB_BASE_URL, token.token) return super().get(request, *args, **kwargs) ================================================ FILE: build/lib/jet_django/views/sql.py ================================================ from django.db import connection, ProgrammingError from django.utils.translation import ugettext_lazy as _ from django.utils import six from rest_framework import views, status from rest_framework.exceptions import APIException from rest_framework.response import Response from jet_django.permissions import HasProjectPermissions from jet_django.serializers.sql import SqlSerializer class SqlError(APIException): status_code = status.HTTP_400_BAD_REQUEST default_detail = _('Query failed') default_code = 'invalid' def __init__(self, detail): self.detail = {'error': str(detail)} def __str__(self): return six.text_type(self.detail) class SqlView(views.APIView): pagination_class = None authentication_classes = () permission_classes = (HasProjectPermissions,) def get(self, request, *args, **kwargs): serializer = SqlSerializer(data=request.GET) serializer.is_valid(raise_exception=True) with connection.cursor() as cursor: try: cursor.execute(serializer.data['query'], serializer.data.get('params', '').split(',')) except ProgrammingError as e: raise SqlError(e) rows = cursor.fetchall() return Response(rows) ================================================ FILE: build/lib/jet_django/views/view_settings.py ================================================ from django.http import Http404 from django.shortcuts import get_object_or_404 from rest_framework import viewsets from jet_django.filters.view_settings import ViewSettingsFilterSet from jet_django.models.view_settings import ViewSettings from jet_django.permissions import HasProjectPermissions from jet_django.serializers.view_settings import ViewSettingsSerializer class ViewSettingsViewSet(viewsets.ModelViewSet): model = ViewSettings serializer_class = ViewSettingsSerializer queryset = ViewSettings.objects filter_class = ViewSettingsFilterSet pagination_class = None authentication_classes = () permission_classes = (HasProjectPermissions,) def create(self, request, *args, **kwargs): try: object = self.get_object() return super().update(request, *args, **kwargs) except Http404: return super().create(request, *args, **kwargs) def get_object(self): queryset = self.filter_queryset(self.get_queryset()) filter_kwargs = { 'app_label': self.request.data.get('app_label'), 'model': self.request.data.get('model'), 'view': self.request.data.get('view') } obj = get_object_or_404(queryset, **filter_kwargs) # May raise a permission denied self.check_object_permissions(self.request, obj) return obj ================================================ FILE: build/lib/jet_django/views/widget.py ================================================ from rest_framework import viewsets from jet_django.filters.widget import WidgetFilterSet from jet_django.models.widget import Widget from jet_django.permissions import HasProjectPermissions from jet_django.serializers.widget_detail import WidgetDetailSerializer class WidgetViewSet(viewsets.ModelViewSet): model = Widget serializer_class = WidgetDetailSerializer queryset = Widget.objects.prefetch_related('dashboard').all() filter_class = WidgetFilterSet pagination_class = None authentication_classes = () permission_classes = (HasProjectPermissions,) ================================================ FILE: jet_django/__init__.py ================================================ VERSION = '0.7.3' default_app_config = 'jet_django.apps.JetDjangoConfig' ================================================ FILE: jet_django/admin/__init__.py ================================================ ================================================ FILE: jet_django/admin/jet.py ================================================ from jet_django.admin.model_description import JetAdminModelDescription class JetAdmin(object): models = [] message_handlers = {} def register(self, Model, fields=None, hidden=False): self.models.append(JetAdminModelDescription(Model, fields, hidden)) def register_related_models(self): def model_key(x): return x['model'] registered = set(map(lambda x: model_key(x.get_model()), self.models)) for models_description in self.models: for item in models_description.get_related_models(): key = model_key(item['model_info']) if key in registered: continue self.register(item['model'], hidden=True) registered.add(key) def add_message_handler(self, message_name, func): self.message_handlers[message_name] = func def get_message_handler(self, message_name): return self.message_handlers.get(message_name) jet = JetAdmin() ================================================ FILE: jet_django/admin/model_action.py ================================================ from django import forms from django.utils.text import camel_case_to_spaces class JetAdminModelAction(forms.Form): _ids = forms.CharField(label='object ids') class Meta: pass @classmethod def init_meta(cls): name = camel_case_to_spaces(cls.__name__).replace(' ', '_') verbose_name = getattr(cls.Meta, 'verbose_name', name) cls._meta = cls.Meta cls._meta.name = name cls._meta.verbose_name = verbose_name def clean__ids(self): return self.cleaned_data['_ids'].split(',') def get_fields(self): fields = self.fields.copy() del fields['_ids'] return fields def filer_queryset(self, queryset): return queryset.filter(pk__in=self.cleaned_data['_ids']) def save(self, queryset): raise NotImplementedError ================================================ FILE: jet_django/admin/model_description.py ================================================ from django.contrib.contenttypes.fields import GenericRel, GenericForeignKey, GenericRelation from django.contrib.contenttypes.models import ContentType from django.db import models from jet_django.filters.model import model_filter_class_factory from jet_django.serializers.model import model_serializer_factory from jet_django.serializers.model_detail import model_detail_serializer_factory from jet_django.views.model import model_viewset_factory class JetAdminModelDescription(object): def __init__(self, Model, fields=None, hidden=False): self.model = Model self.fields = fields self.hidden = hidden self.content_type = ContentType.objects.get_for_model(Model) self.field_names = list(map(lambda x: x.name, self.get_display_model_fields())) self.serializer = model_serializer_factory(Model, self.field_names) self.detail_serializer = model_detail_serializer_factory(Model, self.field_names) self.filter_class = model_filter_class_factory(Model, self.get_display_model_fields(), self.get_model_relations()) self.queryset = Model.objects.all() self.viewset = model_viewset_factory( Model, self.filter_class, self.serializer, self.detail_serializer, self.queryset ) @property def viewset_url(self): return 'models/(?P{})'.format(self.model._meta.db_table) def get_model_fields(self): fields = self.model._meta.get_fields() def filter_fields(x): if any(map(lambda rel: isinstance(x, rel), [ models.ManyToOneRel, models.ManyToManyField, models.ManyToManyRel, GenericRel, GenericForeignKey, GenericRelation ])): return False return True return filter(filter_fields, fields) def get_model_relations(self): fields = self.model._meta.get_fields(include_hidden=True) def filter_fields(x): if any(map(lambda rel: isinstance(x, rel), [ models.OneToOneRel, models.OneToOneField, models.ManyToOneRel, models.ManyToManyField, models.ManyToManyRel ])): return True return False return list(filter(filter_fields, fields)) def get_model_relation_through(self, field): if isinstance(field, models.ManyToManyRel): return self.serialize_model(field.through) elif isinstance(field, models.ManyToManyField): return self.serialize_model(field.remote_field.through) def get_display_model_fields(self): fields = self.get_model_fields() def filter_fields(x): if self.fields: return x.name in self.fields return True return filter(filter_fields, fields) def serialize(self): return { 'model': self.model._meta.db_table, 'db_table': self.model._meta.db_table, 'verbose_name': self.model._meta.verbose_name, 'verbose_name_plural': self.model._meta.verbose_name_plural, 'hidden': self.hidden, 'fields': map(lambda field: { 'name': field.name, 'db_column': field.get_attname_column()[1], 'verbose_name': field.verbose_name, 'is_relation': field.is_relation, 'field': field.__class__.__name__, 'required': not field.blank, 'null': field.null, 'editable': field.editable, 'filterable': field.name in self.filter_class.Meta.fields, 'params': { 'related_model': self.serialize_model(field.related_model) } }, self.get_display_model_fields()), 'flex_fields': [], 'relations': map(lambda field: { 'name': field.name, 'verbose_name': field.related_model._meta.verbose_name_plural, 'related_model': self.serialize_model(field.related_model), 'field': field.__class__.__name__, 'related_model_field': field.remote_field.name, 'through': self.get_model_relation_through(field) }, self.get_model_relations()) } def get_model(self): return { 'model': self.model._meta.db_table } def get_related_models(self): return map(lambda field: { 'model': field.related_model, 'model_info': self.serialize_model(field.related_model) }, self.get_model_relations()) def serialize_model(self, Model): if not Model: return return { 'model': Model._meta.db_table, } ================================================ FILE: jet_django/apps.py ================================================ import logging import sys from django.apps import AppConfig from django.apps import apps from django.db import ProgrammingError from jet_django import settings logger = logging.getLogger('jet_django') class JetDjangoConfig(AppConfig): name = 'jet_django' def check_token(self): from jet_django.utils.backend import register_token, is_token_activated is_command = len(sys.argv) > 1 and sys.argv[1].startswith('jet_') if not is_command and settings.JET_REGISTER_TOKEN_ON_START: try: print('[JET] Checking if token is not activated yet...') token, created = register_token() if not token: return if not is_token_activated(token): print('[!] Your server token is not activated') print('[!] Token: {}'.format(token.token)) else: print('[JET] Token activated') except ProgrammingError as e: no_migrations = str(e).find('relation "jet_django_token" does not exist') != -1 if no_migrations: print('[JET] Apply migrations first: python manage.py migrate jet_django') else: print(e) except Exception as e: # if no migrations yet print(e) pass def register_models(self): from jet_django.admin.jet import jet try: models = apps.get_models() for model in models: jet.register(model) except: # if no migrations yet pass def ready(self): self.check_token() self.register_models() ================================================ FILE: jet_django/deps/__init__.py ================================================ ================================================ FILE: jet_django/deps/django_filters/__init__.py ================================================ # flake8: noqa import pkgutil from .filterset import FilterSet from .filters import * # We make the `rest_framework` module available without an additional import. # If DRF is not installed, no-op. if pkgutil.find_loader('jet_django.deps.rest_framework') is not None: from . import rest_framework del pkgutil __version__ = '2.0.0' def parse_version(version): ''' '0.1.2.dev1' -> (0, 1, 2, 'dev1') '0.1.2' -> (0, 1, 2) ''' v = version.split('.') ret = [] for p in v: if p.isdigit(): ret.append(int(p)) else: ret.append(p) return tuple(ret) VERSION = parse_version(__version__) ================================================ FILE: jet_django/deps/django_filters/compat.py ================================================ from django.conf import settings # django-crispy-forms is optional try: import crispy_forms except ImportError: crispy_forms = None def is_crispy(): return 'crispy_forms' in settings.INSTALLED_APPS and crispy_forms # coreapi is optional (Note that uritemplate is a dependency of coreapi) # Fixes #525 - cannot simply import from jet_django.deps.rest_framework.compat, due to # import issues w/ django-guardian. try: import coreapi except ImportError: coreapi = None try: import coreschema except ImportError: coreschema = None ================================================ FILE: jet_django/deps/django_filters/conf.py ================================================ from django.conf import settings as dj_settings from django.core.signals import setting_changed from django.utils.translation import ugettext_lazy as _ from .utils import deprecate DEFAULTS = { 'DISABLE_HELP_TEXT': False, # empty/null choices 'EMPTY_CHOICE_LABEL': '---------', 'NULL_CHOICE_LABEL': None, 'NULL_CHOICE_VALUE': 'null', 'VERBOSE_LOOKUPS': { # transforms don't need to be verbose, since their expressions are chained 'date': _('date'), 'year': _('year'), 'month': _('month'), 'day': _('day'), 'week_day': _('week day'), 'hour': _('hour'), 'minute': _('minute'), 'second': _('second'), # standard lookups 'exact': _(''), 'iexact': _(''), 'contains': _('contains'), 'icontains': _('contains'), 'in': _('is in'), 'gt': _('is greater than'), 'gte': _('is greater than or equal to'), 'lt': _('is less than'), 'lte': _('is less than or equal to'), 'startswith': _('starts with'), 'istartswith': _('starts with'), 'endswith': _('ends with'), 'iendswith': _('ends with'), 'range': _('is in range'), 'isnull': _(''), 'regex': _('matches regex'), 'iregex': _('matches regex'), 'search': _('search'), # postgres lookups 'contained_by': _('is contained by'), 'overlap': _('overlaps'), 'has_key': _('has key'), 'has_keys': _('has keys'), 'has_any_keys': _('has any keys'), 'trigram_similar': _('search'), }, } DEPRECATED_SETTINGS = [ ] def is_callable(value): # check for callables, except types return callable(value) and not isinstance(value, type) class Settings(object): def __getattr__(self, name): if name not in DEFAULTS: msg = "'%s' object has no attribute '%s'" raise AttributeError(msg % (self.__class__.__name__, name)) value = self.get_setting(name) if is_callable(value): value = value() # Cache the result setattr(self, name, value) return value def get_setting(self, setting): django_setting = 'FILTERS_%s' % setting if setting in DEPRECATED_SETTINGS and hasattr(dj_settings, django_setting): deprecate("The '%s' setting has been deprecated." % django_setting) return getattr(dj_settings, django_setting, DEFAULTS[setting]) def change_setting(self, setting, value, enter, **kwargs): if not setting.startswith('FILTERS_'): return setting = setting[8:] # strip 'FILTERS_' # ensure a valid app setting is being overridden if setting not in DEFAULTS: return # if exiting, delete value to repopulate if enter: setattr(self, setting, value) else: delattr(self, setting) settings = Settings() setting_changed.connect(settings.change_setting) ================================================ FILE: jet_django/deps/django_filters/constants.py ================================================ ALL_FIELDS = '__all__' EMPTY_VALUES = ([], (), {}, '', None) ================================================ FILE: jet_django/deps/django_filters/exceptions.py ================================================ from django.core.exceptions import FieldError class FieldLookupError(FieldError): def __init__(self, model_field, lookup_expr): super().__init__( "Unsupported lookup '%s' for field '%s'." % (lookup_expr, model_field) ) ================================================ FILE: jet_django/deps/django_filters/fields.py ================================================ from collections import namedtuple from datetime import datetime, time from django import forms from django.utils.dateparse import parse_datetime from django.utils.encoding import force_str from django.utils.translation import ugettext_lazy as _ from .conf import settings from .constants import EMPTY_VALUES from .utils import handle_timezone from .widgets import ( BaseCSVWidget, CSVWidget, DateRangeWidget, LookupChoiceWidget, RangeWidget ) class RangeField(forms.MultiValueField): widget = RangeWidget def __init__(self, fields=None, *args, **kwargs): if fields is None: fields = ( forms.DecimalField(), forms.DecimalField()) super().__init__(fields, *args, **kwargs) def compress(self, data_list): if data_list: return slice(*data_list) return None class DateRangeField(RangeField): widget = DateRangeWidget def __init__(self, *args, **kwargs): fields = ( forms.DateField(), forms.DateField()) super().__init__(fields, *args, **kwargs) def compress(self, data_list): if data_list: start_date, stop_date = data_list if start_date: start_date = handle_timezone( datetime.combine(start_date, time.min), False ) if stop_date: stop_date = handle_timezone( datetime.combine(stop_date, time.max), False ) return slice(start_date, stop_date) return None class DateTimeRangeField(RangeField): widget = DateRangeWidget def __init__(self, *args, **kwargs): fields = ( forms.DateTimeField(), forms.DateTimeField()) super().__init__(fields, *args, **kwargs) class TimeRangeField(RangeField): widget = DateRangeWidget def __init__(self, *args, **kwargs): fields = ( forms.TimeField(), forms.TimeField()) super().__init__(fields, *args, **kwargs) class Lookup(namedtuple('Lookup', ('value', 'lookup_expr'))): def __new__(cls, value, lookup_expr): if value in EMPTY_VALUES or lookup_expr in EMPTY_VALUES: raise ValueError( "Empty values ([], (), {}, '', None) are not " "valid Lookup arguments. Return None instead." ) return super().__new__(cls, value, lookup_expr) class LookupChoiceField(forms.MultiValueField): default_error_messages = { 'lookup_required': _('Select a lookup.'), } def __init__(self, field, lookup_choices, *args, **kwargs): empty_label = kwargs.pop('empty_label', settings.EMPTY_CHOICE_LABEL) fields = (field, ChoiceField(choices=lookup_choices, empty_label=empty_label)) widget = LookupChoiceWidget(widgets=[f.widget for f in fields]) kwargs['widget'] = widget kwargs['help_text'] = field.help_text super().__init__(fields, *args, **kwargs) def compress(self, data_list): if len(data_list) == 2: value, lookup_expr = data_list if value not in EMPTY_VALUES: if lookup_expr not in EMPTY_VALUES: return Lookup(value=value, lookup_expr=lookup_expr) else: raise forms.ValidationError( self.error_messages['lookup_required'], code='lookup_required') return None class IsoDateTimeField(forms.DateTimeField): """ Supports 'iso-8601' date format too which is out the scope of the ``datetime.strptime`` standard library # ISO 8601: ``http://www.w3.org/TR/NOTE-datetime`` Based on Gist example by David Medina https://gist.github.com/copitux/5773821 """ ISO_8601 = 'iso-8601' input_formats = [ISO_8601] def strptime(self, value, format): value = force_str(value) if format == self.ISO_8601: parsed = parse_datetime(value) if parsed is None: # Continue with other formats if doesn't match raise ValueError return handle_timezone(parsed) return super().strptime(value, format) class BaseCSVField(forms.Field): """ Base field for validating CSV types. Value validation is performed by secondary base classes. ex:: class IntegerCSVField(BaseCSVField, filters.IntegerField): pass """ base_widget_class = BaseCSVWidget def __init__(self, *args, **kwargs): widget = kwargs.get('widget') or self.widget kwargs['widget'] = self._get_widget_class(widget) super().__init__(*args, **kwargs) def _get_widget_class(self, widget): # passthrough, allows for override if isinstance(widget, BaseCSVWidget) or ( isinstance(widget, type) and issubclass(widget, BaseCSVWidget)): return widget # complain since we are unable to reconstruct widget instances assert isinstance(widget, type), \ "'%s.widget' must be a widget class, not %s." \ % (self.__class__.__name__, repr(widget)) bases = (self.base_widget_class, widget, ) return type(str('CSV%s' % widget.__name__), bases, {}) def clean(self, value): if value is None: return None return [super(BaseCSVField, self).clean(v) for v in value] class BaseRangeField(BaseCSVField): # Force use of text input, as range must always have two inputs. A date # input would only allow a user to input one value and would always fail. widget = CSVWidget default_error_messages = { 'invalid_values': _('Range query expects two values.') } def clean(self, value): value = super().clean(value) assert value is None or isinstance(value, list) if value and len(value) != 2: raise forms.ValidationError( self.error_messages['invalid_values'], code='invalid_values') return value class ChoiceIterator(object): # Emulates the behavior of ModelChoiceIterator, but instead wraps # the field's _choices iterable. def __init__(self, field, choices): self.field = field self.choices = choices def __iter__(self): if self.field.empty_label is not None: yield ("", self.field.empty_label) if self.field.null_label is not None: yield (self.field.null_value, self.field.null_label) # Python 2 lacks 'yield from' for choice in self.choices: yield choice def __len__(self): add = 1 if self.field.empty_label is not None else 0 add += 1 if self.field.null_label is not None else 0 return len(self.choices) + add class ModelChoiceIterator(forms.models.ModelChoiceIterator): # Extends the base ModelChoiceIterator to add in 'null' choice handling. # This is a bit verbose since we have to insert the null choice after the # empty choice, but before the remainder of the choices. def __iter__(self): iterable = super().__iter__() if self.field.empty_label is not None: yield next(iterable) if self.field.null_label is not None: yield (self.field.null_value, self.field.null_label) # Python 2 lacks 'yield from' for value in iterable: yield value def __len__(self): add = 1 if self.field.null_label is not None else 0 return super().__len__() + add class ChoiceIteratorMixin(object): def __init__(self, *args, **kwargs): self.null_label = kwargs.pop('null_label', settings.NULL_CHOICE_LABEL) self.null_value = kwargs.pop('null_value', settings.NULL_CHOICE_VALUE) super().__init__(*args, **kwargs) def _get_choices(self): return super()._get_choices() def _set_choices(self, value): super()._set_choices(value) value = self.iterator(self, self._choices) self._choices = self.widget.choices = value choices = property(_get_choices, _set_choices) # Unlike their Model* counterparts, forms.ChoiceField and forms.MultipleChoiceField do not set empty_label class ChoiceField(ChoiceIteratorMixin, forms.ChoiceField): iterator = ChoiceIterator def __init__(self, *args, **kwargs): self.empty_label = kwargs.pop('empty_label', settings.EMPTY_CHOICE_LABEL) super().__init__(*args, **kwargs) class MultipleChoiceField(ChoiceIteratorMixin, forms.MultipleChoiceField): iterator = ChoiceIterator def __init__(self, *args, **kwargs): self.empty_label = None super().__init__(*args, **kwargs) class ModelChoiceField(ChoiceIteratorMixin, forms.ModelChoiceField): iterator = ModelChoiceIterator def to_python(self, value): # bypass the queryset value check if self.null_label is not None and value == self.null_value: return value return super().to_python(value) class ModelMultipleChoiceField(ChoiceIteratorMixin, forms.ModelMultipleChoiceField): iterator = ModelChoiceIterator def _check_values(self, value): null = self.null_label is not None and value and self.null_value in value if null: # remove the null value and any potential duplicates value = [v for v in value if v != self.null_value] result = list(super()._check_values(value)) result += [self.null_value] if null else [] return result ================================================ FILE: jet_django/deps/django_filters/filters.py ================================================ from collections import OrderedDict from datetime import timedelta from django import forms from django.db.models import Q from django.db.models.constants import LOOKUP_SEP from django.forms.utils import pretty_name from django.utils.itercompat import is_iterable from django.utils.timezone import now from django.utils.translation import ugettext_lazy as _ from .conf import settings from .constants import EMPTY_VALUES from .fields import ( BaseCSVField, BaseRangeField, ChoiceField, DateRangeField, DateTimeRangeField, IsoDateTimeField, LookupChoiceField, ModelChoiceField, ModelMultipleChoiceField, MultipleChoiceField, RangeField, TimeRangeField ) from .utils import get_model_field, label_for_filter __all__ = [ 'AllValuesFilter', 'AllValuesMultipleFilter', 'BaseCSVFilter', 'BaseInFilter', 'BaseRangeFilter', 'BooleanFilter', 'CharFilter', 'ChoiceFilter', 'DateFilter', 'DateFromToRangeFilter', 'DateRangeFilter', 'DateTimeFilter', 'DateTimeFromToRangeFilter', 'DurationFilter', 'Filter', 'IsoDateTimeFilter', 'LookupChoiceFilter', 'ModelChoiceFilter', 'ModelMultipleChoiceFilter', 'MultipleChoiceFilter', 'NumberFilter', 'NumericRangeFilter', 'OrderingFilter', 'RangeFilter', 'TimeFilter', 'TimeRangeFilter', 'TypedChoiceFilter', 'TypedMultipleChoiceFilter', 'UUIDFilter', ] class Filter(object): creation_counter = 0 field_class = forms.Field def __init__(self, field_name=None, lookup_expr='exact', *, label=None, method=None, distinct=False, exclude=False, **kwargs): self.field_name = field_name self.lookup_expr = lookup_expr self.label = label self.method = method self.distinct = distinct self.exclude = exclude self.extra = kwargs self.extra.setdefault('required', False) self.creation_counter = Filter.creation_counter Filter.creation_counter += 1 # TODO: remove assertion in 2.1 assert not isinstance(self.lookup_expr, (type(None), list)), \ "The `lookup_expr` argument no longer accepts `None` or a list of " \ "expressions. Use the `LookupChoiceFilter` instead. See: " \ "https://django-filter.readthedocs.io/en/master/guide/migration.html" def get_method(self, qs): """Return filter method based on whether we're excluding or simply filtering. """ return qs.exclude if self.exclude else qs.filter def method(): """ Filter method needs to be lazily resolved, as it may be dependent on the 'parent' FilterSet. """ def fget(self): return self._method def fset(self, value): self._method = value # clear existing FilterMethod if isinstance(self.filter, FilterMethod): del self.filter # override filter w/ FilterMethod. if value is not None: self.filter = FilterMethod(self) return locals() method = property(**method()) def label(): def fget(self): if self._label is None and hasattr(self, 'model'): self._label = label_for_filter( self.model, self.field_name, self.lookup_expr, self.exclude ) return self._label def fset(self, value): self._label = value return locals() label = property(**label()) @property def field(self): if not hasattr(self, '_field'): field_kwargs = self.extra.copy() if settings.DISABLE_HELP_TEXT: field_kwargs.pop('help_text', None) self._field = self.field_class(label=self.label, **field_kwargs) return self._field def filter(self, qs, value): if value in EMPTY_VALUES: return qs if self.distinct: qs = qs.distinct() lookup = '%s__%s' % (self.field_name, self.lookup_expr) qs = self.get_method(qs)(**{lookup: value}) return qs class CharFilter(Filter): field_class = forms.CharField class BooleanFilter(Filter): field_class = forms.NullBooleanField class ChoiceFilter(Filter): field_class = ChoiceField def __init__(self, *args, **kwargs): self.null_value = kwargs.get('null_value', settings.NULL_CHOICE_VALUE) super().__init__(*args, **kwargs) def filter(self, qs, value): if value != self.null_value: return super().filter(qs, value) qs = self.get_method(qs)(**{'%s__%s' % (self.field_name, self.lookup_expr): None}) return qs.distinct() if self.distinct else qs class TypedChoiceFilter(Filter): field_class = forms.TypedChoiceField class UUIDFilter(Filter): field_class = forms.UUIDField class MultipleChoiceFilter(Filter): """ This filter performs OR(by default) or AND(using conjoined=True) query on the selected options. Advanced usage -------------- Depending on your application logic, when all or no choices are selected, filtering may be a no-operation. In this case you may wish to avoid the filtering overhead, particularly if using a `distinct` call. You can override `get_filter_predicate` to use a custom filter. By default it will use the filter's name for the key, and the value will be the model object - or in case of passing in `to_field_name` the value of that attribute on the model. Set `always_filter` to `False` after instantiation to enable the default `is_noop` test. You can override `is_noop` if you need a different test for your application. `distinct` defaults to `True` as to-many relationships will generally require this. """ field_class = MultipleChoiceField always_filter = True def __init__(self, *args, **kwargs): kwargs.setdefault('distinct', True) self.conjoined = kwargs.pop('conjoined', False) self.null_value = kwargs.get('null_value', settings.NULL_CHOICE_VALUE) super().__init__(*args, **kwargs) def is_noop(self, qs, value): """ Return `True` to short-circuit unnecessary and potentially slow filtering. """ if self.always_filter: return False # A reasonable default for being a noop... if self.extra.get('required') and len(value) == len(self.field.choices): return True return False def filter(self, qs, value): if not value: # Even though not a noop, no point filtering if empty. return qs if self.is_noop(qs, value): return qs if not self.conjoined: q = Q() for v in set(value): if v == self.null_value: v = None predicate = self.get_filter_predicate(v) if self.conjoined: qs = self.get_method(qs)(**predicate) else: q |= Q(**predicate) if not self.conjoined: qs = self.get_method(qs)(q) return qs.distinct() if self.distinct else qs def get_filter_predicate(self, v): try: return {self.field_name: getattr(v, self.field.to_field_name)} except (AttributeError, TypeError): return {self.field_name: v} class TypedMultipleChoiceFilter(MultipleChoiceFilter): field_class = forms.TypedMultipleChoiceField class DateFilter(Filter): field_class = forms.DateField class DateTimeFilter(Filter): field_class = forms.DateTimeField class IsoDateTimeFilter(DateTimeFilter): """ Uses IsoDateTimeField to support filtering on ISO 8601 formated datetimes. For context see: * https://code.djangoproject.com/ticket/23448 * https://github.com/tomchristie/django-rest-framework/issues/1338 * https://github.com/alex/django-filter/pull/264 """ field_class = IsoDateTimeField class TimeFilter(Filter): field_class = forms.TimeField class DurationFilter(Filter): field_class = forms.DurationField class QuerySetRequestMixin(object): """ Add callable functionality to filters that support the ``queryset`` argument. If the ``queryset`` is callable, then it **must** accept the ``request`` object as a single argument. This is useful for filtering querysets by properties on the ``request`` object, such as the user. Example:: def departments(request): company = request.user.company return company.department_set.all() class EmployeeFilter(filters.FilterSet): department = filters.ModelChoiceFilter(queryset=departments) ... The above example restricts the set of departments to those in the logged-in user's associated company. """ def __init__(self, *args, **kwargs): self.queryset = kwargs.get('queryset') super().__init__(*args, **kwargs) def get_request(self): try: return self.parent.request except AttributeError: return None def get_queryset(self, request): queryset = self.queryset if callable(queryset): return queryset(request) return queryset @property def field(self): request = self.get_request() queryset = self.get_queryset(request) if queryset is not None: self.extra['queryset'] = queryset return super().field class ModelChoiceFilter(QuerySetRequestMixin, ChoiceFilter): field_class = ModelChoiceField def __init__(self, *args, **kwargs): kwargs.setdefault('empty_label', settings.EMPTY_CHOICE_LABEL) super().__init__(*args, **kwargs) class ModelMultipleChoiceFilter(QuerySetRequestMixin, MultipleChoiceFilter): field_class = ModelMultipleChoiceField class NumberFilter(Filter): field_class = forms.DecimalField class NumericRangeFilter(Filter): field_class = RangeField def filter(self, qs, value): if value: if value.start is not None and value.stop is not None: value = (value.start, value.stop) elif value.start is not None: self.lookup_expr = 'startswith' value = value.start elif value.stop is not None: self.lookup_expr = 'endswith' value = value.stop return super().filter(qs, value) class RangeFilter(Filter): field_class = RangeField def filter(self, qs, value): if value: if value.start is not None and value.stop is not None: self.lookup_expr = 'range' value = (value.start, value.stop) elif value.start is not None: self.lookup_expr = 'gte' value = value.start elif value.stop is not None: self.lookup_expr = 'lte' value = value.stop return super().filter(qs, value) def _truncate(dt): return dt.date() class DateRangeFilter(ChoiceFilter): choices = [ ('today', _('Today')), ('yesterday', _('Yesterday')), ('week', _('Past 7 days')), ('month', _('This month')), ('year', _('This year')), ] filters = { 'today': lambda qs, name: qs.filter(**{ '%s__year' % name: now().year, '%s__month' % name: now().month, '%s__day' % name: now().day }), 'yesterday': lambda qs, name: qs.filter(**{ '%s__year' % name: (now() - timedelta(days=1)).year, '%s__month' % name: (now() - timedelta(days=1)).month, '%s__day' % name: (now() - timedelta(days=1)).day, }), 'week': lambda qs, name: qs.filter(**{ '%s__gte' % name: _truncate(now() - timedelta(days=7)), '%s__lt' % name: _truncate(now() + timedelta(days=1)), }), 'month': lambda qs, name: qs.filter(**{ '%s__year' % name: now().year, '%s__month' % name: now().month }), 'year': lambda qs, name: qs.filter(**{ '%s__year' % name: now().year, }), } def __init__(self, choices=None, filters=None, *args, **kwargs): if choices is not None: self.choices = choices if filters is not None: self.filters = filters unique = set([x[0] for x in self.choices]) ^ set(self.filters) assert not unique, \ "Keys must be present in both 'choices' and 'filters'. Missing keys: " \ "'%s'" % ', '.join(sorted(unique)) # TODO: remove assertion in 2.1 assert not hasattr(self, 'options'), \ "The 'options' attribute has been replaced by 'choices' and 'filters'. " \ "See: https://django-filter.readthedocs.io/en/master/guide/migration.html" # null choice not relevant kwargs.setdefault('null_label', None) super().__init__(choices=self.choices, *args, **kwargs) def filter(self, qs, value): if not value: return qs assert value in self.filters qs = self.filters[value](qs, self.field_name) return qs.distinct() if self.distinct else qs class DateFromToRangeFilter(RangeFilter): field_class = DateRangeField class DateTimeFromToRangeFilter(RangeFilter): field_class = DateTimeRangeField class TimeRangeFilter(RangeFilter): field_class = TimeRangeField class AllValuesFilter(ChoiceFilter): @property def field(self): qs = self.model._default_manager.distinct() qs = qs.order_by(self.field_name).values_list(self.field_name, flat=True) self.extra['choices'] = [(o, o) for o in qs] return super().field class AllValuesMultipleFilter(MultipleChoiceFilter): @property def field(self): qs = self.model._default_manager.distinct() qs = qs.order_by(self.field_name).values_list(self.field_name, flat=True) self.extra['choices'] = [(o, o) for o in qs] return super().field class BaseCSVFilter(Filter): """ Base class for CSV type filters, such as IN and RANGE. """ base_field_class = BaseCSVField def __init__(self, *args, **kwargs): kwargs.setdefault('help_text', _('Multiple values may be separated by commas.')) super().__init__(*args, **kwargs) class ConcreteCSVField(self.base_field_class, self.field_class): pass ConcreteCSVField.__name__ = self._field_class_name( self.field_class, self.lookup_expr ) self.field_class = ConcreteCSVField @classmethod def _field_class_name(cls, field_class, lookup_expr): """ Generate a suitable class name for the concrete field class. This is not completely reliable, as not all field class names are of the format Field. ex:: BaseCSVFilter._field_class_name(DateTimeField, 'year__in') returns 'DateTimeYearInField' """ # DateTimeField => DateTime type_name = field_class.__name__ if type_name.endswith('Field'): type_name = type_name[:-5] # year__in => YearIn parts = lookup_expr.split(LOOKUP_SEP) expression_name = ''.join(p.capitalize() for p in parts) # DateTimeYearInField return str('%s%sField' % (type_name, expression_name)) class BaseInFilter(BaseCSVFilter): def __init__(self, *args, **kwargs): kwargs.setdefault('lookup_expr', 'in') super().__init__(*args, **kwargs) class BaseRangeFilter(BaseCSVFilter): base_field_class = BaseRangeField def __init__(self, *args, **kwargs): kwargs.setdefault('lookup_expr', 'range') super().__init__(*args, **kwargs) class LookupChoiceFilter(Filter): """ A combined filter that allows users to select the lookup expression from a dropdown. * ``lookup_choices`` is an optional argument that accepts multiple input formats, and is ultimately normlized as the choices used in the lookup dropdown. See ``.get_lookup_choices()`` for more information. * ``field_class`` is an optional argument that allows you to set the inner form field class used to validate the value. Default: ``forms.CharField`` ex:: price = django_filters.LookupChoiceFilter( field_class=forms.DecimalField, lookup_choices=[ ('exact', 'Equals'), ('gt', 'Greater than'), ('lt', 'Less than'), ] ) """ field_class = forms.CharField outer_class = LookupChoiceField def __init__(self, field_name=None, lookup_choices=None, field_class=None, **kwargs): self.empty_label = kwargs.pop('empty_label', settings.EMPTY_CHOICE_LABEL) super(LookupChoiceFilter, self).__init__(field_name=field_name, **kwargs) self.lookup_choices = lookup_choices if field_class is not None: self.field_class = field_class @classmethod def normalize_lookup(cls, lookup): """ Normalize the lookup into a tuple of ``(lookup expression, display value)`` If the ``lookup`` is already a tuple, the tuple is not altered. If the ``lookup`` is a string, a tuple is returned with the lookup expression used as the basis for the display value. ex:: >>> LookupChoiceFilter.normalize_lookup(('exact', 'Equals')) ('exact', 'Equals') >>> LookupChoiceFilter.normalize_lookup('has_key') ('has_key', 'Has key') """ if isinstance(lookup, str): return (lookup, pretty_name(lookup)) return (lookup[0], lookup[1]) def get_lookup_choices(self): """ Get the lookup choices in a format suitable for ``django.forms.ChoiceField``. If the filter is initialized with ``lookup_choices``, this value is normalized and passed to the underlying ``LookupChoiceField``. If no choices are provided, they are generated from the corresponding model field's registered lookups. """ lookups = self.lookup_choices if lookups is None: field = get_model_field(self.model, self.field_name) lookups = field.get_lookups() return [self.normalize_lookup(l) for l in lookups] @property def field(self): if not hasattr(self, '_field'): inner_field = super().field lookups = self.get_lookup_choices() self._field = self.outer_class( inner_field, lookups, label=self.label, empty_label=self.empty_label, required=self.extra['required'], ) return self._field def filter(self, qs, lookup): if not lookup: return super(LookupChoiceFilter, self).filter(qs, None) self.lookup_expr = lookup.lookup_expr return super(LookupChoiceFilter, self).filter(qs, lookup.value) class OrderingFilter(BaseCSVFilter, ChoiceFilter): """ Enable queryset ordering. As an extension of ``ChoiceFilter`` it accepts two additional arguments that are used to build the ordering choices. * ``fields`` is a mapping of {model field name: parameter name}. The parameter names are exposed in the choices and mask/alias the field names used in the ``order_by()`` call. Similar to field ``choices``, ``fields`` accepts the 'list of two-tuples' syntax that retains order. ``fields`` may also just be an iterable of strings. In this case, the field names simply double as the exposed parameter names. * ``field_labels`` is an optional argument that allows you to customize the display label for the corresponding parameter. It accepts a mapping of {field name: human readable label}. Keep in mind that the key is the field name, and not the exposed parameter name. Additionally, you can just provide your own ``choices`` if you require explicit control over the exposed options. For example, when you might want to disable descending sort options. This filter is also CSV-based, and accepts multiple ordering params. The default select widget does not enable the use of this, but it is useful for APIs. """ descending_fmt = _('%s (descending)') def __init__(self, *args, **kwargs): """ ``fields`` may be either a mapping or an iterable. ``field_labels`` must be a map of field names to display labels """ fields = kwargs.pop('fields', {}) fields = self.normalize_fields(fields) field_labels = kwargs.pop('field_labels', {}) self.param_map = {v: k for k, v in fields.items()} if 'choices' not in kwargs: kwargs['choices'] = self.build_choices(fields, field_labels) kwargs.setdefault('label', _('Ordering')) kwargs.setdefault('help_text', '') kwargs.setdefault('null_label', None) super().__init__(*args, **kwargs) def get_ordering_value(self, param): descending = param.startswith('-') param = param[1:] if descending else param field_name = self.param_map.get(param, param) return "-%s" % field_name if descending else field_name def filter(self, qs, value): if value in EMPTY_VALUES: return qs ordering = [self.get_ordering_value(param) for param in value] return qs.order_by(*ordering) @classmethod def normalize_fields(cls, fields): """ Normalize the fields into an ordered map of {field name: param name} """ # fields is a mapping, copy into new OrderedDict if isinstance(fields, dict): return OrderedDict(fields) # convert iterable of values => iterable of pairs (field name, param name) assert is_iterable(fields), \ "'fields' must be an iterable (e.g., a list, tuple, or mapping)." # fields is an iterable of field names assert all(isinstance(field, str) or is_iterable(field) and len(field) == 2 # may need to be wrapped in parens for field in fields), \ "'fields' must contain strings or (field name, param name) pairs." return OrderedDict([ (f, f) if isinstance(f, str) else f for f in fields ]) def build_choices(self, fields, labels): ascending = [ (param, labels.get(field, _(pretty_name(param)))) for field, param in fields.items() ] descending = [ ('-%s' % param, labels.get('-%s' % param, self.descending_fmt % label)) for param, label in ascending ] # interleave the ascending and descending choices return [val for pair in zip(ascending, descending) for val in pair] class FilterMethod(object): """ This helper is used to override Filter.filter() when a 'method' argument is passed. It proxies the call to the actual method on the filter's parent. """ def __init__(self, filter_instance): self.f = filter_instance def __call__(self, qs, value): if value in EMPTY_VALUES: return qs return self.method(qs, self.f.field_name, value) @property def method(self): """ Resolve the method on the parent filterset. """ instance = self.f # noop if 'method' is a function if callable(instance.method): return instance.method # otherwise, method is the name of a method on the parent FilterSet. assert hasattr(instance, 'parent'), \ "Filter '%s' must have a parent FilterSet to find '.%s()'" % \ (instance.field_name, instance.method) parent = instance.parent method = getattr(parent, instance.method, None) assert callable(method), \ "Expected parent FilterSet '%s.%s' to have a '.%s()' method." % \ (parent.__class__.__module__, parent.__class__.__name__, instance.method) return method ================================================ FILE: jet_django/deps/django_filters/filterset.py ================================================ import copy from collections import OrderedDict from django import forms from django.db import models from django.db.models.constants import LOOKUP_SEP from django.db.models.fields.related import ( ManyToManyRel, ManyToOneRel, OneToOneRel ) from .conf import settings from .constants import ALL_FIELDS from .filters import ( BaseInFilter, BaseRangeFilter, BooleanFilter, CharFilter, ChoiceFilter, DateFilter, DateTimeFilter, DurationFilter, Filter, ModelChoiceFilter, ModelMultipleChoiceFilter, NumberFilter, TimeFilter, UUIDFilter ) from .utils import ( get_all_model_fields, get_model_field, resolve_field, try_dbfield ) def remote_queryset(field): """ Get the queryset for the other side of a relationship. This works for both `RelatedField`s and `ForignObjectRel`s. """ model = field.related_model # Reverse relationships do not have choice limits if not hasattr(field, 'get_limit_choices_to'): return model._default_manager.all() limit_choices_to = field.get_limit_choices_to() return model._default_manager.complex_filter(limit_choices_to) class FilterSetOptions(object): def __init__(self, options=None): self.model = getattr(options, 'model', None) self.fields = getattr(options, 'fields', None) self.exclude = getattr(options, 'exclude', None) self.filter_overrides = getattr(options, 'filter_overrides', {}) self.form = getattr(options, 'form', forms.Form) class FilterSetMetaclass(type): def __new__(cls, name, bases, attrs): attrs['declared_filters'] = cls.get_declared_filters(bases, attrs) new_class = super().__new__(cls, name, bases, attrs) new_class._meta = FilterSetOptions(getattr(new_class, 'Meta', None)) new_class.base_filters = new_class.get_filters() # TODO: remove assertion in 2.1 assert not hasattr(new_class, 'filter_for_reverse_field'), ( "`%(cls)s.filter_for_reverse_field` has been removed. " "`%(cls)s.filter_for_field` now generates filters for reverse fields. " "See: https://django-filter.readthedocs.io/en/master/guide/migration.html" % {'cls': new_class.__name__} ) return new_class @classmethod def get_declared_filters(cls, bases, attrs): filters = [ (filter_name, attrs.pop(filter_name)) for filter_name, obj in list(attrs.items()) if isinstance(obj, Filter) ] # Default the `filter.field_name` to the attribute name on the filterset for filter_name, f in filters: if getattr(f, 'field_name', None) is None: f.field_name = filter_name filters.sort(key=lambda x: x[1].creation_counter) # merge declared filters from base classes for base in reversed(bases): if hasattr(base, 'declared_filters'): filters = [ (name, f) for name, f in base.declared_filters.items() if name not in attrs ] + filters return OrderedDict(filters) FILTER_FOR_DBFIELD_DEFAULTS = { models.AutoField: {'filter_class': NumberFilter}, models.CharField: {'filter_class': CharFilter}, models.TextField: {'filter_class': CharFilter}, models.BooleanField: {'filter_class': BooleanFilter}, models.DateField: {'filter_class': DateFilter}, models.DateTimeField: {'filter_class': DateTimeFilter}, models.TimeField: {'filter_class': TimeFilter}, models.DurationField: {'filter_class': DurationFilter}, models.DecimalField: {'filter_class': NumberFilter}, models.SmallIntegerField: {'filter_class': NumberFilter}, models.IntegerField: {'filter_class': NumberFilter}, models.PositiveIntegerField: {'filter_class': NumberFilter}, models.PositiveSmallIntegerField: {'filter_class': NumberFilter}, models.FloatField: {'filter_class': NumberFilter}, models.NullBooleanField: {'filter_class': BooleanFilter}, models.SlugField: {'filter_class': CharFilter}, models.EmailField: {'filter_class': CharFilter}, models.FilePathField: {'filter_class': CharFilter}, models.URLField: {'filter_class': CharFilter}, models.GenericIPAddressField: {'filter_class': CharFilter}, models.CommaSeparatedIntegerField: {'filter_class': CharFilter}, models.UUIDField: {'filter_class': UUIDFilter}, # Forward relationships models.OneToOneField: { 'filter_class': ModelChoiceFilter, 'extra': lambda f: { 'queryset': remote_queryset(f), 'to_field_name': f.remote_field.field_name, 'null_label': settings.NULL_CHOICE_LABEL if f.null else None, } }, models.ForeignKey: { 'filter_class': ModelChoiceFilter, 'extra': lambda f: { 'queryset': remote_queryset(f), 'to_field_name': f.remote_field.field_name, 'null_label': settings.NULL_CHOICE_LABEL if f.null else None, } }, models.ManyToManyField: { 'filter_class': ModelMultipleChoiceFilter, 'extra': lambda f: { 'queryset': remote_queryset(f), } }, # Reverse relationships OneToOneRel: { 'filter_class': ModelChoiceFilter, 'extra': lambda f: { 'queryset': remote_queryset(f), 'null_label': settings.NULL_CHOICE_LABEL if f.null else None, } }, ManyToOneRel: { 'filter_class': ModelMultipleChoiceFilter, 'extra': lambda f: { 'queryset': remote_queryset(f), } }, ManyToManyRel: { 'filter_class': ModelMultipleChoiceFilter, 'extra': lambda f: { 'queryset': remote_queryset(f), } }, } class BaseFilterSet(object): FILTER_DEFAULTS = FILTER_FOR_DBFIELD_DEFAULTS def __init__(self, data=None, queryset=None, *, request=None, prefix=None): if queryset is None: queryset = self._meta.model._default_manager.all() model = queryset.model self.is_bound = data is not None self.data = data or {} self.queryset = queryset self.request = request self.form_prefix = prefix self.filters = copy.deepcopy(self.base_filters) # propagate the model and filterset to the filters for filter_ in self.filters.values(): filter_.model = model filter_.parent = self def is_valid(self): """ Return True if the underlying form has no errors, or False otherwise. """ return self.is_bound and self.form.is_valid() @property def errors(self): """ Return an ErrorDict for the data provided for the underlying form. """ return self.form.errors def filter_queryset(self, queryset): """ Filter the queryset with the underlying form's `cleaned_data`. You must call `is_valid()` or `errors` before calling this method. This method should be overridden if additional filtering needs to be applied to the queryset before it is cached. """ for name, value in self.form.cleaned_data.items(): queryset = self.filters[name].filter(queryset, value) assert isinstance(queryset, models.QuerySet), \ "Expected '%s.%s' to return a QuerySet, but got a %s instead." \ % (type(self).__name__, name, type(queryset).__name__) return queryset @property def qs(self): if not hasattr(self, '_qs'): qs = self.queryset.all() if self.is_bound: # ensure form validation before filtering self.errors qs = self.filter_queryset(qs) self._qs = qs return self._qs def get_form_class(self): """ Returns a django Form suitable of validating the filterset data. This method should be overridden if the form class needs to be customized relative to the filterset instance. """ fields = OrderedDict([ (name, filter_.field) for name, filter_ in self.filters.items()]) return type(str('%sForm' % self.__class__.__name__), (self._meta.form,), fields) @property def form(self): if not hasattr(self, '_form'): Form = self.get_form_class() if self.is_bound: self._form = Form(self.data, prefix=self.form_prefix) else: self._form = Form(prefix=self.form_prefix) return self._form @classmethod def get_fields(cls): """ Resolve the 'fields' argument that should be used for generating filters on the filterset. This is 'Meta.fields' sans the fields in 'Meta.exclude'. """ model = cls._meta.model fields = cls._meta.fields exclude = cls._meta.exclude assert not (fields is None and exclude is None), \ "Setting 'Meta.model' without either 'Meta.fields' or 'Meta.exclude' " \ "has been deprecated since 0.15.0 and is now disallowed. Add an explicit " \ "'Meta.fields' or 'Meta.exclude' to the %s class." % cls.__name__ # Setting exclude with no fields implies all other fields. if exclude is not None and fields is None: fields = ALL_FIELDS # Resolve ALL_FIELDS into all fields for the filterset's model. if fields == ALL_FIELDS: fields = get_all_model_fields(model) # Remove excluded fields exclude = exclude or [] if not isinstance(fields, dict): fields = [(f, ['exact']) for f in fields if f not in exclude] else: fields = [(f, lookups) for f, lookups in fields.items() if f not in exclude] return OrderedDict(fields) @classmethod def get_filter_name(cls, field_name, lookup_expr): """ Combine a field name and lookup expression into a usable filter name. Exact lookups are the implicit default, so "exact" is stripped from the end of the filter name. """ filter_name = LOOKUP_SEP.join([field_name, lookup_expr]) # This also works with transformed exact lookups, such as 'date__exact' _exact = LOOKUP_SEP + 'exact' if filter_name.endswith(_exact): filter_name = filter_name[:-len(_exact)] return filter_name @classmethod def get_filters(cls): """ Get all filters for the filterset. This is the combination of declared and generated filters. """ # No model specified - skip filter generation if not cls._meta.model: return cls.declared_filters.copy() # Determine the filters that should be included on the filterset. filters = OrderedDict() fields = cls.get_fields() undefined = [] for field_name, lookups in fields.items(): field = get_model_field(cls._meta.model, field_name) # warn if the field doesn't exist. if field is None: undefined.append(field_name) for lookup_expr in lookups: filter_name = cls.get_filter_name(field_name, lookup_expr) # If the filter is explicitly declared on the class, skip generation if filter_name in cls.declared_filters: filters[filter_name] = cls.declared_filters[filter_name] continue if field is not None: filters[filter_name] = cls.filter_for_field(field, field_name, lookup_expr) # filter out declared filters undefined = [f for f in undefined if f not in cls.declared_filters] if undefined: raise TypeError( "'Meta.fields' contains fields that are not defined on this FilterSet: " "%s" % ', '.join(undefined) ) # Add in declared filters. This is necessary since we don't enforce adding # declared filters to the 'Meta.fields' option filters.update(cls.declared_filters) return filters @classmethod def filter_for_field(cls, field, field_name, lookup_expr='exact'): field, lookup_type = resolve_field(field, lookup_expr) default = { 'field_name': field_name, 'lookup_expr': lookup_expr, } filter_class, params = cls.filter_for_lookup(field, lookup_type) default.update(params) assert filter_class is not None, ( "%s resolved field '%s' with '%s' lookup to an unrecognized field " "type %s. Try adding an override to 'Meta.filter_overrides'. See: " "https://django-filter.readthedocs.io/en/master/ref/filterset.html" "#customise-filter-generation-with-filter-overrides" ) % (cls.__name__, field_name, lookup_expr, field.__class__.__name__) return filter_class(**default) @classmethod def filter_for_lookup(cls, field, lookup_type): DEFAULTS = dict(cls.FILTER_DEFAULTS) if hasattr(cls, '_meta'): DEFAULTS.update(cls._meta.filter_overrides) data = try_dbfield(DEFAULTS.get, field.__class__) or {} filter_class = data.get('filter_class') params = data.get('extra', lambda field: {})(field) # if there is no filter class, exit early if not filter_class: return None, {} # perform lookup specific checks if lookup_type == 'exact' and getattr(field, 'choices', None): return ChoiceFilter, {'choices': field.choices} if lookup_type == 'isnull': data = try_dbfield(DEFAULTS.get, models.BooleanField) filter_class = data.get('filter_class') params = data.get('extra', lambda field: {})(field) return filter_class, params if lookup_type == 'in': class ConcreteInFilter(BaseInFilter, filter_class): pass ConcreteInFilter.__name__ = cls._csv_filter_class_name( filter_class, lookup_type ) return ConcreteInFilter, params if lookup_type == 'range': class ConcreteRangeFilter(BaseRangeFilter, filter_class): pass ConcreteRangeFilter.__name__ = cls._csv_filter_class_name( filter_class, lookup_type ) return ConcreteRangeFilter, params return filter_class, params @classmethod def _csv_filter_class_name(cls, filter_class, lookup_type): """ Generate a suitable class name for a concrete filter class. This is not completely reliable, as not all filter class names are of the format Filter. ex:: FilterSet._csv_filter_class_name(DateTimeFilter, 'in') returns 'DateTimeInFilter' """ # DateTimeFilter => DateTime type_name = filter_class.__name__ if type_name.endswith('Filter'): type_name = type_name[:-6] # in => In lookup_name = lookup_type.capitalize() # DateTimeInFilter return str('%s%sFilter' % (type_name, lookup_name)) class FilterSet(BaseFilterSet, metaclass=FilterSetMetaclass): pass def filterset_factory(model, fields=ALL_FIELDS): meta = type(str('Meta'), (object,), {'model': model, 'fields': fields}) filterset = type(str('%sFilterSet' % model._meta.object_name), (FilterSet,), {'Meta': meta}) return filterset ================================================ FILE: jet_django/deps/django_filters/locale/be/LC_MESSAGES/django.po ================================================ # #: conf.py:27 conf.py:28 conf.py:41 msgid "" msgstr "" "Project-Id-Version: django-filter\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-01-24 18:51+0500\n" "PO-Revision-Date: 2016-09-29 11:47+0300\n" "Last-Translator: Eugena Mikhaylikova \n" "Language-Team: TextTempearture\n" "Language: be\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Poedit 1.8.9\n" #: conf.py:17 msgid "date" msgstr "дата" #: conf.py:18 msgid "year" msgstr "год" #: conf.py:19 msgid "month" msgstr "месяц" #: conf.py:20 msgid "day" msgstr "дзень" #: conf.py:21 msgid "week day" msgstr "дзень тыдня" #: conf.py:22 msgid "hour" msgstr "гадзіну" #: conf.py:23 msgid "minute" msgstr "хвіліна" #: conf.py:24 msgid "second" msgstr "секунда" #: conf.py:29 conf.py:30 msgid "contains" msgstr "змяшчае" #: conf.py:31 msgid "is in" msgstr "у" #: conf.py:32 msgid "is greater than" msgstr "больш чым" #: conf.py:33 msgid "is greater than or equal to" msgstr "больш або роўна" #: conf.py:34 msgid "is less than" msgstr "менш чым" #: conf.py:35 msgid "is less than or equal to" msgstr "менш або роўна" #: conf.py:36 conf.py:37 msgid "starts with" msgstr "пачынаецца" #: conf.py:38 conf.py:39 msgid "ends with" msgstr "заканчваецца" #: conf.py:40 msgid "is in range" msgstr "у дыяпазоне" #: conf.py:42 conf.py:43 msgid "matches regex" msgstr "адпавядае рэгулярнаму выразу" #: conf.py:44 conf.py:52 msgid "search" msgstr "пошук" #: conf.py:47 msgid "is contained by" msgstr "змяшчаецца ў" #: conf.py:48 msgid "overlaps" msgstr "перакрываецца" #: conf.py:49 msgid "has key" msgstr "мае ключ" #: conf.py:50 msgid "has keys" msgstr "мае ключы" #: conf.py:51 msgid "has any keys" msgstr "мае любыя ключы" #: fields.py:178 msgid "Range query expects two values." msgstr "Запыт дыяпазону чакае два значэння." #: filters.py:429 msgid "Any date" msgstr "Любая дата" #: filters.py:430 msgid "Today" msgstr "Сёння" #: filters.py:435 msgid "Past 7 days" msgstr "Мінулыя 7 дзён" #: filters.py:439 msgid "This month" msgstr "За гэты месяц" #: filters.py:443 msgid "This year" msgstr "У гэтым годзе" #: filters.py:446 msgid "Yesterday" msgstr "Учора" #: filters.py:512 msgid "Multiple values may be separated by commas." msgstr "Некалькі значэнняў могуць быць падзеленыя коскамі." #: filters.py:591 #, python-format msgid "%s (descending)" msgstr "%s (па змяншэнні)" #: filters.py:607 msgid "Ordering" msgstr "Парадак" #: rest_framework/filterset.py:30 #: templates/jet_django.deps.django_filters/rest_framework/form.html:5 msgid "Submit" msgstr "Адправіць" #: templates/jet_django.deps.django_filters/rest_framework/crispy_form.html:4 #: templates/jet_django.deps.django_filters/rest_framework/form.html:2 msgid "Field filters" msgstr "Фільтры па палях" #: utils.py:224 msgid "exclude" msgstr "выключаючы" #: widgets.py:57 msgid "All" msgstr "Усе" #: widgets.py:159 msgid "Unknown" msgstr "Не было прапанавана" #: widgets.py:160 msgid "Yes" msgstr "Ды" #: widgets.py:161 msgid "No" msgstr "Няма" ================================================ FILE: jet_django/deps/django_filters/locale/cs/LC_MESSAGES/django.po ================================================ # msgid "" msgstr "" "Project-Id-Version: django-filter\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-01-24 11:03+0500\n" "PO-Revision-Date: 2016-09-29 11:47+0300\n" "Last-Translator: Eugena Mikhaylikova \n" "Language-Team: TextTempearture\n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Poedit 1.8.9\n" #: conf.py:17 msgid "date" msgstr "datum" #: conf.py:18 msgid "year" msgstr "rok" #: conf.py:19 msgid "month" msgstr "měsíc" #: conf.py:20 msgid "day" msgstr "den" #: conf.py:21 msgid "week day" msgstr "den v týdnu" #: conf.py:22 msgid "hour" msgstr "hodinu" #: conf.py:23 msgid "minute" msgstr "minutu" #: conf.py:24 msgid "second" msgstr "vteřina" #: conf.py:29 conf.py:30 msgid "contains" msgstr "obsahuje" #: conf.py:31 msgid "is in" msgstr "v" #: conf.py:32 msgid "is greater than" msgstr "více než" #: conf.py:33 msgid "is greater than or equal to" msgstr "větší nebo roven" #: conf.py:34 msgid "is less than" msgstr "méně než" #: conf.py:35 msgid "is less than or equal to" msgstr "menší nebo rovné" #: conf.py:36 conf.py:37 msgid "starts with" msgstr "začíná" #: conf.py:38 conf.py:39 msgid "ends with" msgstr "končí" #: conf.py:40 msgid "is in range" msgstr "v rozsahu" #: conf.py:42 conf.py:43 msgid "matches regex" msgstr "odpovídá normálnímu výrazu" #: conf.py:44 conf.py:52 msgid "search" msgstr "vyhledávání" #: conf.py:47 msgid "is contained by" msgstr "je obsažen v" #: conf.py:48 msgid "overlaps" msgstr "překrývají" #: conf.py:49 msgid "has key" msgstr "má klíč" #: conf.py:50 msgid "has keys" msgstr "má klíče" #: conf.py:51 msgid "has any keys" msgstr "má nějaké klíče" #: fields.py:178 msgid "Range query expects two values." msgstr "Rozsah dotazu očekává dvě hodnoty." #: filters.py:429 msgid "Any date" msgstr "Jakékoliv datum" #: filters.py:430 msgid "Today" msgstr "Dnes" #: filters.py:435 msgid "Past 7 days" msgstr "Posledních 7 dní" #: filters.py:439 msgid "This month" msgstr "Tento měsíc" #: filters.py:443 msgid "This year" msgstr "Tento rok" #: filters.py:446 msgid "Yesterday" msgstr "Včera" #: filters.py:512 msgid "Multiple values may be separated by commas." msgstr "Více hodnot lze oddělit čárkami." #: filters.py:591 msgid "%s (descending)" msgstr "%s (sestupně)" #: filters.py:607 msgid "Ordering" msgstr "Řád z" #: rest_framework/filterset.py:30 #: templates/jet_django.deps.django_filters/rest_framework/form.html:5 msgid "Submit" msgstr "Odeslat" #: templates/jet_django.deps.django_filters/rest_framework/crispy_form.html:4 #: templates/jet_django.deps.django_filters/rest_framework/form.html:2 msgid "Field filters" msgstr "Filtry na polích" #: utils.py:224 msgid "exclude" msgstr "s výjimkou" #: widgets.py:57 msgid "All" msgstr "Všechno" #: widgets.py:159 msgid "Unknown" msgstr "Není nastaveno" #: widgets.py:160 msgid "Yes" msgstr "Ano" #: widgets.py:161 msgid "No" msgstr "Ne" ================================================ FILE: jet_django/deps/django_filters/locale/da/LC_MESSAGES/django.po ================================================ msgid "" msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 2.0.1\n" "Project-Id-Version: django-filter\n" "Language: da\n" "Last-Translator: Danni Randeris \n" "Language-Team: Danni Randeris \n" "POT-Creation-Date: 2017-10-28\n" "PO-Revision-Date: 2017-10-28\n" #: conf.py:17 msgid "date" msgstr "dato" #: conf.py:18 msgid "year" msgstr "år" #: conf.py:19 msgid "month" msgstr "måned" #: conf.py:20 msgid "day" msgstr "dag" #: conf.py:21 msgid "week day" msgstr "ugedag" #: conf.py:22 msgid "hour" msgstr "time" #: conf.py:23 msgid "minute" msgstr "minut" #: conf.py:24 msgid "second" msgstr "sekund" #: conf.py:29 conf.py:30 msgid "contains" msgstr "indeholder" #: conf.py:31 msgid "is in" msgstr "er i" #: conf.py:32 msgid "is greater than" msgstr "er større end" #: conf.py:33 msgid "is greater than or equal to" msgstr "er større end eller lig med" #: conf.py:34 msgid "is less than" msgstr "er mindre end" #: conf.py:35 msgid "is less than or equal to" msgstr "er mindre end eller lig med" #: conf.py:36 conf.py:37 msgid "starts with" msgstr "starter med" #: conf.py:38 conf.py:39 msgid "ends with" msgstr "slutter med" #: conf.py:40 msgid "is in range" msgstr "er i intervallet" #: conf.py:42 conf.py:43 msgid "matches regex" msgstr "matcher regex" #: conf.py:44 conf.py:52 msgid "search" msgstr "søg" #: conf.py:47 msgid "is contained by" msgstr "er indeholdt af" #: conf.py:48 msgid "overlaps" msgstr "overlapper" #: conf.py:49 msgid "has key" msgstr "har string" #: conf.py:50 msgid "has keys" msgstr "har stringe" #: conf.py:51 msgid "has any keys" msgstr "har hvilken som helst string" #: fields.py:178 msgid "Range query expects two values." msgstr "Interval forespørgslen forventer to værdier." #: filters.py:429 msgid "Any date" msgstr "Hvilken som helst dag" #: filters.py:430 msgid "Today" msgstr "I dag" #: filters.py:435 msgid "Past 7 days" msgstr "Sidste 7 dage" #: filters.py:439 msgid "This month" msgstr "Denne måned" #: filters.py:443 msgid "This year" msgstr "Dette år" #: filters.py:446 msgid "Yesterday" msgstr "I går" #: filters.py:512 msgid "Multiple values may be separated by commas." msgstr "Flere værdier kan adskilles via komma." #: filters.py:591 msgid "%s (descending)" msgstr "%s (aftagende)" #: filters.py:607 msgid "Ordering" msgstr "Sortering" #: rest_framework/filterset.py:30 #: templates/jet_django.deps.django_filters/rest_framework/form.html:5 #, fuzzy msgid "Submit" msgstr "Indsend" #: templates/jet_django.deps.django_filters/rest_framework/crispy_form.html:4 #: templates/jet_django.deps.django_filters/rest_framework/form.html:2 #, fuzzy msgid "Field filters" msgstr "Felt filtre" #: utils.py:224 msgid "exclude" msgstr "udelad" #: widgets.py:57 msgid "All" msgstr "Alle" #: widgets.py:159 msgid "Unknown" msgstr "Ukendt" #: widgets.py:160 msgid "Yes" msgstr "Ja" #: widgets.py:161 msgid "No" msgstr "Nej" ================================================ FILE: jet_django/deps/django_filters/locale/de/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #: conf.py:27 conf.py:28 conf.py:41 msgid "" msgstr "" "Project-Id-Version: django-filter\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-01-24 11:03+0500\n" "PO-Revision-Date: 2013-08-10 12:29+0100\n" "Last-Translator: Florian Apolloner \n" "Language-Team: \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 1.5.4\n" #: conf.py:17 msgid "date" msgstr "Daten" #: conf.py:18 msgid "year" msgstr "Jahr" #: conf.py:19 msgid "month" msgstr "Monat" #: conf.py:20 #, fuzzy #| msgid "Today" msgid "day" msgstr "Heute" #: conf.py:21 msgid "week day" msgstr "Wochentag" #: conf.py:22 msgid "hour" msgstr "Stunde" #: conf.py:23 msgid "minute" msgstr "Minute" #: conf.py:24 msgid "second" msgstr "zweite" #: conf.py:29 conf.py:30 msgid "contains" msgstr "enthält" #: conf.py:31 msgid "is in" msgstr "ist in" #: conf.py:32 msgid "is greater than" msgstr "ist größer als" #: conf.py:33 msgid "is greater than or equal to" msgstr "ist größer oder gleich" #: conf.py:34 msgid "is less than" msgstr "ist kleiner als" #: conf.py:35 msgid "is less than or equal to" msgstr "ist kleiner oder gleich" #: conf.py:36 conf.py:37 msgid "starts with" msgstr "beginnt mit" #: conf.py:38 conf.py:39 msgid "ends with" msgstr "endet mit" #: conf.py:40 msgid "is in range" msgstr "ist in Reichweite" #: conf.py:42 conf.py:43 msgid "matches regex" msgstr "passt auf Regex" #: conf.py:44 conf.py:52 msgid "search" msgstr "Suche" #: conf.py:47 msgid "is contained by" msgstr "ist enthalten in" #: conf.py:48 msgid "overlaps" msgstr "überlappen" #: conf.py:49 msgid "has key" msgstr "hat Schlüssel" #: conf.py:50 msgid "has keys" msgstr "hat Schlüssel" #: conf.py:51 msgid "has any keys" msgstr "hat irgendwelche Schlüssel" #: fields.py:178 msgid "Range query expects two values." msgstr "Die Bereichsabfrage erwartet zwei Werte." #: filters.py:429 msgid "Any date" msgstr "Alle Daten" #: filters.py:430 msgid "Today" msgstr "Heute" #: filters.py:435 msgid "Past 7 days" msgstr "Letzte 7 Tage" #: filters.py:439 msgid "This month" msgstr "Diesen Monat" #: filters.py:443 msgid "This year" msgstr "Dieses Jahr" #: filters.py:446 msgid "Yesterday" msgstr "Gestern" #: filters.py:512 msgid "Multiple values may be separated by commas." msgstr "Mehrere Werte können durch Kommas getrennt sein." #: filters.py:591 #, python-format msgid "%s (descending)" msgstr "%s (absteigend)" #: filters.py:607 msgid "Ordering" msgstr "Ordnung" #: rest_framework/filterset.py:30 #: templates/jet_django.deps.django_filters/rest_framework/form.html:5 msgid "Submit" msgstr "Einreichen" #: templates/jet_django.deps.django_filters/rest_framework/crispy_form.html:4 #: templates/jet_django.deps.django_filters/rest_framework/form.html:2 msgid "Field filters" msgstr "Feldfilter" #: utils.py:224 msgid "exclude" msgstr "ausschließen" #: widgets.py:57 msgid "All" msgstr "Alle" #: widgets.py:159 msgid "Unknown" msgstr "Unbekannte" #: widgets.py:160 msgid "Yes" msgstr "Ja" #: widgets.py:161 msgid "No" msgstr "Nein" ================================================ FILE: jet_django/deps/django_filters/locale/el/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Serafeim Papastefanos , 2017. # #: .\conf.py:27 .\conf.py:28 .\conf.py:41 msgid "" msgstr "" "Project-Id-Version: django-filter\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-11-16 10:06+0200\n" "PO-Revision-Date: 2017-11-16 10:04+0200\n" "Last-Translator: Serafeim Papastefanos \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 1.6.5\n" #: .\conf.py:17 msgid "date" msgstr "ημερομηνία" #: .\conf.py:18 msgid "year" msgstr "έτος" #: .\conf.py:19 msgid "month" msgstr "μήνας" #: .\conf.py:20 msgid "day" msgstr "ημέρα" #: .\conf.py:21 msgid "week day" msgstr "ημέρα της εβδομάδας" #: .\conf.py:22 msgid "hour" msgstr "ώρα" #: .\conf.py:23 msgid "minute" msgstr "λεπτό" #: .\conf.py:24 msgid "second" msgstr "δευτερόλεπτο" #: .\conf.py:29 .\conf.py:30 msgid "contains" msgstr "περιέχει" #: .\conf.py:31 msgid "is in" msgstr "είναι εντός των" #: .\conf.py:32 msgid "is greater than" msgstr "είναι μεγαλύτερο από" #: .\conf.py:33 msgid "is greater than or equal to" msgstr "είναι μεγαλύτερο ή ίσο του" #: .\conf.py:34 msgid "is less than" msgstr "είναι μικρότερο από" #: .\conf.py:35 msgid "is less than or equal to" msgstr "είναι μικρότερο ή ίσο του" #: .\conf.py:36 .\conf.py:37 msgid "starts with" msgstr "ξεκινά με" #: .\conf.py:38 .\conf.py:39 msgid "ends with" msgstr "τελειώνει με" #: .\conf.py:40 msgid "is in range" msgstr "είναι εντος του εύρους" #: .\conf.py:42 .\conf.py:43 msgid "matches regex" msgstr "περιέχει regex" #: .\conf.py:44 .\conf.py:52 msgid "search" msgstr "αναζήτηση" #: .\conf.py:47 msgid "is contained by" msgstr "περιέχεται σε" #: .\conf.py:48 msgid "overlaps" msgstr "επικαλύπτεται" #: .\conf.py:49 msgid "has key" msgstr "έχει το κλειδί" #: .\conf.py:50 msgid "has keys" msgstr "έχει τα κλειδιά" #: .\conf.py:51 msgid "has any keys" msgstr "έχει οποιαδήποτε κλειδιά" #: .\fields.py:178 msgid "Range query expects two values." msgstr "Το ερώτημα εύρους απαιτεί δύο τιμές," #: .\filters.py:429 msgid "Any date" msgstr "Οποιαδήποτε ημερομηνία" #: .\filters.py:430 msgid "Today" msgstr "Σήμερα" #: .\filters.py:435 msgid "Past 7 days" msgstr "Τις προηγούμενες 7 ημέρες" #: .\filters.py:439 msgid "This month" msgstr "Αυτό το μήνα" #: .\filters.py:443 msgid "This year" msgstr "Αυτό το έτος" #: .\filters.py:446 msgid "Yesterday" msgstr "Χτες" #: .\filters.py:512 msgid "Multiple values may be separated by commas." msgstr "Οι πολλαπλές τιμές πρέπει να διαχωρίζονται με κόμμα." #: .\filters.py:591 #, python-format msgid "%s (descending)" msgstr "%s (φθίνουσα" #: .\filters.py:607 msgid "Ordering" msgstr "Ταξινόμηση" #: .\rest_framework\filterset.py:30 #: .\templates\django_filters\rest_framework\form.html:5 msgid "Submit" msgstr "Υποβολή" #: .\templates\django_filters\rest_framework\crispy_form.html:4 #: .\templates\django_filters\rest_framework\form.html:2 msgid "Field filters" msgstr "Φίλτρα πεδίων" #: .\utils.py:224 msgid "exclude" msgstr "απέκλεισε" #: .\widgets.py:57 msgid "All" msgstr "Όλα" #: .\widgets.py:159 msgid "Unknown" msgstr "Άγνωστο" #: .\widgets.py:160 msgid "Yes" msgstr "Ναι" #: .\widgets.py:161 msgid "No" msgstr "Όχι" ================================================ FILE: jet_django/deps/django_filters/locale/es_AR/LC_MESSAGES/django.po ================================================ # Django Filter translation. # Copyright (C) 2013 # This file is distributed under the same license as the django_filter package. # Gonzalo Bustos, 2015. # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-07-05 19:24+0200\n" "PO-Revision-Date: 2015-10-11 20:53-0300\n" "Last-Translator: Gonzalo Bustos\n" "Language-Team: Spanish (Argentina)\n" "Language: es_AR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Poedit 1.6.10\n" #: filters.py:51 msgid "This is an exclusion filter" msgstr "Este es un filtro de exclusión" #: filters.py:158 msgid "Any date" msgstr "Cualquier fecha" #: filters.py:159 msgid "Today" msgstr "Hoy" #: filters.py:164 msgid "Past 7 days" msgstr "Últimos 7 días" #: filters.py:168 msgid "This month" msgstr "Este mes" #: filters.py:172 msgid "This year" msgstr "Este año" #: widgets.py:63 msgid "All" msgstr "Todos" ================================================ FILE: jet_django/deps/django_filters/locale/es_ES/LC_MESSAGES/django.po ================================================ # Django Filter translation. # Copyright (C) 2013 # This file is distributed under the same license as the django_filter package. # Carlos Goce, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-26 20:32+0100\n" "PO-Revision-Date: 2017-01-26 20:52+0100\n" "Last-Translator: Carlos Goce\n" "Language-Team: Spanish (España)\n" "Language: es_ES\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.11\n" #: conf.py:26 msgid "date" msgstr "fecha" #: conf.py:27 msgid "year" msgstr "año" #: conf.py:28 msgid "month" msgstr "mes" #: conf.py:29 msgid "day" msgstr "día" #: conf.py:30 msgid "week day" msgstr "día de la semana" #: conf.py:31 msgid "hour" msgstr "hora" #: conf.py:32 msgid "minute" msgstr "minuto" #: conf.py:33 msgid "second" msgstr "segundo" #: conf.py:38 conf.py:39 msgid "contains" msgstr "contiene" #: conf.py:40 msgid "is in" msgstr "presente en" #: conf.py:41 msgid "is greater than" msgstr "mayor que" #: conf.py:42 msgid "is greater than or equal to" msgstr "mayor o igual que" #: conf.py:43 msgid "is less than" msgstr "menor que" #: conf.py:44 msgid "is less than or equal to" msgstr "menor o igual que" #: conf.py:45 conf.py:46 msgid "starts with" msgstr "comienza por" #: conf.py:47 conf.py:48 msgid "ends with" msgstr "termina por" #: conf.py:49 msgid "is in range" msgstr "en el rango" #: conf.py:51 conf.py:52 msgid "matches regex" msgstr "coincide con la expresión regular" #: conf.py:53 conf.py:61 msgid "search" msgstr "buscar" #: conf.py:56 msgid "is contained by" msgstr "contenido en" #: conf.py:57 msgid "overlaps" msgstr "solapado" #: conf.py:58 msgid "has key" msgstr "contiene la clave" #: conf.py:59 msgid "has keys" msgstr "contiene las claves" #: conf.py:60 msgid "has any keys" msgstr "contiene alguna de las claves" #: fields.py:167 msgid "Range query expects two values." msgstr "Consultar un rango requiere dos valores" #: filters.py:443 msgid "Any date" msgstr "Cualquier fecha" #: filters.py:444 msgid "Today" msgstr "Hoy" #: filters.py:449 msgid "Past 7 days" msgstr "Últimos 7 días" #: filters.py:453 msgid "This month" msgstr "Este mes" #: filters.py:457 msgid "This year" msgstr "Este año" #: filters.py:460 msgid "Yesterday" msgstr "Ayer" #: filters.py:526 msgid "Multiple values may be separated by commas." msgstr "Múltiples valores separados por comas." #: filters.py:605 #, python-format msgid "%s (descending)" msgstr "%s (descendente)" #: filters.py:621 msgid "Ordering" msgstr "Ordenado" #: utils.py:220 msgid "exclude" msgstr "excluye" #: widgets.py:71 msgid "All" msgstr "Todo" #: widgets.py:119 msgid "Unknown" msgstr "Desconocido" #: widgets.py:120 msgid "Yes" msgstr "Sí" #: widgets.py:121 msgid "No" msgstr "No" #: rest_framework/filterset.py:31 #: templates/jet_django.deps.django_filters/rest_framework/form.html:5 msgid "Submit" msgstr "Enviar" #: templates/jet_django.deps.django_filters/rest_framework/crispy_form.html:4 #: templates/jet_django.deps.django_filters/rest_framework/form.html:2 msgid "Field filters" msgstr "Filtros de campo" ================================================ FILE: jet_django/deps/django_filters/locale/fr/LC_MESSAGES/django.po ================================================ # Django Filter translation. # Copyright (C) 2013 # This file is distributed under the same license as the django_filter package. # Axel Haustant , 2013. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2013-07-05 19:24+0200\n" "PO-Revision-Date: 2013-07-05 19:24+0200\n" "Last-Translator: Axel Haustant \n" "Language-Team: LANGUAGE \n" "Language: French\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: filters.py:51 msgid "This is an exclusion filter" msgstr "Ceci est un filtre d'exclusion" #: filters.py:158 msgid "Any date" msgstr "Toutes les dates" #: filters.py:159 msgid "Today" msgstr "Aujourd'hui" #: filters.py:164 msgid "Past 7 days" msgstr "7 derniers jours" #: filters.py:168 msgid "This month" msgstr "Ce mois-ci" #: filters.py:172 msgid "This year" msgstr "Cette année" #: widgets.py:63 msgid "All" msgstr "Tous" ================================================ FILE: jet_django/deps/django_filters/locale/pl/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #: conf.py:35 conf.py:36 conf.py:49 msgid "" msgstr "" "Project-Id-Version: django_filters 0.0.1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-09-01 17:21+0000\n" "PO-Revision-Date: 2015-07-25 01:27+0100\n" "Last-Translator: Adam Dobrawy \n" "Language-Team: Adam Dobrawy \n" "Language: pl_PL\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 " "|| n%100>=20) ? 1 : 2);\n" "X-Generator: Poedit 1.5.4\n" #: conf.py:25 #, fuzzy #| msgid "Any date" msgid "date" msgstr "Dowolna data" #: conf.py:26 #, fuzzy #| msgid "This year" msgid "year" msgstr "Ten rok" #: conf.py:27 #, fuzzy #| msgid "This month" msgid "month" msgstr "Ten miesiąc" #: conf.py:28 #, fuzzy #| msgid "Today" msgid "day" msgstr "Dziś" #: conf.py:29 msgid "week day" msgstr "dzień tygodnia" #: conf.py:30 msgid "hour" msgstr "godzina" #: conf.py:31 msgid "minute" msgstr "minuta" #: conf.py:32 msgid "second" msgstr "" #: conf.py:37 conf.py:38 msgid "contains" msgstr "zawiera" #: conf.py:39 msgid "is in" msgstr "zawiera się w" #: conf.py:40 msgid "is greater than" msgstr "powyżej" #: conf.py:41 msgid "is greater than or equal to" msgstr "powyżej lub równe" #: conf.py:42 msgid "is less than" msgstr "poniżej" #: conf.py:43 msgid "is less than or equal to" msgstr "poniżej lub równe" #: conf.py:44 conf.py:45 msgid "starts with" msgstr "zaczyna się od" #: conf.py:46 conf.py:47 msgid "ends with" msgstr "kończy się na" #: conf.py:48 msgid "is in range" msgstr "zawiera się w zakresie" #: conf.py:50 conf.py:51 msgid "matches regex" msgstr "pasuje do wyrażenia regularnego" #: conf.py:52 conf.py:60 msgid "search" msgstr "szukaj" #: conf.py:55 msgid "is contained by" msgstr "zawiera się w" #: conf.py:56 msgid "overlaps" msgstr "" #: conf.py:57 msgid "has key" msgstr "" #: conf.py:58 msgid "has keys" msgstr "" #: conf.py:59 msgid "has any keys" msgstr "" #: fields.py:172 msgid "Range query expects two values." msgstr "" #: filters.py:452 msgid "Any date" msgstr "Dowolna data" #: filters.py:453 msgid "Today" msgstr "Dziś" #: filters.py:458 msgid "Past 7 days" msgstr "Ostatnie 7 dni" #: filters.py:462 msgid "This month" msgstr "Ten miesiąc" #: filters.py:466 msgid "This year" msgstr "Ten rok" #: filters.py:469 msgid "Yesterday" msgstr "Wczoraj" #: filters.py:535 msgid "Multiple values may be separated by commas." msgstr "Wiele wartości można rozdzielić przecinkami" #: filters.py:614 #, python-format msgid "%s (descending)" msgstr "%s (malejąco)" #: filters.py:630 msgid "Ordering" msgstr "Sortowanie" #: rest_framework/filterset.py:34 #: templates/jet_django.deps.django_filters/rest_framework/form.html:5 msgid "Submit" msgstr "" #: templates/jet_django.deps.django_filters/rest_framework/crispy_form.html:4 #: templates/jet_django.deps.django_filters/rest_framework/form.html:2 #, fuzzy #| msgid "Filter" msgid "Field filters" msgstr "Filter" #: utils.py:225 msgid "exclude" msgstr "" #: widgets.py:66 msgid "All" msgstr "Wszystko" #: widgets.py:173 msgid "Unknown" msgstr "" #: widgets.py:174 msgid "Yes" msgstr "Tak" #: widgets.py:175 msgid "No" msgstr "Nie" #~ msgid "This is an exclusion filter" #~ msgstr "Jest to filtr wykluczający" ================================================ FILE: jet_django/deps/django_filters/locale/pt_BR/LC_MESSAGES/django.po ================================================ # Django Filter translation. # Copyright (C) 2017 # This file is distributed under the same license as the django_filter package. # Anderson Scouto da Silva, 2017. # msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-12-11 22:04+0100\n" "PO-Revision-Date: 2017-12-11 22:07-0200\n" "Last-Translator: Anderson Scouto da Silva\n" "Language-Team: \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.8.13\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: conf.py:26 msgid "date" msgstr "data" #: conf.py:27 msgid "year" msgstr "ano" #: conf.py:28 msgid "month" msgstr "mês" #: conf.py:29 msgid "day" msgstr "dia" #: conf.py:30 msgid "week day" msgstr "dia da semana" #: conf.py:31 msgid "hour" msgstr "hora" #: conf.py:32 msgid "minute" msgstr "minuto" #: conf.py:33 msgid "second" msgstr "segundo" #: conf.py:38 conf.py:39 msgid "contains" msgstr "contém" #: conf.py:40 msgid "is in" msgstr "presente em" #: conf.py:41 msgid "is greater than" msgstr "é maior que" #: conf.py:42 msgid "is greater than or equal to" msgstr "é maior ou igual que" #: conf.py:43 msgid "is less than" msgstr "é menor que" #: conf.py:44 msgid "is less than or equal to" msgstr "é menor ou igual que" #: conf.py:45 conf.py:46 msgid "starts with" msgstr "começa com" #: conf.py:47 conf.py:48 msgid "ends with" msgstr "termina com" #: conf.py:49 msgid "is in range" msgstr "está no range" #: conf.py:51 conf.py:52 msgid "matches regex" msgstr "coincide com a expressão regular" #: conf.py:53 conf.py:61 msgid "search" msgstr "buscar" #: conf.py:56 msgid "is contained by" msgstr "está contido por" #: conf.py:57 msgid "overlaps" msgstr "sobrepõe" #: conf.py:58 msgid "has key" msgstr "contém a chave" #: conf.py:59 msgid "has keys" msgstr "contém as chaves" #: conf.py:60 msgid "has any keys" msgstr "contém uma das chaves" #: fields.py:167 msgid "Range query expects two values." msgstr "Consulta por range requer dois valores." #: filters.py:443 msgid "Any date" msgstr "Qualquer data" #: filters.py:444 msgid "Today" msgstr "Hoje" #: filters.py:449 msgid "Past 7 days" msgstr "Últimos 7 dias" #: filters.py:453 msgid "This month" msgstr "Este mês" #: filters.py:457 msgid "This year" msgstr "Este ano" #: filters.py:460 msgid "Yesterday" msgstr "Ontem" #: filters.py:526 msgid "Multiple values may be separated by commas." msgstr "Valores múltiplos podem ser separados por vírgulas." #: filters.py:605 #, python-format msgid "%s (descending)" msgstr "%s (decrescente)" #: filters.py:621 msgid "Ordering" msgstr "Ordenado" #: utils.py:220 msgid "exclude" msgstr "excluir" #: widgets.py:71 msgid "All" msgstr "Tudo" #: widgets.py:119 msgid "Unknown" msgstr "Desconhecido" #: widgets.py:120 msgid "Yes" msgstr "Sim" #: widgets.py:121 msgid "No" msgstr "Não" #: rest_framework/filterset.py:31 #: templates/jet_django.deps.django_filters/rest_framework/form.html:5 msgid "Submit" msgstr "Enviar" #: templates/jet_django.deps.django_filters/rest_framework/crispy_form.html:4 #: templates/jet_django.deps.django_filters/rest_framework/form.html:2 msgid "Field filters" msgstr "Filtros de campo" ================================================ FILE: jet_django/deps/django_filters/locale/ru/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #: conf.py:27 conf.py:28 conf.py:41 msgid "" msgstr "" "Project-Id-Version: django-filter\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-01-24 11:03+0500\n" "PO-Revision-Date: 2016-09-29 11:47+0300\n" "Last-Translator: Mikhail Mitrofanov \n" "Language-Team: \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Poedit 1.8.9\n" #: conf.py:17 msgid "date" msgstr "дата" #: conf.py:18 msgid "year" msgstr "год" #: conf.py:19 msgid "month" msgstr "месяц" #: conf.py:20 msgid "day" msgstr "день" #: conf.py:21 msgid "week day" msgstr "день недели" #: conf.py:22 msgid "hour" msgstr "час" #: conf.py:23 msgid "minute" msgstr "минута" #: conf.py:24 msgid "second" msgstr "секунда" #: conf.py:29 conf.py:30 msgid "contains" msgstr "содержит" #: conf.py:31 msgid "is in" msgstr "в" #: conf.py:32 msgid "is greater than" msgstr "больше чем" #: conf.py:33 msgid "is greater than or equal to" msgstr "больше или равно" #: conf.py:34 msgid "is less than" msgstr "меньше чем" #: conf.py:35 msgid "is less than or equal to" msgstr "меньше или равно" #: conf.py:36 conf.py:37 msgid "starts with" msgstr "начинается" #: conf.py:38 conf.py:39 msgid "ends with" msgstr "заканчивается" #: conf.py:40 msgid "is in range" msgstr "в диапазоне" #: conf.py:42 conf.py:43 msgid "matches regex" msgstr "соответствует регулярному выражению" #: conf.py:44 conf.py:52 msgid "search" msgstr "поиск" #: conf.py:47 msgid "is contained by" msgstr "содержится в" #: conf.py:48 msgid "overlaps" msgstr "перекрывается" #: conf.py:49 msgid "has key" msgstr "имеет ключ" #: conf.py:50 msgid "has keys" msgstr "имеет ключи" #: conf.py:51 msgid "has any keys" msgstr "имеет любые ключи" #: fields.py:178 msgid "Range query expects two values." msgstr "Запрос диапазона ожидает два значения." #: filters.py:429 msgid "Any date" msgstr "Любая дата" #: filters.py:430 msgid "Today" msgstr "Сегодня" #: filters.py:435 msgid "Past 7 days" msgstr "Прошедшие 7 дней" #: filters.py:439 msgid "This month" msgstr "За этот месяц" #: filters.py:443 msgid "This year" msgstr "В этом году" #: filters.py:446 msgid "Yesterday" msgstr "Вчера" #: filters.py:512 msgid "Multiple values may be separated by commas." msgstr "Несколько значений могут быть разделены запятыми." #: filters.py:591 #, python-format msgid "%s (descending)" msgstr "%s (по убыванию)" #: filters.py:607 msgid "Ordering" msgstr "Порядок" #: rest_framework/filterset.py:30 #: templates/jet_django.deps.django_filters/rest_framework/form.html:5 msgid "Submit" msgstr "Отправить" #: templates/jet_django.deps.django_filters/rest_framework/crispy_form.html:4 #: templates/jet_django.deps.django_filters/rest_framework/form.html:2 msgid "Field filters" msgstr "Фильтры по полям" #: utils.py:224 msgid "exclude" msgstr "исключая" #: widgets.py:57 msgid "All" msgstr "Все" #: widgets.py:159 msgid "Unknown" msgstr "Не задано" #: widgets.py:160 msgid "Yes" msgstr "Да" #: widgets.py:161 msgid "No" msgstr "Нет" ================================================ FILE: jet_django/deps/django_filters/locale/sk/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-03-25 19:11+0200\n" "PO-Revision-Date: 2018-03-25 19:18+0058\n" "Last-Translator: b'Erik Telepovsky '\n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Translated-Using: django-rosetta 0.8.1\n" #: conf.py:17 msgid "date" msgstr "dátum" #: conf.py:18 msgid "year" msgstr "rok" #: conf.py:19 msgid "month" msgstr "mesiac" #: conf.py:20 msgid "day" msgstr "deň" #: conf.py:21 msgid "week day" msgstr "deň týždňa" #: conf.py:22 msgid "hour" msgstr "hodina" #: conf.py:23 msgid "minute" msgstr "minúta" #: conf.py:24 msgid "second" msgstr "sekunda" #: conf.py:29 conf.py:30 msgid "contains" msgstr "obsahuje" #: conf.py:31 msgid "is in" msgstr "je v" #: conf.py:32 msgid "is greater than" msgstr "je vačší než" #: conf.py:33 msgid "is greater than or equal to" msgstr "je vačší alebo rovný ako" #: conf.py:34 msgid "is less than" msgstr "je menší než" #: conf.py:35 msgid "is less than or equal to" msgstr "je menší alebo rovný ako" #: conf.py:36 conf.py:37 msgid "starts with" msgstr "začína s" #: conf.py:38 conf.py:39 msgid "ends with" msgstr "končí s" #: conf.py:40 msgid "is in range" msgstr "je v rozsahu" #: conf.py:42 conf.py:43 msgid "matches regex" msgstr "spĺňa regex" #: conf.py:44 conf.py:52 msgid "search" msgstr "hľadať" #: conf.py:47 msgid "is contained by" msgstr "je obsiahnutý" #: conf.py:48 msgid "overlaps" msgstr "presahuje" #: conf.py:49 msgid "has key" msgstr "má kľúč" #: conf.py:50 msgid "has keys" msgstr "má kľúče" #: conf.py:51 msgid "has any keys" msgstr "má akékoľvek kľúče" #: fields.py:178 msgid "Range query expects two values." msgstr "Rozsah očakáva dve hodnoty." #: filters.py:429 msgid "Any date" msgstr "Akýkoľvek dátum" #: filters.py:430 msgid "Today" msgstr "Dnes" #: filters.py:435 msgid "Past 7 days" msgstr "Posledných 7 dní" #: filters.py:439 msgid "This month" msgstr "Tento mesiac" #: filters.py:443 msgid "This year" msgstr "Tento rok" #: filters.py:446 msgid "Yesterday" msgstr "Včera" #: filters.py:512 msgid "Multiple values may be separated by commas." msgstr "Viacero hodnôt môže byť oddelených čiarkami." #: filters.py:591 #, python-format msgid "%s (descending)" msgstr "%s (klesajúco)" #: filters.py:607 msgid "Ordering" msgstr "Zoradenie" #: rest_framework/filterset.py:30 #: templates/jet_django.deps.django_filters/rest_framework/form.html:5 msgid "Submit" msgstr "Potvrdiť" #: templates/jet_django.deps.django_filters/rest_framework/crispy_form.html:4 #: templates/jet_django.deps.django_filters/rest_framework/form.html:2 msgid "Field filters" msgstr "Filtre poľa" #: utils.py:224 msgid "exclude" msgstr "neobsahuje" #: widgets.py:57 msgid "All" msgstr "Všetky" #: widgets.py:159 msgid "Unknown" msgstr "Neznáme" #: widgets.py:160 msgid "Yes" msgstr "Áno" #: widgets.py:161 msgid "No" msgstr "Nie" ================================================ FILE: jet_django/deps/django_filters/locale/uk/LC_MESSAGES/django.po ================================================ # msgid "" msgstr "" "Project-Id-Version: django-filter\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2018-01-24 11:03+0500\n" "PO-Revision-Date: 2016-09-29 11:47+0300\n" "Last-Translator: Eugena Mikhaylikova \n" "Language-Team: TextTempearture\n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Poedit 1.8.9\n" #: conf.py:17 msgid "date" msgstr "дата" #: conf.py:18 msgid "year" msgstr "рік" #: conf.py:19 msgid "month" msgstr "місяць" #: conf.py:20 msgid "day" msgstr "день" #: conf.py:21 msgid "week day" msgstr "день тижня" #: conf.py:22 msgid "hour" msgstr "година" #: conf.py:23 msgid "minute" msgstr "хвилина" #: conf.py:24 msgid "second" msgstr "секунда" #: conf.py:29 conf.py:30 msgid "contains" msgstr "містить" #: conf.py:31 msgid "is in" msgstr "в" #: conf.py:32 msgid "is greater than" msgstr "більше ніж" #: conf.py:33 msgid "is greater than or equal to" msgstr "більше або дорівнює" #: conf.py:34 msgid "is less than" msgstr "менше ніж" #: conf.py:35 msgid "is less than or equal to" msgstr "менше або дорівнює" #: conf.py:36 conf.py:37 msgid "starts with" msgstr "починається" #: conf.py:38 conf.py:39 msgid "ends with" msgstr "закінчується" #: conf.py:40 msgid "is in range" msgstr "в діапазоні" #: conf.py:42 conf.py:43 msgid "matches regex" msgstr "відповідає регулярному виразу" #: conf.py:44 conf.py:52 msgid "search" msgstr "пошук" #: conf.py:47 msgid "is contained by" msgstr "міститься в" #: conf.py:48 msgid "overlaps" msgstr "перекривається" #: conf.py:49 msgid "has key" msgstr "має ключ" #: conf.py:50 msgid "has keys" msgstr "має ключі" #: conf.py:51 msgid "has any keys" msgstr "має будь-які ключі" #: fields.py:178 msgid "Range query expects two values." msgstr "Запит діапазону очікує два значення." #: filters.py:429 msgid "Any date" msgstr "Будь-яка дата" #: filters.py:430 msgid "Today" msgstr "Сьогодні" #: filters.py:435 msgid "Past 7 days" msgstr "Минулі 7 днів" #: filters.py:439 msgid "This month" msgstr "За цей місяць" #: filters.py:443 msgid "This year" msgstr "В цьому році" #: filters.py:446 msgid "Yesterday" msgstr "Вчора" #: filters.py:512 msgid "Multiple values may be separated by commas." msgstr "Кілька значень можуть бути розділені комами." #: filters.py:591 msgid "%s (descending)" msgstr "%s (по спадаючій)" #: filters.py:607 msgid "Ordering" msgstr "Порядок" #: rest_framework/filterset.py:30 #: templates/jet_django.deps.django_filters/rest_framework/form.html:5 msgid "Submit" msgstr "Відправити" #: templates/jet_django.deps.django_filters/rest_framework/crispy_form.html:4 #: templates/jet_django.deps.django_filters/rest_framework/form.html:2 msgid "Field filters" msgstr "Фільтри по полях" #: utils.py:224 msgid "exclude" msgstr "виключаючи" #: widgets.py:57 msgid "All" msgstr "Усе" #: widgets.py:159 msgid "Unknown" msgstr "Не задано" #: widgets.py:160 msgid "Yes" msgstr "Так" #: widgets.py:161 msgid "No" msgstr "Немає" ================================================ FILE: jet_django/deps/django_filters/locale/zh_CN/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # Kane Blueriver , 2016. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-01-30 17:39+0800\n" "PO-Revision-Date: 2016-01-30 17:50+0800\n" "Last-Translator: Kane Blueriver \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: filters.py:62 msgid "This is an exclusion filter" msgstr "未启用该过滤器" #: filters.py:62 msgid "Filter" msgstr "过滤器" #: filters.py:264 msgid "Any date" msgstr "任何时刻" #: filters.py:265 msgid "Today" msgstr "今日" #: filters.py:270 msgid "Past 7 days" msgstr "过去 7 日" #: filters.py:274 msgid "This month" msgstr "本月" #: filters.py:278 msgid "This year" msgstr "今年" #: filters.py:281 msgid "Yesterday" msgstr "昨日" #: filterset.py:398 filterset.py:409 #, python-format msgid "%s (descending)" msgstr "%s(降序)" #: filterset.py:411 msgid "Ordering" msgstr "排序" #: widgets.py:60 msgid "All" msgstr "全部" ================================================ FILE: jet_django/deps/django_filters/models.py ================================================ ================================================ FILE: jet_django/deps/django_filters/rest_framework/__init__.py ================================================ # flake8: noqa from .backends import DjangoFilterBackend from .filterset import FilterSet from .filters import * ================================================ FILE: jet_django/deps/django_filters/rest_framework/backends.py ================================================ import warnings from django.template import loader from django.utils.deprecation import RenameMethodsBase from . import filters, filterset from .. import compat, utils # TODO: remove metaclass in 2.1 class RenameAttributes(utils.RenameAttributesBase, RenameMethodsBase): renamed_attributes = ( ('default_filter_set', 'filterset_base', utils.MigrationNotice), ) renamed_methods = ( ('get_filter_class', 'get_filterset_class', utils.MigrationNotice), ) class DjangoFilterBackend(metaclass=RenameAttributes): filterset_base = filterset.FilterSet raise_exception = True @property def template(self): if compat.is_crispy(): return 'jet_django.deps.django_filters/rest_framework/crispy_form.html' return 'jet_django.deps.django_filters/rest_framework/form.html' def get_filterset(self, request, queryset, view): filterset_class = self.get_filterset_class(view, queryset) if filterset_class is None: return None kwargs = self.get_filterset_kwargs(request, queryset, view) return filterset_class(**kwargs) def get_filterset_class(self, view, queryset=None): """ Return the `FilterSet` class used to filter the queryset. """ filterset_class = getattr(view, 'filterset_class', None) filterset_fields = getattr(view, 'filterset_fields', None) # TODO: remove assertion in 2.1 if filterset_class is None and hasattr(view, 'filter_class'): utils.deprecate( "`%s.filter_class` attribute should be renamed `filterset_class`." % view.__class__.__name__) filterset_class = getattr(view, 'filter_class', None) # TODO: remove assertion in 2.1 if filterset_fields is None and hasattr(view, 'filter_fields'): utils.deprecate( "`%s.filter_fields` attribute should be renamed `filterset_fields`." % view.__class__.__name__) filterset_fields = getattr(view, 'filter_fields', None) if filterset_class: filterset_model = filterset_class._meta.model # FilterSets do not need to specify a Meta class if filterset_model and queryset is not None: assert issubclass(queryset.model, filterset_model), \ 'FilterSet model %s does not match queryset model %s' % \ (filterset_model, queryset.model) return filterset_class if filterset_fields and queryset is not None: MetaBase = getattr(self.filterset_base, 'Meta', object) class AutoFilterSet(self.filterset_base): class Meta(MetaBase): model = queryset.model fields = filterset_fields return AutoFilterSet return None def get_filterset_kwargs(self, request, queryset, view): return { 'data': request.query_params, 'queryset': queryset, 'request': request, } def filter_queryset(self, request, queryset, view): filterset = self.get_filterset(request, queryset, view) if filterset is None: return queryset if not filterset.is_valid() and self.raise_exception: raise utils.translate_validation(filterset.errors) return filterset.qs def to_html(self, request, queryset, view): filterset = self.get_filterset(request, queryset, view) if filterset is None: return None template = loader.get_template(self.template) context = {'filter': filterset} return template.render(context, request) def get_coreschema_field(self, field): if isinstance(field, filters.NumberFilter): field_cls = compat.coreschema.Number else: field_cls = compat.coreschema.String return field_cls( description=str(field.extra.get('help_text', '')) ) def get_schema_fields(self, view): # This is not compatible with widgets where the query param differs from the # filter's attribute name. Notably, this includes `MultiWidget`, where query # params will be of the format `_0`, `_1`, etc... assert compat.coreapi is not None, 'coreapi must be installed to use `get_schema_fields()`' assert compat.coreschema is not None, 'coreschema must be installed to use `get_schema_fields()`' try: queryset = view.get_queryset() except Exception: queryset = None warnings.warn( "{} is not compatible with schema generation".format(view.__class__) ) filterset_class = self.get_filterset_class(view, queryset) return [] if not filterset_class else [ compat.coreapi.Field( name=field_name, required=field.extra['required'], location='query', schema=self.get_coreschema_field(field) ) for field_name, field in filterset_class.base_filters.items() ] ================================================ FILE: jet_django/deps/django_filters/rest_framework/filters.py ================================================ from jet_django.deps.django_filters import filters from ..filters import * # noqa from ..widgets import BooleanWidget __all__ = filters.__all__ class BooleanFilter(filters.BooleanFilter): def __init__(self, *args, **kwargs): kwargs.setdefault('widget', BooleanWidget) super().__init__(*args, **kwargs) ================================================ FILE: jet_django/deps/django_filters/rest_framework/filterset.py ================================================ from copy import deepcopy from django.db import models from django.utils.translation import ugettext_lazy as _ from jet_django.deps.django_filters import filterset from .. import compat from .filters import BooleanFilter, IsoDateTimeFilter FILTER_FOR_DBFIELD_DEFAULTS = deepcopy(filterset.FILTER_FOR_DBFIELD_DEFAULTS) FILTER_FOR_DBFIELD_DEFAULTS.update({ models.DateTimeField: {'filter_class': IsoDateTimeFilter}, models.BooleanField: {'filter_class': BooleanFilter}, models.NullBooleanField: {'filter_class': BooleanFilter}, }) class FilterSet(filterset.FilterSet): FILTER_DEFAULTS = FILTER_FOR_DBFIELD_DEFAULTS @property def form(self): form = super().form if compat.is_crispy(): from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout, Submit layout_components = list(form.fields.keys()) + [ Submit('', _('Submit'), css_class='btn-default'), ] helper = FormHelper() helper.form_method = 'GET' helper.template_pack = 'bootstrap3' helper.layout = Layout(*layout_components) form.helper = helper return form ================================================ FILE: jet_django/deps/django_filters/utils.py ================================================ import warnings from collections import OrderedDict import django from django.conf import settings from django.core.exceptions import FieldError from django.db import models from django.db.models.constants import LOOKUP_SEP from django.db.models.expressions import Expression from django.db.models.fields import FieldDoesNotExist from django.db.models.fields.related import ForeignObjectRel, RelatedField from django.utils import timezone from django.utils.encoding import force_text from django.utils.text import capfirst from django.utils.translation import ugettext as _ from .exceptions import FieldLookupError def deprecate(msg, level_modifier=0): warnings.warn(msg, MigrationNotice, stacklevel=3 + level_modifier) class MigrationNotice(DeprecationWarning): url = 'https://django-filter.readthedocs.io/en/master/guide/migration.html' def __init__(self, message): super().__init__('%s See: %s' % (message, self.url)) class RenameAttributesBase(type): """ Handles the deprecation paths when renaming an attribute. It does the following: - Defines accessors that redirect to the renamed attributes. - Complain whenever an old attribute is accessed. This is conceptually based on `django.utils.deprecation.RenameMethodsBase`. """ renamed_attributes = () def __new__(metacls, name, bases, attrs): # remove old attributes before creating class old_names = [r[0] for r in metacls.renamed_attributes] old_names = [name for name in old_names if name in attrs] old_attrs = {name: attrs.pop(name) for name in old_names} # get a handle to any accessors defined on the class cls_getattr = attrs.pop('__getattr__', None) cls_setattr = attrs.pop('__setattr__', None) new_class = super().__new__(metacls, name, bases, attrs) def __getattr__(self, name): name = type(self).get_name(name) if cls_getattr is not None: return cls_getattr(self, name) elif hasattr(super(new_class, self), '__getattr__'): return super(new_class, self).__getattr__(name) return self.__getattribute__(name) def __setattr__(self, name, value): name = type(self).get_name(name) if cls_setattr is not None: return cls_setattr(self, name, value) return super(new_class, self).__setattr__(name, value) new_class.__getattr__ = __getattr__ new_class.__setattr__ = __setattr__ # set renamed attributes for name, value in old_attrs.items(): setattr(new_class, name, value) return new_class def get_name(metacls, name): """ Get the real attribute name. If the attribute has been renamed, the new name will be returned and a deprecation warning issued. """ for renamed_attribute in metacls.renamed_attributes: old_name, new_name, deprecation_warning = renamed_attribute if old_name == name: warnings.warn("`%s.%s` attribute should be renamed `%s`." % (metacls.__name__, old_name, new_name), deprecation_warning, 3) return new_name return name def __getattr__(metacls, name): return super().__getattribute__(metacls.get_name(name)) def __setattr__(metacls, name, value): return super().__setattr__(metacls.get_name(name), value) def try_dbfield(fn, field_class): """ Try ``fn`` with the DB ``field_class`` by walking its MRO until a result is found. ex:: _try_dbfield(field_dict.get, models.CharField) """ # walk the mro, as field_class could be a derived model field. for cls in field_class.mro(): # skip if cls is models.Field if cls is models.Field: continue data = fn(cls) if data: return data def get_all_model_fields(model): opts = model._meta return [ f.name for f in sorted(opts.fields + opts.many_to_many) if not isinstance(f, models.AutoField) and not (getattr(f.remote_field, 'parent_link', False)) ] def get_model_field(model, field_name): """ Get a ``model`` field, traversing relationships in the ``field_name``. ex:: f = get_model_field(Book, 'author__first_name') """ fields = get_field_parts(model, field_name) return fields[-1] if fields else None def get_field_parts(model, field_name): """ Get the field parts that represent the traversable relationships from the base ``model`` to the final field, described by ``field_name``. ex:: >>> parts = get_field_parts(Book, 'author__first_name') >>> [p.verbose_name for p in parts] ['author', 'first name'] """ parts = field_name.split(LOOKUP_SEP) opts = model._meta fields = [] # walk relationships for name in parts: try: field = opts.get_field(name) except FieldDoesNotExist: return None fields.append(field) if isinstance(field, RelatedField): opts = field.remote_field.model._meta elif isinstance(field, ForeignObjectRel): opts = field.related_model._meta return fields def resolve_field(model_field, lookup_expr): """ Resolves a ``lookup_expr`` into its final output field, given the initial ``model_field``. The lookup expression should only contain transforms and lookups, not intermediary model field parts. Note: This method is based on django.db.models.sql.query.Query.build_lookup For more info on the lookup API: https://docs.djangoproject.com/en/1.9/ref/models/lookups/ """ query = model_field.model._default_manager.all().query lhs = Expression(model_field) lookups = lookup_expr.split(LOOKUP_SEP) assert len(lookups) > 0 try: while lookups: name = lookups[0] args = (lhs, name) if django.VERSION < (2, 0): # rest_of_lookups was removed in Django 2.0 args += (lookups,) # If there is just one part left, try first get_lookup() so # that if the lhs supports both transform and lookup for the # name, then lookup will be picked. if len(lookups) == 1: final_lookup = lhs.get_lookup(name) if not final_lookup: # We didn't find a lookup. We are going to interpret # the name as transform, and do an Exact lookup against # it. lhs = query.try_transform(*args) final_lookup = lhs.get_lookup('exact') return lhs.output_field, final_lookup.lookup_name lhs = query.try_transform(*args) lookups = lookups[1:] except FieldError as e: raise FieldLookupError(model_field, lookup_expr) from e def handle_timezone(value, is_dst=None): if settings.USE_TZ and timezone.is_naive(value): return timezone.make_aware(value, timezone.get_current_timezone(), is_dst) elif not settings.USE_TZ and timezone.is_aware(value): return timezone.make_naive(value, timezone.utc) return value def verbose_field_name(model, field_name): """ Get the verbose name for a given ``field_name``. The ``field_name`` will be traversed across relationships. Returns '[invalid name]' for any field name that cannot be traversed. ex:: >>> verbose_field_name(Article, 'author__name') 'author name' """ if field_name is None: return '[invalid name]' parts = get_field_parts(model, field_name) if not parts: return '[invalid name]' names = [] for part in parts: if isinstance(part, ForeignObjectRel): if part.related_name: names.append(part.related_name.replace('_', ' ')) else: return '[invalid name]' else: names.append(force_text(part.verbose_name)) return ' '.join(names) def verbose_lookup_expr(lookup_expr): """ Get a verbose, more humanized expression for a given ``lookup_expr``. Each part in the expression is looked up in the ``FILTERS_VERBOSE_LOOKUPS`` dictionary. Missing keys will simply default to itself. ex:: >>> verbose_lookup_expr('year__lt') 'year is less than' # with `FILTERS_VERBOSE_LOOKUPS = {}` >>> verbose_lookup_expr('year__lt') 'year lt' """ from .conf import settings as app_settings VERBOSE_LOOKUPS = app_settings.VERBOSE_LOOKUPS or {} lookups = [ force_text(VERBOSE_LOOKUPS.get(lookup, _(lookup))) for lookup in lookup_expr.split(LOOKUP_SEP) ] return ' '.join(lookups) def label_for_filter(model, field_name, lookup_expr, exclude=False): """ Create a generic label suitable for a filter. ex:: >>> label_for_filter(Article, 'author__name', 'in') 'auther name is in' """ name = verbose_field_name(model, field_name) verbose_expression = [_('exclude'), name] if exclude else [name] # iterable lookups indicate a LookupTypeField, which should not be verbose if isinstance(lookup_expr, str): verbose_expression += [verbose_lookup_expr(lookup_expr)] verbose_expression = [force_text(part) for part in verbose_expression if part] verbose_expression = capfirst(' '.join(verbose_expression)) return verbose_expression def translate_validation(error_dict): """ Translate a Django ErrorDict into its DRF ValidationError. """ # it's necessary to lazily import the exception, as it can otherwise create # an import loop when importing django_filters inside the project settings. from jet_django.deps.rest_framework.exceptions import ValidationError, ErrorDetail exc = OrderedDict( (key, [ErrorDetail(e.message, code=e.code) for e in error_list]) for key, error_list in error_dict.as_data().items() ) return ValidationError(exc) ================================================ FILE: jet_django/deps/django_filters/views.py ================================================ from django.core.exceptions import ImproperlyConfigured from django.views.generic import View from django.views.generic.list import ( MultipleObjectMixin, MultipleObjectTemplateResponseMixin ) from .constants import ALL_FIELDS from .filterset import filterset_factory from .utils import MigrationNotice, RenameAttributesBase # TODO: remove metaclass in 2.1 class FilterMixinRenames(RenameAttributesBase): renamed_attributes = ( ('filter_fields', 'filterset_fields', MigrationNotice), ) class FilterMixin(metaclass=FilterMixinRenames): """ A mixin that provides a way to show and handle a FilterSet in a request. """ filterset_class = None filterset_fields = ALL_FIELDS strict = True def get_filterset_class(self): """ Returns the filterset class to use in this view """ if self.filterset_class: return self.filterset_class elif self.model: return filterset_factory(model=self.model, fields=self.filterset_fields) else: msg = "'%s' must define 'filterset_class' or 'model'" raise ImproperlyConfigured(msg % self.__class__.__name__) def get_filterset(self, filterset_class): """ Returns an instance of the filterset to be used in this view. """ kwargs = self.get_filterset_kwargs(filterset_class) return filterset_class(**kwargs) def get_filterset_kwargs(self, filterset_class): """ Returns the keyword arguments for instanciating the filterset. """ kwargs = { 'data': self.request.GET or None, 'request': self.request, } try: kwargs.update({ 'queryset': self.get_queryset(), }) except ImproperlyConfigured: # ignore the error here if the filterset has a model defined # to acquire a queryset from if filterset_class._meta.model is None: msg = ("'%s' does not define a 'model' and the view '%s' does " "not return a valid queryset from 'get_queryset'. You " "must fix one of them.") args = (filterset_class.__name__, self.__class__.__name__) raise ImproperlyConfigured(msg % args) return kwargs def get_strict(self): return self.strict class BaseFilterView(FilterMixin, MultipleObjectMixin, View): def get(self, request, *args, **kwargs): filterset_class = self.get_filterset_class() self.filterset = self.get_filterset(filterset_class) if self.filterset.is_valid() or not self.get_strict(): self.object_list = self.filterset.qs else: self.object_list = self.filterset.queryset.none() context = self.get_context_data(filter=self.filterset, object_list=self.object_list) return self.render_to_response(context) class FilterView(MultipleObjectTemplateResponseMixin, BaseFilterView): """ Render some list of objects with filter, set by `self.model` or `self.queryset`. `self.queryset` can actually be any iterable of items, not just a queryset. """ template_name_suffix = '_filter' def object_filter(request, model=None, queryset=None, template_name=None, extra_context=None, context_processors=None, filter_class=None): class ECFilterView(FilterView): """Handle the extra_context from the functional object_filter view""" def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) extra_context = self.kwargs.get('extra_context') or {} for k, v in extra_context.items(): if callable(v): v = v() context[k] = v return context kwargs = dict(model=model, queryset=queryset, template_name=template_name, filterset_class=filter_class) view = ECFilterView.as_view(**kwargs) return view(request, extra_context=extra_context) ================================================ FILE: jet_django/deps/django_filters/widgets.py ================================================ from collections import Iterable from itertools import chain from re import search, sub from django import forms from django.db.models.fields import BLANK_CHOICE_DASH from django.forms.utils import flatatt from django.utils.datastructures import MultiValueDict from django.utils.encoding import force_text from django.utils.http import urlencode from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ class LinkWidget(forms.Widget): def __init__(self, attrs=None, choices=()): super().__init__(attrs) self.choices = choices def value_from_datadict(self, data, files, name): value = super().value_from_datadict(data, files, name) self.data = data return value def render(self, name, value, attrs=None, choices=(), renderer=None): if not hasattr(self, 'data'): self.data = {} if value is None: value = '' final_attrs = self.build_attrs(self.attrs, extra_attrs=attrs) output = ['' % flatatt(final_attrs)] options = self.render_options(choices, [value], name) if options: output.append(options) output.append('') return mark_safe('\n'.join(output)) def render_options(self, choices, selected_choices, name): selected_choices = set(force_text(v) for v in selected_choices) output = [] for option_value, option_label in chain(self.choices, choices): if isinstance(option_label, (list, tuple)): for option in option_label: output.append( self.render_option(name, selected_choices, *option)) else: output.append( self.render_option(name, selected_choices, option_value, option_label)) return '\n'.join(output) def render_option(self, name, selected_choices, option_value, option_label): option_value = force_text(option_value) if option_label == BLANK_CHOICE_DASH[0][1]: option_label = _("All") data = self.data.copy() data[name] = option_value selected = data == self.data or option_value in selected_choices try: url = data.urlencode() except AttributeError: url = urlencode(data) return self.option_string() % { 'attrs': selected and ' class="selected"' or '', 'query_string': url, 'label': force_text(option_label) } def option_string(self): return '
  • %(label)s
  • ' class SuffixedMultiWidget(forms.MultiWidget): """ A MultiWidget that allows users to provide custom suffixes instead of indexes. - Suffixes must be unique. - There must be the same number of suffixes as fields. """ suffixes = [] def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) assert len(self.widgets) == len(self.suffixes) assert len(self.suffixes) == len(set(self.suffixes)) def suffixed(self, name, suffix): return '_'.join([name, suffix]) if suffix else name def get_context(self, name, value, attrs): context = super().get_context(name, value, attrs) for subcontext, suffix in zip(context['widget']['subwidgets'], self.suffixes): subcontext['name'] = self.suffixed(name, suffix) return context def value_from_datadict(self, data, files, name): return [ widget.value_from_datadict(data, files, self.suffixed(name, suffix)) for widget, suffix in zip(self.widgets, self.suffixes) ] def value_omitted_from_data(self, data, files, name): return all( widget.value_omitted_from_data(data, files, self.suffixed(name, suffix)) for widget, suffix in zip(self.widgets, self.suffixes) ) def replace_name(self, output, index): result = search(r'name="(?P.*)_%d"' % index, output) name = result.group('name') name = self.suffixed(name, self.suffixes[index]) name = 'name="%s"' % name return sub(r'name=".*_%d"' % index, name, output) def decompress(self, value): if value is None: return [None, None] return value class RangeWidget(SuffixedMultiWidget): template_name = 'jet_django.deps.django_filters/widgets/multiwidget.html' suffixes = ['min', 'max'] def __init__(self, attrs=None): widgets = (forms.TextInput, forms.TextInput) super().__init__(widgets, attrs) def decompress(self, value): if value: return [value.start, value.stop] return [None, None] class DateRangeWidget(RangeWidget): suffixes = ['after', 'before'] class LookupChoiceWidget(SuffixedMultiWidget): suffixes = [None, 'lookup'] def decompress(self, value): if value is None: return [None, None] return value class BooleanWidget(forms.Select): """Convert true/false values into the internal Python True/False. This can be used for AJAX queries that pass true/false from JavaScript's internal types through. """ def __init__(self, attrs=None): choices = (('', _('Unknown')), ('true', _('Yes')), ('false', _('No'))) super().__init__(attrs, choices) def render(self, name, value, attrs=None, renderer=None): try: value = { True: 'true', False: 'false', '1': 'true', '0': 'false' }[value] except KeyError: value = '' return super().render(name, value, attrs, renderer=renderer) def value_from_datadict(self, data, files, name): value = data.get(name, None) if isinstance(value, str): value = value.lower() return { '1': True, '0': False, 'true': True, 'false': False, True: True, False: False, }.get(value, None) class BaseCSVWidget(forms.Widget): def _isiterable(self, value): return isinstance(value, Iterable) and not isinstance(value, str) def value_from_datadict(self, data, files, name): value = super().value_from_datadict(data, files, name) if value is not None: if value == '': # empty value should parse as an empty list return [] return value.split(',') return None def render(self, name, value, attrs=None, renderer=None): if not self._isiterable(value): value = [value] if len(value) <= 1: # delegate to main widget (Select, etc...) if not multiple values value = value[0] if value else '' return super().render(name, value, attrs, renderer=renderer) # if we have multiple values, we need to force render as a text input # (otherwise, the additional values are lost) surrogate = forms.TextInput() value = [force_text(surrogate.format_value(v)) for v in value] value = ','.join(list(value)) return surrogate.render(name, value, attrs, renderer=renderer) class CSVWidget(BaseCSVWidget, forms.TextInput): pass class QueryArrayWidget(BaseCSVWidget, forms.TextInput): """ Enables request query array notation that might be consumed by MultipleChoiceFilter 1. Values can be provided as csv string: ?foo=bar,baz 2. Values can be provided as query array: ?foo[]=bar&foo[]=baz 3. Values can be provided as query array: ?foo=bar&foo=baz Note: Duplicate and empty values are skipped from results """ def value_from_datadict(self, data, files, name): if not isinstance(data, MultiValueDict): for key, value in data.items(): # treat value as csv string: ?foo=1,2 if isinstance(value, str): data[key] = [x.strip() for x in value.rstrip(',').split(',') if x] data = MultiValueDict(data) values_list = data.getlist(name, data.getlist('%s[]' % name)) or [] # apparently its an array, so no need to process it's values as csv # ?foo=1&foo=2 -> data.getlist(foo) -> foo = [1, 2] # ?foo[]=1&foo[]=2 -> data.getlist(foo[]) -> foo = [1, 2] if len(values_list) > 0: ret = [x for x in values_list if x] else: ret = [] return list(set(ret)) ================================================ FILE: jet_django/deps/rest_framework/__init__.py ================================================ r""" ______ _____ _____ _____ __ | ___ \ ___/ ___|_ _| / _| | | | |_/ / |__ \ `--. | | | |_ _ __ __ _ _ __ ___ _____ _____ _ __| |__ | /| __| `--. \ | | | _| '__/ _` | '_ ` _ \ / _ \ \ /\ / / _ \| '__| |/ / | |\ \| |___/\__/ / | | | | | | | (_| | | | | | | __/\ V V / (_) | | | < \_| \_\____/\____/ \_/ |_| |_| \__,_|_| |_| |_|\___| \_/\_/ \___/|_| |_|\_| """ __title__ = 'Django REST framework' __version__ = '3.8.2' __author__ = 'Tom Christie' __license__ = 'BSD 2-Clause' __copyright__ = 'Copyright 2011-2018 Tom Christie' # Version synonym VERSION = __version__ # Header encoding (see RFC5987) HTTP_HEADER_ENCODING = 'iso-8859-1' # Default datetime input and output formats ISO_8601 = 'iso-8601' default_app_config = 'jet_django.deps.rest_framework.apps.RestFrameworkConfig' ================================================ FILE: jet_django/deps/rest_framework/apps.py ================================================ from django.apps import AppConfig class RestFrameworkConfig(AppConfig): name = 'jet_django.deps.rest_framework' verbose_name = "Django REST framework" def ready(self): # Add System checks from .checks import pagination_system_check # NOQA ================================================ FILE: jet_django/deps/rest_framework/authentication.py ================================================ """ Provides various authentication policies. """ from __future__ import unicode_literals import base64 import binascii from django.contrib.auth import get_user_model from django.middleware.csrf import CsrfViewMiddleware from django.utils.six import text_type from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework import HTTP_HEADER_ENCODING, exceptions from jet_django.deps.rest_framework.compat import authenticate def get_authorization_header(request): """ Return request's 'Authorization:' header, as a bytestring. Hide some test client ickyness where the header can be unicode. """ auth = request.META.get('HTTP_AUTHORIZATION', b'') if isinstance(auth, text_type): # Work around django test client oddness auth = auth.encode(HTTP_HEADER_ENCODING) return auth class CSRFCheck(CsrfViewMiddleware): def _reject(self, request, reason): # Return the failure reason instead of an HttpResponse return reason class BaseAuthentication(object): """ All authentication classes should extend BaseAuthentication. """ def authenticate(self, request): """ Authenticate the request and return a two-tuple of (user, token). """ raise NotImplementedError(".authenticate() must be overridden.") def authenticate_header(self, request): """ Return a string to be used as the value of the `WWW-Authenticate` header in a `401 Unauthenticated` response, or `None` if the authentication scheme should return `403 Permission Denied` responses. """ pass class BasicAuthentication(BaseAuthentication): """ HTTP Basic authentication against username/password. """ www_authenticate_realm = 'api' def authenticate(self, request): """ Returns a `User` if a correct username and password have been supplied using HTTP Basic authentication. Otherwise returns `None`. """ auth = get_authorization_header(request).split() if not auth or auth[0].lower() != b'basic': return None if len(auth) == 1: msg = _('Invalid basic header. No credentials provided.') raise exceptions.AuthenticationFailed(msg) elif len(auth) > 2: msg = _('Invalid basic header. Credentials string should not contain spaces.') raise exceptions.AuthenticationFailed(msg) try: auth_parts = base64.b64decode(auth[1]).decode(HTTP_HEADER_ENCODING).partition(':') except (TypeError, UnicodeDecodeError, binascii.Error): msg = _('Invalid basic header. Credentials not correctly base64 encoded.') raise exceptions.AuthenticationFailed(msg) userid, password = auth_parts[0], auth_parts[2] return self.authenticate_credentials(userid, password, request) def authenticate_credentials(self, userid, password, request=None): """ Authenticate the userid and password against username and password with optional request for context. """ credentials = { get_user_model().USERNAME_FIELD: userid, 'password': password } user = authenticate(request=request, **credentials) if user is None: raise exceptions.AuthenticationFailed(_('Invalid username/password.')) if not user.is_active: raise exceptions.AuthenticationFailed(_('User inactive or deleted.')) return (user, None) def authenticate_header(self, request): return 'Basic realm="%s"' % self.www_authenticate_realm class SessionAuthentication(BaseAuthentication): """ Use Django's session framework for authentication. """ def authenticate(self, request): """ Returns a `User` if the request session currently has a logged in user. Otherwise returns `None`. """ # Get the session-based user from the underlying HttpRequest object user = getattr(request._request, 'user', None) # Unauthenticated, CSRF validation not required if not user or not user.is_active: return None self.enforce_csrf(request) # CSRF passed with authenticated user return (user, None) def enforce_csrf(self, request): """ Enforce CSRF validation for session based authentication. """ reason = CSRFCheck().process_view(request, None, (), {}) if reason: # CSRF failed, bail with explicit error message raise exceptions.PermissionDenied('CSRF Failed: %s' % reason) class TokenAuthentication(BaseAuthentication): """ Simple token based authentication. Clients should authenticate by passing the token key in the "Authorization" HTTP header, prepended with the string "Token ". For example: Authorization: Token 401f7ac837da42b97f613d789819ff93537bee6a """ keyword = 'Token' model = None def get_model(self): if self.model is not None: return self.model from jet_django.deps.rest_framework.authtoken.models import Token return Token """ A custom token model may be used, but must have the following properties. * key -- The string identifying the token * user -- The user to which the token belongs """ def authenticate(self, request): auth = get_authorization_header(request).split() if not auth or auth[0].lower() != self.keyword.lower().encode(): return None if len(auth) == 1: msg = _('Invalid token header. No credentials provided.') raise exceptions.AuthenticationFailed(msg) elif len(auth) > 2: msg = _('Invalid token header. Token string should not contain spaces.') raise exceptions.AuthenticationFailed(msg) try: token = auth[1].decode() except UnicodeError: msg = _('Invalid token header. Token string should not contain invalid characters.') raise exceptions.AuthenticationFailed(msg) return self.authenticate_credentials(token) def authenticate_credentials(self, key): model = self.get_model() try: token = model.objects.select_related('user').get(key=key) except model.DoesNotExist: raise exceptions.AuthenticationFailed(_('Invalid token.')) if not token.user.is_active: raise exceptions.AuthenticationFailed(_('User inactive or deleted.')) return (token.user, token) def authenticate_header(self, request): return self.keyword class RemoteUserAuthentication(BaseAuthentication): """ REMOTE_USER authentication. To use this, set up your web server to perform authentication, which will set the REMOTE_USER environment variable. You will need to have 'django.contrib.auth.backends.RemoteUserBackend in your AUTHENTICATION_BACKENDS setting """ # Name of request header to grab username from. This will be the key as # used in the request.META dictionary, i.e. the normalization of headers to # all uppercase and the addition of "HTTP_" prefix apply. header = "REMOTE_USER" def authenticate(self, request): user = authenticate(remote_user=request.META.get(self.header)) if user and user.is_active: return (user, None) ================================================ FILE: jet_django/deps/rest_framework/authtoken/__init__.py ================================================ default_app_config = 'jet_django.deps.rest_framework.authtoken.apps.AuthTokenConfig' ================================================ FILE: jet_django/deps/rest_framework/authtoken/admin.py ================================================ from django.contrib import admin from jet_django.deps.rest_framework.authtoken.models import Token class TokenAdmin(admin.ModelAdmin): list_display = ('key', 'user', 'created') fields = ('user',) ordering = ('-created',) admin.site.register(Token, TokenAdmin) ================================================ FILE: jet_django/deps/rest_framework/authtoken/apps.py ================================================ from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ class AuthTokenConfig(AppConfig): name = 'jet_django.deps.rest_framework.authtoken' verbose_name = _("Auth Token") ================================================ FILE: jet_django/deps/rest_framework/authtoken/management/__init__.py ================================================ ================================================ FILE: jet_django/deps/rest_framework/authtoken/management/commands/__init__.py ================================================ ================================================ FILE: jet_django/deps/rest_framework/authtoken/management/commands/drf_create_token.py ================================================ from django.contrib.auth import get_user_model from django.core.management.base import BaseCommand, CommandError from jet_django.deps.rest_framework.authtoken.models import Token UserModel = get_user_model() class Command(BaseCommand): help = 'Create DRF Token for a given user' def create_user_token(self, username, reset_token): user = UserModel._default_manager.get_by_natural_key(username) if reset_token: Token.objects.filter(user=user).delete() token = Token.objects.get_or_create(user=user) return token[0] def add_arguments(self, parser): parser.add_argument('username', type=str) parser.add_argument( '-r', '--reset', action='store_true', dest='reset_token', default=False, help='Reset existing User token and create a new one', ) def handle(self, *args, **options): username = options['username'] reset_token = options['reset_token'] try: token = self.create_user_token(username, reset_token) except UserModel.DoesNotExist: raise CommandError( 'Cannot create the Token: user {0} does not exist'.format( username) ) self.stdout.write( 'Generated token {0} for user {1}'.format(token.key, username)) ================================================ FILE: jet_django/deps/rest_framework/authtoken/migrations/0001_initial.py ================================================ # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Token', fields=[ ('key', models.CharField(primary_key=True, serialize=False, max_length=40)), ('created', models.DateTimeField(auto_now_add=True)), ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL, related_name='auth_token', on_delete=models.CASCADE)), ], options={ }, bases=(models.Model,), ), ] ================================================ FILE: jet_django/deps/rest_framework/authtoken/migrations/0002_auto_20160226_1747.py ================================================ # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('authtoken', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='token', options={'verbose_name_plural': 'Tokens', 'verbose_name': 'Token'}, ), migrations.AlterField( model_name='token', name='created', field=models.DateTimeField(verbose_name='Created', auto_now_add=True), ), migrations.AlterField( model_name='token', name='key', field=models.CharField(verbose_name='Key', max_length=40, primary_key=True, serialize=False), ), migrations.AlterField( model_name='token', name='user', field=models.OneToOneField(to=settings.AUTH_USER_MODEL, verbose_name='User', related_name='auth_token', on_delete=models.CASCADE), ), ] ================================================ FILE: jet_django/deps/rest_framework/authtoken/migrations/__init__.py ================================================ ================================================ FILE: jet_django/deps/rest_framework/authtoken/models.py ================================================ import binascii import os from django.conf import settings from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ @python_2_unicode_compatible class Token(models.Model): """ The default authorization token model. """ key = models.CharField(_("Key"), max_length=40, primary_key=True) user = models.OneToOneField( settings.AUTH_USER_MODEL, related_name='auth_token', on_delete=models.CASCADE, verbose_name=_("User") ) created = models.DateTimeField(_("Created"), auto_now_add=True) class Meta: # Work around for a bug in Django: # https://code.djangoproject.com/ticket/19422 # # Also see corresponding ticket: # https://github.com/encode/django-rest-framework/issues/705 abstract = 'jet_django.deps.rest_framework.authtoken' not in settings.INSTALLED_APPS verbose_name = _("Token") verbose_name_plural = _("Tokens") def save(self, *args, **kwargs): if not self.key: self.key = self.generate_key() return super(Token, self).save(*args, **kwargs) def generate_key(self): return binascii.hexlify(os.urandom(20)).decode() def __str__(self): return self.key ================================================ FILE: jet_django/deps/rest_framework/authtoken/serializers.py ================================================ from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework import serializers from jet_django.deps.rest_framework.compat import authenticate class AuthTokenSerializer(serializers.Serializer): username = serializers.CharField(label=_("Username")) password = serializers.CharField( label=_("Password"), style={'input_type': 'password'}, trim_whitespace=False ) def validate(self, attrs): username = attrs.get('username') password = attrs.get('password') if username and password: user = authenticate(request=self.context.get('request'), username=username, password=password) # The authenticate call simply returns None for is_active=False # users. (Assuming the default ModelBackend authentication # backend.) if not user: msg = _('Unable to log in with provided credentials.') raise serializers.ValidationError(msg, code='authorization') else: msg = _('Must include "username" and "password".') raise serializers.ValidationError(msg, code='authorization') attrs['user'] = user return attrs ================================================ FILE: jet_django/deps/rest_framework/authtoken/views.py ================================================ from jet_django.deps.rest_framework import parsers, renderers from jet_django.deps.rest_framework.authtoken.models import Token from jet_django.deps.rest_framework.authtoken.serializers import AuthTokenSerializer from jet_django.deps.rest_framework.compat import coreapi, coreschema from jet_django.deps.rest_framework.response import Response from jet_django.deps.rest_framework.schemas import ManualSchema from jet_django.deps.rest_framework.views import APIView class ObtainAuthToken(APIView): throttle_classes = () permission_classes = () parser_classes = (parsers.FormParser, parsers.MultiPartParser, parsers.JSONParser,) renderer_classes = (renderers.JSONRenderer,) serializer_class = AuthTokenSerializer if coreapi is not None and coreschema is not None: schema = ManualSchema( fields=[ coreapi.Field( name="username", required=True, location='form', schema=coreschema.String( title="Username", description="Valid username for authentication", ), ), coreapi.Field( name="password", required=True, location='form', schema=coreschema.String( title="Password", description="Valid password for authentication", ), ), ], encoding="application/json", ) def post(self, request, *args, **kwargs): serializer = self.serializer_class(data=request.data, context={'request': request}) serializer.is_valid(raise_exception=True) user = serializer.validated_data['user'] token, created = Token.objects.get_or_create(user=user) return Response({'token': token.key}) obtain_auth_token = ObtainAuthToken.as_view() ================================================ FILE: jet_django/deps/rest_framework/checks.py ================================================ from django.core.checks import Tags, Warning, register @register(Tags.compatibility) def pagination_system_check(app_configs, **kwargs): errors = [] # Use of default page size setting requires a default Paginator class from jet_django.deps.rest_framework.settings import api_settings if api_settings.PAGE_SIZE and not api_settings.DEFAULT_PAGINATION_CLASS: errors.append( Warning( "You have specified a default PAGE_SIZE pagination rest_framework setting," "without specifying also a DEFAULT_PAGINATION_CLASS.", hint="The default for DEFAULT_PAGINATION_CLASS is None. " "In previous versions this was PageNumberPagination. " "If you wish to define PAGE_SIZE globally whilst defining " "pagination_class on a per-view basis you may silence this check.", id="rest_framework.W001" ) ) return errors ================================================ FILE: jet_django/deps/rest_framework/compat.py ================================================ """ The `compat` module provides support for backwards compatibility with older versions of Django/Python, and compatibility wrappers around optional packages. """ from __future__ import unicode_literals import django from django.conf import settings from django.core import validators from django.utils import six from django.views.generic import View try: from django.urls import ( # noqa URLPattern, URLResolver, ) except ImportError: # Will be removed in Django 2.0 from django.urls import ( # noqa RegexURLPattern as URLPattern, RegexURLResolver as URLResolver, ) def get_original_route(urlpattern): """ Get the original route/regex that was typed in by the user into the path(), re_path() or url() directive. This is in contrast with get_regex_pattern below, which for RoutePattern returns the raw regex generated from the path(). """ if hasattr(urlpattern, 'pattern'): # Django 2.0 return str(urlpattern.pattern) else: # Django < 2.0 return urlpattern.regex.pattern def get_regex_pattern(urlpattern): """ Get the raw regex out of the urlpattern's RegexPattern or RoutePattern. This is always a regular expression, unlike get_original_route above. """ if hasattr(urlpattern, 'pattern'): # Django 2.0 return urlpattern.pattern.regex.pattern else: # Django < 2.0 return urlpattern.regex.pattern def is_route_pattern(urlpattern): if hasattr(urlpattern, 'pattern'): # Django 2.0 from django.urls.resolvers import RoutePattern return isinstance(urlpattern.pattern, RoutePattern) else: # Django < 2.0 return False def make_url_resolver(regex, urlpatterns): try: # Django 2.0 from django.urls.resolvers import RegexPattern return URLResolver(RegexPattern(regex), urlpatterns) except ImportError: # Django < 2.0 return URLResolver(regex, urlpatterns) def unicode_repr(instance): # Get the repr of an instance, but ensure it is a unicode string # on both python 3 (already the case) and 2 (not the case). if six.PY2: return repr(instance).decode('utf-8') return repr(instance) def unicode_to_repr(value): # Coerce a unicode string to the correct repr return type, depending on # the Python version. We wrap all our `__repr__` implementations with # this and then use unicode throughout internally. if six.PY2: return value.encode('utf-8') return value def unicode_http_header(value): # Coerce HTTP header value to unicode. if isinstance(value, six.binary_type): return value.decode('iso-8859-1') return value def distinct(queryset, base): if settings.DATABASES[queryset.db]["ENGINE"] == "django.db.backends.oracle": # distinct analogue for Oracle users return base.filter(pk__in=set(queryset.values_list('pk', flat=True))) return queryset.distinct() # django.contrib.postgres requires psycopg2 try: from django.contrib.postgres import fields as postgres_fields except ImportError: postgres_fields = None # coreapi is optional (Note that uritemplate is a dependency of coreapi) try: import coreapi import uritemplate except ImportError: coreapi = None uritemplate = None # coreschema is optional try: import coreschema except ImportError: coreschema = None # django-crispy-forms is optional try: import crispy_forms except ImportError: crispy_forms = None # requests is optional try: import requests except ImportError: requests = None # Django-guardian is optional. Import only if guardian is in INSTALLED_APPS # Fixes (#1712). We keep the try/except for the test suite. guardian = None try: if 'guardian' in settings.INSTALLED_APPS: import guardian # noqa except ImportError: pass # PATCH method is not implemented by Django if 'patch' not in View.http_method_names: View.http_method_names = View.http_method_names + ['patch'] # Markdown is optional try: import markdown if markdown.version <= '2.2': HEADERID_EXT_PATH = 'headerid' LEVEL_PARAM = 'level' elif markdown.version < '2.6': HEADERID_EXT_PATH = 'markdown.extensions.headerid' LEVEL_PARAM = 'level' else: HEADERID_EXT_PATH = 'markdown.extensions.toc' LEVEL_PARAM = 'baselevel' def apply_markdown(text): """ Simple wrapper around :func:`markdown.markdown` to set the base level of '#' style headers to

    . """ extensions = [HEADERID_EXT_PATH] extension_configs = { HEADERID_EXT_PATH: { LEVEL_PARAM: '2' } } md = markdown.Markdown( extensions=extensions, extension_configs=extension_configs ) md_filter_add_syntax_highlight(md) return md.convert(text) except ImportError: apply_markdown = None markdown = None try: import pygments from pygments.lexers import get_lexer_by_name, TextLexer from pygments.formatters import HtmlFormatter def pygments_highlight(text, lang, style): lexer = get_lexer_by_name(lang, stripall=False) formatter = HtmlFormatter(nowrap=True, style=style) return pygments.highlight(text, lexer, formatter) def pygments_css(style): formatter = HtmlFormatter(style=style) return formatter.get_style_defs('.highlight') except ImportError: pygments = None def pygments_highlight(text, lang, style): return text def pygments_css(style): return None if markdown is not None and pygments is not None: # starting from this blogpost and modified to support current markdown extensions API # https://zerokspot.com/weblog/2008/06/18/syntax-highlighting-in-markdown-with-pygments/ from markdown.preprocessors import Preprocessor import re class CodeBlockPreprocessor(Preprocessor): pattern = re.compile( r'^\s*``` *([^\n]+)\n(.+?)^\s*```', re.M | re.S) formatter = HtmlFormatter() def run(self, lines): def repl(m): try: lexer = get_lexer_by_name(m.group(1)) except (ValueError, NameError): lexer = TextLexer() code = m.group(2).replace('\t', ' ') code = pygments.highlight(code, lexer, self.formatter) code = code.replace('\n\n', '\n \n').replace('\n', '
    ').replace('\\@', '@') return '\n\n%s\n\n' % code ret = self.pattern.sub(repl, "\n".join(lines)) return ret.split("\n") def md_filter_add_syntax_highlight(md): md.preprocessors.add('highlight', CodeBlockPreprocessor(), "_begin") return True else: def md_filter_add_syntax_highlight(md): return False # pytz is required from Django 1.11. Remove when dropping Django 1.10 support. try: import pytz # noqa from pytz.exceptions import InvalidTimeError except ImportError: InvalidTimeError = Exception # Django 1.x url routing syntax. Remove when dropping Django 1.11 support. try: from django.urls import include, path, re_path, register_converter # noqa except ImportError: from django.conf.urls import include, url # noqa path = None register_converter = None re_path = url # `separators` argument to `json.dumps()` differs between 2.x and 3.x # See: https://bugs.python.org/issue22767 if six.PY3: SHORT_SEPARATORS = (',', ':') LONG_SEPARATORS = (', ', ': ') INDENT_SEPARATORS = (',', ': ') else: SHORT_SEPARATORS = (b',', b':') LONG_SEPARATORS = (b', ', b': ') INDENT_SEPARATORS = (b',', b': ') class CustomValidatorMessage(object): """ We need to avoid evaluation of `lazy` translated `message` in `django.core.validators.BaseValidator.__init__`. https://github.com/django/django/blob/75ed5900321d170debef4ac452b8b3cf8a1c2384/django/core/validators.py#L297 Ref: https://github.com/encode/django-rest-framework/pull/5452 """ def __init__(self, *args, **kwargs): self.message = kwargs.pop('message', self.message) super(CustomValidatorMessage, self).__init__(*args, **kwargs) class MinValueValidator(CustomValidatorMessage, validators.MinValueValidator): pass class MaxValueValidator(CustomValidatorMessage, validators.MaxValueValidator): pass class MinLengthValidator(CustomValidatorMessage, validators.MinLengthValidator): pass class MaxLengthValidator(CustomValidatorMessage, validators.MaxLengthValidator): pass def authenticate(request=None, **credentials): from django.contrib.auth import authenticate if django.VERSION < (1, 11): return authenticate(**credentials) else: return authenticate(request=request, **credentials) ================================================ FILE: jet_django/deps/rest_framework/decorators.py ================================================ """ The most important decorator in this module is `@api_view`, which is used for writing function-based views with REST framework. There are also various decorators for setting the API policies on function based views, as well as the `@detail_route` and `@list_route` decorators, which are used to annotate methods on viewsets that should be included by routers. """ from __future__ import unicode_literals import types import warnings from django.utils import six from jet_django.deps.rest_framework.views import APIView def api_view(http_method_names=None, exclude_from_schema=False): """ Decorator that converts a function-based view into an APIView subclass. Takes a list of allowed methods for the view as an argument. """ http_method_names = ['GET'] if (http_method_names is None) else http_method_names def decorator(func): WrappedAPIView = type( six.PY3 and 'WrappedAPIView' or b'WrappedAPIView', (APIView,), {'__doc__': func.__doc__} ) # Note, the above allows us to set the docstring. # It is the equivalent of: # # class WrappedAPIView(APIView): # pass # WrappedAPIView.__doc__ = func.doc <--- Not possible to do this # api_view applied without (method_names) assert not(isinstance(http_method_names, types.FunctionType)), \ '@api_view missing list of allowed HTTP methods' # api_view applied with eg. string instead of list of strings assert isinstance(http_method_names, (list, tuple)), \ '@api_view expected a list of strings, received %s' % type(http_method_names).__name__ allowed_methods = set(http_method_names) | {'options'} WrappedAPIView.http_method_names = [method.lower() for method in allowed_methods] def handler(self, *args, **kwargs): return func(*args, **kwargs) for method in http_method_names: setattr(WrappedAPIView, method.lower(), handler) WrappedAPIView.__name__ = func.__name__ WrappedAPIView.__module__ = func.__module__ WrappedAPIView.renderer_classes = getattr(func, 'renderer_classes', APIView.renderer_classes) WrappedAPIView.parser_classes = getattr(func, 'parser_classes', APIView.parser_classes) WrappedAPIView.authentication_classes = getattr(func, 'authentication_classes', APIView.authentication_classes) WrappedAPIView.throttle_classes = getattr(func, 'throttle_classes', APIView.throttle_classes) WrappedAPIView.permission_classes = getattr(func, 'permission_classes', APIView.permission_classes) WrappedAPIView.schema = getattr(func, 'schema', APIView.schema) if exclude_from_schema: warnings.warn( "The `exclude_from_schema` argument to `api_view` is deprecated. " "Use the `schema` decorator instead, passing `None`.", DeprecationWarning ) WrappedAPIView.exclude_from_schema = exclude_from_schema return WrappedAPIView.as_view() return decorator def renderer_classes(renderer_classes): def decorator(func): func.renderer_classes = renderer_classes return func return decorator def parser_classes(parser_classes): def decorator(func): func.parser_classes = parser_classes return func return decorator def authentication_classes(authentication_classes): def decorator(func): func.authentication_classes = authentication_classes return func return decorator def throttle_classes(throttle_classes): def decorator(func): func.throttle_classes = throttle_classes return func return decorator def permission_classes(permission_classes): def decorator(func): func.permission_classes = permission_classes return func return decorator def schema(view_inspector): def decorator(func): func.schema = view_inspector return func return decorator def action(methods=None, detail=None, url_path=None, url_name=None, **kwargs): """ Mark a ViewSet method as a routable action. Set the `detail` boolean to determine if this action should apply to instance/detail requests or collection/list requests. """ methods = ['get'] if (methods is None) else methods methods = [method.lower() for method in methods] assert detail is not None, ( "@action() missing required argument: 'detail'" ) def decorator(func): func.bind_to_methods = methods func.detail = detail func.url_path = url_path if url_path else func.__name__ func.url_name = url_name if url_name else func.__name__.replace('_', '-') func.kwargs = kwargs return func return decorator def detail_route(methods=None, **kwargs): """ Used to mark a method on a ViewSet that should be routed for detail requests. """ warnings.warn( "`detail_route` is pending deprecation and will be removed in 3.10 in favor of " "`action`, which accepts a `detail` bool. Use `@action(detail=True)` instead.", PendingDeprecationWarning, stacklevel=2 ) def decorator(func): func = action(methods, detail=True, **kwargs)(func) if 'url_name' not in kwargs: func.url_name = func.url_path.replace('_', '-') return func return decorator def list_route(methods=None, **kwargs): """ Used to mark a method on a ViewSet that should be routed for list requests. """ warnings.warn( "`list_route` is pending deprecation and will be removed in 3.10 in favor of " "`action`, which accepts a `detail` bool. Use `@action(detail=False)` instead.", PendingDeprecationWarning, stacklevel=2 ) def decorator(func): func = action(methods, detail=False, **kwargs)(func) if 'url_name' not in kwargs: func.url_name = func.url_path.replace('_', '-') return func return decorator ================================================ FILE: jet_django/deps/rest_framework/documentation.py ================================================ from django.conf.urls import include, url from jet_django.deps.rest_framework.renderers import ( CoreJSONRenderer, DocumentationRenderer, SchemaJSRenderer ) from jet_django.deps.rest_framework.schemas import SchemaGenerator, get_schema_view from jet_django.deps.rest_framework.settings import api_settings def get_docs_view( title=None, description=None, schema_url=None, public=True, patterns=None, generator_class=SchemaGenerator, authentication_classes=api_settings.DEFAULT_AUTHENTICATION_CLASSES, permission_classes=api_settings.DEFAULT_PERMISSION_CLASSES, renderer_classes=None): if renderer_classes is None: renderer_classes = [DocumentationRenderer, CoreJSONRenderer] return get_schema_view( title=title, url=schema_url, description=description, renderer_classes=renderer_classes, public=public, patterns=patterns, generator_class=generator_class, authentication_classes=authentication_classes, permission_classes=permission_classes, ) def get_schemajs_view( title=None, description=None, schema_url=None, public=True, patterns=None, generator_class=SchemaGenerator, authentication_classes=api_settings.DEFAULT_AUTHENTICATION_CLASSES, permission_classes=api_settings.DEFAULT_PERMISSION_CLASSES): renderer_classes = [SchemaJSRenderer] return get_schema_view( title=title, url=schema_url, description=description, renderer_classes=renderer_classes, public=public, patterns=patterns, generator_class=generator_class, authentication_classes=authentication_classes, permission_classes=permission_classes, ) def include_docs_urls( title=None, description=None, schema_url=None, public=True, patterns=None, generator_class=SchemaGenerator, authentication_classes=api_settings.DEFAULT_AUTHENTICATION_CLASSES, permission_classes=api_settings.DEFAULT_PERMISSION_CLASSES, renderer_classes=None): docs_view = get_docs_view( title=title, description=description, schema_url=schema_url, public=public, patterns=patterns, generator_class=generator_class, authentication_classes=authentication_classes, renderer_classes=renderer_classes, permission_classes=permission_classes, ) schema_js_view = get_schemajs_view( title=title, description=description, schema_url=schema_url, public=public, patterns=patterns, generator_class=generator_class, authentication_classes=authentication_classes, permission_classes=permission_classes, ) urls = [ url(r'^$', docs_view, name='docs-index'), url(r'^schema.js$', schema_js_view, name='schema-js') ] return include((urls, 'api-docs'), namespace='api-docs') ================================================ FILE: jet_django/deps/rest_framework/exceptions.py ================================================ """ Handled exceptions raised by REST framework. In addition Django's built in 403 and 404 exceptions are handled. (`django.http.Http404` and `django.core.exceptions.PermissionDenied`) """ from __future__ import unicode_literals import math from django.http import JsonResponse from django.utils import six from django.utils.encoding import force_text from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ungettext from jet_django.deps.rest_framework import status from jet_django.deps.rest_framework.compat import unicode_to_repr from jet_django.deps.rest_framework.utils.serializer_helpers import ReturnDict, ReturnList def _get_error_details(data, default_code=None): """ Descend into a nested data structure, forcing any lazy translation strings or strings into `ErrorDetail`. """ if isinstance(data, list): ret = [ _get_error_details(item, default_code) for item in data ] if isinstance(data, ReturnList): return ReturnList(ret, serializer=data.serializer) return ret elif isinstance(data, dict): ret = { key: _get_error_details(value, default_code) for key, value in data.items() } if isinstance(data, ReturnDict): return ReturnDict(ret, serializer=data.serializer) return ret text = force_text(data) code = getattr(data, 'code', default_code) return ErrorDetail(text, code) def _get_codes(detail): if isinstance(detail, list): return [_get_codes(item) for item in detail] elif isinstance(detail, dict): return {key: _get_codes(value) for key, value in detail.items()} return detail.code def _get_full_details(detail): if isinstance(detail, list): return [_get_full_details(item) for item in detail] elif isinstance(detail, dict): return {key: _get_full_details(value) for key, value in detail.items()} return { 'message': detail, 'code': detail.code } class ErrorDetail(six.text_type): """ A string-like object that can additionally have a code. """ code = None def __new__(cls, string, code=None): self = super(ErrorDetail, cls).__new__(cls, string) self.code = code return self def __eq__(self, other): r = super(ErrorDetail, self).__eq__(other) try: return r and self.code == other.code except AttributeError: return r def __ne__(self, other): return not self.__eq__(other) def __repr__(self): return unicode_to_repr('ErrorDetail(string=%r, code=%r)' % ( six.text_type(self), self.code, )) class APIException(Exception): """ Base class for REST framework exceptions. Subclasses should provide `.status_code` and `.default_detail` properties. """ status_code = status.HTTP_500_INTERNAL_SERVER_ERROR default_detail = _('A server error occurred.') default_code = 'error' def __init__(self, detail=None, code=None): if detail is None: detail = self.default_detail if code is None: code = self.default_code self.detail = _get_error_details(detail, code) def __str__(self): return six.text_type(self.detail) def get_codes(self): """ Return only the code part of the error details. Eg. {"name": ["required"]} """ return _get_codes(self.detail) def get_full_details(self): """ Return both the message & code parts of the error details. Eg. {"name": [{"message": "This field is required.", "code": "required"}]} """ return _get_full_details(self.detail) # The recommended style for using `ValidationError` is to keep it namespaced # under `serializers`, in order to minimize potential confusion with Django's # built in `ValidationError`. For example: # # from jet_django.deps.rest_framework import serializers # raise serializers.ValidationError('Value was invalid') class ValidationError(APIException): status_code = status.HTTP_400_BAD_REQUEST default_detail = _('Invalid input.') default_code = 'invalid' def __init__(self, detail=None, code=None): if detail is None: detail = self.default_detail if code is None: code = self.default_code # For validation failures, we may collect many errors together, # so the details should always be coerced to a list if not already. if not isinstance(detail, dict) and not isinstance(detail, list): detail = [detail] self.detail = _get_error_details(detail, code) class ParseError(APIException): status_code = status.HTTP_400_BAD_REQUEST default_detail = _('Malformed request.') default_code = 'parse_error' class AuthenticationFailed(APIException): status_code = status.HTTP_401_UNAUTHORIZED default_detail = _('Incorrect authentication credentials.') default_code = 'authentication_failed' class NotAuthenticated(APIException): status_code = status.HTTP_401_UNAUTHORIZED default_detail = _('Authentication credentials were not provided.') default_code = 'not_authenticated' class PermissionDenied(APIException): status_code = status.HTTP_403_FORBIDDEN default_detail = _('You do not have permission to perform this action.') default_code = 'permission_denied' class NotFound(APIException): status_code = status.HTTP_404_NOT_FOUND default_detail = _('Not found.') default_code = 'not_found' class MethodNotAllowed(APIException): status_code = status.HTTP_405_METHOD_NOT_ALLOWED default_detail = _('Method "{method}" not allowed.') default_code = 'method_not_allowed' def __init__(self, method, detail=None, code=None): if detail is None: detail = force_text(self.default_detail).format(method=method) super(MethodNotAllowed, self).__init__(detail, code) class NotAcceptable(APIException): status_code = status.HTTP_406_NOT_ACCEPTABLE default_detail = _('Could not satisfy the request Accept header.') default_code = 'not_acceptable' def __init__(self, detail=None, code=None, available_renderers=None): self.available_renderers = available_renderers super(NotAcceptable, self).__init__(detail, code) class UnsupportedMediaType(APIException): status_code = status.HTTP_415_UNSUPPORTED_MEDIA_TYPE default_detail = _('Unsupported media type "{media_type}" in request.') default_code = 'unsupported_media_type' def __init__(self, media_type, detail=None, code=None): if detail is None: detail = force_text(self.default_detail).format(media_type=media_type) super(UnsupportedMediaType, self).__init__(detail, code) class Throttled(APIException): status_code = status.HTTP_429_TOO_MANY_REQUESTS default_detail = _('Request was throttled.') extra_detail_singular = 'Expected available in {wait} second.' extra_detail_plural = 'Expected available in {wait} seconds.' default_code = 'throttled' def __init__(self, wait=None, detail=None, code=None): if detail is None: detail = force_text(self.default_detail) if wait is not None: wait = math.ceil(wait) detail = ' '.join(( detail, force_text(ungettext(self.extra_detail_singular.format(wait=wait), self.extra_detail_plural.format(wait=wait), wait)))) self.wait = wait super(Throttled, self).__init__(detail, code) def server_error(request, *args, **kwargs): """ Generic 500 error handler. """ data = { 'error': 'Server Error (500)' } return JsonResponse(data, status=status.HTTP_500_INTERNAL_SERVER_ERROR) def bad_request(request, exception, *args, **kwargs): """ Generic 400 error handler. """ data = { 'error': 'Bad Request (400)' } return JsonResponse(data, status=status.HTTP_400_BAD_REQUEST) ================================================ FILE: jet_django/deps/rest_framework/fields.py ================================================ from __future__ import unicode_literals import collections import copy import datetime import decimal import functools import inspect import re import uuid from collections import OrderedDict from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.core.exceptions import ValidationError as DjangoValidationError from django.core.validators import ( EmailValidator, RegexValidator, URLValidator, ip_address_validators ) from django.forms import FilePathField as DjangoFilePathField from django.forms import ImageField as DjangoImageField from django.utils import six, timezone from django.utils.dateparse import ( parse_date, parse_datetime, parse_duration, parse_time ) from django.utils.duration import duration_string from django.utils.encoding import is_protected_type, smart_text from django.utils.formats import localize_input, sanitize_separators from django.utils.functional import lazy from django.utils.ipv6 import clean_ipv6_address from django.utils.timezone import utc from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework import ISO_8601 from jet_django.deps.rest_framework.compat import ( InvalidTimeError, MaxLengthValidator, MaxValueValidator, MinLengthValidator, MinValueValidator, unicode_repr, unicode_to_repr ) from jet_django.deps.rest_framework.exceptions import ErrorDetail, ValidationError from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils import html, humanize_datetime, json, representation class empty: """ This class is used to represent no data being provided for a given input or output value. It is required because `None` may be a valid input or output value. """ pass if six.PY3: def is_simple_callable(obj): """ True if the object is a callable that takes no arguments. """ if not (inspect.isfunction(obj) or inspect.ismethod(obj) or isinstance(obj, functools.partial)): return False sig = inspect.signature(obj) params = sig.parameters.values() return all( param.kind == param.VAR_POSITIONAL or param.kind == param.VAR_KEYWORD or param.default != param.empty for param in params ) else: def is_simple_callable(obj): function = inspect.isfunction(obj) method = inspect.ismethod(obj) if not (function or method): return False if method: is_unbound = obj.im_self is None args, _, _, defaults = inspect.getargspec(obj) len_args = len(args) if function or is_unbound else len(args) - 1 len_defaults = len(defaults) if defaults else 0 return len_args <= len_defaults def get_attribute(instance, attrs): """ Similar to Python's built in `getattr(instance, attr)`, but takes a list of nested attributes, instead of a single attribute. Also accepts either attribute lookup on objects or dictionary lookups. """ for attr in attrs: try: if isinstance(instance, collections.Mapping): instance = instance[attr] else: instance = getattr(instance, attr) except ObjectDoesNotExist: return None if is_simple_callable(instance): try: instance = instance() except (AttributeError, KeyError) as exc: # If we raised an Attribute or KeyError here it'd get treated # as an omitted field in `Field.get_attribute()`. Instead we # raise a ValueError to ensure the exception is not masked. raise ValueError('Exception raised in callable attribute "{0}"; original exception was: {1}'.format(attr, exc)) return instance def set_value(dictionary, keys, value): """ Similar to Python's built in `dictionary[key] = value`, but takes a list of nested keys instead of a single key. set_value({'a': 1}, [], {'b': 2}) -> {'a': 1, 'b': 2} set_value({'a': 1}, ['x'], 2) -> {'a': 1, 'x': 2} set_value({'a': 1}, ['x', 'y'], 2) -> {'a': 1, 'x': {'y': 2}} """ if not keys: dictionary.update(value) return for key in keys[:-1]: if key not in dictionary: dictionary[key] = {} dictionary = dictionary[key] dictionary[keys[-1]] = value def to_choices_dict(choices): """ Convert choices into key/value dicts. to_choices_dict([1]) -> {1: 1} to_choices_dict([(1, '1st'), (2, '2nd')]) -> {1: '1st', 2: '2nd'} to_choices_dict([('Group', ((1, '1st'), 2))]) -> {'Group': {1: '1st', 2: '2'}} """ # Allow single, paired or grouped choices style: # choices = [1, 2, 3] # choices = [(1, 'First'), (2, 'Second'), (3, 'Third')] # choices = [('Category', ((1, 'First'), (2, 'Second'))), (3, 'Third')] ret = OrderedDict() for choice in choices: if not isinstance(choice, (list, tuple)): # single choice ret[choice] = choice else: key, value = choice if isinstance(value, (list, tuple)): # grouped choices (category, sub choices) ret[key] = to_choices_dict(value) else: # paired choice (key, display value) ret[key] = value return ret def flatten_choices_dict(choices): """ Convert a group choices dict into a flat dict of choices. flatten_choices_dict({1: '1st', 2: '2nd'}) -> {1: '1st', 2: '2nd'} flatten_choices_dict({'Group': {1: '1st', 2: '2nd'}}) -> {1: '1st', 2: '2nd'} """ ret = OrderedDict() for key, value in choices.items(): if isinstance(value, dict): # grouped choices (category, sub choices) for sub_key, sub_value in value.items(): ret[sub_key] = sub_value else: # choice (key, display value) ret[key] = value return ret def iter_options(grouped_choices, cutoff=None, cutoff_text=None): """ Helper function for options and option groups in templates. """ class StartOptionGroup(object): start_option_group = True end_option_group = False def __init__(self, label): self.label = label class EndOptionGroup(object): start_option_group = False end_option_group = True class Option(object): start_option_group = False end_option_group = False def __init__(self, value, display_text, disabled=False): self.value = value self.display_text = display_text self.disabled = disabled count = 0 for key, value in grouped_choices.items(): if cutoff and count >= cutoff: break if isinstance(value, dict): yield StartOptionGroup(label=key) for sub_key, sub_value in value.items(): if cutoff and count >= cutoff: break yield Option(value=sub_key, display_text=sub_value) count += 1 yield EndOptionGroup() else: yield Option(value=key, display_text=value) count += 1 if cutoff and count >= cutoff and cutoff_text: cutoff_text = cutoff_text.format(count=cutoff) yield Option(value='n/a', display_text=cutoff_text, disabled=True) def get_error_detail(exc_info): """ Given a Django ValidationError, return a list of ErrorDetail, with the `code` populated. """ code = getattr(exc_info, 'code', None) or 'invalid' return [ ErrorDetail(msg, code=code) for msg in exc_info.messages ] class CreateOnlyDefault(object): """ This class may be used to provide default values that are only used for create operations, but that do not return any value for update operations. """ def __init__(self, default): self.default = default def set_context(self, serializer_field): self.is_update = serializer_field.parent.instance is not None if callable(self.default) and hasattr(self.default, 'set_context') and not self.is_update: self.default.set_context(serializer_field) def __call__(self): if self.is_update: raise SkipField() if callable(self.default): return self.default() return self.default def __repr__(self): return unicode_to_repr( '%s(%s)' % (self.__class__.__name__, unicode_repr(self.default)) ) class CurrentUserDefault(object): def set_context(self, serializer_field): self.user = serializer_field.context['request'].user def __call__(self): return self.user def __repr__(self): return unicode_to_repr('%s()' % self.__class__.__name__) class SkipField(Exception): pass REGEX_TYPE = type(re.compile('')) NOT_READ_ONLY_WRITE_ONLY = 'May not set both `read_only` and `write_only`' NOT_READ_ONLY_REQUIRED = 'May not set both `read_only` and `required`' NOT_REQUIRED_DEFAULT = 'May not set both `required` and `default`' USE_READONLYFIELD = 'Field(read_only=True) should be ReadOnlyField' MISSING_ERROR_MESSAGE = ( 'ValidationError raised by `{class_name}`, but error key `{key}` does ' 'not exist in the `error_messages` dictionary.' ) class Field(object): _creation_counter = 0 default_error_messages = { 'required': _('This field is required.'), 'null': _('This field may not be null.') } default_validators = [] default_empty_html = empty initial = None def __init__(self, read_only=False, write_only=False, required=None, default=empty, initial=empty, source=None, label=None, help_text=None, style=None, error_messages=None, validators=None, allow_null=False): self._creation_counter = Field._creation_counter Field._creation_counter += 1 # If `required` is unset, then use `True` unless a default is provided. if required is None: required = default is empty and not read_only # Some combinations of keyword arguments do not make sense. assert not (read_only and write_only), NOT_READ_ONLY_WRITE_ONLY assert not (read_only and required), NOT_READ_ONLY_REQUIRED assert not (required and default is not empty), NOT_REQUIRED_DEFAULT assert not (read_only and self.__class__ == Field), USE_READONLYFIELD self.read_only = read_only self.write_only = write_only self.required = required self.default = default self.source = source self.initial = self.initial if (initial is empty) else initial self.label = label self.help_text = help_text self.style = {} if style is None else style self.allow_null = allow_null if self.default_empty_html is not empty: if default is not empty: self.default_empty_html = default if validators is not None: self.validators = validators[:] # These are set up by `.bind()` when the field is added to a serializer. self.field_name = None self.parent = None # Collect default error message from self and parent classes messages = {} for cls in reversed(self.__class__.__mro__): messages.update(getattr(cls, 'default_error_messages', {})) messages.update(error_messages or {}) self.error_messages = messages def bind(self, field_name, parent): """ Initializes the field name and parent for the field instance. Called when a field is added to the parent serializer instance. """ # In order to enforce a consistent style, we error if a redundant # 'source' argument has been used. For example: # my_field = serializer.CharField(source='my_field') assert self.source != field_name, ( "It is redundant to specify `source='%s'` on field '%s' in " "serializer '%s', because it is the same as the field name. " "Remove the `source` keyword argument." % (field_name, self.__class__.__name__, parent.__class__.__name__) ) self.field_name = field_name self.parent = parent # `self.label` should default to being based on the field name. if self.label is None: self.label = field_name.replace('_', ' ').capitalize() # self.source should default to being the same as the field name. if self.source is None: self.source = field_name # self.source_attrs is a list of attributes that need to be looked up # when serializing the instance, or populating the validated data. if self.source == '*': self.source_attrs = [] else: self.source_attrs = self.source.split('.') # .validators is a lazily loaded property, that gets its default # value from `get_validators`. @property def validators(self): if not hasattr(self, '_validators'): self._validators = self.get_validators() return self._validators @validators.setter def validators(self, validators): self._validators = validators def get_validators(self): return self.default_validators[:] def get_initial(self): """ Return a value to use when the field is being returned as a primitive value, without any object instance. """ if callable(self.initial): return self.initial() return self.initial def get_value(self, dictionary): """ Given the *incoming* primitive data, return the value for this field that should be validated and transformed to a native value. """ if html.is_html_input(dictionary): # HTML forms will represent empty fields as '', and cannot # represent None or False values directly. if self.field_name not in dictionary: if getattr(self.root, 'partial', False): return empty return self.default_empty_html ret = dictionary[self.field_name] if ret == '' and self.allow_null: # If the field is blank, and null is a valid value then # determine if we should use null instead. return '' if getattr(self, 'allow_blank', False) else None elif ret == '' and not self.required: # If the field is blank, and emptiness is valid then # determine if we should use emptiness instead. return '' if getattr(self, 'allow_blank', False) else empty return ret return dictionary.get(self.field_name, empty) def get_attribute(self, instance): """ Given the *outgoing* object instance, return the primitive value that should be used for this field. """ try: return get_attribute(instance, self.source_attrs) except (KeyError, AttributeError) as exc: if self.default is not empty: return self.get_default() if self.allow_null: return None if not self.required: raise SkipField() msg = ( 'Got {exc_type} when attempting to get a value for field ' '`{field}` on serializer `{serializer}`.\nThe serializer ' 'field might be named incorrectly and not match ' 'any attribute or key on the `{instance}` instance.\n' 'Original exception text was: {exc}.'.format( exc_type=type(exc).__name__, field=self.field_name, serializer=self.parent.__class__.__name__, instance=instance.__class__.__name__, exc=exc ) ) raise type(exc)(msg) def get_default(self): """ Return the default value to use when validating data if no input is provided for this field. If a default has not been set for this field then this will simply raise `SkipField`, indicating that no value should be set in the validated data for this field. """ if self.default is empty or getattr(self.root, 'partial', False): # No default, or this is a partial update. raise SkipField() if callable(self.default): if hasattr(self.default, 'set_context'): self.default.set_context(self) return self.default() return self.default def validate_empty_values(self, data): """ Validate empty values, and either: * Raise `ValidationError`, indicating invalid data. * Raise `SkipField`, indicating that the field should be ignored. * Return (True, data), indicating an empty value that should be returned without any further validation being applied. * Return (False, data), indicating a non-empty value, that should have validation applied as normal. """ if self.read_only: return (True, self.get_default()) if data is empty: if getattr(self.root, 'partial', False): raise SkipField() if self.required: self.fail('required') return (True, self.get_default()) if data is None: if not self.allow_null: self.fail('null') return (True, None) return (False, data) def run_validation(self, data=empty): """ Validate a simple representation and return the internal value. The provided data may be `empty` if no representation was included in the input. May raise `SkipField` if the field should not be included in the validated data. """ (is_empty_value, data) = self.validate_empty_values(data) if is_empty_value: return data value = self.to_internal_value(data) self.run_validators(value) return value def run_validators(self, value): """ Test the given value against all the validators on the field, and either raise a `ValidationError` or simply return. """ errors = [] for validator in self.validators: if hasattr(validator, 'set_context'): validator.set_context(self) try: validator(value) except ValidationError as exc: # If the validation error contains a mapping of fields to # errors then simply raise it immediately rather than # attempting to accumulate a list of errors. if isinstance(exc.detail, dict): raise errors.extend(exc.detail) except DjangoValidationError as exc: errors.extend(get_error_detail(exc)) if errors: raise ValidationError(errors) def to_internal_value(self, data): """ Transform the *incoming* primitive data into a native value. """ raise NotImplementedError( '{cls}.to_internal_value() must be implemented.'.format( cls=self.__class__.__name__ ) ) def to_representation(self, value): """ Transform the *outgoing* native value into primitive data. """ raise NotImplementedError( '{cls}.to_representation() must be implemented for field ' '{field_name}. If you do not need to support write operations ' 'you probably want to subclass `ReadOnlyField` instead.'.format( cls=self.__class__.__name__, field_name=self.field_name, ) ) def fail(self, key, **kwargs): """ A helper method that simply raises a validation error. """ try: msg = self.error_messages[key] except KeyError: class_name = self.__class__.__name__ msg = MISSING_ERROR_MESSAGE.format(class_name=class_name, key=key) raise AssertionError(msg) message_string = msg.format(**kwargs) raise ValidationError(message_string, code=key) @property def root(self): """ Returns the top-level serializer for this field. """ root = self while root.parent is not None: root = root.parent return root @property def context(self): """ Returns the context as passed to the root serializer on initialization. """ return getattr(self.root, '_context', {}) def __new__(cls, *args, **kwargs): """ When a field is instantiated, we store the arguments that were used, so that we can present a helpful representation of the object. """ instance = super(Field, cls).__new__(cls) instance._args = args instance._kwargs = kwargs return instance def __deepcopy__(self, memo): """ When cloning fields we instantiate using the arguments it was originally created with, rather than copying the complete state. """ # Treat regexes and validators as immutable. # See https://github.com/encode/django-rest-framework/issues/1954 # and https://github.com/encode/django-rest-framework/pull/4489 args = [ copy.deepcopy(item) if not isinstance(item, REGEX_TYPE) else item for item in self._args ] kwargs = { key: (copy.deepcopy(value) if (key not in ('validators', 'regex')) else value) for key, value in self._kwargs.items() } return self.__class__(*args, **kwargs) def __repr__(self): """ Fields are represented using their initial calling arguments. This allows us to create descriptive representations for serializer instances that show all the declared fields on the serializer. """ return unicode_to_repr(representation.field_repr(self)) # Boolean types... class BooleanField(Field): default_error_messages = { 'invalid': _('"{input}" is not a valid boolean.') } default_empty_html = False initial = False TRUE_VALUES = { 't', 'T', 'y', 'Y', 'yes', 'YES', 'true', 'True', 'TRUE', 'on', 'On', 'ON', '1', 1, True } FALSE_VALUES = { 'f', 'F', 'n', 'N', 'no', 'NO', 'false', 'False', 'FALSE', 'off', 'Off', 'OFF', '0', 0, 0.0, False } def __init__(self, **kwargs): assert 'allow_null' not in kwargs, '`allow_null` is not a valid option. Use `NullBooleanField` instead.' super(BooleanField, self).__init__(**kwargs) def to_internal_value(self, data): try: if data in self.TRUE_VALUES: return True elif data in self.FALSE_VALUES: return False except TypeError: # Input is an unhashable type pass self.fail('invalid', input=data) def to_representation(self, value): if value in self.TRUE_VALUES: return True elif value in self.FALSE_VALUES: return False return bool(value) class NullBooleanField(Field): default_error_messages = { 'invalid': _('"{input}" is not a valid boolean.') } initial = None TRUE_VALUES = { 't', 'T', 'y', 'Y', 'yes', 'YES', 'true', 'True', 'TRUE', 'on', 'On', 'ON', '1', 1, True } FALSE_VALUES = { 'f', 'F', 'n', 'N', 'no', 'NO', 'false', 'False', 'FALSE', 'off', 'Off', 'OFF', '0', 0, 0.0, False } NULL_VALUES = {'n', 'N', 'null', 'Null', 'NULL', '', None} def __init__(self, **kwargs): assert 'allow_null' not in kwargs, '`allow_null` is not a valid option.' kwargs['allow_null'] = True super(NullBooleanField, self).__init__(**kwargs) def to_internal_value(self, data): try: if data in self.TRUE_VALUES: return True elif data in self.FALSE_VALUES: return False elif data in self.NULL_VALUES: return None except TypeError: # Input is an unhashable type pass self.fail('invalid', input=data) def to_representation(self, value): if value in self.NULL_VALUES: return None if value in self.TRUE_VALUES: return True elif value in self.FALSE_VALUES: return False return bool(value) # String types... class CharField(Field): default_error_messages = { 'invalid': _('Not a valid string.'), 'blank': _('This field may not be blank.'), 'max_length': _('Ensure this field has no more than {max_length} characters.'), 'min_length': _('Ensure this field has at least {min_length} characters.') } initial = '' def __init__(self, **kwargs): self.allow_blank = kwargs.pop('allow_blank', False) self.trim_whitespace = kwargs.pop('trim_whitespace', True) self.max_length = kwargs.pop('max_length', None) self.min_length = kwargs.pop('min_length', None) super(CharField, self).__init__(**kwargs) if self.max_length is not None: message = lazy( self.error_messages['max_length'].format, six.text_type)(max_length=self.max_length) self.validators.append( MaxLengthValidator(self.max_length, message=message)) if self.min_length is not None: message = lazy( self.error_messages['min_length'].format, six.text_type)(min_length=self.min_length) self.validators.append( MinLengthValidator(self.min_length, message=message)) def run_validation(self, data=empty): # Test for the empty string here so that it does not get validated, # and so that subclasses do not need to handle it explicitly # inside the `to_internal_value()` method. if data == '' or (self.trim_whitespace and six.text_type(data).strip() == ''): if not self.allow_blank: self.fail('blank') return '' return super(CharField, self).run_validation(data) def to_internal_value(self, data): # We're lenient with allowing basic numerics to be coerced into strings, # but other types should fail. Eg. unclear if booleans should represent as `true` or `True`, # and composites such as lists are likely user error. if isinstance(data, bool) or not isinstance(data, six.string_types + six.integer_types + (float,)): self.fail('invalid') value = six.text_type(data) return value.strip() if self.trim_whitespace else value def to_representation(self, value): return six.text_type(value) class EmailField(CharField): default_error_messages = { 'invalid': _('Enter a valid email address.') } def __init__(self, **kwargs): super(EmailField, self).__init__(**kwargs) validator = EmailValidator(message=self.error_messages['invalid']) self.validators.append(validator) class RegexField(CharField): default_error_messages = { 'invalid': _('This value does not match the required pattern.') } def __init__(self, regex, **kwargs): super(RegexField, self).__init__(**kwargs) validator = RegexValidator(regex, message=self.error_messages['invalid']) self.validators.append(validator) class SlugField(CharField): default_error_messages = { 'invalid': _('Enter a valid "slug" consisting of letters, numbers, underscores or hyphens.'), 'invalid_unicode': _('Enter a valid "slug" consisting of Unicode letters, numbers, underscores, or hyphens.') } def __init__(self, allow_unicode=False, **kwargs): super(SlugField, self).__init__(**kwargs) self.allow_unicode = allow_unicode if self.allow_unicode: validator = RegexValidator(re.compile(r'^[-\w]+\Z', re.UNICODE), message=self.error_messages['invalid_unicode']) else: validator = RegexValidator(re.compile(r'^[-a-zA-Z0-9_]+$'), message=self.error_messages['invalid']) self.validators.append(validator) class URLField(CharField): default_error_messages = { 'invalid': _('Enter a valid URL.') } def __init__(self, **kwargs): super(URLField, self).__init__(**kwargs) validator = URLValidator(message=self.error_messages['invalid']) self.validators.append(validator) class UUIDField(Field): valid_formats = ('hex_verbose', 'hex', 'int', 'urn') default_error_messages = { 'invalid': _('"{value}" is not a valid UUID.'), } def __init__(self, **kwargs): self.uuid_format = kwargs.pop('format', 'hex_verbose') if self.uuid_format not in self.valid_formats: raise ValueError( 'Invalid format for uuid representation. ' 'Must be one of "{0}"'.format('", "'.join(self.valid_formats)) ) super(UUIDField, self).__init__(**kwargs) def to_internal_value(self, data): if not isinstance(data, uuid.UUID): try: if isinstance(data, six.integer_types): return uuid.UUID(int=data) elif isinstance(data, six.string_types): return uuid.UUID(hex=data) else: self.fail('invalid', value=data) except (ValueError): self.fail('invalid', value=data) return data def to_representation(self, value): if self.uuid_format == 'hex_verbose': return str(value) else: return getattr(value, self.uuid_format) class IPAddressField(CharField): """Support both IPAddressField and GenericIPAddressField""" default_error_messages = { 'invalid': _('Enter a valid IPv4 or IPv6 address.'), } def __init__(self, protocol='both', **kwargs): self.protocol = protocol.lower() self.unpack_ipv4 = (self.protocol == 'both') super(IPAddressField, self).__init__(**kwargs) validators, error_message = ip_address_validators(protocol, self.unpack_ipv4) self.validators.extend(validators) def to_internal_value(self, data): if not isinstance(data, six.string_types): self.fail('invalid', value=data) if ':' in data: try: if self.protocol in ('both', 'ipv6'): return clean_ipv6_address(data, self.unpack_ipv4) except DjangoValidationError: self.fail('invalid', value=data) return super(IPAddressField, self).to_internal_value(data) # Number types... class IntegerField(Field): default_error_messages = { 'invalid': _('A valid integer is required.'), 'max_value': _('Ensure this value is less than or equal to {max_value}.'), 'min_value': _('Ensure this value is greater than or equal to {min_value}.'), 'max_string_length': _('String value too large.') } MAX_STRING_LENGTH = 1000 # Guard against malicious string inputs. re_decimal = re.compile(r'\.0*\s*$') # allow e.g. '1.0' as an int, but not '1.2' def __init__(self, **kwargs): self.max_value = kwargs.pop('max_value', None) self.min_value = kwargs.pop('min_value', None) super(IntegerField, self).__init__(**kwargs) if self.max_value is not None: message = lazy( self.error_messages['max_value'].format, six.text_type)(max_value=self.max_value) self.validators.append( MaxValueValidator(self.max_value, message=message)) if self.min_value is not None: message = lazy( self.error_messages['min_value'].format, six.text_type)(min_value=self.min_value) self.validators.append( MinValueValidator(self.min_value, message=message)) def to_internal_value(self, data): if isinstance(data, six.text_type) and len(data) > self.MAX_STRING_LENGTH: self.fail('max_string_length') try: data = int(self.re_decimal.sub('', str(data))) except (ValueError, TypeError): self.fail('invalid') return data def to_representation(self, value): return int(value) class FloatField(Field): default_error_messages = { 'invalid': _('A valid number is required.'), 'max_value': _('Ensure this value is less than or equal to {max_value}.'), 'min_value': _('Ensure this value is greater than or equal to {min_value}.'), 'max_string_length': _('String value too large.') } MAX_STRING_LENGTH = 1000 # Guard against malicious string inputs. def __init__(self, **kwargs): self.max_value = kwargs.pop('max_value', None) self.min_value = kwargs.pop('min_value', None) super(FloatField, self).__init__(**kwargs) if self.max_value is not None: message = lazy( self.error_messages['max_value'].format, six.text_type)(max_value=self.max_value) self.validators.append( MaxValueValidator(self.max_value, message=message)) if self.min_value is not None: message = lazy( self.error_messages['min_value'].format, six.text_type)(min_value=self.min_value) self.validators.append( MinValueValidator(self.min_value, message=message)) def to_internal_value(self, data): if isinstance(data, six.text_type) and len(data) > self.MAX_STRING_LENGTH: self.fail('max_string_length') try: return float(data) except (TypeError, ValueError): self.fail('invalid') def to_representation(self, value): return float(value) class DecimalField(Field): default_error_messages = { 'invalid': _('A valid number is required.'), 'max_value': _('Ensure this value is less than or equal to {max_value}.'), 'min_value': _('Ensure this value is greater than or equal to {min_value}.'), 'max_digits': _('Ensure that there are no more than {max_digits} digits in total.'), 'max_decimal_places': _('Ensure that there are no more than {max_decimal_places} decimal places.'), 'max_whole_digits': _('Ensure that there are no more than {max_whole_digits} digits before the decimal point.'), 'max_string_length': _('String value too large.') } MAX_STRING_LENGTH = 1000 # Guard against malicious string inputs. def __init__(self, max_digits, decimal_places, coerce_to_string=None, max_value=None, min_value=None, localize=False, rounding=None, **kwargs): self.max_digits = max_digits self.decimal_places = decimal_places self.localize = localize if coerce_to_string is not None: self.coerce_to_string = coerce_to_string if self.localize: self.coerce_to_string = True self.max_value = max_value self.min_value = min_value if self.max_digits is not None and self.decimal_places is not None: self.max_whole_digits = self.max_digits - self.decimal_places else: self.max_whole_digits = None super(DecimalField, self).__init__(**kwargs) if self.max_value is not None: message = lazy( self.error_messages['max_value'].format, six.text_type)(max_value=self.max_value) self.validators.append( MaxValueValidator(self.max_value, message=message)) if self.min_value is not None: message = lazy( self.error_messages['min_value'].format, six.text_type)(min_value=self.min_value) self.validators.append( MinValueValidator(self.min_value, message=message)) if rounding is not None: valid_roundings = [v for k, v in vars(decimal).items() if k.startswith('ROUND_')] assert rounding in valid_roundings, ( 'Invalid rounding option %s. Valid values for rounding are: %s' % (rounding, valid_roundings)) self.rounding = rounding def to_internal_value(self, data): """ Validate that the input is a decimal number and return a Decimal instance. """ data = smart_text(data).strip() if self.localize: data = sanitize_separators(data) if len(data) > self.MAX_STRING_LENGTH: self.fail('max_string_length') try: value = decimal.Decimal(data) except decimal.DecimalException: self.fail('invalid') # Check for NaN. It is the only value that isn't equal to itself, # so we can use this to identify NaN values. if value != value: self.fail('invalid') # Check for infinity and negative infinity. if value in (decimal.Decimal('Inf'), decimal.Decimal('-Inf')): self.fail('invalid') return self.quantize(self.validate_precision(value)) def validate_precision(self, value): """ Ensure that there are no more than max_digits in the number, and no more than decimal_places digits after the decimal point. Override this method to disable the precision validation for input values or to enhance it in any way you need to. """ sign, digittuple, exponent = value.as_tuple() if exponent >= 0: # 1234500.0 total_digits = len(digittuple) + exponent whole_digits = total_digits decimal_places = 0 elif len(digittuple) > abs(exponent): # 123.45 total_digits = len(digittuple) whole_digits = total_digits - abs(exponent) decimal_places = abs(exponent) else: # 0.001234 total_digits = abs(exponent) whole_digits = 0 decimal_places = total_digits if self.max_digits is not None and total_digits > self.max_digits: self.fail('max_digits', max_digits=self.max_digits) if self.decimal_places is not None and decimal_places > self.decimal_places: self.fail('max_decimal_places', max_decimal_places=self.decimal_places) if self.max_whole_digits is not None and whole_digits > self.max_whole_digits: self.fail('max_whole_digits', max_whole_digits=self.max_whole_digits) return value def to_representation(self, value): coerce_to_string = getattr(self, 'coerce_to_string', api_settings.COERCE_DECIMAL_TO_STRING) if not isinstance(value, decimal.Decimal): value = decimal.Decimal(six.text_type(value).strip()) quantized = self.quantize(value) if not coerce_to_string: return quantized if self.localize: return localize_input(quantized) return '{0:f}'.format(quantized) def quantize(self, value): """ Quantize the decimal value to the configured precision. """ if self.decimal_places is None: return value context = decimal.getcontext().copy() if self.max_digits is not None: context.prec = self.max_digits return value.quantize( decimal.Decimal('.1') ** self.decimal_places, rounding=self.rounding, context=context ) # Date & time fields... class DateTimeField(Field): default_error_messages = { 'invalid': _('Datetime has wrong format. Use one of these formats instead: {format}.'), 'date': _('Expected a datetime but got a date.'), 'make_aware': _('Invalid datetime for the timezone "{timezone}".'), 'overflow': _('Datetime value out of range.') } datetime_parser = datetime.datetime.strptime def __init__(self, format=empty, input_formats=None, default_timezone=None, *args, **kwargs): if format is not empty: self.format = format if input_formats is not None: self.input_formats = input_formats if default_timezone is not None: self.timezone = default_timezone super(DateTimeField, self).__init__(*args, **kwargs) def enforce_timezone(self, value): """ When `self.default_timezone` is `None`, always return naive datetimes. When `self.default_timezone` is not `None`, always return aware datetimes. """ field_timezone = getattr(self, 'timezone', self.default_timezone()) if field_timezone is not None: if timezone.is_aware(value): try: return value.astimezone(field_timezone) except OverflowError: self.fail('overflow') try: return timezone.make_aware(value, field_timezone) except InvalidTimeError: self.fail('make_aware', timezone=field_timezone) elif (field_timezone is None) and timezone.is_aware(value): return timezone.make_naive(value, utc) return value def default_timezone(self): return timezone.get_current_timezone() if settings.USE_TZ else None def to_internal_value(self, value): input_formats = getattr(self, 'input_formats', api_settings.DATETIME_INPUT_FORMATS) if isinstance(value, datetime.date) and not isinstance(value, datetime.datetime): self.fail('date') if isinstance(value, datetime.datetime): return self.enforce_timezone(value) for input_format in input_formats: if input_format.lower() == ISO_8601: try: parsed = parse_datetime(value) if parsed is not None: return self.enforce_timezone(parsed) except (ValueError, TypeError): pass else: try: parsed = self.datetime_parser(value, input_format) return self.enforce_timezone(parsed) except (ValueError, TypeError): pass humanized_format = humanize_datetime.datetime_formats(input_formats) self.fail('invalid', format=humanized_format) def to_representation(self, value): if not value: return None output_format = getattr(self, 'format', api_settings.DATETIME_FORMAT) if output_format is None or isinstance(value, six.string_types): return value value = self.enforce_timezone(value) if output_format.lower() == ISO_8601: value = value.isoformat() if value.endswith('+00:00'): value = value[:-6] + 'Z' return value return value.strftime(output_format) class DateField(Field): default_error_messages = { 'invalid': _('Date has wrong format. Use one of these formats instead: {format}.'), 'datetime': _('Expected a date but got a datetime.'), } datetime_parser = datetime.datetime.strptime def __init__(self, format=empty, input_formats=None, *args, **kwargs): if format is not empty: self.format = format if input_formats is not None: self.input_formats = input_formats super(DateField, self).__init__(*args, **kwargs) def to_internal_value(self, value): input_formats = getattr(self, 'input_formats', api_settings.DATE_INPUT_FORMATS) if isinstance(value, datetime.datetime): self.fail('datetime') if isinstance(value, datetime.date): return value for input_format in input_formats: if input_format.lower() == ISO_8601: try: parsed = parse_date(value) except (ValueError, TypeError): pass else: if parsed is not None: return parsed else: try: parsed = self.datetime_parser(value, input_format) except (ValueError, TypeError): pass else: return parsed.date() humanized_format = humanize_datetime.date_formats(input_formats) self.fail('invalid', format=humanized_format) def to_representation(self, value): if not value: return None output_format = getattr(self, 'format', api_settings.DATE_FORMAT) if output_format is None or isinstance(value, six.string_types): return value # Applying a `DateField` to a datetime value is almost always # not a sensible thing to do, as it means naively dropping # any explicit or implicit timezone info. assert not isinstance(value, datetime.datetime), ( 'Expected a `date`, but got a `datetime`. Refusing to coerce, ' 'as this may mean losing timezone information. Use a custom ' 'read-only field and deal with timezone issues explicitly.' ) if output_format.lower() == ISO_8601: return value.isoformat() return value.strftime(output_format) class TimeField(Field): default_error_messages = { 'invalid': _('Time has wrong format. Use one of these formats instead: {format}.'), } datetime_parser = datetime.datetime.strptime def __init__(self, format=empty, input_formats=None, *args, **kwargs): if format is not empty: self.format = format if input_formats is not None: self.input_formats = input_formats super(TimeField, self).__init__(*args, **kwargs) def to_internal_value(self, value): input_formats = getattr(self, 'input_formats', api_settings.TIME_INPUT_FORMATS) if isinstance(value, datetime.time): return value for input_format in input_formats: if input_format.lower() == ISO_8601: try: parsed = parse_time(value) except (ValueError, TypeError): pass else: if parsed is not None: return parsed else: try: parsed = self.datetime_parser(value, input_format) except (ValueError, TypeError): pass else: return parsed.time() humanized_format = humanize_datetime.time_formats(input_formats) self.fail('invalid', format=humanized_format) def to_representation(self, value): if value in (None, ''): return None output_format = getattr(self, 'format', api_settings.TIME_FORMAT) if output_format is None or isinstance(value, six.string_types): return value # Applying a `TimeField` to a datetime value is almost always # not a sensible thing to do, as it means naively dropping # any explicit or implicit timezone info. assert not isinstance(value, datetime.datetime), ( 'Expected a `time`, but got a `datetime`. Refusing to coerce, ' 'as this may mean losing timezone information. Use a custom ' 'read-only field and deal with timezone issues explicitly.' ) if output_format.lower() == ISO_8601: return value.isoformat() return value.strftime(output_format) class DurationField(Field): default_error_messages = { 'invalid': _('Duration has wrong format. Use one of these formats instead: {format}.'), } def to_internal_value(self, value): if isinstance(value, datetime.timedelta): return value parsed = parse_duration(six.text_type(value)) if parsed is not None: return parsed self.fail('invalid', format='[DD] [HH:[MM:]]ss[.uuuuuu]') def to_representation(self, value): return duration_string(value) # Choice types... class ChoiceField(Field): default_error_messages = { 'invalid_choice': _('"{input}" is not a valid choice.') } html_cutoff = None html_cutoff_text = _('More than {count} items...') def __init__(self, choices, **kwargs): self.choices = choices self.html_cutoff = kwargs.pop('html_cutoff', self.html_cutoff) self.html_cutoff_text = kwargs.pop('html_cutoff_text', self.html_cutoff_text) self.allow_blank = kwargs.pop('allow_blank', False) super(ChoiceField, self).__init__(**kwargs) def to_internal_value(self, data): if data == '' and self.allow_blank: return '' try: return self.choice_strings_to_values[six.text_type(data)] except KeyError: self.fail('invalid_choice', input=data) def to_representation(self, value): if value in ('', None): return value return self.choice_strings_to_values.get(six.text_type(value), value) def iter_options(self): """ Helper method for use with templates rendering select widgets. """ return iter_options( self.grouped_choices, cutoff=self.html_cutoff, cutoff_text=self.html_cutoff_text ) def _get_choices(self): return self._choices def _set_choices(self, choices): self.grouped_choices = to_choices_dict(choices) self._choices = flatten_choices_dict(self.grouped_choices) # Map the string representation of choices to the underlying value. # Allows us to deal with eg. integer choices while supporting either # integer or string input, but still get the correct datatype out. self.choice_strings_to_values = { six.text_type(key): key for key in self.choices } choices = property(_get_choices, _set_choices) class MultipleChoiceField(ChoiceField): default_error_messages = { 'invalid_choice': _('"{input}" is not a valid choice.'), 'not_a_list': _('Expected a list of items but got type "{input_type}".'), 'empty': _('This selection may not be empty.') } default_empty_html = [] def __init__(self, *args, **kwargs): self.allow_empty = kwargs.pop('allow_empty', True) super(MultipleChoiceField, self).__init__(*args, **kwargs) def get_value(self, dictionary): if self.field_name not in dictionary: if getattr(self.root, 'partial', False): return empty # We override the default field access in order to support # lists in HTML forms. if html.is_html_input(dictionary): return dictionary.getlist(self.field_name) return dictionary.get(self.field_name, empty) def to_internal_value(self, data): if isinstance(data, type('')) or not hasattr(data, '__iter__'): self.fail('not_a_list', input_type=type(data).__name__) if not self.allow_empty and len(data) == 0: self.fail('empty') return { super(MultipleChoiceField, self).to_internal_value(item) for item in data } def to_representation(self, value): return { self.choice_strings_to_values.get(six.text_type(item), item) for item in value } class FilePathField(ChoiceField): default_error_messages = { 'invalid_choice': _('"{input}" is not a valid path choice.') } def __init__(self, path, match=None, recursive=False, allow_files=True, allow_folders=False, required=None, **kwargs): # Defer to Django's FilePathField implementation to get the # valid set of choices. field = DjangoFilePathField( path, match=match, recursive=recursive, allow_files=allow_files, allow_folders=allow_folders, required=required ) kwargs['choices'] = field.choices super(FilePathField, self).__init__(**kwargs) # File types... class FileField(Field): default_error_messages = { 'required': _('No file was submitted.'), 'invalid': _('The submitted data was not a file. Check the encoding type on the form.'), 'no_name': _('No filename could be determined.'), 'empty': _('The submitted file is empty.'), 'max_length': _('Ensure this filename has at most {max_length} characters (it has {length}).'), } def __init__(self, *args, **kwargs): self.max_length = kwargs.pop('max_length', None) self.allow_empty_file = kwargs.pop('allow_empty_file', False) if 'use_url' in kwargs: self.use_url = kwargs.pop('use_url') super(FileField, self).__init__(*args, **kwargs) def to_internal_value(self, data): try: # `UploadedFile` objects should have name and size attributes. file_name = data.name file_size = data.size except AttributeError: self.fail('invalid') if not file_name: self.fail('no_name') if not self.allow_empty_file and not file_size: self.fail('empty') if self.max_length and len(file_name) > self.max_length: self.fail('max_length', max_length=self.max_length, length=len(file_name)) return data def to_representation(self, value): if not value: return None use_url = getattr(self, 'use_url', api_settings.UPLOADED_FILES_USE_URL) if use_url: if not getattr(value, 'url', None): # If the file has not been saved it may not have a URL. return None url = value.url request = self.context.get('request', None) if request is not None: return request.build_absolute_uri(url) return url return value.name class ImageField(FileField): default_error_messages = { 'invalid_image': _( 'Upload a valid image. The file you uploaded was either not an image or a corrupted image.' ), } def __init__(self, *args, **kwargs): self._DjangoImageField = kwargs.pop('_DjangoImageField', DjangoImageField) super(ImageField, self).__init__(*args, **kwargs) def to_internal_value(self, data): # Image validation is a bit grungy, so we'll just outright # defer to Django's implementation so we don't need to # consider it, or treat PIL as a test dependency. file_object = super(ImageField, self).to_internal_value(data) django_field = self._DjangoImageField() django_field.error_messages = self.error_messages return django_field.clean(file_object) # Composite field types... class _UnvalidatedField(Field): def __init__(self, *args, **kwargs): super(_UnvalidatedField, self).__init__(*args, **kwargs) self.allow_blank = True self.allow_null = True def to_internal_value(self, data): return data def to_representation(self, value): return value class ListField(Field): child = _UnvalidatedField() initial = [] default_error_messages = { 'not_a_list': _('Expected a list of items but got type "{input_type}".'), 'empty': _('This list may not be empty.'), 'min_length': _('Ensure this field has at least {min_length} elements.'), 'max_length': _('Ensure this field has no more than {max_length} elements.') } def __init__(self, *args, **kwargs): self.child = kwargs.pop('child', copy.deepcopy(self.child)) self.allow_empty = kwargs.pop('allow_empty', True) self.max_length = kwargs.pop('max_length', None) self.min_length = kwargs.pop('min_length', None) assert not inspect.isclass(self.child), '`child` has not been instantiated.' assert self.child.source is None, ( "The `source` argument is not meaningful when applied to a `child=` field. " "Remove `source=` from the field declaration." ) super(ListField, self).__init__(*args, **kwargs) self.child.bind(field_name='', parent=self) if self.max_length is not None: message = self.error_messages['max_length'].format(max_length=self.max_length) self.validators.append(MaxLengthValidator(self.max_length, message=message)) if self.min_length is not None: message = self.error_messages['min_length'].format(min_length=self.min_length) self.validators.append(MinLengthValidator(self.min_length, message=message)) def get_value(self, dictionary): if self.field_name not in dictionary: if getattr(self.root, 'partial', False): return empty # We override the default field access in order to support # lists in HTML forms. if html.is_html_input(dictionary): val = dictionary.getlist(self.field_name, []) if len(val) > 0: # Support QueryDict lists in HTML input. return val return html.parse_html_list(dictionary, prefix=self.field_name) return dictionary.get(self.field_name, empty) def to_internal_value(self, data): """ List of dicts of native values <- List of dicts of primitive datatypes. """ if html.is_html_input(data): data = html.parse_html_list(data) if isinstance(data, type('')) or isinstance(data, collections.Mapping) or not hasattr(data, '__iter__'): self.fail('not_a_list', input_type=type(data).__name__) if not self.allow_empty and len(data) == 0: self.fail('empty') return self.run_child_validation(data) def to_representation(self, data): """ List of object instances -> List of dicts of primitive datatypes. """ return [self.child.to_representation(item) if item is not None else None for item in data] def run_child_validation(self, data): result = [] errors = OrderedDict() for idx, item in enumerate(data): try: result.append(self.child.run_validation(item)) except ValidationError as e: errors[idx] = e.detail if not errors: return result raise ValidationError(errors) class DictField(Field): child = _UnvalidatedField() initial = {} default_error_messages = { 'not_a_dict': _('Expected a dictionary of items but got type "{input_type}".') } def __init__(self, *args, **kwargs): self.child = kwargs.pop('child', copy.deepcopy(self.child)) assert not inspect.isclass(self.child), '`child` has not been instantiated.' assert self.child.source is None, ( "The `source` argument is not meaningful when applied to a `child=` field. " "Remove `source=` from the field declaration." ) super(DictField, self).__init__(*args, **kwargs) self.child.bind(field_name='', parent=self) def get_value(self, dictionary): # We override the default field access in order to support # dictionaries in HTML forms. if html.is_html_input(dictionary): return html.parse_html_dict(dictionary, prefix=self.field_name) return dictionary.get(self.field_name, empty) def to_internal_value(self, data): """ Dicts of native values <- Dicts of primitive datatypes. """ if html.is_html_input(data): data = html.parse_html_dict(data) if not isinstance(data, dict): self.fail('not_a_dict', input_type=type(data).__name__) return self.run_child_validation(data) def to_representation(self, value): """ List of object instances -> List of dicts of primitive datatypes. """ return { six.text_type(key): self.child.to_representation(val) if val is not None else None for key, val in value.items() } def run_child_validation(self, data): result = {} errors = OrderedDict() for key, value in data.items(): key = six.text_type(key) try: result[key] = self.child.run_validation(value) except ValidationError as e: errors[key] = e.detail if not errors: return result raise ValidationError(errors) class HStoreField(DictField): child = CharField(allow_blank=True, allow_null=True) def __init__(self, *args, **kwargs): super(HStoreField, self).__init__(*args, **kwargs) assert isinstance(self.child, CharField), ( "The `child` argument must be an instance of `CharField`, " "as the hstore extension stores values as strings." ) class JSONField(Field): default_error_messages = { 'invalid': _('Value must be valid JSON.') } def __init__(self, *args, **kwargs): self.binary = kwargs.pop('binary', False) super(JSONField, self).__init__(*args, **kwargs) def get_value(self, dictionary): if html.is_html_input(dictionary) and self.field_name in dictionary: # When HTML form input is used, mark up the input # as being a JSON string, rather than a JSON primitive. class JSONString(six.text_type): def __new__(self, value): ret = six.text_type.__new__(self, value) ret.is_json_string = True return ret return JSONString(dictionary[self.field_name]) return dictionary.get(self.field_name, empty) def to_internal_value(self, data): try: if self.binary or getattr(data, 'is_json_string', False): if isinstance(data, six.binary_type): data = data.decode('utf-8') return json.loads(data) else: json.dumps(data) except (TypeError, ValueError): self.fail('invalid') return data def to_representation(self, value): if self.binary: value = json.dumps(value) # On python 2.x the return type for json.dumps() is underspecified. # On python 3.x json.dumps() returns unicode strings. if isinstance(value, six.text_type): value = bytes(value.encode('utf-8')) return value # Miscellaneous field types... class ReadOnlyField(Field): """ A read-only field that simply returns the field value. If the field is a method with no parameters, the method will be called and its return value used as the representation. For example, the following would call `get_expiry_date()` on the object: class ExampleSerializer(Serializer): expiry_date = ReadOnlyField(source='get_expiry_date') """ def __init__(self, **kwargs): kwargs['read_only'] = True super(ReadOnlyField, self).__init__(**kwargs) def to_representation(self, value): return value class HiddenField(Field): """ A hidden field does not take input from the user, or present any output, but it does populate a field in `validated_data`, based on its default value. This is particularly useful when we have a `unique_for_date` constraint on a pair of fields, as we need some way to include the date in the validated data. """ def __init__(self, **kwargs): assert 'default' in kwargs, 'default is a required argument.' kwargs['write_only'] = True super(HiddenField, self).__init__(**kwargs) def get_value(self, dictionary): # We always use the default value for `HiddenField`. # User input is never provided or accepted. return empty def to_internal_value(self, data): return data class SerializerMethodField(Field): """ A read-only field that get its representation from calling a method on the parent serializer class. The method called will be of the form "get_{field_name}", and should take a single argument, which is the object being serialized. For example: class ExampleSerializer(self): extra_info = SerializerMethodField() def get_extra_info(self, obj): return ... # Calculate some data to return. """ def __init__(self, method_name=None, **kwargs): self.method_name = method_name kwargs['source'] = '*' kwargs['read_only'] = True super(SerializerMethodField, self).__init__(**kwargs) def bind(self, field_name, parent): # In order to enforce a consistent style, we error if a redundant # 'method_name' argument has been used. For example: # my_field = serializer.SerializerMethodField(method_name='get_my_field') default_method_name = 'get_{field_name}'.format(field_name=field_name) assert self.method_name != default_method_name, ( "It is redundant to specify `%s` on SerializerMethodField '%s' in " "serializer '%s', because it is the same as the default method name. " "Remove the `method_name` argument." % (self.method_name, field_name, parent.__class__.__name__) ) # The method name should default to `get_{field_name}`. if self.method_name is None: self.method_name = default_method_name super(SerializerMethodField, self).bind(field_name, parent) def to_representation(self, value): method = getattr(self.parent, self.method_name) return method(value) class ModelField(Field): """ A generic field that can be used against an arbitrary model field. This is used by `ModelSerializer` when dealing with custom model fields, that do not have a serializer field to be mapped to. """ default_error_messages = { 'max_length': _('Ensure this field has no more than {max_length} characters.'), } def __init__(self, model_field, **kwargs): self.model_field = model_field # The `max_length` option is supported by Django's base `Field` class, # so we'd better support it here. max_length = kwargs.pop('max_length', None) super(ModelField, self).__init__(**kwargs) if max_length is not None: message = lazy( self.error_messages['max_length'].format, six.text_type)(max_length=self.max_length) self.validators.append( MaxLengthValidator(self.max_length, message=message)) def to_internal_value(self, data): rel = self.model_field.remote_field if rel is not None: return rel.model._meta.get_field(rel.field_name).to_python(data) return self.model_field.to_python(data) def get_attribute(self, obj): # We pass the object instance onto `to_representation`, # not just the field attribute. return obj def to_representation(self, obj): value = self.model_field.value_from_object(obj) if is_protected_type(value): return value return self.model_field.value_to_string(obj) ================================================ FILE: jet_django/deps/rest_framework/filters.py ================================================ """ Provides generic filtering backends that can be used to filter the results returned by list views. """ from __future__ import unicode_literals import operator from functools import reduce from django.core.exceptions import ImproperlyConfigured from django.db import models from django.db.models.constants import LOOKUP_SEP from django.db.models.sql.constants import ORDER_PATTERN from django.template import loader from django.utils import six from django.utils.encoding import force_text from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework.compat import coreapi, coreschema, distinct, guardian from jet_django.deps.rest_framework.settings import api_settings class BaseFilterBackend(object): """ A base class from which all filter backend classes should inherit. """ def filter_queryset(self, request, queryset, view): """ Return a filtered queryset. """ raise NotImplementedError(".filter_queryset() must be overridden.") def get_schema_fields(self, view): assert coreapi is not None, 'coreapi must be installed to use `get_schema_fields()`' assert coreschema is not None, 'coreschema must be installed to use `get_schema_fields()`' return [] class SearchFilter(BaseFilterBackend): # The URL query parameter used for the search. search_param = api_settings.SEARCH_PARAM template = 'jet_django.deps.rest_framework/filters/search.html' lookup_prefixes = { '^': 'istartswith', '=': 'iexact', '@': 'search', '$': 'iregex', } search_title = _('Search') search_description = _('A search term.') def get_search_terms(self, request): """ Search terms are set by a ?search=... query parameter, and may be comma and/or whitespace delimited. """ params = request.query_params.get(self.search_param, '') return params.replace(',', ' ').split() def construct_search(self, field_name): lookup = self.lookup_prefixes.get(field_name[0]) if lookup: field_name = field_name[1:] else: lookup = 'icontains' return LOOKUP_SEP.join([field_name, lookup]) def must_call_distinct(self, queryset, search_fields): """ Return True if 'distinct()' should be used to query the given lookups. """ for search_field in search_fields: opts = queryset.model._meta if search_field[0] in self.lookup_prefixes: search_field = search_field[1:] parts = search_field.split(LOOKUP_SEP) for part in parts: field = opts.get_field(part) if hasattr(field, 'get_path_info'): # This field is a relation, update opts to follow the relation path_info = field.get_path_info() opts = path_info[-1].to_opts if any(path.m2m for path in path_info): # This field is a m2m relation so we know we need to call distinct return True return False def filter_queryset(self, request, queryset, view): search_fields = getattr(view, 'search_fields', None) search_terms = self.get_search_terms(request) if not search_fields or not search_terms: return queryset orm_lookups = [ self.construct_search(six.text_type(search_field)) for search_field in search_fields ] base = queryset conditions = [] for search_term in search_terms: queries = [ models.Q(**{orm_lookup: search_term}) for orm_lookup in orm_lookups ] conditions.append(reduce(operator.or_, queries)) queryset = queryset.filter(reduce(operator.and_, conditions)) if self.must_call_distinct(queryset, search_fields): # Filtering against a many-to-many field requires us to # call queryset.distinct() in order to avoid duplicate items # in the resulting queryset. # We try to avoid this if possible, for performance reasons. queryset = distinct(queryset, base) return queryset def to_html(self, request, queryset, view): if not getattr(view, 'search_fields', None): return '' term = self.get_search_terms(request) term = term[0] if term else '' context = { 'param': self.search_param, 'term': term } template = loader.get_template(self.template) return template.render(context) def get_schema_fields(self, view): assert coreapi is not None, 'coreapi must be installed to use `get_schema_fields()`' assert coreschema is not None, 'coreschema must be installed to use `get_schema_fields()`' return [ coreapi.Field( name=self.search_param, required=False, location='query', schema=coreschema.String( title=force_text(self.search_title), description=force_text(self.search_description) ) ) ] class OrderingFilter(BaseFilterBackend): # The URL query parameter used for the ordering. ordering_param = api_settings.ORDERING_PARAM ordering_fields = None ordering_title = _('Ordering') ordering_description = _('Which field to use when ordering the results.') template = 'jet_django.deps.rest_framework/filters/ordering.html' def get_ordering(self, request, queryset, view): """ Ordering is set by a comma delimited ?ordering=... query parameter. The `ordering` query parameter can be overridden by setting the `ordering_param` value on the OrderingFilter or by specifying an `ORDERING_PARAM` value in the API settings. """ params = request.query_params.get(self.ordering_param) if params: fields = [param.strip() for param in params.split(',')] ordering = self.remove_invalid_fields(queryset, fields, view, request) if ordering: return ordering # No ordering was included, or all the ordering fields were invalid return self.get_default_ordering(view) def get_default_ordering(self, view): ordering = getattr(view, 'ordering', None) if isinstance(ordering, six.string_types): return (ordering,) return ordering def get_default_valid_fields(self, queryset, view, context={}): # If `ordering_fields` is not specified, then we determine a default # based on the serializer class, if one exists on the view. if hasattr(view, 'get_serializer_class'): try: serializer_class = view.get_serializer_class() except AssertionError: # Raised by the default implementation if # no serializer_class was found serializer_class = None else: serializer_class = getattr(view, 'serializer_class', None) if serializer_class is None: msg = ( "Cannot use %s on a view which does not have either a " "'serializer_class', an overriding 'get_serializer_class' " "or 'ordering_fields' attribute." ) raise ImproperlyConfigured(msg % self.__class__.__name__) return [ (field.source.replace('.', '__') or field_name, field.label) for field_name, field in serializer_class(context=context).fields.items() if not getattr(field, 'write_only', False) and not field.source == '*' ] def get_valid_fields(self, queryset, view, context={}): valid_fields = getattr(view, 'ordering_fields', self.ordering_fields) if valid_fields is None: # Default to allowing filtering on serializer fields return self.get_default_valid_fields(queryset, view, context) elif valid_fields == '__all__': # View explicitly allows filtering on any model field valid_fields = [ (field.name, field.verbose_name) for field in queryset.model._meta.fields ] valid_fields += [ (key, key.title().split('__')) for key in queryset.query.annotations ] else: valid_fields = [ (item, item) if isinstance(item, six.string_types) else item for item in valid_fields ] return valid_fields def remove_invalid_fields(self, queryset, fields, view, request): valid_fields = [item[0] for item in self.get_valid_fields(queryset, view, {'request': request})] return [term for term in fields if term.lstrip('-') in valid_fields and ORDER_PATTERN.match(term)] def filter_queryset(self, request, queryset, view): ordering = self.get_ordering(request, queryset, view) if ordering: return queryset.order_by(*ordering) return queryset def get_template_context(self, request, queryset, view): current = self.get_ordering(request, queryset, view) current = None if not current else current[0] options = [] context = { 'request': request, 'current': current, 'param': self.ordering_param, } for key, label in self.get_valid_fields(queryset, view, context): options.append((key, '%s - %s' % (label, _('ascending')))) options.append(('-' + key, '%s - %s' % (label, _('descending')))) context['options'] = options return context def to_html(self, request, queryset, view): template = loader.get_template(self.template) context = self.get_template_context(request, queryset, view) return template.render(context) def get_schema_fields(self, view): assert coreapi is not None, 'coreapi must be installed to use `get_schema_fields()`' assert coreschema is not None, 'coreschema must be installed to use `get_schema_fields()`' return [ coreapi.Field( name=self.ordering_param, required=False, location='query', schema=coreschema.String( title=force_text(self.ordering_title), description=force_text(self.ordering_description) ) ) ] class DjangoObjectPermissionsFilter(BaseFilterBackend): """ A filter backend that limits results to those where the requesting user has read object level permissions. """ def __init__(self): assert guardian, 'Using DjangoObjectPermissionsFilter, but django-guardian is not installed' perm_format = '%(app_label)s.view_%(model_name)s' def filter_queryset(self, request, queryset, view): # We want to defer this import until run-time, rather than import-time. # See https://github.com/encode/django-rest-framework/issues/4608 # (Also see #1624 for why we need to make this import explicitly) from guardian.shortcuts import get_objects_for_user extra = {} user = request.user model_cls = queryset.model kwargs = { 'app_label': model_cls._meta.app_label, 'model_name': model_cls._meta.model_name } permission = self.perm_format % kwargs if tuple(guardian.VERSION) >= (1, 3): # Maintain behavior compatibility with versions prior to 1.3 extra = {'accept_global_perms': False} else: extra = {} return get_objects_for_user(user, permission, queryset, **extra) ================================================ FILE: jet_django/deps/rest_framework/generics.py ================================================ """ Generic views that provide commonly needed behaviour. """ from __future__ import unicode_literals from django.core.exceptions import ValidationError from django.db.models.query import QuerySet from django.http import Http404 from django.shortcuts import get_object_or_404 as _get_object_or_404 from jet_django.deps.rest_framework import mixins, views from jet_django.deps.rest_framework.settings import api_settings def get_object_or_404(queryset, *filter_args, **filter_kwargs): """ Same as Django's standard shortcut, but make sure to also raise 404 if the filter_kwargs don't match the required types. """ try: return _get_object_or_404(queryset, *filter_args, **filter_kwargs) except (TypeError, ValueError, ValidationError): raise Http404 class GenericAPIView(views.APIView): """ Base class for all other generic views. """ # You'll need to either set these attributes, # or override `get_queryset()`/`get_serializer_class()`. # If you are overriding a view method, it is important that you call # `get_queryset()` instead of accessing the `queryset` property directly, # as `queryset` will get evaluated only once, and those results are cached # for all subsequent requests. queryset = None serializer_class = None # If you want to use object lookups other than pk, set 'lookup_field'. # For more complex lookup requirements override `get_object()`. lookup_field = 'pk' lookup_url_kwarg = None # The filter backend classes to use for queryset filtering filter_backends = api_settings.DEFAULT_FILTER_BACKENDS # The style to use for queryset pagination. pagination_class = api_settings.DEFAULT_PAGINATION_CLASS def get_queryset(self): """ Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using `self.queryset`. This method should always be used rather than accessing `self.queryset` directly, as `self.queryset` gets evaluated only once, and those results are cached for all subsequent requests. You may want to override this if you need to provide different querysets depending on the incoming request. (Eg. return a list of items that is specific to the user) """ assert self.queryset is not None, ( "'%s' should either include a `queryset` attribute, " "or override the `get_queryset()` method." % self.__class__.__name__ ) queryset = self.queryset if isinstance(queryset, QuerySet): # Ensure queryset is re-evaluated on each request. queryset = queryset.all() return queryset def get_object(self): """ Returns the object the view is displaying. You may want to override this if you need to provide non-standard queryset lookups. Eg if objects are referenced using multiple keyword arguments in the url conf. """ queryset = self.filter_queryset(self.get_queryset()) # Perform the lookup filtering. lookup_url_kwarg = self.lookup_url_kwarg or self.lookup_field assert lookup_url_kwarg in self.kwargs, ( 'Expected view %s to be called with a URL keyword argument ' 'named "%s". Fix your URL conf, or set the `.lookup_field` ' 'attribute on the view correctly.' % (self.__class__.__name__, lookup_url_kwarg) ) filter_kwargs = {self.lookup_field: self.kwargs[lookup_url_kwarg]} obj = get_object_or_404(queryset, **filter_kwargs) # May raise a permission denied self.check_object_permissions(self.request, obj) return obj def get_serializer(self, *args, **kwargs): """ Return the serializer instance that should be used for validating and deserializing input, and for serializing output. """ serializer_class = self.get_serializer_class() kwargs['context'] = self.get_serializer_context() return serializer_class(*args, **kwargs) def get_serializer_class(self): """ Return the class to use for the serializer. Defaults to using `self.serializer_class`. You may want to override this if you need to provide different serializations depending on the incoming request. (Eg. admins get full serialization, others get basic serialization) """ assert self.serializer_class is not None, ( "'%s' should either include a `serializer_class` attribute, " "or override the `get_serializer_class()` method." % self.__class__.__name__ ) return self.serializer_class def get_serializer_context(self): """ Extra context provided to the serializer class. """ return { 'request': self.request, 'format': self.format_kwarg, 'view': self } def filter_queryset(self, queryset): """ Given a queryset, filter it with whichever filter backend is in use. You are unlikely to want to override this method, although you may need to call it either from a list view, or from a custom `get_object` method if you want to apply the configured filtering backend to the default queryset. """ for backend in list(self.filter_backends): queryset = backend().filter_queryset(self.request, queryset, self) return queryset @property def paginator(self): """ The paginator instance associated with the view, or `None`. """ if not hasattr(self, '_paginator'): if self.pagination_class is None: self._paginator = None else: self._paginator = self.pagination_class() return self._paginator def paginate_queryset(self, queryset): """ Return a single page of results, or `None` if pagination is disabled. """ if self.paginator is None: return None return self.paginator.paginate_queryset(queryset, self.request, view=self) def get_paginated_response(self, data): """ Return a paginated style `Response` object for the given output data. """ assert self.paginator is not None return self.paginator.get_paginated_response(data) # Concrete view classes that provide method handlers # by composing the mixin classes with the base view. class CreateAPIView(mixins.CreateModelMixin, GenericAPIView): """ Concrete view for creating a model instance. """ def post(self, request, *args, **kwargs): return self.create(request, *args, **kwargs) class ListAPIView(mixins.ListModelMixin, GenericAPIView): """ Concrete view for listing a queryset. """ def get(self, request, *args, **kwargs): return self.list(request, *args, **kwargs) class RetrieveAPIView(mixins.RetrieveModelMixin, GenericAPIView): """ Concrete view for retrieving a model instance. """ def get(self, request, *args, **kwargs): return self.retrieve(request, *args, **kwargs) class DestroyAPIView(mixins.DestroyModelMixin, GenericAPIView): """ Concrete view for deleting a model instance. """ def delete(self, request, *args, **kwargs): return self.destroy(request, *args, **kwargs) class UpdateAPIView(mixins.UpdateModelMixin, GenericAPIView): """ Concrete view for updating a model instance. """ def put(self, request, *args, **kwargs): return self.update(request, *args, **kwargs) def patch(self, request, *args, **kwargs): return self.partial_update(request, *args, **kwargs) class ListCreateAPIView(mixins.ListModelMixin, mixins.CreateModelMixin, GenericAPIView): """ Concrete view for listing a queryset or creating a model instance. """ def get(self, request, *args, **kwargs): return self.list(request, *args, **kwargs) def post(self, request, *args, **kwargs): return self.create(request, *args, **kwargs) class RetrieveUpdateAPIView(mixins.RetrieveModelMixin, mixins.UpdateModelMixin, GenericAPIView): """ Concrete view for retrieving, updating a model instance. """ def get(self, request, *args, **kwargs): return self.retrieve(request, *args, **kwargs) def put(self, request, *args, **kwargs): return self.update(request, *args, **kwargs) def patch(self, request, *args, **kwargs): return self.partial_update(request, *args, **kwargs) class RetrieveDestroyAPIView(mixins.RetrieveModelMixin, mixins.DestroyModelMixin, GenericAPIView): """ Concrete view for retrieving or deleting a model instance. """ def get(self, request, *args, **kwargs): return self.retrieve(request, *args, **kwargs) def delete(self, request, *args, **kwargs): return self.destroy(request, *args, **kwargs) class RetrieveUpdateDestroyAPIView(mixins.RetrieveModelMixin, mixins.UpdateModelMixin, mixins.DestroyModelMixin, GenericAPIView): """ Concrete view for retrieving, updating or deleting a model instance. """ def get(self, request, *args, **kwargs): return self.retrieve(request, *args, **kwargs) def put(self, request, *args, **kwargs): return self.update(request, *args, **kwargs) def patch(self, request, *args, **kwargs): return self.partial_update(request, *args, **kwargs) def delete(self, request, *args, **kwargs): return self.destroy(request, *args, **kwargs) ================================================ FILE: jet_django/deps/rest_framework/locale/ach/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Acoli (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/ach/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ach\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/ar/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Andrew Ayoub , 2017 # aymen chaieb , 2017 # Bashar Al-Abdulhadi, 2016-2017 # Eyad Toma , 2015,2017 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-10-18 09:51+0000\n" "Last-Translator: Andrew Ayoub \n" "Language-Team: Arabic (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/ar/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ar\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "اسم المستخدم/كلمة السر غير صحيحين." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "المستخدم غير مفعل او تم حذفه." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "رمز غير صحيح." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "رمز التفويض" #: authtoken/models.py:15 msgid "Key" msgstr "المفتاح" #: authtoken/models.py:18 msgid "User" msgstr "المستخدم" #: authtoken/models.py:20 msgid "Created" msgstr "أنشئ" #: authtoken/models.py:29 msgid "Token" msgstr "الرمز" #: authtoken/models.py:30 msgid "Tokens" msgstr "الرموز" #: authtoken/serializers.py:8 msgid "Username" msgstr "اسم المستخدم" #: authtoken/serializers.py:9 msgid "Password" msgstr "كلمة المرور" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "حساب المستخدم غير مفعل." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "تعذر تسجيل الدخول بالبيانات التي ادخلتها." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "يجب أن تتضمن \"اسم المستخدم\" و \"كلمة المرور\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "حدث خطأ في المخدم." #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "بيانات الدخول غير صحيحة." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "لم يتم تزويد بيانات الدخول." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "ليس لديك صلاحية للقيام بهذا الإجراء." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "غير موجود." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "طلب غير مسموح به" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "هذا الحقل مطلوب." #: fields.py:270 msgid "This field may not be null." msgstr "لا يمكن لهذا الحقل ان يكون فارغاً null." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" ليس قيمة منطقية." #: fields.py:674 msgid "This field may not be blank." msgstr "لا يمكن لهذا الحقل ان يكون فارغاً." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "تأكد ان الحقل لا يزيد عن {max_length} محرف." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "تأكد ان الحقل {min_length} محرف على الاقل." #: fields.py:713 msgid "Enter a valid email address." msgstr "عليك ان تدخل بريد إلكتروني صالح." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "هذه القيمة لا تطابق النمط المطلوب." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "الرجاء إدخال رابط إلكتروني صالح." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "برجاء إدخال عنوان IPV4 أو IPV6 صحيح" #: fields.py:821 msgid "A valid integer is required." msgstr "الرجاء إدخال رقم صحيح صالح." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "تأكد ان القيمة أقل أو تساوي {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "تأكد ان القيمة أكبر أو تساوي {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "القيمه اكبر من المسموح" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "الرجاء إدخال رقم صالح." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "تأكد ان القيمة لا تحوي أكثر من {max_digits} رقم." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "صيغة التاريخ و الوقت غير صحيحة. عليك أن تستخدم واحدة من هذه الصيغ التالية: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "متوقع تاريخ و وقت و وجد تاريخ فقط" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "صيغة التاريخ غير صحيحة. عليك أن تستخدم واحدة من هذه الصيغ التالية: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "متوقع تاريخ فقط و وجد تاريخ ووقت" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "صيغة الوقت غير صحيحة. عليك أن تستخدم واحدة من هذه الصيغ التالية: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "صيغة المده غير صحيحه, برجاء إستخدام أحد هذه الصيغ {format}" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" ليست واحدة من الخيارات الصالحة." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "أكثر من {count} عنصر..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "لم يتم إرسال أي ملف." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "الملف الذي تم إرساله فارغ." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "تأكد ان اسم الملف لا يحوي أكثر من {max_length} محرف (الإسم المرسل يحوي {length} محرف)." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "أرسل" #: filters.py:336 msgid "ascending" msgstr "تصاعدي" #: filters.py:337 msgid "descending" msgstr "تنازلي" #: pagination.py:193 msgid "Invalid page." msgstr "صفحة غير صحيحة." #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "معرف العنصر \"{pk_value}\" غير صالح - العنصر غير موجود." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "قيمة غير صالحة." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "مرشحات" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "مرشحات الحقول" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "الترتيب" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "بحث" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "لا شيء" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "هذا الحقل يجب أن يكون فريد" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "ليس لديك صلاحية." ================================================ FILE: jet_django/deps/rest_framework/locale/be/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Belarusian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/be/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: be\n" "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/ca/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Catalan (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/ca/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ca\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Header Basic invàlid. No hi ha disponibles les credencials." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Header Basic invàlid. Les credencials no poden contenir espais." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Header Basic invàlid. Les credencials no estan codificades correctament en base64." #: authentication.py:99 msgid "Invalid username/password." msgstr "Usuari/Contrasenya incorrectes." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Usuari inactiu o esborrat." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Token header invàlid. No s'han indicat les credencials." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Token header invàlid. El token no ha de contenir espais." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Token header invàlid. El token no pot contenir caràcters invàlids." #: authentication.py:195 msgid "Invalid token." msgstr "Token invàlid." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Compte d'usuari desactivat." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "No es possible loguejar-se amb les credencials introduïdes." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "S'ha d'incloure \"username\" i \"password\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "S'ha produït un error en el servidor." #: exceptions.py:84 msgid "Malformed request." msgstr "Request amb format incorrecte." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Credencials d'autenticació incorrectes." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Credencials d'autenticació no disponibles." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "No té permisos per realitzar aquesta acció." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "No trobat." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Mètode \"{method}\" no permès." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "No s'ha pogut satisfer l'Accept header de la petició." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Media type \"{media_type}\" no suportat." #: exceptions.py:145 msgid "Request was throttled." msgstr "La petició ha estat limitada pel número màxim de peticions definit." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Aquest camp és obligatori." #: fields.py:270 msgid "This field may not be null." msgstr "Aquest camp no pot ser nul." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" no és un booleà." #: fields.py:674 msgid "This field may not be blank." msgstr "Aquest camp no pot estar en blanc." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Aquest camp no pot tenir més de {max_length} caràcters." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Aquest camp ha de tenir un mínim de {min_length} caràcters." #: fields.py:713 msgid "Enter a valid email address." msgstr "Introdueixi una adreça de correu vàlida." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Aquest valor no compleix el patró requerit." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Introdueix un \"slug\" vàlid consistent en lletres, números, guions o guions baixos." #: fields.py:747 msgid "Enter a valid URL." msgstr "Introdueixi una URL vàlida." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" no és un UUID vàlid." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Introdueixi una adreça IPv4 o IPv6 vàlida." #: fields.py:821 msgid "A valid integer is required." msgstr "Es requereix un nombre enter vàlid." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Aquest valor ha de ser menor o igual a {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Aquest valor ha de ser més gran o igual a {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Valor del text massa gran." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Es requereix un nombre vàlid." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "No pot haver-hi més de {max_digits} dígits en total." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "No pot haver-hi més de {max_decimal_places} decimals." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "No pot haver-hi més de {max_whole_digits} dígits abans del punt decimal." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "El Datetime té un format incorrecte. Utilitzi un d'aquests formats: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "S'espera un Datetime però s'ha rebut un Date." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "El Date té un format incorrecte. Utilitzi un d'aquests formats: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "S'espera un Date però s'ha rebut un Datetime." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "El Time té un format incorrecte. Utilitzi un d'aquests formats: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "La durada té un format incorrecte. Utilitzi un d'aquests formats: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" no és una opció vàlida." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "S'espera una llista d'ítems però s'ha rebut el tipus \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Aquesta selecció no pot estar buida." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" no és un path vàlid." #: fields.py:1358 msgid "No file was submitted." msgstr "No s'ha enviat cap fitxer." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Les dades enviades no són un fitxer. Comproveu l'encoding type del formulari." #: fields.py:1360 msgid "No filename could be determined." msgstr "No s'ha pogut determinar el nom del fitxer." #: fields.py:1361 msgid "The submitted file is empty." msgstr "El fitxer enviat està buit." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "El nom del fitxer ha de tenir com a màxim {max_length} caràcters (en té {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Envieu una imatge vàlida. El fitxer enviat no és una imatge o és una imatge corrompuda." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Aquesta llista no pot estar buida." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "S'espera un diccionari però s'ha rebut el tipus \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "Cursor invàlid." #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "PK invàlida \"{pk_value}\" - l'objecte no existeix." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Tipus incorrecte. S'espera el valor d'una PK, s'ha rebut {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Hyperlink invàlid - Cap match d'URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Hyperlink invàlid - Match d'URL incorrecta." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Hyperlink invàlid - L'objecte no existeix." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Tipus incorrecte. S'espera una URL, s'ha rebut {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "L'objecte amb {slug_name}={value} no existeix." #: relations.py:402 msgid "Invalid value." msgstr "Valor invàlid." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Dades invàlides. S'espera un diccionari però s'ha rebut {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Cap" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Cap opció seleccionada." #: validators.py:43 msgid "This field must be unique." msgstr "Aquest camp ha de ser únic." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Aquests camps {field_names} han de constituir un conjunt únic." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Aquest camp ha de ser únic per a la data \"{date_field}\"." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Aquest camp ha de ser únic per al mes \"{date_field}\"." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Aquest camp ha de ser únic per a l'any \"{date_field}\"." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Versió invàlida al header \"Accept\"." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Versió invàlida a la URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Versió invàlida al hostname." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Versió invàlida al paràmetre de consulta." #: views.py:88 msgid "Permission denied." msgstr "Permís denegat." ================================================ FILE: jet_django/deps/rest_framework/locale/ca_ES/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Catalan (Spain) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/ca_ES/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ca_ES\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/cs/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Jirka Vejrazka , 2015 # Tomáš Ehrlich , 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Czech (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/cs/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: cs\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Chybná hlavička. Nebyly poskytnuty přihlašovací údaje." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Chybná hlavička. Přihlašovací údaje by neměly obsahovat mezery." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Chybná hlavička. Přihlašovací údaje nebyly správně zakódovány pomocí base64." #: authentication.py:99 msgid "Invalid username/password." msgstr "Chybné uživatelské jméno nebo heslo." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Uživatelský účet je neaktivní nebo byl smazán." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Chybná hlavička tokenu. Nebyly zadány přihlašovací údaje." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Chybná hlavička tokenu. Přihlašovací údaje by neměly obsahovat mezery." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "Chybný token." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Uživatelský účet je uzamčen." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Zadanými údaji se nebylo možné přihlásit." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Musí obsahovat \"uživatelské jméno\" a \"heslo\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Chyba na straně serveru." #: exceptions.py:84 msgid "Malformed request." msgstr "Neplatný formát požadavku." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Chybné přihlašovací údaje." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Nebyly zadány přihlašovací údaje." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "K této akci nemáte oprávnění." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Nenalezeno." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Metoda \"{method}\" není povolena." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Nelze vyhovět požadavku v hlavičce Accept." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Nepodporovaný media type \"{media_type}\" v požadavku." #: exceptions.py:145 msgid "Request was throttled." msgstr "Požadavek byl limitován kvůli omezení počtu požadavků za časovou periodu." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Toto pole je vyžadováno." #: fields.py:270 msgid "This field may not be null." msgstr "Toto pole nesmí být prázdné (null)." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" nelze použít jako typ boolean." #: fields.py:674 msgid "This field may not be blank." msgstr "Toto pole nesmí být prázdné." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Zkontrolujte, že toto pole není delší než {max_length} znaků." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Zkontrolujte, že toto pole obsahuje alespoň {min_length} znaků." #: fields.py:713 msgid "Enter a valid email address." msgstr "Vložte platnou e-mailovou adresu." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Hodnota v tomto poli neodpovídá požadovanému formátu." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Vložte platnou \"zkrácenou formu\" obsahující pouze malá písmena, čísla, spojovník nebo podtržítko." #: fields.py:747 msgid "Enter a valid URL." msgstr "Vložte platný odkaz." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" není platné UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "Je vyžadováno celé číslo." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Zkontrolujte, že hodnota je menší nebo rovna {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Zkontrolujte, že hodnota je větší nebo rovna {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Řetězec je příliš dlouhý." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Je vyžadováno číslo." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Zkontrolujte, že číslo neobsahuje více než {max_digits} čislic." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Zkontrolujte, že číslo nemá více než {max_decimal_places} desetinných míst." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Zkontrolujte, že číslo neobsahuje více než {max_whole_digits} čislic před desetinnou čárkou." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Chybný formát data a času. Použijte jeden z těchto formátů: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Bylo zadáno pouze datum bez času." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Chybný formát data. Použijte jeden z těchto formátů: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Bylo zadáno datum a čas, místo samotného data." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Chybný formát času. Použijte jeden z těchto formátů: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" není platnou možností." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Byl očekáván seznam položek ale nalezen \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "Nebyl zaslán žádný soubor." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Zaslaná data neobsahují soubor. Zkontrolujte typ kódování ve formuláři." #: fields.py:1360 msgid "No filename could be determined." msgstr "Nebylo možné zjistit jméno souboru." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Zaslaný soubor je prázdný." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Zajistěte, aby jméno souboru obsahovalo maximálně {max_length} znaků (teď má {length} znaků)." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Nahrajte platný obrázek. Nahraný soubor buď není obrázkem nebo je poškozen." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Byl očekáván slovník položek ale nalezen \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "Chybný kurzor." #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Chybný primární klíč \"{pk_value}\" - objekt neexistuje." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Chybný typ. Byl přijat typ {data_type} místo hodnoty primárního klíče." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Chybný odkaz - nebyla nalezena žádní shoda." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Chybný odkaz - byla nalezena neplatná shoda." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Chybný odkaz - objekt neexistuje." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Chybný typ. Byl přijat typ {data_type} místo očekávaného odkazu." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objekt s {slug_name}={value} neexistuje." #: relations.py:402 msgid "Invalid value." msgstr "Chybná hodnota." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Chybná data. Byl přijat typ {datatype} místo očekávaného slovníku." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "Tato položka musí být unikátní." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Položka {field_names} musí tvořit unikátní množinu." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Tato položka musí být pro datum \"{date_field}\" unikátní." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Tato položka musí být pro měsíc \"{date_field}\" unikátní." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Tato položka musí být pro rok \"{date_field}\" unikátní." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Chybné číslo verze v hlavičce Accept." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Chybné číslo verze v odkazu." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Chybné číslo verze v hostname." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Chybné čislo verze v URL parametru." #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/da/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Mads Jensen , 2015-2017 # Mikkel Munch Mortensen <3xm@detfalskested.dk>, 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Mads Jensen \n" "Language-Team: Danish (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/da/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: da\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Ugyldig basic header. Ingen legitimation angivet." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Ugyldig basic header. Legitimationsstrenge må ikke indeholde mellemrum." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Ugyldig basic header. Legitimationen er ikke base64 encoded på korrekt vis." #: authentication.py:99 msgid "Invalid username/password." msgstr "Ugyldigt brugernavn/kodeord." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Inaktiv eller slettet bruger." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Ugyldig token header." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Ugyldig token header. Token-strenge må ikke indeholde mellemrum." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Ugyldig token header. Token streng bør ikke indeholde ugyldige karakterer." #: authentication.py:195 msgid "Invalid token." msgstr "Ugyldigt token." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "Nøgle" #: authtoken/models.py:18 msgid "User" msgstr "Bruger" #: authtoken/models.py:20 msgid "Created" msgstr "Oprettet" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokens" #: authtoken/serializers.py:8 msgid "Username" msgstr "Brugernavn" #: authtoken/serializers.py:9 msgid "Password" msgstr "Kodeord" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Brugerkontoen er deaktiveret." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Kunne ikke logge ind med den angivne legitimation." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Skal indeholde \"username\" og \"password\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Der er sket en serverfejl." #: exceptions.py:84 msgid "Malformed request." msgstr "Misdannet forespørgsel." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Ugyldig legitimation til autentificering." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Legitimation til autentificering blev ikke angivet." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Du har ikke lov til at udføre denne handling." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Ikke fundet." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Metoden \"{method}\" er ikke tilladt." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Kunne ikke efterkomme forespørgslens Accept header." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Forespørgslens media type, \"{media_type}\", er ikke understøttet." #: exceptions.py:145 msgid "Request was throttled." msgstr "Forespørgslen blev neddroslet." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Dette felt er påkrævet." #: fields.py:270 msgid "This field may not be null." msgstr "Dette felt må ikke være null." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" er ikke en tilladt boolsk værdi." #: fields.py:674 msgid "This field may not be blank." msgstr "Dette felt må ikke være tomt." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Tjek at dette felt ikke indeholder flere end {max_length} tegn." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Tjek at dette felt indeholder mindst {min_length} tegn." #: fields.py:713 msgid "Enter a valid email address." msgstr "Angiv en gyldig e-mailadresse." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Denne værdi passer ikke med det påkrævede mønster." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Indtast en gyldig \"slug\", bestående af bogstaver, tal, bund- og bindestreger." #: fields.py:747 msgid "Enter a valid URL." msgstr "Indtast en gyldig URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" er ikke et gyldigt UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Indtast en gyldig IPv4 eller IPv6 adresse." #: fields.py:821 msgid "A valid integer is required." msgstr "Et gyldigt heltal er påkrævet." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Tjek at værdien er mindre end eller lig med {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Tjek at værdien er større end eller lig med {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Strengværdien er for stor." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Et gyldigt tal er påkrævet." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Tjek at der ikke er flere end {max_digits} cifre i alt." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Tjek at der ikke er flere end {max_decimal_places} cifre efter kommaet." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Tjek at der ikke er flere end {max_whole_digits} cifre før kommaet." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datotid har et forkert format. Brug i stedet et af disse formater: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Forventede en datotid, men fik en dato." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Dato har et forkert format. Brug i stedet et af disse formater: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Forventede en dato men fik en datotid." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Klokkeslæt har forkert format. Brug i stedet et af disse formater: {format}. " #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Varighed har forkert format. Brug istedet et af følgende formater: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" er ikke et gyldigt valg." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Flere end {count} objekter..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Forventede en liste, men fik noget af typen \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Dette valg kan være tomt." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" er ikke et gyldigt valg af adresse." #: fields.py:1358 msgid "No file was submitted." msgstr "Ingen medsendt fil." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Det medsendte data var ikke en fil. Tjek typen af indkodning på formularen." #: fields.py:1360 msgid "No filename could be determined." msgstr "Filnavnet kunne ikke afgøres." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Den medsendte fil er tom." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Sørg for at filnavnet er højst {max_length} langt (det er {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Medsend et gyldigt billede. Den medsendte fil var enten ikke et billede eller billedfilen var ødelagt." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Denne liste er muligvis ikke tom." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Forventede en dictionary, men fik noget af typen \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Værdi skal være gyldig JSON." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Indsend." #: filters.py:336 msgid "ascending" msgstr "stigende" #: filters.py:337 msgid "descending" msgstr "faldende" #: pagination.py:193 msgid "Invalid page." msgstr "Ugyldig side" #: pagination.py:427 msgid "Invalid cursor" msgstr "Ugyldig cursor" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Ugyldig primærnøgle \"{pk_value}\" - objektet findes ikke." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Ugyldig type. Forventet værdi er primærnøgle, fik {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Ugyldigt hyperlink - intet URL match." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Ugyldigt hyperlink - forkert URL match." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Ugyldigt hyperlink - objektet findes ikke." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Forkert type. Forventede en URL-streng, fik {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Object med {slug_name}={value} findes ikke." #: relations.py:402 msgid "Invalid value." msgstr "Ugyldig værdi." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Ugyldig data. Forventede en dictionary, men fik {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtre" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Søgefiltre" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Sortering" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Søg" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Ingen" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Intet at vælge." #: validators.py:43 msgid "This field must be unique." msgstr "Dette felt skal være unikt." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Felterne {field_names} skal udgøre et unikt sæt." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Dette felt skal være unikt for \"{date_field}\"-datoen." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Dette felt skal være unikt for \"{date_field}\"-måneden." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Dette felt skal være unikt for \"{date_field}\"-året." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Ugyldig version i \"Accept\" headeren." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Ugyldig version i URL-stien." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Ugyldig version in URLen. Den stemmer ikke overens med nogen versionsnumre." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Ugyldig version i hostname." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Ugyldig version i forespørgselsparameteren." #: views.py:88 msgid "Permission denied." msgstr "Adgang nægtet." ================================================ FILE: jet_django/deps/rest_framework/locale/de/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Fabian Büchler , 2015 # datKater , 2017 # Lukas Bischofberger , 2017 # Mads Jensen , 2015 # Niklas P , 2015-2016 # Thomas Tanner, 2015 # Tom Jaster , 2015 # Xavier Ordoquy , 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Lukas Bischofberger \n" "Language-Team: German (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Ungültiger basic header. Keine Zugangsdaten angegeben." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Ungültiger basic header. Zugangsdaten sollen keine Leerzeichen enthalten." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Ungültiger basic header. Zugangsdaten sind nicht korrekt mit base64 kodiert." #: authentication.py:99 msgid "Invalid username/password." msgstr "Ungültiger Benutzername/Passwort" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Benutzer inaktiv oder gelöscht." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Ungültiger token header. Keine Zugangsdaten angegeben." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Ungültiger token header. Zugangsdaten sollen keine Leerzeichen enthalten." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Ungültiger Token Header. Tokens dürfen keine ungültigen Zeichen enthalten." #: authentication.py:195 msgid "Invalid token." msgstr "Ungültiges Token" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Auth Token" #: authtoken/models.py:15 msgid "Key" msgstr "Schlüssel" #: authtoken/models.py:18 msgid "User" msgstr "Benutzer" #: authtoken/models.py:20 msgid "Created" msgstr "Erzeugt" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokens" #: authtoken/serializers.py:8 msgid "Username" msgstr "Benutzername" #: authtoken/serializers.py:9 msgid "Password" msgstr "Passwort" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Benutzerkonto ist gesperrt." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Die angegebenen Zugangsdaten stimmen nicht." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "\"username\" und \"password\" sind erforderlich." #: exceptions.py:49 msgid "A server error occurred." msgstr "Ein Serverfehler ist aufgetreten." #: exceptions.py:84 msgid "Malformed request." msgstr "Fehlerhafte Anfrage." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Falsche Anmeldedaten." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Anmeldedaten fehlen." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Sie sind nicht berechtigt diese Aktion durchzuführen." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Nicht gefunden." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Methode \"{method}\" nicht erlaubt." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Kann die Accept Kopfzeile der Anfrage nicht erfüllen." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Nicht unterstützter Medientyp \"{media_type}\" in der Anfrage." #: exceptions.py:145 msgid "Request was throttled." msgstr "Die Anfrage wurde gedrosselt." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Dieses Feld ist erforderlich." #: fields.py:270 msgid "This field may not be null." msgstr "Dieses Feld darf nicht null sein." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" ist kein gültiger Wahrheitswert." #: fields.py:674 msgid "This field may not be blank." msgstr "Dieses Feld darf nicht leer sein." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Stelle sicher, dass dieses Feld nicht mehr als {max_length} Zeichen lang ist." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Stelle sicher, dass dieses Feld mindestens {min_length} Zeichen lang ist." #: fields.py:713 msgid "Enter a valid email address." msgstr "Gib eine gültige E-Mail Adresse an." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Dieser Wert passt nicht zu dem erforderlichen Muster." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Gib ein gültiges \"slug\" aus Buchstaben, Ziffern, Unterstrichen und Minuszeichen ein." #: fields.py:747 msgid "Enter a valid URL." msgstr "Gib eine gültige URL ein." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" ist keine gültige UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Geben Sie eine gültige IPv4 oder IPv6 Adresse an" #: fields.py:821 msgid "A valid integer is required." msgstr "Eine gültige Ganzzahl ist erforderlich." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Stelle sicher, dass dieser Wert kleiner oder gleich {max_value} ist." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Stelle sicher, dass dieser Wert größer oder gleich {min_value} ist." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Zeichenkette zu lang." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Eine gültige Zahl ist erforderlich." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Stelle sicher, dass es insgesamt nicht mehr als {max_digits} Ziffern lang ist." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Stelle sicher, dass es nicht mehr als {max_decimal_places} Nachkommastellen lang ist." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Stelle sicher, dass es nicht mehr als {max_whole_digits} Stellen vor dem Komma lang ist." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datums- und Zeitangabe hat das falsche Format. Nutze stattdessen eines dieser Formate: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Erwarte eine Datums- und Zeitangabe, erhielt aber ein Datum." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Datum hat das falsche Format. Nutze stattdessen eines dieser Formate: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Erwarte ein Datum, erhielt aber eine Datums- und Zeitangabe." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Zeitangabe hat das falsche Format. Nutze stattdessen eines dieser Formate: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Laufzeit hat das falsche Format. Benutze stattdessen eines dieser Formate {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" ist keine gültige Option." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Mehr als {count} Ergebnisse" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Erwarte eine Liste von Elementen, erhielt aber den Typ \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Diese Auswahl darf nicht leer sein" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" ist ein ungültiger Pfad." #: fields.py:1358 msgid "No file was submitted." msgstr "Es wurde keine Datei übermittelt." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Die übermittelten Daten stellen keine Datei dar. Prüfe den Kodierungstyp im Formular." #: fields.py:1360 msgid "No filename could be determined." msgstr "Der Dateiname konnte nicht ermittelt werden." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Die übermittelte Datei ist leer." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Stelle sicher, dass dieser Dateiname höchstens {max_length} Zeichen lang ist (er hat {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Lade ein gültiges Bild hoch. Die hochgeladene Datei ist entweder kein Bild oder ein beschädigtes Bild." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Diese Liste darf nicht leer sein." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Erwartete ein Dictionary mit Elementen, erhielt aber den Typ \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Wert muss gültiges JSON sein." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Abschicken" #: filters.py:336 msgid "ascending" msgstr "Aufsteigend" #: filters.py:337 msgid "descending" msgstr "Absteigend" #: pagination.py:193 msgid "Invalid page." msgstr "Ungültige Seite." #: pagination.py:427 msgid "Invalid cursor" msgstr "Ungültiger Zeiger" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Ungültiger pk \"{pk_value}\" - Object existiert nicht." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Falscher Typ. Erwarte pk Wert, erhielt aber {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Ungültiger Hyperlink - entspricht keiner URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Ungültiger Hyperlink - URL stimmt nicht überein." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Ungültiger Hyperlink - Objekt existiert nicht." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Falscher Typ. Erwarte URL Zeichenkette, erhielt aber {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objekt mit {slug_name}={value} existiert nicht." #: relations.py:402 msgid "Invalid value." msgstr "Ungültiger Wert." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Ungültige Daten. Dictionary erwartet, aber {datatype} erhalten." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filter" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Feldfilter" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Sortierung" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Suche" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Nichts" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Keine Elemente zum Auswählen." #: validators.py:43 msgid "This field must be unique." msgstr "Dieses Feld muss eindeutig sein." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Die Felder {field_names} müssen eine eindeutige Menge bilden." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Dieses Feld muss bezüglich des \"{date_field}\" Datums eindeutig sein." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Dieses Feld muss bezüglich des \"{date_field}\" Monats eindeutig sein." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Dieses Feld muss bezüglich des \"{date_field}\" Jahrs eindeutig sein." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Ungültige Version in der \"Accept\" Kopfzeile." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Ungültige Version im URL Pfad." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Ungültige Version im URL-Pfad. Entspricht keinem Versions-Namensraum." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Ungültige Version im Hostname." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Ungültige Version im Anfrageparameter." #: views.py:88 msgid "Permission denied." msgstr "Zugriff verweigert." ================================================ FILE: jet_django/deps/rest_framework/locale/el/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Serafeim Papastefanos , 2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Greek (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/el/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: el\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Λανθασμένη επικεφαλίδα basic. Δεν υπάρχουν διαπιστευτήρια." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Λανθασμένη επικεφαλίδα basic. Τα διαπιστευτήρια δε μπορεί να περιέχουν κενά." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Λανθασμένη επικεφαλίδα basic. Τα διαπιστευτήρια δεν είναι κωδικοποιημένα κατά base64." #: authentication.py:99 msgid "Invalid username/password." msgstr "Λανθασμένο όνομα χρήστη/κωδικός." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Ο χρήστης είναι ανενεργός ή διεγραμμένος." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Λανθασμένη επικεφαλίδα token. Δεν υπάρχουν διαπιστευτήρια." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Λανθασμένη επικεφαλίδα token. Το token δε πρέπει να περιέχει κενά." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Λανθασμένη επικεφαλίδα token. Το token περιέχει μη επιτρεπτούς χαρακτήρες." #: authentication.py:195 msgid "Invalid token." msgstr "Λανθασμένο token" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Token πιστοποίησης" #: authtoken/models.py:15 msgid "Key" msgstr "Κλειδί" #: authtoken/models.py:18 msgid "User" msgstr "Χρήστης" #: authtoken/models.py:20 msgid "Created" msgstr "Δημιουργήθηκε" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokens" #: authtoken/serializers.py:8 msgid "Username" msgstr "Όνομα χρήστη" #: authtoken/serializers.py:9 msgid "Password" msgstr "Κωδικός" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Ο λογαριασμός χρήστη είναι απενεργοποιημένος." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Δεν είναι δυνατή η σύνδεση με τα διαπιστευτήρια." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Πρέπει να περιέχει \"όνομα χρήστη\" και \"κωδικό\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Σφάλμα διακομιστή." #: exceptions.py:84 msgid "Malformed request." msgstr "Λανθασμένο αίτημα." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Λάθος διαπιστευτήρια." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Δεν δόθηκαν διαπιστευτήρια." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Δεν έχετε δικαίωματα για αυτή την ενέργεια." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Δε βρέθηκε." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Η μέθοδος \"{method\"} δεν επιτρέπεται." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Δεν ήταν δυνατή η ικανοποίηση της επικεφαλίδας Accept της αίτησης." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Δεν υποστηρίζεται το media type \"{media_type}\" της αίτησης." #: exceptions.py:145 msgid "Request was throttled." msgstr "Το αίτημα έγινε throttle." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Το πεδίο είναι απαραίτητο." #: fields.py:270 msgid "This field may not be null." msgstr "Το πεδίο δε μπορεί να είναι null." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "Το \"{input}\" δεν είναι έγκυρο boolean." #: fields.py:674 msgid "This field may not be blank." msgstr "Το πεδίο δε μπορεί να είναι κενό." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Επιβεβαιώσατε ότι το πεδίο δεν έχει περισσότερους από {max_length} χαρακτήρες." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Επιβεβαιώσατε ότι το πεδίο έχει τουλάχιστον {min_length} χαρακτήρες." #: fields.py:713 msgid "Enter a valid email address." msgstr "Συμπληρώσατε μια έγκυρη διεύθυνση e-mail." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Η τιμή δε ταιριάζει με το pattern." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Εισάγετε ένα έγκυρο \"slug\" που αποτελείται από γράμματα, αριθμούς παύλες και κάτω παύλες." #: fields.py:747 msgid "Enter a valid URL." msgstr "Εισάγετε έγκυρο URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "Το \"{value}\" δεν είναι έγκυρο UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Εισάγετε μια έγκυρη διεύθυνση IPv4 ή IPv6." #: fields.py:821 msgid "A valid integer is required." msgstr "Ένας έγκυρος ακέραιος είναι απαραίτητος." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Επιβεβαιώσατε ότι η τιμή είναι μικρότερη ή ίση του {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Επιβεβαιώσατε ότι η τιμή είναι μεγαλύτερη ή ίση του {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Το κείμενο είναι πολύ μεγάλο." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Ένας έγκυρος αριθμός είναι απαραίτητος." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Επιβεβαιώσατε ότι δεν υπάρχουν παραπάνω από {max_digits} ψηφία." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Επιβεβαιώσατε ότι δεν υπάρχουν παραπάνω από {max_decimal_places} δεκαδικά ψηφία." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Επιβεβαιώσατε ότι δεν υπάρχουν παραπάνω από {max_whole_digits} ακέραια ψηφία." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Η ημερομηνία έχεi λάθος μορφή. Χρησιμοποιήστε μια από τις ακόλουθες μορφές: {format}" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Αναμένεται ημερομηνία και ώρα αλλά δόθηκε μόνο ημερομηνία." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Η ημερομηνία έχεi λάθος μορφή. Χρησιμοποιήστε μια από τις ακόλουθες μορφές: {format}" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Αναμένεται ημερομηνία αλλά δόθηκε ημερομηνία και ώρα." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Η ώρα έχει λάθος μορφή. Χρησιμοποιήστε μια από τις ακόλουθες μορφές: {format}" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Η διάρκεια έχει λάθος μορφή. Χρησιμοποιήστε μια από τις ακόλουθες μορφές: {format}" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "Το \"{input}\" δεν είναι έγκυρη επιλογή." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Περισσότερα από {count} αντικείμενα..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Αναμένεται μια λίστα αντικειμένον αλλά δόθηκε ο τύπος \"{input_type}\"" #: fields.py:1302 msgid "This selection may not be empty." msgstr "Η επιλογή δε μπορεί να είναι κενή." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "Το \"{input}\" δεν είναι έγκυρη επιλογή διαδρομής." #: fields.py:1358 msgid "No file was submitted." msgstr "Δεν υποβλήθηκε αρχείο." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Τα δεδομένα που υποβλήθηκαν δεν ήταν αρχείο. Ελέγξατε την κωδικοποίηση της φόρμας." #: fields.py:1360 msgid "No filename could be determined." msgstr "Δε βρέθηκε όνομα αρχείου." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Το αρχείο που υποβλήθηκε είναι κενό." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Επιβεβαιώσατε ότι το όνομα αρχείου έχει ως {max_length} χαρακτήρες (έχει {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Ανεβάστε μια έγκυρη εικόνα. Το αρχείο που ανεβάσατε είτε δεν είναι εικόνα είτε έχει καταστραφεί." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Η λίστα δε μπορεί να είναι κενή." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Αναμένεται ένα λεξικό αντικείμενων αλλά δόθηκε ο τύπος \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Η τιμή πρέπει να είναι μορφής JSON." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Υποβολή" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "Λάθος σελίδα." #: pagination.py:427 msgid "Invalid cursor" msgstr "Λάθος cursor." #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Λάθος κλειδί \"{pk_value}\" - το αντικείμενο δεν υπάρχει." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Λάθος τύπος. Αναμένεται τιμή κλειδιού, δόθηκε {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Λάθος σύνδεση - δε ταιριάζει κάποιο URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Λάθος σύνδεση - δε ταιριάζει κάποιο URL." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Λάθος σύνδεση - το αντικείμενο δεν υπάρχει." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Λάθος τύπος. Αναμένεται URL, δόθηκε {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Το αντικείμενο {slug_name}={value} δεν υπάρχει." #: relations.py:402 msgid "Invalid value." msgstr "Λάθος τιμή." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Λάθος δεδομένα. Αναμένεται λεξικό αλλά δόθηκε {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Φίλτρα" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Φίλτρα πεδίων" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Ταξινόμηση" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Αναζήτηση" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "None" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Δεν υπάρχουν αντικείμενα προς επιλογή." #: validators.py:43 msgid "This field must be unique." msgstr "Το πεδίο πρέπει να είναι μοναδικό" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Τα πεδία {field_names} πρέπει να αποτελούν ένα μοναδικό σύνολο." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Το πεδίο πρέπει να είναι μοναδικό για την ημερομηνία \"{date_field}\"." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Το πεδίο πρέπει να είναι μοναδικό για το μήνα \"{date_field}\"." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Το πεδίο πρέπει να είναι μοναδικό για το έτος \"{date_field}\"." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Λάθος έκδοση στην επικεφαλίδα \"Accept\"." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Λάθος έκδοση στη διαδρομή URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Λάθος έκδοση στο hostname." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Λάθος έκδοση στην παράμετρο" #: views.py:88 msgid "Permission denied." msgstr "Απόρριψη πρόσβασης" ================================================ FILE: jet_django/deps/rest_framework/locale/el_GR/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Greek (Greece) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/el_GR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: el_GR\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/en/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-09-21 21:11+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: English (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/en/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: en\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Invalid basic header. No credentials provided." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Invalid basic header. Credentials string should not contain spaces." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Invalid basic header. Credentials not correctly base64 encoded." #: authentication.py:99 msgid "Invalid username/password." msgstr "Invalid username/password." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "User inactive or deleted." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Invalid token header. No credentials provided." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Invalid token header. Token string should not contain spaces." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Invalid token header. Token string should not contain invalid characters." #: authentication.py:195 msgid "Invalid token." msgstr "Invalid token." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Auth Token" #: authtoken/models.py:15 msgid "Key" msgstr "Key" #: authtoken/models.py:18 msgid "User" msgstr "User" #: authtoken/models.py:20 msgid "Created" msgstr "Created" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokens" #: authtoken/serializers.py:8 msgid "Username" msgstr "Username" #: authtoken/serializers.py:9 msgid "Password" msgstr "Password" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "User account is disabled." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Unable to log in with provided credentials." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Must include \"username\" and \"password\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "A server error occurred." #: exceptions.py:84 msgid "Malformed request." msgstr "Malformed request." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Incorrect authentication credentials." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Authentication credentials were not provided." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "You do not have permission to perform this action." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Not found." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Method \"{method}\" not allowed." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Could not satisfy the request Accept header." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Unsupported media type \"{media_type}\" in request." #: exceptions.py:145 msgid "Request was throttled." msgstr "Request was throttled." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "This field is required." #: fields.py:270 msgid "This field may not be null." msgstr "This field may not be null." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" is not a valid boolean." #: fields.py:674 msgid "This field may not be blank." msgstr "This field may not be blank." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Ensure this field has no more than {max_length} characters." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Ensure this field has at least {min_length} characters." #: fields.py:713 msgid "Enter a valid email address." msgstr "Enter a valid email address." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "This value does not match the required pattern." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Enter a valid \"slug\" consisting of letters, numbers, underscores or hyphens." #: fields.py:747 msgid "Enter a valid URL." msgstr "Enter a valid URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" is not a valid UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Enter a valid IPv4 or IPv6 address." #: fields.py:821 msgid "A valid integer is required." msgstr "A valid integer is required." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Ensure this value is less than or equal to {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Ensure this value is greater than or equal to {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "String value too large." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "A valid number is required." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Ensure that there are no more than {max_digits} digits in total." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Ensure that there are no more than {max_decimal_places} decimal places." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Ensure that there are no more than {max_whole_digits} digits before the decimal point." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datetime has wrong format. Use one of these formats instead: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Expected a datetime but got a date." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Date has wrong format. Use one of these formats instead: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Expected a date but got a datetime." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Time has wrong format. Use one of these formats instead: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Duration has wrong format. Use one of these formats instead: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" is not a valid choice." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "More than {count} items..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Expected a list of items but got type \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "This selection may not be empty." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" is not a valid path choice." #: fields.py:1358 msgid "No file was submitted." msgstr "No file was submitted." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "The submitted data was not a file. Check the encoding type on the form." #: fields.py:1360 msgid "No filename could be determined." msgstr "No filename could be determined." #: fields.py:1361 msgid "The submitted file is empty." msgstr "The submitted file is empty." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Ensure this filename has at most {max_length} characters (it has {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Upload a valid image. The file you uploaded was either not an image or a corrupted image." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "This list may not be empty." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Expected a dictionary of items but got type \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Value must be valid JSON." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Submit" #: filters.py:336 msgid "ascending" msgstr "ascending" #: filters.py:337 msgid "descending" msgstr "descending" #: pagination.py:193 msgid "Invalid page." msgstr "Invalid page." #: pagination.py:427 msgid "Invalid cursor" msgstr "Invalid cursor" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Invalid pk \"{pk_value}\" - object does not exist." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Incorrect type. Expected pk value, received {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Invalid hyperlink - No URL match." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Invalid hyperlink - Incorrect URL match." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Invalid hyperlink - Object does not exist." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Incorrect type. Expected URL string, received {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Object with {slug_name}={value} does not exist." #: relations.py:402 msgid "Invalid value." msgstr "Invalid value." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Invalid data. Expected a dictionary, but got {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filters" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Field filters" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Ordering" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Search" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "None" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "No items to select." #: validators.py:43 msgid "This field must be unique." msgstr "This field must be unique." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "The fields {field_names} must make a unique set." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "This field must be unique for the \"{date_field}\" date." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "This field must be unique for the \"{date_field}\" month." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "This field must be unique for the \"{date_field}\" year." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Invalid version in \"Accept\" header." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Invalid version in URL path." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Invalid version in URL path. Does not match any version namespace." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Invalid version in hostname." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Invalid version in query parameter." #: views.py:88 msgid "Permission denied." msgstr "Permission denied." ================================================ FILE: jet_django/deps/rest_framework/locale/en_AU/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: English (Australia) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/en_AU/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: en_AU\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/en_CA/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: English (Canada) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/en_CA/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: en_CA\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/en_US/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/es/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Ernesto Rico-Schmidt , 2015 # José Padilla , 2015 # Miguel Gonzalez , 2015 # Miguel Gonzalez , 2016 # Miguel Gonzalez , 2015-2016 # Sergio Infante , 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Miguel Gonzalez \n" "Language-Team: Spanish (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: es\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Cabecera básica inválida. Las credenciales no fueron suministradas." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Cabecera básica inválida. La cadena con las credenciales no debe contener espacios." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Cabecera básica inválida. Las credenciales incorrectamente codificadas en base64." #: authentication.py:99 msgid "Invalid username/password." msgstr "Nombre de usuario/contraseña inválidos." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Usuario inactivo o borrado." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Cabecera token inválida. Las credenciales no fueron suministradas." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Cabecera token inválida. La cadena token no debe contener espacios." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Cabecera token inválida. La cadena token no debe contener caracteres inválidos." #: authentication.py:195 msgid "Invalid token." msgstr "Token inválido." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Token de autenticación" #: authtoken/models.py:15 msgid "Key" msgstr "Clave" #: authtoken/models.py:18 msgid "User" msgstr "Usuario" #: authtoken/models.py:20 msgid "Created" msgstr "Fecha de creación" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokens" #: authtoken/serializers.py:8 msgid "Username" msgstr "Nombre de usuario" #: authtoken/serializers.py:9 msgid "Password" msgstr "Contraseña" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Cuenta de usuario está deshabilitada." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "No puede iniciar sesión con las credenciales proporcionadas." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Debe incluir \"username\" y \"password\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Se ha producido un error en el servidor." #: exceptions.py:84 msgid "Malformed request." msgstr "Solicitud con formato incorrecto." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Credenciales de autenticación incorrectas." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Las credenciales de autenticación no se proveyeron." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Usted no tiene permiso para realizar esta acción." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "No encontrado." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Método \"{method}\" no permitido." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "No se ha podido satisfacer la solicitud de cabecera de Accept." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Tipo de medio \"{media_type}\" incompatible en la solicitud." #: exceptions.py:145 msgid "Request was throttled." msgstr "Solicitud fue regulada (throttled)." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Este campo es requerido." #: fields.py:270 msgid "This field may not be null." msgstr "Este campo no puede ser nulo." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" no es un booleano válido." #: fields.py:674 msgid "This field may not be blank." msgstr "Este campo no puede estar en blanco." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Asegúrese de que este campo no tenga más de {max_length} caracteres." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Asegúrese de que este campo tenga al menos {min_length} caracteres." #: fields.py:713 msgid "Enter a valid email address." msgstr "Introduzca una dirección de correo electrónico válida." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Este valor no coincide con el patrón requerido." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Introduzca un \"slug\" válido consistente en letras, números, guiones o guiones bajos." #: fields.py:747 msgid "Enter a valid URL." msgstr "Introduzca una URL válida." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" no es un UUID válido." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Introduzca una dirección IPv4 o IPv6 válida." #: fields.py:821 msgid "A valid integer is required." msgstr "Introduzca un número entero válido." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Asegúrese de que este valor es menor o igual a {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Asegúrese de que este valor es mayor o igual a {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Cadena demasiado larga." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Se requiere un número válido." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Asegúrese de que no haya más de {max_digits} dígitos en total." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Asegúrese de que no haya más de {max_decimal_places} decimales." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Asegúrese de que no haya más de {max_whole_digits} dígitos en la parte entera." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Fecha/hora con formato erróneo. Use uno de los siguientes formatos en su lugar: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Se esperaba un fecha/hora en vez de una fecha." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Fecha con formato erróneo. Use uno de los siguientes formatos en su lugar: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Se esperaba una fecha en vez de una fecha/hora." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Hora con formato erróneo. Use uno de los siguientes formatos en su lugar: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Duración con formato erróneo. Use uno de los siguientes formatos en su lugar: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" no es una elección válida." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Más de {count} elementos..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Se esperaba una lista de elementos en vez del tipo \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Esta selección no puede estar vacía." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" no es una elección de ruta válida." #: fields.py:1358 msgid "No file was submitted." msgstr "No se envió ningún archivo." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "La información enviada no era un archivo. Compruebe el tipo de codificación del formulario." #: fields.py:1360 msgid "No filename could be determined." msgstr "No se pudo determinar un nombre de archivo." #: fields.py:1361 msgid "The submitted file is empty." msgstr "El archivo enviado está vació." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Asegúrese de que el nombre de archivo no tenga más de {max_length} caracteres (tiene {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Adjunte una imagen válida. El archivo adjunto o bien no es una imagen o bien está dañado." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Esta lista no puede estar vacía." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Se esperaba un diccionario de elementos en vez del tipo \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "El valor debe ser JSON válido." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Enviar" #: filters.py:336 msgid "ascending" msgstr "ascendiente" #: filters.py:337 msgid "descending" msgstr "descendiente" #: pagination.py:193 msgid "Invalid page." msgstr "Página inválida." #: pagination.py:427 msgid "Invalid cursor" msgstr "Cursor inválido" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Clave primaria \"{pk_value}\" inválida - objeto no existe." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Tipo incorrecto. Se esperaba valor de clave primaria y se recibió {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Hiperenlace inválido - No hay URL coincidentes." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Hiperenlace inválido - Coincidencia incorrecta de la URL." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Hiperenlace inválido - Objeto no existe." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Tipo incorrecto. Se esperaba una URL y se recibió {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objeto con {slug_name}={value} no existe." #: relations.py:402 msgid "Invalid value." msgstr "Valor inválido." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Datos inválidos. Se esperaba un diccionario pero es un {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtros" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Filtros de campo" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Ordenamiento" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Buscar" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Ninguno" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "No hay elementos para seleccionar." #: validators.py:43 msgid "This field must be unique." msgstr "Este campo debe ser único." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Los campos {field_names} deben formar un conjunto único." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Este campo debe ser único para el día \"{date_field}\"." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Este campo debe ser único para el mes \"{date_field}\"." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Este campo debe ser único para el año \"{date_field}\"." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Versión inválida en la cabecera \"Accept\"." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Versión inválida en la ruta de la URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "La versión especificada en la ruta de la URL no es válida. No coincide con ninguna del espacio de nombres de versiones." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Versión inválida en el nombre de host." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Versión inválida en el parámetro de consulta." #: views.py:88 msgid "Permission denied." msgstr "Permiso denegado." ================================================ FILE: jet_django/deps/rest_framework/locale/et/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Tõnis Kärdi , 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Estonian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/et/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: et\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Sobimatu lihtpäis. Kasutajatunnus on esitamata." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Sobimatu lihtpäis. Kasutajatunnus ei tohi sisaldada tühikuid." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Sobimatu lihtpäis. Kasutajatunnus pole korrektselt base64-kodeeritud." #: authentication.py:99 msgid "Invalid username/password." msgstr "Sobimatu kasutajatunnus/salasõna." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Kasutaja on inaktiivne või kustutatud." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Sobimatu lubakaardi päis. Kasutajatunnus on esitamata." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Sobimatu lubakaardi päis. Loa sõne ei tohi sisaldada tühikuid." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "Sobimatu lubakaart." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Kasutajakonto on suletud." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Sisselogimine antud tunnusega ebaõnnestus." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Peab sisaldama \"kasutajatunnust\" ja \"slasõna\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Viga serveril." #: exceptions.py:84 msgid "Malformed request." msgstr "Väändunud päring." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Ebakorrektne autentimistunnus." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Autentimistunnus on esitamata." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Teil puuduvad piisavad õigused selle tegevuse teostamiseks." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Ei leidnud." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Meetod \"{method}\" pole lubatud." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Päringu Accept-päist ei suutnud täita." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Meedia tüüpi {media_type} päringus ei toetata." #: exceptions.py:145 msgid "Request was throttled." msgstr "Liiga palju päringuid." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Väli on kohustuslik." #: fields.py:270 msgid "This field may not be null." msgstr "Väli ei tohi olla tühi." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" pole kehtiv kahendarv." #: fields.py:674 msgid "This field may not be blank." msgstr "See väli ei tohi olla tühi." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Veendu, et see väli poleks pikem kui {max_length} tähemärki." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Veendu, et see väli oleks vähemalt {min_length} tähemärki pikk." #: fields.py:713 msgid "Enter a valid email address." msgstr "Sisestage kehtiv e-posti aadress." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Väärtus ei ühti etteantud mustriga." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Sisestage kehtiv \"slug\", mis koosneks tähtedest, numbritest, ala- või sidekriipsudest." #: fields.py:747 msgid "Enter a valid URL." msgstr "Sisestage korrektne URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" pole kehtiv UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "Sisendiks peab olema täisarv." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Veenduge, et väärtus on väiksem kui või võrdne väärtusega {max_value}. " #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Veenduge, et väärtus on suurem kui või võrdne väärtusega {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Sõne on liiga pikk." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Sisendiks peab olema arv." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Veenduge, et kokku pole rohkem kui {max_digits} numbit." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Veenduge, et komakohti pole rohkem kui {max_decimal_places}. " #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Veenduge, et täiskohti poleks rohkem kui {max_whole_digits}." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Valesti formaaditud kuupäev-kellaaeg. Kasutage mõnda neist: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Ootasin kuupäev-kellaaeg andmetüüpi, kuid sain hoopis kuupäeva." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Valesti formaaditud kuupäev. Kasutage mõnda neist: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Ootasin kuupäeva andmetüüpi, kuid sain hoopis kuupäev-kellaaja." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Valesti formaaditud kellaaeg. Kasutage mõnda neist: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" on sobimatu valik." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Ootasin kirjete järjendit, kuid sain \"{input_type}\" - tüübi." #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "Ühtegi faili ei esitatud." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Esitatud andmetes ei olnud faili. Kontrollige vormi kodeeringut." #: fields.py:1360 msgid "No filename could be determined." msgstr "Ei suutnud tuvastada failinime." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Esitatud fail oli tühi." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Veenduge, et failinimi oleks maksimaalselt {max_length} tähemärki pikk (praegu on {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Laadige üles kehtiv pildifail. Üles laetud fail ei olnud pilt või oli see katki." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Ootasin kirjete sõnastikku, kuid sain \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "Sobimatu kursor." #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Sobimatu primaarvõti \"{pk_value}\" - objekti pole olemas." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Sobimatu andmetüüp. Ootasin primaarvõtit, sain {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Sobimatu hüperlink - ei leidnud URLi vastet." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Sobimatu hüperlink - vale URLi vaste." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Sobimatu hüperlink - objekti ei eksisteeri." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Sobimatu andmetüüp. Ootasin URLi sõne, sain {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objekti {slug_name}={value} ei eksisteeri." #: relations.py:402 msgid "Invalid value." msgstr "Sobimatu väärtus." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Sobimatud andmed. Ootasin sõnastikku, kuid sain {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "Selle välja väärtus peab olema unikaalne." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Veerud {field_names} peavad moodustama unikaalse hulga." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Selle välja väärtus peab olema unikaalne veerus \"{date_field}\" märgitud kuupäeval." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Selle välja väärtus peab olema unikaalneveerus \"{date_field}\" märgitud kuul." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Selle välja väärtus peab olema unikaalneveerus \"{date_field}\" märgitud aastal." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Sobimatu versioon \"Accept\" päises." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Sobimatu versioon URLi rajas." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Sobimatu versioon hostinimes." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Sobimatu versioon päringu parameetris." #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/fa/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Persian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/fa/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: fa\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/fa_IR/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Persian (Iran) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/fa_IR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: fa_IR\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/fi/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Aarni Koskela, 2015 # Aarni Koskela, 2015-2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Aarni Koskela\n" "Language-Team: Finnish (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/fi/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: fi\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Epäkelpo perusotsake. Ei annettuja tunnuksia." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Epäkelpo perusotsake. Tunnusmerkkijono ei saa sisältää välilyöntejä." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Epäkelpo perusotsake. Tunnukset eivät ole base64-koodattu." #: authentication.py:99 msgid "Invalid username/password." msgstr "Epäkelpo käyttäjänimi tai salasana." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Käyttäjä ei-aktiivinen tai poistettu." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Epäkelpo Token-otsake. Ei annettuja tunnuksia." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Epäkelpo Token-otsake. Tunnusmerkkijono ei saa sisältää välilyöntejä." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Epäkelpo Token-otsake. Tunnusmerkkijono ei saa sisältää epäkelpoja merkkejä." #: authentication.py:195 msgid "Invalid token." msgstr "Epäkelpo Token." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Autentikaatiotunniste" #: authtoken/models.py:15 msgid "Key" msgstr "Avain" #: authtoken/models.py:18 msgid "User" msgstr "Käyttäjä" #: authtoken/models.py:20 msgid "Created" msgstr "Luotu" #: authtoken/models.py:29 msgid "Token" msgstr "Tunniste" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tunnisteet" #: authtoken/serializers.py:8 msgid "Username" msgstr "Käyttäjänimi" #: authtoken/serializers.py:9 msgid "Password" msgstr "Salasana" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Käyttäjätili ei ole käytössä." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Ei voitu kirjautua annetuilla tunnuksilla." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Pitää sisältää \"username\" ja \"password\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Sattui palvelinvirhe." #: exceptions.py:84 msgid "Malformed request." msgstr "Pyyntö on virheellisen muotoinen." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Väärät autentikaatiotunnukset." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Autentikaatiotunnuksia ei annettu." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Sinulla ei ole lupaa suorittaa tätä toimintoa." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Ei löydy." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Metodi \"{method}\" ei ole sallittu." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Ei voitu vastata pyynnön Accept-otsakkeen mukaisesti." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Pyynnön mediatyyppiä \"{media_type}\" ei tueta." #: exceptions.py:145 msgid "Request was throttled." msgstr "Pyyntö hidastettu." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Tämä kenttä vaaditaan." #: fields.py:270 msgid "This field may not be null." msgstr "Tämän kentän arvo ei voi olla \"null\"." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" ei ole kelvollinen totuusarvo." #: fields.py:674 msgid "This field may not be blank." msgstr "Tämä kenttä ei voi olla tyhjä." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Arvo saa olla enintään {max_length} merkkiä pitkä." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Arvo tulee olla vähintään {min_length} merkkiä pitkä." #: fields.py:713 msgid "Enter a valid email address." msgstr "Syötä kelvollinen sähköpostiosoite." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Arvo ei täsmää vaadittuun kuvioon." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Tässä voidaan käyttää vain kirjaimia (a-z), numeroita (0-9) sekä ala- ja tavuviivoja (_ -)." #: fields.py:747 msgid "Enter a valid URL." msgstr "Syötä oikea URL-osoite." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "{value} ei ole kelvollinen UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Syötä kelvollinen IPv4- tai IPv6-osoite." #: fields.py:821 msgid "A valid integer is required." msgstr "Syötä kelvollinen kokonaisluku." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Tämän arvon on oltava enintään {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Tämän luvun on oltava vähintään {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Liian suuri merkkijonoarvo." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Kelvollinen luku vaaditaan." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Tässä luvussa voi olla yhteensä enintään {max_digits} numeroa." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Tässä luvussa saa olla enintään {max_decimal_places} desimaalia." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Tässä luvussa saa olla enintään {max_whole_digits} numeroa ennen desimaalipilkkua." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Virheellinen päivämäärän/ajan muotoilu. Käytä jotain näistä muodoista: {format}" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Odotettiin päivämäärää ja aikaa, saatiin vain päivämäärä." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Virheellinen päivämäärän muotoilu. Käytä jotain näistä muodoista: {format}" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Odotettiin päivämäärää, saatiin päivämäärä ja aika." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Virheellinen kellonajan muotoilu. Käytä jotain näistä muodoista: {format}" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Virheellinen keston muotoilu. Käytä jotain näistä muodoista: {format}" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" ei ole kelvollinen valinta." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Enemmän kuin {count} kappaletta..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Odotettiin listaa, saatiin tyyppi {input_type}." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Valinta ei saa olla tyhjä." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" ei ole kelvollinen polku." #: fields.py:1358 msgid "No file was submitted." msgstr "Yhtään tiedostoa ei ole lähetetty." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Tiedostoa ei lähetetty. Tarkista lomakkeen koodaus (encoding)." #: fields.py:1360 msgid "No filename could be determined." msgstr "Tiedostonimeä ei voitu päätellä." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Lähetetty tiedosto on tyhjä." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Varmista että tiedostonimi on enintään {max_length} merkkiä pitkä (nyt {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Kuva ei kelpaa. Lähettämäsi tiedosto ei ole kuva, tai tiedosto on vioittunut." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Lista ei saa olla tyhjä." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Odotettiin sanakirjaa, saatiin tyyppi {input_type}." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Arvon pitää olla kelvollista JSONia." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Lähetä" #: filters.py:336 msgid "ascending" msgstr "nouseva" #: filters.py:337 msgid "descending" msgstr "laskeva" #: pagination.py:193 msgid "Invalid page." msgstr "Epäkelpo sivu." #: pagination.py:427 msgid "Invalid cursor" msgstr "Epäkelpo kursori" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Epäkelpo pääavain {pk_value} - objektia ei ole olemassa." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Väärä tyyppi. Odotettiin pääavainarvoa, saatiin {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Epäkelpo linkki - URL ei täsmää." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Epäkelpo linkki - epäkelpo URL-osuma." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Epäkelpo linkki - objektia ei ole." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Epäkelpo tyyppi. Odotettiin URL-merkkijonoa, saatiin {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objektia ({slug_name}={value}) ei ole." #: relations.py:402 msgid "Invalid value." msgstr "Epäkelpo arvo." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Odotettiin sanakirjaa, saatiin tyyppi {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Suotimet" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Kenttäsuotimet" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Järjestys" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Haku" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Ei mitään" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Ei valittavia kohteita." #: validators.py:43 msgid "This field must be unique." msgstr "Arvon tulee olla uniikki." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Kenttien {field_names} tulee muodostaa uniikki joukko." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Kentän tulee olla uniikki päivämäärän {date_field} suhteen." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Kentän tulee olla uniikki kuukauden {date_field} suhteen." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Kentän tulee olla uniikki vuoden {date_field} suhteen." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Epäkelpo versio Accept-otsakkeessa." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Epäkelpo versio URL-polussa." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "URL-polun versio ei täsmää mihinkään versionimiavaruuteen." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Epäkelpo versio palvelinosoitteessa." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Epäkelpo versio kyselyparametrissa." #: views.py:88 msgid "Permission denied." msgstr "Pääsy evätty." ================================================ FILE: jet_django/deps/rest_framework/locale/fr/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Etienne Desgagné , 2015 # Martin Maillard , 2015 # Martin Maillard , 2015 # Xavier Ordoquy , 2015-2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Xavier Ordoquy \n" "Language-Team: French (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/fr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: fr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "En-tête « basic » non valide. Informations d'identification non fournies." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "En-tête « basic » non valide. Les informations d'identification ne doivent pas contenir d'espaces." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "En-tête « basic » non valide. Encodage base64 des informations d'identification incorrect." #: authentication.py:99 msgid "Invalid username/password." msgstr "Nom d'utilisateur et/ou mot de passe non valide(s)." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Utilisateur inactif ou supprimé." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "En-tête « token » non valide. Informations d'identification non fournies." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "En-tête « token » non valide. Un token ne doit pas contenir d'espaces." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "En-tête « token » non valide. Un token ne doit pas contenir de caractères invalides." #: authentication.py:195 msgid "Invalid token." msgstr "Token non valide." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Jeton d'authentification" #: authtoken/models.py:15 msgid "Key" msgstr "Clef" #: authtoken/models.py:18 msgid "User" msgstr "Utilisateur" #: authtoken/models.py:20 msgid "Created" msgstr "Création" #: authtoken/models.py:29 msgid "Token" msgstr "Jeton" #: authtoken/models.py:30 msgid "Tokens" msgstr "Jetons" #: authtoken/serializers.py:8 msgid "Username" msgstr "Nom de l'utilisateur" #: authtoken/serializers.py:9 msgid "Password" msgstr "Mot de passe" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Ce compte est désactivé." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Impossible de se connecter avec les informations d'identification fournies." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "\"username\" et \"password\" doivent être inclus." #: exceptions.py:49 msgid "A server error occurred." msgstr "Une erreur du serveur est survenue." #: exceptions.py:84 msgid "Malformed request." msgstr "Requête malformée" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Informations d'authentification incorrectes." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Informations d'authentification non fournies." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Vous n'avez pas la permission d'effectuer cette action." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Pas trouvé." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Méthode \"{method}\" non autorisée." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "L'en-tête « Accept » n'a pas pu être satisfaite." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Type de média \"{media_type}\" non supporté." #: exceptions.py:145 msgid "Request was throttled." msgstr "Requête ralentie." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Ce champ est obligatoire." #: fields.py:270 msgid "This field may not be null." msgstr "Ce champ ne peut être nul." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" n'est pas un booléen valide." #: fields.py:674 msgid "This field may not be blank." msgstr "Ce champ ne peut être vide." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Assurez-vous que ce champ comporte au plus {max_length} caractères." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Assurez-vous que ce champ comporte au moins {min_length} caractères." #: fields.py:713 msgid "Enter a valid email address." msgstr "Saisissez une adresse email valable." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Cette valeur ne satisfait pas le motif imposé." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Ce champ ne doit contenir que des lettres, des nombres, des tirets bas _ et des traits d'union." #: fields.py:747 msgid "Enter a valid URL." msgstr "Saisissez une URL valide." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" n'est pas un UUID valide." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Saisissez une adresse IPv4 ou IPv6 valide." #: fields.py:821 msgid "A valid integer is required." msgstr "Un nombre entier valide est requis." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Assurez-vous que cette valeur est inférieure ou égale à {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Assurez-vous que cette valeur est supérieure ou égale à {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Chaîne de caractères trop longue." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Un nombre valide est requis." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Assurez-vous qu'il n'y a pas plus de {max_digits} chiffres au total." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Assurez-vous qu'il n'y a pas plus de {max_decimal_places} chiffres après la virgule." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Assurez-vous qu'il n'y a pas plus de {max_whole_digits} chiffres avant la virgule." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "La date + heure n'a pas le bon format. Utilisez un des formats suivants : {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Attendait une date + heure mais a reçu une date." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "La date n'a pas le bon format. Utilisez un des formats suivants : {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Attendait une date mais a reçu une date + heure." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "L'heure n'a pas le bon format. Utilisez un des formats suivants : {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "La durée n'a pas le bon format. Utilisez l'un des formats suivants: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" n'est pas un choix valide." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Plus de {count} éléments..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Attendait une liste d'éléments mais a reçu \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Cette sélection ne peut être vide." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" n'est pas un choix de chemin valide." #: fields.py:1358 msgid "No file was submitted." msgstr "Aucun fichier n'a été soumis." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "La donnée soumise n'est pas un fichier. Vérifiez le type d'encodage du formulaire." #: fields.py:1360 msgid "No filename could be determined." msgstr "Le nom de fichier n'a pu être déterminé." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Le fichier soumis est vide." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Assurez-vous que le nom de fichier comporte au plus {max_length} caractères (il en comporte {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Transférez une image valide. Le fichier que vous avez transféré n'est pas une image, ou il est corrompu." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Cette liste ne peut pas être vide." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Attendait un dictionnaire d'éléments mais a reçu \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "La valeur doit être un JSON valide." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Envoyer" #: filters.py:336 msgid "ascending" msgstr "croissant" #: filters.py:337 msgid "descending" msgstr "décroissant" #: pagination.py:193 msgid "Invalid page." msgstr "Page invalide." #: pagination.py:427 msgid "Invalid cursor" msgstr "Curseur non valide" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Clé primaire \"{pk_value}\" non valide - l'objet n'existe pas." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Type incorrect. Attendait une clé primaire, a reçu {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Lien non valide : pas d'URL correspondante." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Lien non valide : URL correspondante incorrecte." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Lien non valide : l'objet n'existe pas." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Type incorrect. Attendait une URL, a reçu {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "L'object avec {slug_name}={value} n'existe pas." #: relations.py:402 msgid "Invalid value." msgstr "Valeur non valide." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Donnée non valide. Attendait un dictionnaire, a reçu {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtres" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Filtres de champ" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Ordre" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Recherche" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Aucune" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Aucun élément à sélectionner." #: validators.py:43 msgid "This field must be unique." msgstr "Ce champ doit être unique." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Les champs {field_names} doivent former un ensemble unique." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Ce champ doit être unique pour la date \"{date_field}\"." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Ce champ doit être unique pour le mois \"{date_field}\"." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Ce champ doit être unique pour l'année \"{date_field}\"." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Version non valide dans l'en-tête « Accept »." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Version non valide dans l'URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Version invalide dans l'URL. Ne correspond à aucune version de l'espace de nommage." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Version non valide dans le nom d'hôte." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Version non valide dans le paramètre de requête." #: views.py:88 msgid "Permission denied." msgstr "Permission refusée." ================================================ FILE: jet_django/deps/rest_framework/locale/fr_CA/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: French (Canada) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/fr_CA/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: fr_CA\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/gl/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Galician (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/gl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: gl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/gl_ES/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Carlos Goce , 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Galician (Spain) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/gl_ES/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: gl_ES\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "Valor non válido." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Ningún" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "Permiso denegado." ================================================ FILE: jet_django/deps/rest_framework/locale/he_IL/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Hebrew (Israel) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/he_IL/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: he_IL\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/hu/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Zoltan Szalai , 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Hungarian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/hu/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: hu\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Érvénytelen basic fejlécmező. Nem voltak megadva azonosítók." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Érvénytelen basic fejlécmező. Az azonosító karakterlánc nem tartalmazhat szóközöket." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Érvénytelen basic fejlécmező. Az azonosítók base64 kódolása nem megfelelő." #: authentication.py:99 msgid "Invalid username/password." msgstr "Érvénytelen felhasználónév/jelszó." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "A felhasználó nincs aktiválva vagy törölve lett." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Érvénytelen token fejlécmező. Nem voltak megadva azonosítók." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Érvénytelen token fejlécmező. A token karakterlánc nem tartalmazhat szóközöket." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "Érvénytelen token." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "A felhasználó tiltva van." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "A megadott azonosítókkal nem lehet bejelentkezni." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Tartalmaznia kell a \"felhasználónevet\" és a \"jelszót\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Szerver oldali hiba történt." #: exceptions.py:84 msgid "Malformed request." msgstr "Hibás kérés." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Hibás azonosítók." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Nem voltak megadva azonosítók." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Nincs jogosultsága a művelet végrehajtásához." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Nem található." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "A \"{method}\" metódus nem megengedett." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "A kérés Accept fejlécmezőjét nem lehetett kiszolgálni." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Nem támogatott média típus \"{media_type}\" a kérésben." #: exceptions.py:145 msgid "Request was throttled." msgstr "A kérés korlátozva lett." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Ennek a mezőnek a megadása kötelező." #: fields.py:270 msgid "This field may not be null." msgstr "Ez a mező nem lehet null értékű." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "Az \"{input}\" nem egy érvényes logikai érték." #: fields.py:674 msgid "This field may not be blank." msgstr "Ez a mező nem lehet üres." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Bizonyosodjon meg arról, hogy ez a mező legfeljebb {max_length} karakterből áll." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Bizonyosodjon meg arról, hogy ez a mező legalább {min_length} karakterből áll." #: fields.py:713 msgid "Enter a valid email address." msgstr "Adjon meg egy érvényes e-mail címet!" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Ez az érték nem illeszkedik a szükséges mintázatra." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Az URL barát cím csak betűket, számokat, aláhúzásokat és kötőjeleket tartalmazhat." #: fields.py:747 msgid "Enter a valid URL." msgstr "Adjon meg egy érvényes URL-t!" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "Egy érvényes egész szám megadása szükséges." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Bizonyosodjon meg arról, hogy ez az érték legfeljebb {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Bizonyosodjon meg arról, hogy ez az érték legalább {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "A karakterlánc túl hosszú." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Egy érvényes szám megadása szükséges." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Bizonyosodjon meg arról, hogy a számjegyek száma összesen legfeljebb {max_digits}." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Bizonyosodjon meg arról, hogy a tizedes tört törtrészében levő számjegyek száma összesen legfeljebb {max_decimal_places}." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Bizonyosodjon meg arról, hogy a tizedes tört egész részében levő számjegyek száma összesen legfeljebb {max_whole_digits}." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "A dátum formátuma hibás. Használja ezek valamelyikét helyette: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Időt is tartalmazó dátum helyett egy időt nem tartalmazó dátum lett elküldve." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "A dátum formátuma hibás. Használja ezek valamelyikét helyette: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Időt nem tartalmazó dátum helyett egy időt is tartalmazó dátum lett elküldve." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Az idő formátuma hibás. Használja ezek valamelyikét helyette: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "Az \"{input}\" nem egy érvényes elem." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Elemek listája helyett \"{input_type}\" lett elküldve." #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "Semmilyen fájl sem került feltöltésre." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Az elküldött adat nem egy fájl volt. Ellenőrizze a kódolás típusát az űrlapon!" #: fields.py:1360 msgid "No filename could be determined." msgstr "A fájlnév nem megállapítható." #: fields.py:1361 msgid "The submitted file is empty." msgstr "A küldött fájl üres." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Bizonyosodjon meg arról, hogy a fájlnév legfeljebb {max_length} karakterből áll (jelenlegi hossza: {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Töltsön fel egy érvényes képfájlt! A feltöltött fájl nem kép volt, vagy megsérült." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Érvénytelen pk \"{pk_value}\" - az objektum nem létezik." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Helytelen típus. pk érték helyett {data_type} lett elküldve." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Érvénytelen link - Nem illeszkedő URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Érvénytelen link. - Eltérő URL illeszkedés." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Érvénytelen link - Az objektum nem létezik." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Helytelen típus. URL karakterlánc helyett {data_type} lett elküldve." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Nem létezik olyan objektum, amelynél {slug_name}={value}." #: relations.py:402 msgid "Invalid value." msgstr "Érvénytelen érték." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Érvénytelen adat. Egy dictionary helyett {datatype} lett elküldve." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "Ennek a mezőnek egyedinek kell lennie." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "A {field_names} mezőnevek nem tartalmazhatnak duplikátumot." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "A mezőnek egyedinek kell lennie a \"{date_field}\" dátumra." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "A mezőnek egyedinek kell lennie a \"{date_field}\" hónapra." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "A mezőnek egyedinek kell lennie a \"{date_field}\" évre." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Érvénytelen verzió az \"Accept\" fejlécmezőben." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Érvénytelen verzió az URL elérési útban." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Érvénytelen verzió a hosztnévben." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Érvénytelen verzió a lekérdezési paraméterben." #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/id/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Indonesian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/id/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: id\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/it/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Antonio Mancina , 2015 # Mattia Procopio , 2015 # Sergio Morstabilini , 2015 # Xavier Ordoquy , 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Italian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/it/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: it\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Header di base invalido. Credenziali non fornite." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Header di base invalido. Le credenziali non dovrebbero contenere spazi." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Credenziali non correttamente codificate in base64." #: authentication.py:99 msgid "Invalid username/password." msgstr "Nome utente/password non validi" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Utente inattivo o eliminato." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Header del token non valido. Credenziali non fornite." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Header del token non valido. Il contenuto del token non dovrebbe contenere spazi." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Header del token invalido. La stringa del token non dovrebbe contenere caratteri illegali." #: authentication.py:195 msgid "Invalid token." msgstr "Token invalido." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "L'account dell'utente è disabilitato" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Impossibile eseguire il login con le credenziali immesse." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Deve includere \"nome utente\" e \"password\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Errore del server." #: exceptions.py:84 msgid "Malformed request." msgstr "Richiesta malformata." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Credenziali di autenticazione incorrette." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Non sono state immesse le credenziali di autenticazione." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Non hai l'autorizzazione per eseguire questa azione." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Non trovato." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Metodo \"{method}\" non consentito" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Impossibile soddisfare l'header \"Accept\" presente nella richiesta." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Tipo di media \"{media_type}\"non supportato." #: exceptions.py:145 msgid "Request was throttled." msgstr "La richiesta è stata limitata (throttled)." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Campo obbligatorio." #: fields.py:270 msgid "This field may not be null." msgstr "Il campo non può essere nullo." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" non è un valido valore booleano." #: fields.py:674 msgid "This field may not be blank." msgstr "Questo campo non può essere omesso." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Assicurati che questo campo non abbia più di {max_length} caratteri." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Assicurati che questo campo abbia almeno {min_length} caratteri." #: fields.py:713 msgid "Enter a valid email address." msgstr "Inserisci un indirizzo email valido." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Questo valore non corrisponde alla sequenza richiesta." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Immetti uno \"slug\" valido che consista di lettere, numeri, underscore o trattini." #: fields.py:747 msgid "Enter a valid URL." msgstr "Inserisci un URL valido" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" non è un UUID valido." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Inserisci un indirizzo IPv4 o IPv6 valido." #: fields.py:821 msgid "A valid integer is required." msgstr "È richiesto un numero intero valido." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Assicurati che il valore sia minore o uguale a {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Assicurati che il valore sia maggiore o uguale a {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Stringa troppo lunga." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "È richiesto un numero valido." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Assicurati che non ci siano più di {max_digits} cifre in totale." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Assicurati che non ci siano più di {max_decimal_places} cifre decimali." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Assicurati che non ci siano più di {max_whole_digits} cifre prima del separatore decimale." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "L'oggetto di tipo datetime è in un formato errato. Usa uno dei seguenti formati: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Atteso un oggetto di tipo datetime ma l'oggetto ricevuto è di tipo date." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "La data è in un formato errato. Usa uno dei seguenti formati: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Atteso un oggetto di tipo date ma l'oggetto ricevuto è di tipo datetime." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "L'orario ha un formato errato. Usa uno dei seguenti formati: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "La durata è in un formato errato. Usa uno dei seguenti formati: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" non è una scelta valida." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Più di {count} oggetti..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Attesa una lista di oggetti ma l'oggetto ricevuto è di tipo \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Questa selezione potrebbe non essere vuota." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" non è un percorso valido." #: fields.py:1358 msgid "No file was submitted." msgstr "Non è stato inviato alcun file." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "I dati inviati non corrispondono ad un file. Si prega di controllare il tipo di codifica nel form." #: fields.py:1360 msgid "No filename could be determined." msgstr "Il nome del file non può essere determinato." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Il file inviato è vuoto." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Assicurati che il nome del file abbia, al più, {max_length} caratteri (attualmente ne ha {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Invia un'immagine valida. Il file che hai inviato non era un'immagine o era corrotto." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Questa lista potrebbe non essere vuota." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Era atteso un dizionario di oggetti ma il dato ricevuto è di tipo \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Il valore deve essere un JSON valido." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Invia" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "Cursore non valido" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Pk \"{pk_value}\" non valido - l'oggetto non esiste." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Tipo non corretto. Era atteso un valore pk, ma è stato ricevuto {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Collegamento non valido - Nessuna corrispondenza di URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Collegamento non valido - Corrispondenza di URL non corretta." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Collegamento non valido - L'oggetto non esiste." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Tipo non corretto. Era attesa una stringa URL, ma è stato ricevuto {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "L'oggetto con {slug_name}={value} non esiste." #: relations.py:402 msgid "Invalid value." msgstr "Valore non valido." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Dati non validi. Era atteso un dizionario, ma si è ricevuto {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtri" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Filtri per il campo" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Ordinamento" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Cerca" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Nessuno" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Nessun elemento da selezionare." #: validators.py:43 msgid "This field must be unique." msgstr "Questo campo deve essere unico." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "I campi {field_names} devono costituire un insieme unico." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Questo campo deve essere unico per la data \"{date_field}\"." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Questo campo deve essere unico per il mese \"{date_field}\"." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Questo campo deve essere unico per l'anno \"{date_field}\"." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Versione non valida nell'header \"Accept\"." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Versione non valida nella sequenza URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Versione non valida nel nome dell'host." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Versione non valida nel parametro della query." #: views.py:88 msgid "Permission denied." msgstr "Permesso negato." ================================================ FILE: jet_django/deps/rest_framework/locale/ja/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Hiroaki Nakamura , 2016 # Kouichi Nishizawa , 2017 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Kouichi Nishizawa \n" "Language-Team: Japanese (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/ja/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ja\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "不正な基本ヘッダです。認証情報が含まれていません。" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "不正な基本ヘッダです。認証情報文字列に空白を含めてはいけません。" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "不正な基本ヘッダです。認証情報がBASE64で正しくエンコードされていません。" #: authentication.py:99 msgid "Invalid username/password." msgstr "ユーザ名かパスワードが違います。" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "ユーザが無効か削除されています。" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "不正なトークンヘッダです。認証情報が含まれていません。" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "不正なトークンヘッダです。トークン文字列に空白を含めてはいけません。" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "不正なトークンヘッダです。トークン文字列に不正な文字を含めてはいけません。" #: authentication.py:195 msgid "Invalid token." msgstr "不正なトークンです。" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "認証トークン" #: authtoken/models.py:15 msgid "Key" msgstr "キー" #: authtoken/models.py:18 msgid "User" msgstr "ユーザ" #: authtoken/models.py:20 msgid "Created" msgstr "作成された" #: authtoken/models.py:29 msgid "Token" msgstr "トークン" #: authtoken/models.py:30 msgid "Tokens" msgstr "トークン" #: authtoken/serializers.py:8 msgid "Username" msgstr "ユーザ名" #: authtoken/serializers.py:9 msgid "Password" msgstr "パスワード" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "ユーザアカウントが無効化されています。" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "提供された認証情報でログインできません。" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "\"username\"と\"password\"を含まなければなりません。" #: exceptions.py:49 msgid "A server error occurred." msgstr "サーバエラーが発生しました。" #: exceptions.py:84 msgid "Malformed request." msgstr "不正な形式のリクエストです。" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "認証情報が正しくありません。" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "認証情報が含まれていません。" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "このアクションを実行する権限がありません。" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "見つかりませんでした。" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "メソッド \"{method}\" は許されていません。" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "リクエストのAcceptヘッダを満たすことができませんでした。" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "リクエストのメディアタイプ \"{media_type}\" はサポートされていません。" #: exceptions.py:145 msgid "Request was throttled." msgstr "リクエストの処理は絞られました。" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "この項目は必須です。" #: fields.py:270 msgid "This field may not be null." msgstr "この項目はnullにできません。" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" は有効なブーリアンではありません。" #: fields.py:674 msgid "This field may not be blank." msgstr "この項目は空にできません。" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "この項目が{max_length}文字より長くならないようにしてください。" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "この項目は少なくとも{min_length}文字以上にしてください。" #: fields.py:713 msgid "Enter a valid email address." msgstr "有効なメールアドレスを入力してください。" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "この値は所要のパターンにマッチしません。" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "文字、数字、アンダースコア、またはハイフンから成る有効な \"slug\" を入力してください。" #: fields.py:747 msgid "Enter a valid URL." msgstr "有効なURLを入力してください。" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" は有効なUUIDではありません。" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "有効なIPv4またはIPv6アドレスを入力してください。" #: fields.py:821 msgid "A valid integer is required." msgstr "有効な整数を入力してください。" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "この値は{max_value}以下にしてください。" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "この値は{min_value}以上にしてください。" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "文字列が長過ぎます。" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "有効な数値を入力してください。" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "合計で最大{max_digits}桁以下になるようにしてください。" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "小数点以下の桁数を{max_decimal_places}を超えないようにしてください。" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "整数部の桁数を{max_whole_digits}を超えないようにしてください。" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "日時の形式が違います。以下のどれかの形式にしてください: {format}。" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "日付ではなく日時を入力してください。" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "日付の形式が違います。以下のどれかの形式にしてください: {format}。" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "日時ではなく日付を入力してください。" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "時刻の形式が違います。以下のどれかの形式にしてください: {format}。" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "機関の形式が違います。以下のどれかの形式にしてください: {format}。" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\"は有効な選択肢ではありません。" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr " {count} 個より多い..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "\"{input_type}\" 型のデータではなく項目のリストを入力してください。" #: fields.py:1302 msgid "This selection may not be empty." msgstr "空でない項目を選択してください。" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\"は有効なパスの選択肢ではありません。" #: fields.py:1358 msgid "No file was submitted." msgstr "ファイルが添付されていません。" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "添付されたデータはファイルではありません。フォームのエンコーディングタイプを確認してください。" #: fields.py:1360 msgid "No filename could be determined." msgstr "ファイル名が取得できませんでした。" #: fields.py:1361 msgid "The submitted file is empty." msgstr "添付ファイルの中身が空でした。" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "ファイル名は最大{max_length}文字にしてください({length}文字でした)。" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "有効な画像をアップロードしてください。アップロードされたファイルは画像でないか壊れた画像です。" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "リストは空ではいけません。" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "\"{input_type}\" 型のデータではなく項目の辞書を入力してください。" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "値は有効なJSONでなければなりません。" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "提出" #: filters.py:336 msgid "ascending" msgstr "昇順" #: filters.py:337 msgid "descending" msgstr "降順" #: pagination.py:193 msgid "Invalid page." msgstr "不正なページです。" #: pagination.py:427 msgid "Invalid cursor" msgstr "カーソルが不正です。" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "主キー \"{pk_value}\" は不正です - データが存在しません。" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "不正な型です。{data_type} 型ではなく主キーの値を入力してください。" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "ハイパーリンクが不正です - URLにマッチしません。" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "ハイパーリンクが不正です - 不正なURLにマッチします。" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "ハイパーリンクが不正です - リンク先が存在しません。" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "不正なデータ型です。{data_type} 型ではなくURL文字列を入力してください。" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "{slug_name}={value} のデータが存在しません。" #: relations.py:402 msgid "Invalid value." msgstr "不正な値です。" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "不正なデータです。{datatype} 型ではなく辞書を入力してください。" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "フィルタ" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "フィールドフィルタ" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "順序" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "検索" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "なし" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "選択する項目がありません。" #: validators.py:43 msgid "This field must be unique." msgstr "この項目は一意でなければなりません。" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "項目 {field_names} は一意な組でなければなりません。" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "この項目は \"{date_field}\" の日に対して一意でなければなりません。" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "この項目は \"{date_field}\" の月に対して一意でなければなりません。" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "この項目は \"{date_field}\" の年に対して一意でなければなりません。" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "\"Accept\" 内のバージョンが不正です。" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "URLパス内のバージョンが不正です。" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "不正なバージョンのURLのパスです。どのバージョンの名前空間にも一致しません。" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "ホスト名内のバージョンが不正です。" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "クエリパラメータ内のバージョンが不正です。" #: views.py:88 msgid "Permission denied." msgstr "権限がありません。" ================================================ FILE: jet_django/deps/rest_framework/locale/ko_KR/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # GarakdongBigBoy , 2017 # Joon Hwan 김준환 , 2017 # SUN CHOI , 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-09-28 09:41+0000\n" "Last-Translator: GarakdongBigBoy \n" "Language-Team: Korean (Korea) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/ko_KR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ko_KR\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "기본 헤더(basic header)가 유효하지 않습니다. 인증데이터(credentials)가 제공되지 않았습니다." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "기본 헤더(basic header)가 유효하지 않습니다. 인증데이터(credentials) 문자열은 빈칸(spaces)을 포함하지 않아야 합니다." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "기본 헤더(basic header)가 유효하지 않습니다. 인증데이터(credentials)가 base64로 적절히 부호화(encode)되지 않았습니다." #: authentication.py:99 msgid "Invalid username/password." msgstr "아이디/비밀번호가 유효하지 않습니다." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "계정이 중지되었거나 삭제되었습니다." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "토큰 헤더가 유효하지 않습니다. 인증데이터(credentials)가 제공되지 않았습니다." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "토큰 헤더가 유효하지 않습니다. 토큰 문자열은 빈칸(spaces)을 포함하지 않아야 합니다." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "토큰 헤더가 유효하지 않습니다. 토큰 문자열은 유효하지 않은 문자를 포함하지 않아야 합니다." #: authentication.py:195 msgid "Invalid token." msgstr "토큰이 유효하지 않습니다." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "사용자 계정을 사용할 수 없습니다." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "제공된 인증데이터(credentials)로는 로그인할 수 없습니다." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "\"아이디\"와 \"비밀번호\"를 포함해야 합니다." #: exceptions.py:49 msgid "A server error occurred." msgstr "서버 장애가 발생했습니다." #: exceptions.py:84 msgid "Malformed request." msgstr "잘못된 요청입니다." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "자격 인증데이터(authentication credentials)가 정확하지 않습니다." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "자격 인증데이터(authentication credentials)가 제공되지 않았습니다." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "이 작업을 수행할 권한(permission)이 없습니다." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "찾을 수 없습니다." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "메소드(Method) \"{method}\"는 허용되지 않습니다." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Accept header 요청을 만족할 수 없습니다." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "요청된 \"{media_type}\"가 지원되지 않는 미디어 형태입니다." #: exceptions.py:145 msgid "Request was throttled." msgstr "요청이 지연(throttled)되었습니다." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "이 필드는 필수 항목입니다." #: fields.py:270 msgid "This field may not be null." msgstr "이 필드는 null일 수 없습니다." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\"이 유효하지 않은 부울(boolean)입니다." #: fields.py:674 msgid "This field may not be blank." msgstr "이 필드는 blank일 수 없습니다." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "이 필드의 글자 수가 {max_length} 이하인지 확인하십시오." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "이 필드의 글자 수가 적어도 {min_length} 이상인지 확인하십시오." #: fields.py:713 msgid "Enter a valid email address." msgstr "유효한 이메일 주소를 입력하십시오." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "형식에 맞지 않는 값입니다." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "문자, 숫자, 밑줄( _ ) 또는 하이픈( - )으로 이루어진 유효한 \"slug\"를 입력하십시오." #: fields.py:747 msgid "Enter a valid URL." msgstr "유효한 URL을 입력하십시오." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\"가 유효하지 않은 UUID 입니다." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "유효한 IPv4 또는 IPv6 주소를 입력하십시오." #: fields.py:821 msgid "A valid integer is required." msgstr "유효한 정수(integer)를 넣어주세요." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "이 값이 {max_value}보다 작거나 같은지 확인하십시오." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "이 값이 {min_value}보다 크거나 같은지 확인하십시오." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "문자열 값이 너무 큽니다." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "유효한 숫자를 넣어주세요." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "전체 숫자(digits)가 {max_digits} 이하인지 확인하십시오." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "소수점 자릿수가 {max_decimal_places} 이하인지 확인하십시오." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "소수점 자리 앞에 숫자(digits)가 {max_whole_digits} 이하인지 확인하십시오." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datetime의 포멧이 잘못되었습니다. 이 형식들 중 한가지를 사용하세요: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "예상된 datatime 대신 date를 받았습니다." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Date의 포멧이 잘못되었습니다. 이 형식들 중 한가지를 사용하세요: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "예상된 date 대신 datetime을 받았습니다." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Time의 포멧이 잘못되었습니다. 이 형식들 중 한가지를 사용하세요: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Duration의 포멧이 잘못되었습니다. 이 형식들 중 한가지를 사용하세요: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\"이 유효하지 않은 선택(choice)입니다." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "아이템 리스트가 예상되었으나 \"{input_type}\"를 받았습니다." #: fields.py:1302 msgid "This selection may not be empty." msgstr "이 선택 항목은 비워 둘 수 없습니다." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\"이 유효하지 않은 경로 선택입니다." #: fields.py:1358 msgid "No file was submitted." msgstr "파일이 제출되지 않았습니다." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "제출된 데이터는 파일이 아닙니다. 제출된 서식의 인코딩 형식을 확인하세요." #: fields.py:1360 msgid "No filename could be determined." msgstr "파일명을 알 수 없습니다." #: fields.py:1361 msgid "The submitted file is empty." msgstr "제출한 파일이 비어있습니다." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "이 파일명의 글자수가 최대 {max_length}를 넘지 않는지 확인하십시오. (이것은 {length}가 있습니다)." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "유효한 이미지 파일을 업로드 하십시오. 업로드 하신 파일은 이미지 파일이 아니거나 손상된 이미지 파일입니다." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "이 리스트는 비워 둘 수 없습니다." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "아이템 딕셔너리가 예상되었으나 \"{input_type}\" 타입을 받았습니다." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Value 는 유효한 JSON형식이어야 합니다." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "오름차순" #: filters.py:337 msgid "descending" msgstr "내림차순" #: pagination.py:193 msgid "Invalid page." msgstr "페이지가 유효하지 않습니다." #: pagination.py:427 msgid "Invalid cursor" msgstr "커서(cursor)가 유효하지 않습니다." #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "유효하지 않은 pk \"{pk_value}\" - 객체가 존재하지 않습니다." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "잘못된 형식입니다. pk 값 대신 {data_type}를 받았습니다." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "유효하지 않은 하이퍼링크 - 일치하는 URL이 없습니다." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "유효하지 않은 하이퍼링크 - URL이 일치하지 않습니다." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "유효하지 않은 하이퍼링크 - 객체가 존재하지 않습니다." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "잘못된 형식입니다. URL 문자열을 예상했으나 {data_type}을 받았습니다." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "{slug_name}={value} 객체가 존재하지 않습니다." #: relations.py:402 msgid "Invalid value." msgstr "값이 유효하지 않습니다." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "유효하지 않은 데이터. 딕셔너리(dictionary)대신 {datatype}를 받았습니다." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "검색" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "선택할 아이템이 없습니다." #: validators.py:43 msgid "This field must be unique." msgstr "이 필드는 반드시 고유(unique)해야 합니다." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "필드 {field_names} 는 반드시 고유(unique)해야 합니다." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "이 필드는 고유(unique)한 \"{date_field}\" 날짜를 갖습니다." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "이 필드는 고유(unique)한 \"{date_field}\" 월을 갖습니다. " #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "이 필드는 고유(unique)한 \"{date_field}\" 년을 갖습니다. " #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "\"Accept\" 헤더(header)의 버전이 유효하지 않습니다." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "URL path의 버전이 유효하지 않습니다." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "URL 경로에 유효하지 않은 버전이 있습니다. 버전 네임 스페이스와 일치하지 않습니다." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "hostname내 버전이 유효하지 않습니다." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "쿼리 파라메터내 버전이 유효하지 않습니다." #: views.py:88 msgid "Permission denied." msgstr "사용 권한이 거부되었습니다." ================================================ FILE: jet_django/deps/rest_framework/locale/lv/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # peterisb , 2017 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-05 12:13+0000\n" "Last-Translator: peterisb \n" "Language-Team: Latvian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/lv/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: lv\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Nederīgs pieprasījuma sākums. Akreditācijas parametri nav nodrošināti." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Nederīgs pieprasījuma sākums. Akreditācijas parametriem jābūt bez atstarpēm." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Nederīgs pieprasījuma sākums. Akreditācijas parametri nav korekti base64 kodēti." #: authentication.py:99 msgid "Invalid username/password." msgstr "Nederīgs lietotājvārds/parole." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Lietotājs neaktīvs vai dzēsts." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Nederīgs pilnvaras sākums. Akreditācijas parametri nav nodrošināti." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Nederīgs pilnvaras sākums. Pilnvaras parametros nevar būt tukšumi." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Nederīgs pilnvaras sākums. Pilnvaras parametros nevar būt nederīgas zīmes." #: authentication.py:195 msgid "Invalid token." msgstr "Nederīga pilnavara." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Autorizācijas pilnvara" #: authtoken/models.py:15 msgid "Key" msgstr "Atslēga" #: authtoken/models.py:18 msgid "User" msgstr "Lietotājs" #: authtoken/models.py:20 msgid "Created" msgstr "Izveidots" #: authtoken/models.py:29 msgid "Token" msgstr "Pilnvara" #: authtoken/models.py:30 msgid "Tokens" msgstr "Pilnvaras" #: authtoken/serializers.py:8 msgid "Username" msgstr "Lietotājvārds" #: authtoken/serializers.py:9 msgid "Password" msgstr "Parole" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Lietotāja konts ir atslēgts." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Neiespējami pieteikties sistēmā ar nodrošinātajiem akreditācijas datiem." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Jābūt iekļautam \"username\" un \"password\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Notikusi servera kļūda." #: exceptions.py:84 msgid "Malformed request." msgstr "Nenoformēts pieprasījums." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Nekorekti autentifikācijas parametri." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Netika nodrošināti autorizācijas parametri." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Tev nav tiesību veikt šo darbību." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Nav atrasts." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Metode \"{method}\" nav atļauta." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Nevarēja apmierināt pieprasījuma Accept header." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Pieprasījumā neatbalstīts datu tips \"{media_type}\" ." #: exceptions.py:145 msgid "Request was throttled." msgstr "Pieprasījums tika apturēts." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Šis lauks ir obligāts." #: fields.py:270 msgid "This field may not be null." msgstr "Šis lauks nevar būt null." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" ir nederīga loģiskā vērtība." #: fields.py:674 msgid "This field may not be blank." msgstr "Šis lauks nevar būt tukšs." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Pārliecinies, ka laukā nav vairāk par {max_length} zīmēm." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Pārliecinies, ka laukā ir vismaz {min_length} zīmes." #: fields.py:713 msgid "Enter a valid email address." msgstr "Ievadi derīgu e-pasta adresi." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Šī vērtība neatbilst prasītajam pierakstam." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Ievadi derīgu \"slug\" vērtību, kura sastāv no burtiem, skaitļiem, apakš-svītras vai defises." #: fields.py:747 msgid "Enter a valid URL." msgstr "Ievadi derīgu URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" ir nedrīgs UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Ievadi derīgu IPv4 vai IPv6 adresi." #: fields.py:821 msgid "A valid integer is required." msgstr "Prasīta ir derīga skaitliska vērtība." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Pārliecinies, ka šī vērtība ir mazāka vai vienāda ar {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Pārliecinies, ka šī vērtība ir lielāka vai vienāda ar {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Teksta vērtība pārāk liela." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Derīgs skaitlis ir prasīts." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Pārliecinies, ka nav vairāk par {max_digits} zīmēm kopā." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Pārliecinies, ka nav vairāk par {max_decimal_places} decimālajām zīmēm." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Pārliecinies, ka nav vairāk par {max_whole_digits} zīmēm pirms komata." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datuma un laika formāts ir nepareizs. Lieto vienu no norādītajiem formātiem: \"{format}.\"" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Tika gaidīts datums un laiks, saņemts datums.." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Datumam ir nepareizs formāts. Lieto vienu no norādītajiem formātiem: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Tika gaidīts datums, saņemts datums un laiks." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Laikam ir nepareizs formāts. Lieto vienu no norādītajiem formātiem: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Ilgumam ir nepreizs formāts. Lieto vienu no norādītajiem formātiem: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" ir nederīga izvēle." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Vairāk par {count} ierakstiem..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Tika gaidīts saraksts ar ierakstiem, bet tika saņemts \"{input_type}\" tips." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Šī daļa nevar būt tukša." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" ir nederīga ceļa izvēle." #: fields.py:1358 msgid "No file was submitted." msgstr "Neviens fails netika pievienots." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Pievienotie dati nebija fails. Pārbaudi kodējuma tipu formā." #: fields.py:1360 msgid "No filename could be determined." msgstr "Faila nosaukums nevar tikt noteikts." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Pievienotais fails ir tukšs." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Pārliecinies, ka faila nosaukumā ir vismaz {max_length} zīmes (tajā ir {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Augšupielādē derīgu attēlu. Pievienotā datne nebija attēls vai bojāts attēls." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Šis saraksts nevar būt tukšs." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Tika gaidīta vārdnīca ar ierakstiem, bet tika saņemts \"{input_type}\" tips." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Vērtībai ir jābūt derīgam JSON." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Iesniegt" #: filters.py:336 msgid "ascending" msgstr "augoši" #: filters.py:337 msgid "descending" msgstr "dilstoši" #: pagination.py:193 msgid "Invalid page." msgstr "Nederīga lapa." #: pagination.py:427 msgid "Invalid cursor" msgstr "Nederīgs kursors" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Nederīga pk \"{pk_value}\" - objekts neeksistē." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Nepareizs tips. Tika gaidīta pk vērtība, saņemts {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Nederīga hipersaite - Nav URL sakritība." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Nederīga hipersaite - Nederīga URL sakritība." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Nederīga hipersaite - Objekts neeksistē." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Nepareizs tips. Tika gaidīts URL teksts, saņemts {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objekts ar {slug_name}={value} neeksistē." #: relations.py:402 msgid "Invalid value." msgstr "Nedrīga vērtība." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Nederīgi dati. Tika gaidīta vārdnīca, saņemts {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtri" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Lauka filtri" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Kārtošana" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Meklēt" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Nekas" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Nav ierakstu, ko izvēlēties." #: validators.py:43 msgid "This field must be unique." msgstr "Šim laukam ir jābūt unikālam." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Laukiem {field_names} jāveido unikālas kombinācijas." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Šim laukam ir jābūt unikālam priekš \"{date_field}\" datuma." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Šim laukam ir jābūt unikālam priekš \"{date_field}\" mēneša." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Šim laukam ir jābūt unikālam priekš \"{date_field}\" gada." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Nederīga versija \"Accept\" galvenē." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Nederīga versija URL ceļā." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Nederīga versija URL ceļā. Nav atbilstības esošo versiju telpā." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Nederīga versija servera nosaukumā." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Nederīga versija pieprasījuma parametros." #: views.py:88 msgid "Permission denied." msgstr "Pieeja liegta." ================================================ FILE: jet_django/deps/rest_framework/locale/mk/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Filip Dimitrovski , 2015-2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Filip Dimitrovski \n" "Language-Team: Macedonian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/mk/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: mk\n" "Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Невалиден основен header. Не се внесени податоци за автентикација." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Невалиден основен header. Автентикационата низа не треба да содржи празни места." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Невалиден основен header. Податоците за автентикација не се енкодирани со base64." #: authentication.py:99 msgid "Invalid username/password." msgstr "Невалидно корисничко име/лозинка." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Корисникот е деактивиран или избришан." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Невалиден токен header. Не се внесени податоци за најава." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Невалиден токен во header. Токенот не треба да содржи празни места." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "Невалиден токен." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Автентикациски токен" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "Корисник" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "Токен" #: authtoken/models.py:30 msgid "Tokens" msgstr "Токени" #: authtoken/serializers.py:8 msgid "Username" msgstr "Корисничко име" #: authtoken/serializers.py:9 msgid "Password" msgstr "Лозинка" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Сметката на корисникот е деактивирана." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Не може да се најавите со податоците за најава." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Мора да се внесе „username“ и „password“." #: exceptions.py:49 msgid "A server error occurred." msgstr "Настана серверска грешка." #: exceptions.py:84 msgid "Malformed request." msgstr "Неправилен request." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Неточни податоци за најава." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Не се внесени податоци за најава." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Немате дозвола да го сторите ова." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Не е пронајдено ништо." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Методата \"{method}\" не е дозволена." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Не може да се исполни барањето на Accept header-от." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Media типот „{media_type}“ не е поддржан." #: exceptions.py:145 msgid "Request was throttled." msgstr "Request-от е забранет заради ограничувања." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Ова поле е задолжително." #: fields.py:270 msgid "This field may not be null." msgstr "Ова поле не смее да биде недефинирано." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" не е валиден boolean." #: fields.py:674 msgid "This field may not be blank." msgstr "Ова поле не смее да биде празно." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Ова поле не смее да има повеќе од {max_length} знаци." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Ова поле мора да има барем {min_length} знаци." #: fields.py:713 msgid "Enter a valid email address." msgstr "Внесете валидна email адреса." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Ова поле не е по правилната шема/барање." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Внесете валидно име што содржи букви, бројки, долни црти или црти." #: fields.py:747 msgid "Enter a valid URL." msgstr "Внесете валиден URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" не е валиден UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Внеси валидна IPv4 или IPv6 адреса." #: fields.py:821 msgid "A valid integer is required." msgstr "Задолжителен е валиден цел број." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Вредноста треба да биде помала или еднаква на {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Вредноста треба да биде поголема или еднаква на {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Вредноста е преголема." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Задолжителен е валиден број." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Не смее да има повеќе од {max_digits} цифри вкупно." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Не смее да има повеќе од {max_decimal_places} децимални места." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Не смее да има повеќе од {max_whole_digits} цифри пред децималната точка." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Датата и времето се со погрешен формат. Користете го овој формат: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Очекувано беше дата и време, а внесено беше само дата." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Датата е со погрешен формат. Користете го овој формат: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Очекувана беше дата, а внесени беа и дата и време." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Времето е со погрешен формат. Користете го овој формат: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "„{input}“ не е валиден избор." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Повеќе од {count} ставки..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Очекувана беше листа од ставки, а внесено беше „{input_type}“." #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "Ниеден фајл не е качен (upload-иран)." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Испратените податоци не се фајл. Проверете го encoding-от на формата." #: fields.py:1360 msgid "No filename could be determined." msgstr "Не може да се открие име на фајлот." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Качениот (upload-иран) фајл е празен." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Името на фајлот треба да има највеќе {max_length} знаци (а има {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Качете (upload-ирајте) валидна слика. Фајлот што го качивте не е валидна слика или е расипан." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Оваа листа не смее да биде празна." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Очекуван беше dictionary од ставки, a внесен беше тип \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Вредноста мора да биде валиден JSON." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Испрати" #: filters.py:336 msgid "ascending" msgstr "растечки" #: filters.py:337 msgid "descending" msgstr "опаѓачки" #: pagination.py:193 msgid "Invalid page." msgstr "Невалидна вредност за страна." #: pagination.py:427 msgid "Invalid cursor" msgstr "Невалиден покажувач (cursor)" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Невалиден pk „{pk_value}“ - објектот не постои." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Неточен тип. Очекувано беше pk, а внесено {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Невалиден хиперлинк - не е внесен URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Невалиден хиперлинк - внесен е неправилен URL." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Невалиден хиперлинк - Објектот не постои." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Неточен тип. Очекувано беше URL, a внесено {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Објектот со {slug_name}={value} не постои." #: relations.py:402 msgid "Invalid value." msgstr "Невалидна вредност." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Невалидни податоци. Очекуван беше dictionary, а внесен {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Филтри" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Филтри на полиња" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Подредување" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Пребарај" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Ништо" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Нема ставки за избирање." #: validators.py:43 msgid "This field must be unique." msgstr "Ова поле мора да биде уникатно." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Полињата {field_names} заедно мора да формираат уникатен збир." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Ова поле мора да биде уникатно за „{date_field}“ датата." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Ова поле мора да биде уникатно за „{date_field}“ месецот." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Ова поле мора да биде уникатно за „{date_field}“ годината." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Невалидна верзија во „Accept“ header-от." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Невалидна верзија во URL патеката." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Верзијата во URL патеката не е валидна. Не се согласува со ниеден version namespace (именски простор за верзии)." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Невалидна верзија во hostname-от." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Невалидна верзија во query параметарот." #: views.py:88 msgid "Permission denied." msgstr "Барањето не е дозволено." ================================================ FILE: jet_django/deps/rest_framework/locale/nb/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Håken Lid , 2017 # Petter Kjelkenes , 2015 # Thomas Bruun , 2017 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-11-28 15:25+0000\n" "Last-Translator: Håken Lid \n" "Language-Team: Norwegian Bokmål (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/nb/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: nb\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Ugyldig basic header. Ingen legitimasjon gitt." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Ugyldig basic header. Legitimasjonsstreng bør ikke inneholde mellomrom." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Ugyldig basic header. Legitimasjonen ikke riktig Base64 kodet." #: authentication.py:99 msgid "Invalid username/password." msgstr "Ugyldig brukernavn eller passord." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Bruker inaktiv eller slettet." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Ugyldig token header. Ingen legitimasjon gitt." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Ugyldig token header. Token streng skal ikke inneholde mellomrom." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Ugyldig token header. Tokenstrengen skal ikke inneholde ugyldige tegn." #: authentication.py:195 msgid "Invalid token." msgstr "Ugyldig token." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Auth Token" #: authtoken/models.py:15 msgid "Key" msgstr "Nøkkel" #: authtoken/models.py:18 msgid "User" msgstr "Bruker" #: authtoken/models.py:20 msgid "Created" msgstr "Opprettet" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokener" #: authtoken/serializers.py:8 msgid "Username" msgstr "Brukernavn" #: authtoken/serializers.py:9 msgid "Password" msgstr "Passord" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Brukerkonto er deaktivert." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Kan ikke logge inn med gitt legitimasjon." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Må inneholde \"username\" og \"password\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "En serverfeil skjedde." #: exceptions.py:84 msgid "Malformed request." msgstr "Misformet forespørsel." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Ugyldig autentiseringsinformasjon." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Manglende autentiseringsinformasjon." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Du har ikke tilgang til å utføre denne handlingen." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Ikke funnet." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Metoden \"{method}\" ikke gyldig." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Kunne ikke tilfredsstille request Accept header." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Ugyldig media type \"{media_type}\" i request." #: exceptions.py:145 msgid "Request was throttled." msgstr "Forespørselen ble strupet." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Dette feltet er påkrevd." #: fields.py:270 msgid "This field may not be null." msgstr "Dette feltet må ikke være tomt." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" er ikke en gyldig bolsk verdi." #: fields.py:674 msgid "This field may not be blank." msgstr "Dette feltet må ikke være blankt." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Forsikre deg om at dette feltet ikke har mer enn {max_length} tegn." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Forsikre deg at dette feltet har minst {min_length} tegn." #: fields.py:713 msgid "Enter a valid email address." msgstr "Oppgi en gyldig epost-adresse." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Denne verdien samsvarer ikke med de påkrevde mønsteret." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Skriv inn en gyldig \"slug\" som består av bokstaver, tall, understrek eller bindestrek." #: fields.py:747 msgid "Enter a valid URL." msgstr "Skriv inn en gyldig URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" er ikke en gyldig UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Skriv inn en gyldig IPv4 eller IPv6-adresse." #: fields.py:821 msgid "A valid integer is required." msgstr "En gyldig heltall er nødvendig." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Sikre denne verdien er mindre enn eller lik {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Sikre denne verdien er større enn eller lik {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Strengverdien for stor." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Et gyldig nummer er nødvendig." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Pass på at det ikke er flere enn {max_digits} siffer totalt." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Pass på at det ikke er flere enn {max_decimal_places} desimaler." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Pass på at det ikke er flere enn {max_whole_digits} siffer før komma." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datetime har feil format. Bruk et av disse formatene i stedet: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Forventet en datetime, men fikk en date." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Dato har feil format. Bruk et av disse formatene i stedet: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Forventet en date, men fikk en datetime." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Tid har feil format. Bruk et av disse formatene i stedet: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Varighet har feil format. Bruk et av disse formatene i stedet: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" er ikke et gyldig valg." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Mer enn {count} elementer ..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Forventet en liste over elementer, men fikk type \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Dette valget kan ikke være tomt." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" er ikke en gyldig bane valg." #: fields.py:1358 msgid "No file was submitted." msgstr "Ingen fil ble sendt." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "De innsendte data var ikke en fil. Kontroller kodingstypen på skjemaet." #: fields.py:1360 msgid "No filename could be determined." msgstr "Kunne ikke finne filnavn." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Den innsendte filen er tom." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Sikre dette filnavnet har på det meste {max_length} tegn (det har {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Last opp et gyldig bilde. Filen du lastet opp var enten ikke et bilde eller en ødelagt bilde." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Denne listen kan ikke være tom." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Forventet en dictionary av flere ting, men fikk typen \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Verdien må være gyldig JSON." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Send inn" #: filters.py:336 msgid "ascending" msgstr "stigende" #: filters.py:337 msgid "descending" msgstr "synkende" #: pagination.py:193 msgid "Invalid page." msgstr "Ugyldig side" #: pagination.py:427 msgid "Invalid cursor" msgstr "Ugyldig markør" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Ugyldig pk \"{pk_value}\" - objektet eksisterer ikke." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Feil type. Forventet pk verdi, fikk {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Ugyldig hyperkobling - No URL match." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Ugyldig hyperkobling - Incorrect URL match." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Ugyldig hyperkobling - Objektet eksisterer ikke." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Feil type. Forventet URL streng, fikk {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objekt med {slug_name}={value} finnes ikke." #: relations.py:402 msgid "Invalid value." msgstr "Ugyldig verdi." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Ugyldige data. Forventet en dictionary, men fikk {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtre" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Feltfiltre" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Sortering" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Søk" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Ingen" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Ingenting å velge." #: validators.py:43 msgid "This field must be unique." msgstr "Dette feltet må være unikt." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Feltene {field_names} må gjøre et unikt sett." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Dette feltet må være unikt for \"{date_field}\" dato." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Dette feltet må være unikt for \"{date_field}\" måned." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Dette feltet må være unikt for \"{date_field}\" år." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Ugyldig versjon på \"Accept\" header." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Ugyldig versjon i URL-banen." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Ugyldig versjon i URL. Passer ikke med noen eksisterende versjon." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Ugyldig versjon i vertsnavn." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Ugyldig versjon i søkeparameter." #: views.py:88 msgid "Permission denied." msgstr "Tillatelse avslått." ================================================ FILE: jet_django/deps/rest_framework/locale/nl/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Hans van Luttikhuizen , 2016 # Mike Dingjan , 2015 # Mike Dingjan , 2017 # Mike Dingjan , 2015 # Hans van Luttikhuizen , 2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Mike Dingjan \n" "Language-Team: Dutch (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/nl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: nl\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Ongeldige basic header. Geen logingegevens opgegeven." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Ongeldige basic header. logingegevens kunnen geen spaties bevatten." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Ongeldige basic header. logingegevens zijn niet correct base64-versleuteld." #: authentication.py:99 msgid "Invalid username/password." msgstr "Ongeldige gebruikersnaam/wachtwoord." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Gebruiker inactief of verwijderd." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Ongeldige token header. Geen logingegevens opgegeven" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Ongeldige token header. Token kan geen spaties bevatten." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Ongeldige token header. Token kan geen ongeldige karakters bevatten." #: authentication.py:195 msgid "Invalid token." msgstr "Ongeldige token." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Autorisatietoken" #: authtoken/models.py:15 msgid "Key" msgstr "Key" #: authtoken/models.py:18 msgid "User" msgstr "Gebruiker" #: authtoken/models.py:20 msgid "Created" msgstr "Aangemaakt" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokens" #: authtoken/serializers.py:8 msgid "Username" msgstr "Gebruikersnaam" #: authtoken/serializers.py:9 msgid "Password" msgstr "Wachtwoord" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Gebruikersaccount is gedeactiveerd." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Kan niet inloggen met opgegeven gegevens." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Moet \"username\" en \"password\" bevatten." #: exceptions.py:49 msgid "A server error occurred." msgstr "Er is een serverfout opgetreden." #: exceptions.py:84 msgid "Malformed request." msgstr "Ongeldig samengestelde request." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Ongeldige authenticatiegegevens." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Authenticatiegegevens zijn niet opgegeven." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Je hebt geen toestemming om deze actie uit te voeren." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Niet gevonden." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Methode \"{method}\" niet toegestaan." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Kan niet voldoen aan de opgegeven Accept header." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Ongeldige media type \"{media_type}\" in aanvraag." #: exceptions.py:145 msgid "Request was throttled." msgstr "Aanvraag was verstikt." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Dit veld is vereist." #: fields.py:270 msgid "This field may not be null." msgstr "Dit veld mag niet leeg zijn." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" is een ongeldige booleanwaarde." #: fields.py:674 msgid "This field may not be blank." msgstr "Dit veld mag niet leeg zijn." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Zorg ervoor dat dit veld niet meer dan {max_length} karakters bevat." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Zorg ervoor dat dit veld minimaal {min_length} karakters bevat." #: fields.py:713 msgid "Enter a valid email address." msgstr "Voer een geldig e-mailadres in." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Deze waarde voldoet niet aan het vereisde formaat." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Voer een geldige \"slug\" in, bestaande uit letters, cijfers, lage streepjes of streepjes." #: fields.py:747 msgid "Enter a valid URL." msgstr "Voer een geldige URL in." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" is een ongeldige UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Voer een geldig IPv4- of IPv6-adres in." #: fields.py:821 msgid "A valid integer is required." msgstr "Een geldig getal is vereist." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Zorg ervoor dat deze waarde kleiner is dan of gelijk is aan {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Zorg ervoor dat deze waarde groter is dan of gelijk is aan {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Tekstwaarde is te lang." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Een geldig nummer is vereist." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Zorg ervoor dat er in totaal niet meer dan {max_digits} cijfers zijn." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Zorg ervoor dat er niet meer dan {max_decimal_places} cijfers achter de komma zijn." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Zorg ervoor dat er niet meer dan {max_whole_digits} cijfers voor de komma zijn." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datetime heeft een ongeldig formaat, gebruik 1 van de volgende formaten: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Verwachtte een datetime, maar kreeg een date." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Date heeft het verkeerde formaat, gebruik 1 van deze formaten: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Verwachtte een date, maar kreeg een datetime." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Time heeft het verkeerde formaat, gebruik 1 van onderstaande formaten: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Tijdsduur heeft een verkeerd formaat, gebruik 1 van onderstaande formaten: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" is een ongeldige keuze." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Meer dan {count} items..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Verwachtte een lijst met items, maar kreeg type \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Deze selectie mag niet leeg zijn." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" is niet een geldig pad." #: fields.py:1358 msgid "No file was submitted." msgstr "Er is geen bestand opgestuurd." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "De verstuurde data was geen bestand. Controleer de encoding type op het formulier." #: fields.py:1360 msgid "No filename could be determined." msgstr "Bestandsnaam kon niet vastgesteld worden." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Het verstuurde bestand is leeg." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Zorg ervoor dat deze bestandsnaam hoogstens {max_length} karakters heeft (het heeft er {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Upload een geldige afbeelding, de geüploade afbeelding is geen afbeelding of is beschadigd geraakt," #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Deze lijst mag niet leeg zijn." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Verwachtte een dictionary van items, maar kreeg type \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Waarde moet valide JSON zijn." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Verzenden" #: filters.py:336 msgid "ascending" msgstr "oplopend" #: filters.py:337 msgid "descending" msgstr "aflopend" #: pagination.py:193 msgid "Invalid page." msgstr "Ongeldige pagina." #: pagination.py:427 msgid "Invalid cursor" msgstr "Ongeldige cursor." #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Ongeldige pk \"{pk_value}\" - object bestaat niet." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Ongeldig type. Verwacht een pk-waarde, ontving {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Ongeldige hyperlink - Geen overeenkomende URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Ongeldige hyperlink - Ongeldige URL" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Ongeldige hyperlink - Object bestaat niet." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Ongeldig type. Verwacht een URL, ontving {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Object met {slug_name}={value} bestaat niet." #: relations.py:402 msgid "Invalid value." msgstr "Ongeldige waarde." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Ongeldige data. Verwacht een dictionary, kreeg een {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filters" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Veldfilters" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Sorteer op" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Zoek" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Geen" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Geen items geselecteerd." #: validators.py:43 msgid "This field must be unique." msgstr "Dit veld moet uniek zijn." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "De velden {field_names} moeten een unieke set zijn." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Dit veld moet uniek zijn voor de \"{date_field}\" datum." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Dit veld moet uniek zijn voor de \"{date_field}\" maand." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Dit veld moet uniek zijn voor de \"{date_field}\" year." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Ongeldige versie in \"Accept\" header." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Ongeldige versie in URL-pad." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Ongeldige versie in het URL pad, komt niet overeen met een geldige versie namespace" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Ongeldige versie in hostnaam." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Ongeldige versie in query parameter." #: views.py:88 msgid "Permission denied." msgstr "Toestemming geweigerd." ================================================ FILE: jet_django/deps/rest_framework/locale/nn/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Norwegian Nynorsk (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/nn/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: nn\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/no/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Norwegian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/no/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: no\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/pl/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Janusz Harkot , 2015 # Piotr Jakimiak , 2015 # m_aciek , 2016 # m_aciek , 2015-2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: m_aciek \n" "Language-Team: Polish (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/pl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pl\n" "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Niepoprawny podstawowy nagłówek. Brak danych uwierzytelniających." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Niepoprawny podstawowy nagłówek. Ciąg znaków danych uwierzytelniających nie powinien zawierać spacji." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Niepoprawny podstawowy nagłówek. Niewłaściwe kodowanie base64 danych uwierzytelniających." #: authentication.py:99 msgid "Invalid username/password." msgstr "Niepoprawna nazwa użytkownika lub hasło." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Użytkownik nieaktywny lub usunięty." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Niepoprawny nagłówek tokena. Brak danych uwierzytelniających." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Niepoprawny nagłówek tokena. Token nie może zawierać odstępów." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Błędny nagłówek z tokenem. Token nie może zawierać błędnych znaków." #: authentication.py:195 msgid "Invalid token." msgstr "Niepoprawny token." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Token uwierzytelniający" #: authtoken/models.py:15 msgid "Key" msgstr "Klucz" #: authtoken/models.py:18 msgid "User" msgstr "Użytkownik" #: authtoken/models.py:20 msgid "Created" msgstr "Stworzono" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokeny" #: authtoken/serializers.py:8 msgid "Username" msgstr "Nazwa użytkownika" #: authtoken/serializers.py:9 msgid "Password" msgstr "Hasło" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Konto użytkownika jest nieaktywne." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Podane dane uwierzytelniające nie pozwalają na zalogowanie." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Musi zawierać \"username\" i \"password\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Wystąpił błąd serwera." #: exceptions.py:84 msgid "Malformed request." msgstr "Zniekształcone żądanie." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Błędne dane uwierzytelniające." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Nie podano danych uwierzytelniających." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Nie masz uprawnień, by wykonać tę czynność." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Nie znaleziono." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Niedozwolona metoda \"{method}\"." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Nie można zaspokoić nagłówka Accept żądania." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Brak wsparcia dla żądanego typu danych \"{media_type}\"." #: exceptions.py:145 msgid "Request was throttled." msgstr "Żądanie zostało zdławione." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "To pole jest wymagane." #: fields.py:270 msgid "This field may not be null." msgstr "Pole nie może mieć wartości null." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" nie jest poprawną wartością logiczną." #: fields.py:674 msgid "This field may not be blank." msgstr "To pole nie może być puste." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Upewnij się, że to pole ma nie więcej niż {max_length} znaków." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Upewnij się, że pole ma co najmniej {min_length} znaków." #: fields.py:713 msgid "Enter a valid email address." msgstr "Podaj poprawny adres e-mail." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Ta wartość nie pasuje do wymaganego wzorca." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Wprowadź poprawną wartość pola typu \"slug\", składającą się ze znaków łacińskich, cyfr, podkreślenia lub myślnika." #: fields.py:747 msgid "Enter a valid URL." msgstr "Wprowadź poprawny adres URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" nie jest poprawnym UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Wprowadź poprawny adres IPv4 lub IPv6." #: fields.py:821 msgid "A valid integer is required." msgstr "Wymagana poprawna liczba całkowita." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Upewnij się, że ta wartość jest mniejsza lub równa {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Upewnij się, że ta wartość jest większa lub równa {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Za długi ciąg znaków." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Wymagana poprawna liczba." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Upewnij się, że liczba ma nie więcej niż {max_digits} cyfr." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Upewnij się, że liczba ma nie więcej niż {max_decimal_places} cyfr dziesiętnych." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Upewnij się, że liczba ma nie więcej niż {max_whole_digits} cyfr całkowitych." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Wartość daty z czasem ma zły format. Użyj jednego z dostępnych formatów: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Oczekiwano datę z czasem, otrzymano tylko datę." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Data ma zły format. Użyj jednego z tych formatów: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Oczekiwano daty a otrzymano datę z czasem." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Błędny format czasu. Użyj jednego z dostępnych formatów: {format}" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Czas trwania ma zły format. Użyj w zamian jednego z tych formatów: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" nie jest poprawnym wyborem." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Więcej niż {count} elementów..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Oczekiwano listy elementów, a otrzymano dane typu \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Zaznaczenie nie może być puste." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" nie jest poprawną ścieżką." #: fields.py:1358 msgid "No file was submitted." msgstr "Nie przesłano pliku." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Przesłane dane nie były plikiem. Sprawdź typ kodowania formatki." #: fields.py:1360 msgid "No filename could be determined." msgstr "Nie można określić nazwy pliku." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Przesłany plik jest pusty." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Upewnij się, że nazwa pliku ma długość co najwyżej {max_length} znaków (aktualnie ma {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Prześlij poprawny plik graficzny. Przesłany plik albo nie jest grafiką lub jest uszkodzony." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Lista nie może być pusta." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Oczekiwano słownika, ale otrzymano \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Wartość musi być poprawnym ciągiem znaków JSON" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Wyślij" #: filters.py:336 msgid "ascending" msgstr "rosnąco" #: filters.py:337 msgid "descending" msgstr "malejąco" #: pagination.py:193 msgid "Invalid page." msgstr "Niepoprawna strona." #: pagination.py:427 msgid "Invalid cursor" msgstr "Niepoprawny wskaźnik" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Błędny klucz główny \"{pk_value}\" - obiekt nie istnieje." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Błędny typ danych. Oczekiwano wartość klucza głównego, otrzymano {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Błędny hyperlink - nie znaleziono pasującego adresu URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Błędny hyperlink - błędne dopasowanie adresu URL." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Błędny hyperlink - obiekt nie istnieje." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Błędny typ danych. Oczekiwano adresu URL, otrzymano {data_type}" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Obiekt z polem {slug_name}={value} nie istnieje" #: relations.py:402 msgid "Invalid value." msgstr "Niepoprawna wartość." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Niepoprawne dane. Oczekiwano słownika, otrzymano {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtry" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Pola filtrów" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Kolejność" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Szukaj" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "None" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Nie wybrano wartości." #: validators.py:43 msgid "This field must be unique." msgstr "Wartość dla tego pola musi być unikalna." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Pola {field_names} muszą tworzyć unikalny zestaw." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "To pole musi mieć unikalną wartość dla jednej daty z pola \"{date_field}\"." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "To pole musi mieć unikalną wartość dla konkretnego miesiąca z pola \"{date_field}\"." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "To pole musi mieć unikalną wartość dla konkretnego roku z pola \"{date_field}\"." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Błędna wersja w nagłówku \"Accept\"." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Błędna wersja w ścieżce URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Niepoprawna wersja w ścieżce URL. Nie pasuje do przestrzeni nazw żadnej wersji." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Błędna wersja w nazwie hosta." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Błędna wersja w parametrach zapytania." #: views.py:88 msgid "Permission denied." msgstr "Brak uprawnień." ================================================ FILE: jet_django/deps/rest_framework/locale/pt/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Portuguese (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/pt/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pt\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/pt_BR/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Craig Blaszczyk , 2015 # Ederson Mota Pereira , 2015 # Filipe Rinaldi , 2015 # Hugo Leonardo Chalhoub Mendonça , 2015 # Jonatas Baldin , 2017 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-12-06 09:53+0000\n" "Last-Translator: Jonatas Baldin \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pt_BR\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Cabeçalho básico inválido. Credenciais não fornecidas." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Cabeçalho básico inválido. String de credenciais não deve incluir espaços." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Cabeçalho básico inválido. Credenciais codificadas em base64 incorretamente." #: authentication.py:99 msgid "Invalid username/password." msgstr "Usuário ou senha inválido." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Usuário inativo ou removido." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Cabeçalho de token inválido. Credenciais não fornecidas." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Cabeçalho de token inválido. String de token não deve incluir espaços." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Cabeçalho de token inválido. String de token não deve possuir caracteres inválidos." #: authentication.py:195 msgid "Invalid token." msgstr "Token inválido." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Token de autenticação" #: authtoken/models.py:15 msgid "Key" msgstr "Chave" #: authtoken/models.py:18 msgid "User" msgstr "Usuário" #: authtoken/models.py:20 msgid "Created" msgstr "Criado" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokens" #: authtoken/serializers.py:8 msgid "Username" msgstr "Nome do usuário" #: authtoken/serializers.py:9 msgid "Password" msgstr "Senha" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Conta de usuário desabilitada." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Impossível fazer login com as credenciais fornecidas." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Obrigatório incluir \"usuário\" e \"senha\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Ocorreu um erro de servidor." #: exceptions.py:84 msgid "Malformed request." msgstr "Pedido malformado." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Credenciais de autenticação incorretas." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "As credenciais de autenticação não foram fornecidas." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Você não tem permissão para executar essa ação." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Não encontrado." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Método \"{method}\" não é permitido." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Não foi possível satisfazer a requisição do cabeçalho Accept." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Tipo de mídia \"{media_type}\" no pedido não é suportado." #: exceptions.py:145 msgid "Request was throttled." msgstr "Pedido foi limitado." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Este campo é obrigatório." #: fields.py:270 msgid "This field may not be null." msgstr "Este campo não pode ser nulo." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" não é um valor boleano válido." #: fields.py:674 msgid "This field may not be blank." msgstr "Este campo não pode ser em branco." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Certifique-se de que este campo não tenha mais de {max_length} caracteres." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Certifique-se de que este campo tenha mais de {min_length} caracteres." #: fields.py:713 msgid "Enter a valid email address." msgstr "Insira um endereço de email válido." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Este valor não corresponde ao padrão exigido." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Entrar um \"slug\" válido que consista de letras, números, sublinhados ou hífens." #: fields.py:747 msgid "Enter a valid URL." msgstr "Entrar um URL válido." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" não é um UUID válido." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Informe um endereço IPv4 ou IPv6 válido." #: fields.py:821 msgid "A valid integer is required." msgstr "Um número inteiro válido é exigido." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Certifique-se de que este valor seja inferior ou igual a {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Certifque-se de que este valor seja maior ou igual a {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Valor da string é muito grande." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Um número válido é necessário." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Certifique-se de que não haja mais de {max_digits} dígitos no total." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Certifique-se de que não haja mais de {max_decimal_places} casas decimais." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Certifique-se de que não haja mais de {max_whole_digits} dígitos antes do ponto decimal." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Formato inválido para data e hora. Use um dos formatos a seguir: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Necessário uma data e hora mas recebeu uma data." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Formato inválido para data. Use um dos formatos a seguir: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Necessário uma data mas recebeu uma data e hora." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Formato inválido para Tempo. Use um dos formatos a seguir: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Formato inválido para Duração. Use um dos formatos a seguir: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" não é um escolha válido." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Mais de {count} itens..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Necessário uma lista de itens, mas recebeu tipo \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Esta seleção não pode estar vazia." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" não é uma escolha válida para um caminho." #: fields.py:1358 msgid "No file was submitted." msgstr "Nenhum arquivo foi submetido." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "O dado submetido não é um arquivo. Certifique-se do tipo de codificação no formulário." #: fields.py:1360 msgid "No filename could be determined." msgstr "Nome do arquivo não pode ser determinado." #: fields.py:1361 msgid "The submitted file is empty." msgstr "O arquivo submetido está vázio." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Certifique-se de que o nome do arquivo tem menos de {max_length} caracteres (tem {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Fazer upload de uma imagem válida. O arquivo enviado não é um arquivo de imagem ou está corrompido." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Esta lista não pode estar vazia." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Esperado um dicionário de itens mas recebeu tipo \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Valor devo ser JSON válido." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Enviar" #: filters.py:336 msgid "ascending" msgstr "ascendente" #: filters.py:337 msgid "descending" msgstr "descendente" #: pagination.py:193 msgid "Invalid page." msgstr "Página inválida." #: pagination.py:427 msgid "Invalid cursor" msgstr "Cursor inválido" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Pk inválido \"{pk_value}\" - objeto não existe." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Tipo incorreto. Esperado valor pk, recebeu {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Hyperlink inválido - Sem combinação para a URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Hyperlink inválido - Combinação URL incorreta." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Hyperlink inválido - Objeto não existe." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Tipo incorreto. Necessário string URL, recebeu {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objeto com {slug_name}={value} não existe." #: relations.py:402 msgid "Invalid value." msgstr "Valor inválido." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Dado inválido. Necessário um dicionário mas recebeu {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtra" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Filtra de campo" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Ordenando" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Buscar" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Nenhum(a/as)" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Nenhum item para escholher." #: validators.py:43 msgid "This field must be unique." msgstr "Esse campo deve ser único." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Os campos {field_names} devem criar um set único." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "O campo \"{date_field}\" deve ser único para a data." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "O campo \"{date_field}\" deve ser único para o mês." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "O campo \"{date_field}\" deve ser único para o ano." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Versão inválida no cabeçalho \"Accept\"." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Versão inválida no caminho de URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Versão inválida no caminho da URL. Não corresponde a nenhuma versão do namespace." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Versão inválida no hostname." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Versão inválida no parâmetro de query." #: views.py:88 msgid "Permission denied." msgstr "Permissão negada." ================================================ FILE: jet_django/deps/rest_framework/locale/pt_PT/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Portuguese (Portugal) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/pt_PT/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: pt_PT\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/ro/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Elena-Adela Neacsu , 2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Romanian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/ro/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ro\n" "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Antet de bază invalid. Datele de autentificare nu au fost furnizate." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Antet de bază invalid. Şirul de caractere cu datele de autentificare nu trebuie să conțină spații." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Antet de bază invalid. Datele de autentificare nu au fost corect codificate în base64." #: authentication.py:99 msgid "Invalid username/password." msgstr "Nume utilizator / Parolă invalid(ă)." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Utilizator inactiv sau șters." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Antet token invalid. Datele de autentificare nu au fost furnizate." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Antet token invalid. Şirul de caractere pentru token nu trebuie să conțină spații." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Antet token invalid. Şirul de caractere pentru token nu trebuie să conțină caractere nevalide." #: authentication.py:195 msgid "Invalid token." msgstr "Token nevalid." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Token de autentificare" #: authtoken/models.py:15 msgid "Key" msgstr "Cheie" #: authtoken/models.py:18 msgid "User" msgstr "Utilizator" #: authtoken/models.py:20 msgid "Created" msgstr "Creat" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokenuri" #: authtoken/serializers.py:8 msgid "Username" msgstr "Nume de utilizator" #: authtoken/serializers.py:9 msgid "Password" msgstr "Parola" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Contul de utilizator este dezactivat." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Nu se poate conecta cu datele de conectare furnizate." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Trebuie să includă \"numele de utilizator\" și \"parola\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "A apărut o eroare pe server." #: exceptions.py:84 msgid "Malformed request." msgstr "Cerere incorectă." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Date de autentificare incorecte." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Datele de autentificare nu au fost furnizate." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Nu aveți permisiunea de a efectua această acțiune." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Nu a fost găsit(ă)." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Metoda \"{method}\" nu este permisa." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Antetul Accept al cererii nu a putut fi îndeplinit." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Cererea conține tipul media neacceptat \"{media_type}\"" #: exceptions.py:145 msgid "Request was throttled." msgstr "Cererea a fost gâtuită." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Acest câmp este obligatoriu." #: fields.py:270 msgid "This field may not be null." msgstr "Acest câmp nu poate fi nul." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" nu este un boolean valid." #: fields.py:674 msgid "This field may not be blank." msgstr "Acest câmp nu poate fi gol." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Asigurați-vă că acest câmp nu are mai mult de {max_length} caractere." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Asigurați-vă că acest câmp are cel puțin{min_length} caractere." #: fields.py:713 msgid "Enter a valid email address." msgstr "Introduceți o adresă de email validă." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Această valoare nu se potrivește cu şablonul cerut." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Introduceți un \"slug\" valid format din litere, numere, caractere de subliniere sau cratime." #: fields.py:747 msgid "Enter a valid URL." msgstr "Introduceți un URL valid." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" nu este un UUID valid." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Introduceți o adresă IPv4 sau IPv6 validă." #: fields.py:821 msgid "A valid integer is required." msgstr "Este necesar un întreg valid." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Asigurați-vă că această valoare este mai mică sau egală cu {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Asigurați-vă că această valoare este mai mare sau egală cu {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Valoare șir de caractere prea mare." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Este necesar un număr valid." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Asigurați-vă că nu există mai mult de {max_digits} cifre în total." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Asigurați-vă că nu există mai mult de {max_decimal_places} zecimale." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Asigurați-vă că nu există mai mult de {max_whole_digits} cifre înainte de punctul zecimal." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Câmpul datetime are format greșit. Utilizați unul dintre aceste formate în loc: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Se aștepta un câmp datetime, dar s-a primit o dată." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Data are formatul greșit. Utilizați unul dintre aceste formate în loc: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Se aștepta o dată, dar s-a primit un câmp datetime." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Timpul are formatul greșit. Utilizați unul dintre aceste formate în loc: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Durata are formatul greșit. Utilizați unul dintre aceste formate în loc: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" nu este o opțiune validă." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Mai mult de {count} articole ..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Se aștepta o listă de elemente, dar s-a primit tip \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Această selecție nu poate fi goală." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" nu este o cale validă." #: fields.py:1358 msgid "No file was submitted." msgstr "Nici un fișier nu a fost sumis." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Datele prezentate nu sunt un fișier. Verificați tipul de codificare de pe formular." #: fields.py:1360 msgid "No filename could be determined." msgstr "Numele fișierului nu a putut fi determinat." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Fișierul sumis este gol." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Asigurați-vă că acest nume de fișier are cel mult {max_length} caractere (momentan are {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Încărcați o imagine validă. Fișierul încărcat a fost fie nu o imagine sau o imagine coruptă." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Această listă nu poate fi goală." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Se aștepta un dicționar de obiecte, dar s-a primit tipul \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Valoarea trebuie să fie JSON valid." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Sumiteţi" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "Pagină nevalidă." #: pagination.py:427 msgid "Invalid cursor" msgstr "Cursor nevalid" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Pk \"{pk_value}\" nevalid - obiectul nu există." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Tip incorect. Se aștepta un pk, dar s-a primit \"{data_type}\"." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Hyperlink nevalid - Nici un URL nu se potrivește." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Hyperlink nevalid - Potrivire URL incorectă." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Hyperlink nevalid - Obiectul nu există." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Tip incorect. Se aștepta un URL, dar s-a primit \"{data_type}\"." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Obiectul cu {slug_name}={value} nu există." #: relations.py:402 msgid "Invalid value." msgstr "Valoare nevalidă." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Date nevalide. Se aștepta un dicționar de obiecte, dar s-a primit \"{datatype}\"." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtre" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Filtre câmpuri" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Ordonare" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Căutare" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Nici unul/una" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Nu există elemente pentru a fi selectate." #: validators.py:43 msgid "This field must be unique." msgstr "Acest câmp trebuie să fie unic." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Câmpurile {field_names} trebuie să formeze un set unic." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Acest câmp trebuie să fie unic pentru data \"{date_field}\"." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Acest câmp trebuie să fie unic pentru luna \"{date_field}\"." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Acest câmp trebuie să fie unic pentru anul \"{date_field}\"." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Versiune nevalidă în antetul \"Accept\"." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Versiune nevalidă în calea URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Versiune nevalidă în numele de gazdă." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Versiune nevalid în parametrul de interogare." #: views.py:88 msgid "Permission denied." msgstr "Permisiune refuzată." ================================================ FILE: jet_django/deps/rest_framework/locale/ru/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Grigory Mishchenko , 2017 # Kirill Tarasenko, 2015 # koodjo , 2015 # Mike TUMS , 2015 # Sergei Sinitsyn , 2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Grigory Mishchenko \n" "Language-Team: Russian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/ru/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: ru\n" "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Недопустимый заголовок. Не предоставлены учетные данные." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Недопустимый заголовок. Учетные данные не должны содержать пробелов." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Недопустимый заголовок. Учетные данные некорректно закодированны в base64." #: authentication.py:99 msgid "Invalid username/password." msgstr "Недопустимые имя пользователя или пароль." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Пользователь неактивен или удален." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Недопустимый заголовок токена. Не предоставлены учетные данные." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Недопустимый заголовок токена. Токен не должен содержать пробелов." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Недопустимый заголовок токена. Токен не должен содержать недопустимые символы." #: authentication.py:195 msgid "Invalid token." msgstr "Недопустимый токен." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Токен аутентификации" #: authtoken/models.py:15 msgid "Key" msgstr "Ключ" #: authtoken/models.py:18 msgid "User" msgstr "Пользователь" #: authtoken/models.py:20 msgid "Created" msgstr "Создан" #: authtoken/models.py:29 msgid "Token" msgstr "Токен" #: authtoken/models.py:30 msgid "Tokens" msgstr "Токены" #: authtoken/serializers.py:8 msgid "Username" msgstr "Имя пользователя" #: authtoken/serializers.py:9 msgid "Password" msgstr "Пароль" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Учетная запись пользователя отключена." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Невозможно войти с предоставленными учетными данными." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Должен включать \"username\" и \"password\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Произошла ошибка сервера." #: exceptions.py:84 msgid "Malformed request." msgstr "Искаженный запрос." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Некорректные учетные данные." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Учетные данные не были предоставлены." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "У вас нет прав для выполнения этой операции." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Не найдено." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Метод \"{method}\" не разрешен." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Невозможно удовлетворить \"Accept\" заголовок запроса." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Неподдерживаемый тип данных \"{media_type}\" в запросе." #: exceptions.py:145 msgid "Request was throttled." msgstr "Запрос был проигнорирован." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Это поле обязательно." #: fields.py:270 msgid "This field may not be null." msgstr "Это поле не может быть null." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" не является корректным булевым значением." #: fields.py:674 msgid "This field may not be blank." msgstr "Это поле не может быть пустым." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Убедитесь, что в этом поле не больше {max_length} символов." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Убедитесь, что в этом поле как минимум {min_length} символов." #: fields.py:713 msgid "Enter a valid email address." msgstr "Введите корректный адрес электронной почты." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Значение не соответствует требуемому паттерну." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Введите корректный \"slug\", состоящий из букв, цифр, знаков подчеркивания или дефисов." #: fields.py:747 msgid "Enter a valid URL." msgstr "Введите корректный URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" не является корректным UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Введите действительный адрес IPv4 или IPv6." #: fields.py:821 msgid "A valid integer is required." msgstr "Требуется целочисленное значение." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Убедитесь, что значение меньше или равно {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Убедитесь, что значение больше или равно {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Слишком длинное значение." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Требуется численное значение." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Убедитесь, что в числе не больше {max_digits} знаков." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Убедитесь, что в числе не больше {max_decimal_places} знаков в дробной части." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Убедитесь, что в числе не больше {max_whole_digits} знаков в целой части." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Неправильный формат datetime. Используйте один из этих форматов: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Ожидался datetime, но был получен date." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Неправильный формат date. Используйте один из этих форматов: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Ожидался date, но был получен datetime." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Неправильный формат времени. Используйте один из этих форматов: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Неправильный формат. Используйте один из этих форматов: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" не является корректным значением." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Элементов больше чем {count}" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Ожидался list со значениями, но был получен \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Выбор не может быть пустым." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" не является корректным путем до файла" #: fields.py:1358 msgid "No file was submitted." msgstr "Не был загружен файл." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Загруженный файл не является корректным файлом." #: fields.py:1360 msgid "No filename could be determined." msgstr "Невозможно определить имя файла." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Загруженный файл пуст." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Убедитесь, что имя файла меньше {max_length} символов (сейчас {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Загрузите корректное изображение. Загруженный файл не является изображением, либо является испорченным." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Этот список не может быть пустым." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Ожидался словарь со значениями, но был получен \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Значение должно быть правильным JSON." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Отправить" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "Неправильная страница" #: pagination.py:427 msgid "Invalid cursor" msgstr "Не корректный курсор" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Недопустимый первичный ключ \"{pk_value}\" - объект не существует." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Некорректный тип. Ожидалось значение первичного ключа, получен {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Недопустимая ссылка - нет совпадения по URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Недопустимая ссылка - некорректное совпадение по URL," #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Недопустимая ссылка - объект не существует." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Некорректный тип. Ожидался URL, получен {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Объект с {slug_name}={value} не существует." #: relations.py:402 msgid "Invalid value." msgstr "Недопустимое значение." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Недопустимые данные. Ожидался dictionary, но был получен {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Фильтры" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Фильтры полей" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Порядок сортировки" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Поиск" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Ничего" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Нет элементов для выбора" #: validators.py:43 msgid "This field must be unique." msgstr "Это поле должно быть уникально." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Поля {field_names} должны производить массив с уникальными значениями." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Это поле должно быть уникально для даты \"{date_field}\"." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Это поле должно быть уникально для месяца \"{date_field}\"." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Это поле должно быть уникально для года \"{date_field}\"." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Недопустимая версия в заголовке \"Accept\"." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Недопустимая версия в пути URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Недопустимая версия в имени хоста." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Недопустимая версия в параметре запроса." #: views.py:88 msgid "Permission denied." msgstr "Доступ запрещен" ================================================ FILE: jet_django/deps/rest_framework/locale/sk/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Stanislav Komanec , 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Slovak (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/sk/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: sk\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Nesprávna hlavička. Neboli poskytnuté prihlasovacie údaje." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Nesprávna hlavička. Prihlasovacie údaje nesmú obsahovať medzery." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Nesprávna hlavička. Prihlasovacie údaje nie sú správne zakódované pomocou metódy base64." #: authentication.py:99 msgid "Invalid username/password." msgstr "Nesprávne prihlasovacie údaje." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Daný používateľ je neaktívny, alebo zmazaný." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Nesprávna token hlavička. Neboli poskytnuté prihlasovacie údaje." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Nesprávna token hlavička. Token hlavička nesmie obsahovať medzery." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "Nesprávny token." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Daný používateľ je zablokovaný." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "S danými prihlasovacími údajmi nebolo možné sa prihlásiť." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Musí obsahovať parametre \"používateľské meno\" a \"heslo\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Vyskytla sa chyba na strane servera." #: exceptions.py:84 msgid "Malformed request." msgstr "Požiadavok má nesprávny formát, alebo je poškodený." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Nesprávne prihlasovacie údaje." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Prihlasovacie údaje neboli zadané." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "K danej akcii nemáte oprávnenie." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Nebolo nájdené." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Metóda \"{method}\" nie je povolená." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Nie je možné vyhovieť požiadavku v hlavičke \"Accept\"." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Požiadavok obsahuje nepodporovaný media type: \"{media_type}\"." #: exceptions.py:145 msgid "Request was throttled." msgstr "Požiadavok bol obmedzený, z dôvodu prekročenia limitu." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Toto pole je povinné." #: fields.py:270 msgid "This field may not be null." msgstr "Toto pole nemôže byť nulové." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" je validný boolean." #: fields.py:674 msgid "This field may not be blank." msgstr "Toto pole nemože byť prázdne." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Uistite sa, že toto pole nemá viac ako {max_length} znakov." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Uistite sa, že toto pole má viac ako {min_length} znakov." #: fields.py:713 msgid "Enter a valid email address." msgstr "Vložte správnu emailovú adresu." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Toto pole nezodpovedá požadovanému formátu." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Zadajte platný \"slug\", ktorý obsahuje len malé písmená, čísla, spojovník alebopodtržítko." #: fields.py:747 msgid "Enter a valid URL." msgstr "Zadajte platnú URL adresu." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" nie je platné UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "Je vyžadované celé číslo." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Uistite sa, že hodnota je menšia alebo rovná {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Uistite sa, že hodnota je väčšia alebo rovná {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Zadaný textový reťazec je príliš dlhý." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Je vyžadované číslo." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Uistite sa, že hodnota neobsahuje viac ako {max_digits} cifier." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Uistite sa, že hodnota neobsahuje viac ako {max_decimal_places} desatinných miest." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Uistite sa, že hodnota neobsahuje viac ako {max_whole_digits} cifier pred desatinnou čiarkou." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Nesprávny formát dátumu a času. Prosím použite jeden z nasledujúcich formátov: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Vložený len dátum - date namiesto dátumu a času - datetime." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Nesprávny formát dátumu. Prosím použite jeden z nasledujúcich formátov: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Vložený dátum a čas - datetime namiesto jednoduchého dátumu - date." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Nesprávny formát času. Prosím použite jeden z nasledujúcich formátov: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" je nesprávny výber z daných možností." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Bol očakávaný zoznam položiek, no namiesto toho bol nájdený \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "Nebol odoslaný žiadny súbor." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Odoslané dáta neobsahujú súbor. Prosím skontrolujte kódovanie - encoding type daného formuláru." #: fields.py:1360 msgid "No filename could be determined." msgstr "Nebolo možné určiť meno súboru." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Odoslaný súbor je prázdny." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Uistite sa, že meno súboru neobsahuje viac ako {max_length} znakov. (V skutočnosti ich má {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Uploadujte prosím obrázok. Súbor, ktorý ste uploadovali buď nie je obrázok, alebo daný obrázok je poškodený." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Bol očakávaný slovník položiek, no namiesto toho bol nájdený \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "Nesprávny kurzor." #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Nesprávny primárny kľúč \"{pk_value}\" - objekt s daným primárnym kľúčom neexistuje." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Nesprávny typ. Bol prijatý {data_type} namiesto primárneho kľúča." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Nesprávny hypertextový odkaz - žiadna zhoda." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Nesprávny hypertextový odkaz - chybná URL." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Nesprávny hypertextový odkaz - požadovný objekt neexistuje." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Nesprávny typ {data_type}. Požadovaný typ: hypertextový odkaz." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objekt, ktorého atribút \"{slug_name}\" je \"{value}\" neexistuje." #: relations.py:402 msgid "Invalid value." msgstr "Nesprávna hodnota." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Bol očakávaný slovník položiek, no namiesto toho bol nájdený \"{datatype}\"." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "Táto položka musí byť unikátna." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Dané položky: {field_names} musia tvoriť musia spolu tvoriť unikátnu množinu." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Položka musí byť pre špecifický deň \"{date_field}\" unikátna." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Položka musí byť pre mesiac \"{date_field}\" unikátna." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Položka musí byť pre rok \"{date_field}\" unikátna." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Nesprávna verzia v \"Accept\" hlavičke." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Nesprávna verzia v URL adrese." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Nesprávna verzia v \"hostname\"." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Nesprávna verzia v parametri požiadavku." #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/sl/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Gregor Cimerman, 2017 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Gregor Cimerman\n" "Language-Team: Slovenian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/sl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: sl\n" "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Napačno enostavno zagalvje. Ni podanih poverilnic." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Napačno enostavno zaglavje. Poverilniški niz ne sme vsebovati presledkov." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Napačno enostavno zaglavje. Poverilnice niso pravilno base64 kodirane." #: authentication.py:99 msgid "Invalid username/password." msgstr "Napačno uporabniško ime ali geslo." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Uporabnik neaktiven ali izbrisan." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Neveljaven žeton v zaglavju. Ni vsebovanih poverilnic." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Neveljaven žeton v zaglavju. Žeton ne sme vsebovati presledkov." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Neveljaven žeton v zaglavju. Žeton ne sme vsebovati napačnih znakov." #: authentication.py:195 msgid "Invalid token." msgstr "Neveljaven žeton." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Prijavni žeton" #: authtoken/models.py:15 msgid "Key" msgstr "Ključ" #: authtoken/models.py:18 msgid "User" msgstr "Uporabnik" #: authtoken/models.py:20 msgid "Created" msgstr "Ustvarjen" #: authtoken/models.py:29 msgid "Token" msgstr "Žeton" #: authtoken/models.py:30 msgid "Tokens" msgstr "Žetoni" #: authtoken/serializers.py:8 msgid "Username" msgstr "Uporabniško ime" #: authtoken/serializers.py:9 msgid "Password" msgstr "Geslo" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Uporabniški račun je onemogočen." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Neuspešna prijava s podanimi poverilnicami." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Mora vsebovati \"uporabniško ime\" in \"geslo\"." #: exceptions.py:49 msgid "A server error occurred." msgstr "Napaka na strežniku." #: exceptions.py:84 msgid "Malformed request." msgstr "Okvarjen zahtevek." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Napačni avtentikacijski podatki." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Avtentikacijski podatki niso bili podani." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Nimate dovoljenj za izvedbo te akcije." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Ni najdeno" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Metoda \"{method}\" ni dovoljena" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Ni bilo mogoče zagotoviti zaglavja Accept zahtevka." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Nepodprt medijski tip \"{media_type}\" v zahtevku." #: exceptions.py:145 msgid "Request was throttled." msgstr "Zahtevek je bil pridržan." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "To polje je obvezno." #: fields.py:270 msgid "This field may not be null." msgstr "To polje ne sme biti null." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" ni veljaven boolean." #: fields.py:674 msgid "This field may not be blank." msgstr "To polje ne sme biti prazno." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "To polje ne sme biti daljše od {max_length} znakov." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "To polje mora vsebovati vsaj {min_length} znakov." #: fields.py:713 msgid "Enter a valid email address." msgstr "Vnesite veljaven elektronski naslov." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Ta vrednost ne ustreza zahtevanemu vzorcu." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Vnesite veljaven \"slug\", ki vsebuje črke, številke, podčrtaje ali vezaje." #: fields.py:747 msgid "Enter a valid URL." msgstr "Vnesite veljaven URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" ni veljaven UUID" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Vnesite veljaven IPv4 ali IPv6 naslov." #: fields.py:821 msgid "A valid integer is required." msgstr "Zahtevano je veljavno celo število." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Vrednost mora biti manjša ali enaka {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Vrednost mora biti večija ali enaka {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Niz je prevelik." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Zahtevano je veljavno število." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Vnesete lahko največ {max_digits} števk." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Vnesete lahko največ {max_decimal_places} decimalnih mest." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Vnesete lahko največ {max_whole_digits} števk pred decimalno piko." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datim in čas v napačnem formatu. Uporabite eno izmed naslednjih formatov: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Pričakovan datum in čas, prejet le datum." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Datum je v napačnem formatu. Uporabnite enega izmed naslednjih: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Pričakovan datum vendar prejet datum in čas." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Čas je v napačnem formatu. Uporabite enega izmed naslednjih: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Trajanje je v napačnem formatu. Uporabite enega izmed naslednjih: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" ni veljavna izbira." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Več kot {count} elementov..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Pričakovan seznam elementov vendar prejet tip \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Ta izbria ne sme ostati prazna." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" ni veljavna izbira poti." #: fields.py:1358 msgid "No file was submitted." msgstr "Datoteka ni bila oddana." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Oddani podatki niso datoteka. Preverite vrsto kodiranja na formi." #: fields.py:1360 msgid "No filename could be determined." msgstr "Imena datoteke ni bilo mogoče določiti." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Oddana datoteka je prazna." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Ime datoteke lahko vsebuje največ {max_length} znakov (ta jih ima {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Naložite veljavno sliko. Naložena datoteka ni bila slika ali pa je okvarjena." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Seznam ne sme biti prazen." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Pričakovan je slovar elementov, prejet element je tipa \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Vrednost mora biti veljaven JSON." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Potrdi" #: filters.py:336 msgid "ascending" msgstr "naraščujoče" #: filters.py:337 msgid "descending" msgstr "padajoče" #: pagination.py:193 msgid "Invalid page." msgstr "Neveljavna stran." #: pagination.py:427 msgid "Invalid cursor" msgstr "Neveljaven kazalec" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Neveljaven pk \"{pk_value}\" - objekt ne obstaja." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Neveljaven tip. Pričakovana vrednost pk, prejet {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Neveljavna povezava - Ni URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Ni veljavna povezava - Napačen URL." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Ni veljavna povezava - Objekt ne obstaja." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Napačen tip. Pričakovan URL niz, prejet {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objekt z {slug_name}={value} ne obstaja." #: relations.py:402 msgid "Invalid value." msgstr "Neveljavna vrednost." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Napačni podatki. Pričakovan slovar, prejet {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtri" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Filter polj" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Razvrščanje" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Iskanje" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "None" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Ni elementov za izbiro." #: validators.py:43 msgid "This field must be unique." msgstr "To polje mora biti unikatno." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Polja {field_names} morajo skupaj sestavljati unikaten niz." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Polje mora biti unikatno za \"{date_field}\" dan." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Polje mora biti unikatno za \"{date_field} mesec.\"" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Polje mora biti unikatno za \"{date_field}\" leto." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Neveljavna verzija v \"Accept\" zaglavju." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Neveljavna različca v poti URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Neveljavna različica v poti URL. Se ne ujema z nobeno različico imenskega prostora." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Neveljavna različica v imenu gostitelja." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Neveljavna verzija v poizvedbenem parametru." #: views.py:88 msgid "Permission denied." msgstr "Dovoljenje zavrnjeno." ================================================ FILE: jet_django/deps/rest_framework/locale/sv/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Frank Wickström , 2015 # Joakim Soderlund, 2015-2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Joakim Soderlund\n" "Language-Team: Swedish (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/sv/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: sv\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Ogiltig \"basic\"-header. Inga användaruppgifter tillhandahölls." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Ogiltig \"basic\"-header. Strängen för användaruppgifterna ska inte innehålla mellanslag." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Ogiltig \"basic\"-header. Användaruppgifterna är inte korrekt base64-kodade." #: authentication.py:99 msgid "Invalid username/password." msgstr "Ogiltigt användarnamn/lösenord." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Användaren borttagen eller inaktiv." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Ogiltig \"token\"-header. Inga användaruppgifter tillhandahölls." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Ogiltig \"token\"-header. Strängen ska inte innehålla mellanslag." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Ogiltig \"token\"-header. Strängen ska inte innehålla ogiltiga tecken." #: authentication.py:195 msgid "Invalid token." msgstr "Ogiltig \"token\"." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Autentiseringstoken" #: authtoken/models.py:15 msgid "Key" msgstr "Nyckel" #: authtoken/models.py:18 msgid "User" msgstr "Användare" #: authtoken/models.py:20 msgid "Created" msgstr "Skapad" #: authtoken/models.py:29 msgid "Token" msgstr "Token" #: authtoken/models.py:30 msgid "Tokens" msgstr "Tokens" #: authtoken/serializers.py:8 msgid "Username" msgstr "Användarnamn" #: authtoken/serializers.py:9 msgid "Password" msgstr "Lösenord" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Användarkontot är borttaget." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Kunde inte logga in med de angivna inloggningsuppgifterna." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Användarnamn och lösenord måste anges." #: exceptions.py:49 msgid "A server error occurred." msgstr "Ett serverfel inträffade." #: exceptions.py:84 msgid "Malformed request." msgstr "Ogiltig förfrågan." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Ogiltiga inloggningsuppgifter. " #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Autentiseringsuppgifter ej tillhandahållna." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Du har inte tillåtelse att utföra denna förfrågan." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Hittades inte." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Metoden \"{method}\" tillåts inte." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Kunde inte tillfredsställa förfrågans \"Accept\"-header." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Medietypen \"{media_type}\" stöds inte." #: exceptions.py:145 msgid "Request was throttled." msgstr "Förfrågan stoppades eftersom du har skickat för många." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Det här fältet är obligatoriskt." #: fields.py:270 msgid "This field may not be null." msgstr "Det här fältet får inte vara null." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" är inte ett giltigt booleskt värde." #: fields.py:674 msgid "This field may not be blank." msgstr "Det här fältet får inte vara blankt." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Se till att detta fält inte har fler än {max_length} tecken." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Se till att detta fält har minst {min_length} tecken." #: fields.py:713 msgid "Enter a valid email address." msgstr "Ange en giltig mejladress." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Det här värdet matchar inte mallen." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Ange en giltig \"slug\" bestående av bokstäver, nummer, understreck eller bindestreck." #: fields.py:747 msgid "Enter a valid URL." msgstr "Ange en giltig URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value} är inte ett giltigt UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Ange en giltig IPv4- eller IPv6-adress." #: fields.py:821 msgid "A valid integer is required." msgstr "Ett giltigt heltal krävs." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Se till att detta värde är mindre än eller lika med {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Se till att detta värde är större än eller lika med {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Textvärdet är för långt." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Ett giltigt nummer krävs." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Se till att det inte finns fler än totalt {max_digits} siffror." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Se till att det inte finns fler än {max_decimal_places} decimaler." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Se till att det inte finns fler än {max_whole_digits} siffror före decimalpunkten." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datumtiden har fel format. Använd ett av dessa format istället: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Förväntade en datumtid men fick ett datum." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Datumet har fel format. Använde ett av dessa format istället: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Förväntade ett datum men fick en datumtid." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Tiden har fel format. Använd ett av dessa format istället: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Perioden har fel format. Använd ett av dessa format istället: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" är inte ett giltigt val." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Fler än {count} objekt..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Förväntade en lista med element men fick typen \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Det här valet får inte vara tomt." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" är inte ett giltigt val för en sökväg." #: fields.py:1358 msgid "No file was submitted." msgstr "Ingen fil skickades." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Den skickade informationen var inte en fil. Kontrollera formulärets kodningstyp." #: fields.py:1360 msgid "No filename could be determined." msgstr "Inget filnamn kunde bestämmas." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Den skickade filen var tom." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Se till att det här filnamnet har högst {max_length} tecken (det har {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Ladda upp en giltig bild. Filen du laddade upp var antingen inte en bild eller en skadad bild." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Den här listan får inte vara tom." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Förväntade en \"dictionary\" med element men fick typen \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Värdet måste vara giltig JSON." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Skicka" #: filters.py:336 msgid "ascending" msgstr "stigande" #: filters.py:337 msgid "descending" msgstr "fallande" #: pagination.py:193 msgid "Invalid page." msgstr "Ogiltig sida." #: pagination.py:427 msgid "Invalid cursor" msgstr "Ogiltig cursor." #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Ogiltigt pk \"{pk_value}\" - Objektet finns inte." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Felaktig typ. Förväntade pk-värde, fick {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Ogiltig hyperlänk - Ingen URL matchade." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Ogiltig hyperlänk - Felaktig URL-matching." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Ogiltig hyperlänk - Objektet finns inte." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Felaktig typ. Förväntade URL-sträng, fick {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Objekt med {slug_name}={value} finns inte." #: relations.py:402 msgid "Invalid value." msgstr "Ogiltigt värde." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Ogiltig data. Förväntade en dictionary, men fick {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filter" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Fältfilter" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Ordning" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Sök" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Inget" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Inga valbara objekt." #: validators.py:43 msgid "This field must be unique." msgstr "Det här fältet måste vara unikt." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Fälten {field_names} måste skapa ett unikt set." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Det här fältet måste vara unikt för datumet \"{date_field}\"." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Det här fältet måste vara unikt för månaden \"{date_field}\"." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Det här fältet måste vara unikt för året \"{date_field}\"." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Ogiltig version i \"Accept\"-headern." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Ogiltig version i URL-resursen." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "Ogiltig version i URL-resursen. Matchar inget versions-namespace." #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Ogiltig version i värdnamnet." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Ogiltig version i förfrågningsparametern." #: views.py:88 msgid "Permission denied." msgstr "Åtkomst nekad." ================================================ FILE: jet_django/deps/rest_framework/locale/tr/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Dogukan Tufekci , 2015 # Emrah BİLBAY , 2015 # Ertaç Paprat , 2015 # José Luis , 2016 # Mesut Can Gürle , 2015 # Murat Çorlu , 2015 # Recep KIRMIZI , 2015 # Ülgen Sarıkavak , 2015 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Turkish (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/tr/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: tr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Geçersiz yetkilendirme başlığı. Gerekli uygunluk kriterleri sağlanmamış." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Geçersiz yetkilendirme başlığı. Uygunluk kriterine ait veri boşluk karakteri içermemeli." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Geçersiz yetkilendirme başlığı. Uygunluk kriterleri base64 formatına uygun olarak kodlanmamış." #: authentication.py:99 msgid "Invalid username/password." msgstr "Geçersiz kullanıcı adı/parola" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Kullanıcı aktif değil ya da silinmiş." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Geçersiz token başlığı. Kimlik bilgileri eksik." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Geçersiz token başlığı. Token'da boşluk olmamalı." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Geçersiz token başlığı. Token geçersiz karakter içermemeli." #: authentication.py:195 msgid "Invalid token." msgstr "Geçersiz token." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Kimlik doğrulama belirteci" #: authtoken/models.py:15 msgid "Key" msgstr "Anahtar" #: authtoken/models.py:18 msgid "User" msgstr "Kullanan" #: authtoken/models.py:20 msgid "Created" msgstr "Oluşturulan" #: authtoken/models.py:29 msgid "Token" msgstr "İşaret" #: authtoken/models.py:30 msgid "Tokens" msgstr "İşaretler" #: authtoken/serializers.py:8 msgid "Username" msgstr "Kullanıcı adı" #: authtoken/serializers.py:9 msgid "Password" msgstr "Şifre" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Kullanıcı hesabı devre dışı bırakılmış." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Verilen bilgiler ile giriş sağlanamadı." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "\"Kullanıcı Adı\" ve \"Parola\" eklenmeli." #: exceptions.py:49 msgid "A server error occurred." msgstr "Sunucu hatası oluştu." #: exceptions.py:84 msgid "Malformed request." msgstr "Bozuk istek." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Giriş bilgileri hatalı." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Giriş bilgileri verilmedi." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Bu işlemi yapmak için izniniz bulunmuyor." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Bulunamadı." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "\"{method}\" metoduna izin verilmiyor." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "İsteğe ait Accept başlık bilgisi yanıt verilecek başlık bilgileri arasında değil." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "İstekte desteklenmeyen medya tipi: \"{media_type}\"." #: exceptions.py:145 msgid "Request was throttled." msgstr "Üst üste çok fazla istek yapıldı." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Bu alan zorunlu." #: fields.py:270 msgid "This field may not be null." msgstr "Bu alan boş bırakılmamalı." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" geçerli bir boolean değil." #: fields.py:674 msgid "This field may not be blank." msgstr "Bu alan boş bırakılmamalı." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Bu alanın {max_length} karakterden fazla karakter barındırmadığından emin olun." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Bu alanın en az {min_length} karakter barındırdığından emin olun." #: fields.py:713 msgid "Enter a valid email address." msgstr "Geçerli bir e-posta adresi girin." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Bu değer gereken düzenli ifade deseni ile uyuşmuyor." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Harf, rakam, altçizgi veya tireden oluşan geçerli bir \"slug\" giriniz." #: fields.py:747 msgid "Enter a valid URL." msgstr "Geçerli bir URL girin." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" geçerli bir UUID değil." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Geçerli bir IPv4 ya da IPv6 adresi girin." #: fields.py:821 msgid "A valid integer is required." msgstr "Geçerli bir tam sayı girin." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Değerin {max_value} değerinden küçük ya da eşit olduğundan emin olun." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Değerin {min_value} değerinden büyük ya da eşit olduğundan emin olun." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "String değeri çok uzun." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Geçerli bir numara gerekiyor." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Toplamda {max_digits} haneden fazla hane olmadığından emin olun." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Ondalık basamak değerinin {max_decimal_places} haneden fazla olmadığından emin olun." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Ondalık ayracından önce {max_whole_digits} basamaktan fazla olmadığından emin olun." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datetime alanı yanlış biçimde. {format} biçimlerinden birini kullanın." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Datetime değeri bekleniyor, ama date değeri geldi." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Tarih biçimi yanlış. {format} biçimlerinden birini kullanın." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Date tipi beklenmekteydi, fakat datetime tipi geldi." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Time biçimi yanlış. {format} biçimlerinden birini kullanın." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Duration biçimi yanlış. {format} biçimlerinden birini kullanın." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" geçerli bir seçim değil." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "{count} elemandan daha fazla..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Elemanların listesi beklenirken \"{input_type}\" alındı." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Bu seçim boş bırakılmamalı." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" geçerli bir yol seçimi değil." #: fields.py:1358 msgid "No file was submitted." msgstr "Hiçbir dosya verilmedi." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Gönderilen veri dosya değil. Formdaki kodlama tipini kontrol edin." #: fields.py:1360 msgid "No filename could be determined." msgstr "Hiçbir dosya adı belirlenemedi." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Gönderilen dosya boş." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Bu dosya adının en fazla {max_length} karakter uzunluğunda olduğundan emin olun. (şu anda {length} karakter)." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Geçerli bir resim yükleyin. Yüklediğiniz dosya resim değil ya da bozuk." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Bu liste boş olmamalı." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Sözlük tipi bir değişken beklenirken \"{input_type}\" tipi bir değişken alındı." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Değer geçerli bir JSON olmalı." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Gönder" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "Geçersiz sayfa." #: pagination.py:427 msgid "Invalid cursor" msgstr "Sayfalandırma imleci geçersiz" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Geçersiz pk \"{pk_value}\" - obje bulunamadı." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Hatalı tip. Pk değeri beklenirken, alınan {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Geçersiz bağlantı - Hiçbir URL eşleşmedi." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Geçersiz bağlantı - Yanlış URL eşleşmesi." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Geçersiz bağlantı - Obje bulunamadı." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Hatalı tip. URL metni bekleniyor, {data_type} alındı." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "{slug_name}={value} değerini taşıyan obje bulunamadı." #: relations.py:402 msgid "Invalid value." msgstr "Geçersiz değer." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Geçersiz veri. Sözlük bekleniyordu fakat {datatype} geldi. " #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtreler" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Alan filtreleri" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Sıralama" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Arama" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Hiçbiri" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Seçenek yok." #: validators.py:43 msgid "This field must be unique." msgstr "Bu alan eşsiz olmalı." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "{field_names} hep birlikte eşsiz bir küme oluşturmalılar." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Bu alan \"{date_field}\" tarihine göre eşsiz olmalı." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Bu alan \"{date_field}\" ayına göre eşsiz olmalı." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Bu alan \"{date_field}\" yılına göre eşsiz olmalı." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "\"Accept\" başlığındaki sürüm geçersiz." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "URL dizininde geçersiz versiyon." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Host adında geçersiz versiyon." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Sorgu parametresinde geçersiz versiyon." #: views.py:88 msgid "Permission denied." msgstr "Erişim engellendi." ================================================ FILE: jet_django/deps/rest_framework/locale/tr_TR/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # José Luis , 2015-2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Turkish (Turkey) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/tr_TR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: tr_TR\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Geçersiz yetkilendirme başlığı. Gerekli uygunluk kriterleri sağlanmamış." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Geçersiz yetkilendirme başlığı. Uygunluk kriterine ait veri boşluk karakteri içermemeli." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Geçersiz yetkilendirme başlığı. Uygunluk kriterleri base64 formatına uygun olarak kodlanmamış." #: authentication.py:99 msgid "Invalid username/password." msgstr "Geçersiz kullanıcı adı / şifre." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Kullanıcı aktif değil ya da silinmiş" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Geçersiz token başlığı. Kimlik bilgileri eksik." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Geçersiz token başlığı. Token'da boşluk olmamalı." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Geçersiz token başlığı. Token geçersiz karakter içermemeli." #: authentication.py:195 msgid "Invalid token." msgstr "Geçersiz simge." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Kimlik doğrulama belirteci" #: authtoken/models.py:15 msgid "Key" msgstr "Anahtar" #: authtoken/models.py:18 msgid "User" msgstr "Kullanan" #: authtoken/models.py:20 msgid "Created" msgstr "Oluşturulan" #: authtoken/models.py:29 msgid "Token" msgstr "İşaret" #: authtoken/models.py:30 msgid "Tokens" msgstr "İşaretler" #: authtoken/serializers.py:8 msgid "Username" msgstr "Kullanıcı adı" #: authtoken/serializers.py:9 msgid "Password" msgstr "Şifre" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Kullanıcı hesabı devre dışı bırakılmış." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Verilen bilgiler ile giriş sağlanamadı." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "\"Kullanıcı Adı\" ve \"Parola\" eklenmeli." #: exceptions.py:49 msgid "A server error occurred." msgstr "Sunucu hatası oluştu." #: exceptions.py:84 msgid "Malformed request." msgstr "Bozuk istek." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Giriş bilgileri hatalı." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Giriş bilgileri verilmedi." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "Bu işlemi yapmak için izniniz bulunmuyor." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Bulunamadı." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "\"{method}\" metoduna izin verilmiyor." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "İsteğe ait Accept başlık bilgisi yanıt verilecek başlık bilgileri arasında değil." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "İstekte desteklenmeyen medya tipi: \"{media_type}\"." #: exceptions.py:145 msgid "Request was throttled." msgstr "Üst üste çok fazla istek yapıldı." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Bu alan zorunlu." #: fields.py:270 msgid "This field may not be null." msgstr "Bu alan boş bırakılmamalı." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" geçerli bir boolean değil." #: fields.py:674 msgid "This field may not be blank." msgstr "Bu alan boş bırakılmamalı." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Bu alanın {max_length} karakterden fazla karakter barındırmadığından emin olun." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Bu alanın en az {min_length} karakter barındırdığından emin olun." #: fields.py:713 msgid "Enter a valid email address." msgstr "Geçerli bir e-posta adresi girin." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Bu değer gereken düzenli ifade deseni ile uyuşmuyor." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Harf, rakam, altçizgi veya tireden oluşan geçerli bir \"slug\" giriniz." #: fields.py:747 msgid "Enter a valid URL." msgstr "Geçerli bir URL girin." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" geçerli bir UUID değil." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Geçerli bir IPv4 ya da IPv6 adresi girin." #: fields.py:821 msgid "A valid integer is required." msgstr "Geçerli bir tam sayı girin." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Değerin {max_value} değerinden küçük ya da eşit olduğundan emin olun." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Değerin {min_value} değerinden büyük ya da eşit olduğundan emin olun." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "String değeri çok uzun." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Geçerli bir numara gerekiyor." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Toplamda {max_digits} haneden fazla hane olmadığından emin olun." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Ondalık basamak değerinin {max_decimal_places} haneden fazla olmadığından emin olun." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Ondalık ayracından önce {max_whole_digits} basamaktan fazla olmadığından emin olun." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Datetime alanı yanlış biçimde. {format} biçimlerinden birini kullanın." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Datetime değeri bekleniyor, ama date değeri geldi." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Tarih biçimi yanlış. {format} biçimlerinden birini kullanın." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Date tipi beklenmekteydi, fakat datetime tipi geldi." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Time biçimi yanlış. {format} biçimlerinden birini kullanın." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Duration biçimi yanlış. {format} biçimlerinden birini kullanın." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" geçerli bir seçim değil." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "{count} elemandan daha fazla..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Elemanların listesi beklenirken \"{input_type}\" alındı." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Bu seçim boş bırakılmamalı." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" geçerli bir yol seçimi değil." #: fields.py:1358 msgid "No file was submitted." msgstr "Hiçbir dosya verilmedi." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Gönderilen veri dosya değil. Formdaki kodlama tipini kontrol edin." #: fields.py:1360 msgid "No filename could be determined." msgstr "Hiçbir dosya adı belirlenemedi." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Gönderilen dosya boş." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Bu dosya adının en fazla {max_length} karakter uzunluğunda olduğundan emin olun. (şu anda {length} karakter)." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Geçerli bir resim yükleyin. Yüklediğiniz dosya resim değil ya da bozuk." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Bu liste boş olmamalı." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Sözlük tipi bir değişken beklenirken \"{input_type}\" tipi bir değişken alındı." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Değer geçerli bir JSON olmalı." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Gönder" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "Geçersiz sayfa." #: pagination.py:427 msgid "Invalid cursor" msgstr "Geçersiz imleç." #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Geçersiz pk \"{pk_value}\" - obje bulunamadı." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Hatalı tip. Pk değeri beklenirken, alınan {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Geçersiz hyper link - URL maçı yok." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Geçersiz hyper link - Yanlış URL maçı." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Geçersiz hyper link - Nesne yok.." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Hatalı tip. URL metni bekleniyor, {data_type} alındı." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "{slug_name}={value} değerini taşıyan obje bulunamadı." #: relations.py:402 msgid "Invalid value." msgstr "Geçersiz değer." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Geçersiz veri. Bir sözlük bekleniyor, ama var {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Filtreler" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Alan filtreleri" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Sıralama" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Arama" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Hiç kimse" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Seçenek yok." #: validators.py:43 msgid "This field must be unique." msgstr "Bu alan benzersiz olmalıdır." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "{field_names} alanları benzersiz bir set yapmak gerekir." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Bu alan \"{date_field}\" tarihine göre eşsiz olmalı." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Bu alan \"{date_field}\" ayına göre eşsiz olmalı." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Bu alan \"{date_field}\" yılına göre eşsiz olmalı." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "\"Kabul et\" başlığında geçersiz sürümü." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "URL yolu geçersiz sürümü." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Hostname geçersiz sürümü." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Sorgu parametresi geçersiz sürümü." #: views.py:88 msgid "Permission denied." msgstr "İzin reddedildi." ================================================ FILE: jet_django/deps/rest_framework/locale/uk/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # Денис Подлесный , 2016 # Illarion , 2016 # Kirill Tarasenko, 2016 # Victor Mireyev , 2017 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Victor Mireyev \n" "Language-Team: Ukrainian (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/uk/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: uk\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "Недійсний основний заголовок. Облікові дані відсутні." #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "Недійсний основний заголовок. Облікові дані мають бути без пробілів." #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "Недійсний основний заголовок. Облікові дані невірно закодовані у Base64." #: authentication.py:99 msgid "Invalid username/password." msgstr "Недійсне iм'я користувача/пароль." #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "Користувач неактивний або видалений." #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "Недійсний заголовок токена. Облікові дані відсутні." #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "Недійсний заголовок токена. Значення токена не повинне містити пробіли." #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "Недійсний заголовок токена. Значення токена не повинне містити некоректні символи." #: authentication.py:195 msgid "Invalid token." msgstr "Недійсний токен." #: authtoken/apps.py:7 msgid "Auth Token" msgstr "Авторизаційний токен" #: authtoken/models.py:15 msgid "Key" msgstr "Ключ" #: authtoken/models.py:18 msgid "User" msgstr "Користувач" #: authtoken/models.py:20 msgid "Created" msgstr "Створено" #: authtoken/models.py:29 msgid "Token" msgstr "Токен" #: authtoken/models.py:30 msgid "Tokens" msgstr "Токени" #: authtoken/serializers.py:8 msgid "Username" msgstr "Ім'я користувача" #: authtoken/serializers.py:9 msgid "Password" msgstr "Пароль" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "Обліковий запис деактивований." #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "Неможливо зайти з введеними даними." #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "Має включати iм'я користувача та пароль" #: exceptions.py:49 msgid "A server error occurred." msgstr "Помилка сервера." #: exceptions.py:84 msgid "Malformed request." msgstr "Некоректний запит." #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "Некоректні реквізити перевірки достовірності." #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "Реквізити перевірки достовірності не надані." #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "У вас нема дозволу робити цю дію." #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "Не знайдено." #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "Метод \"{method}\" не дозволений." #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "Неможливо виконати запит прийняття заголовку." #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "Непідтримуваний тип даних \"{media_type}\" в запиті." #: exceptions.py:145 msgid "Request was throttled." msgstr "Запит було проігноровано." #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "Це поле обов'язкове." #: fields.py:270 msgid "This field may not be null." msgstr "Це поле не може бути null." #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "\"{input}\" не є коректним бульовим значенням." #: fields.py:674 msgid "This field may not be blank." msgstr "Це поле не може бути порожнім." #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "Переконайтесь, що кількість символів в цьому полі не перевищує {max_length}." #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "Переконайтесь, що в цьому полі мінімум {min_length} символів." #: fields.py:713 msgid "Enter a valid email address." msgstr "Введіть коректну адресу електронної пошти." #: fields.py:724 msgid "This value does not match the required pattern." msgstr "Значення не відповідає необхідному патерну." #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "Введіть коректний \"slug\", що складається із букв, цифр, нижніх підкреслень або дефісів. " #: fields.py:747 msgid "Enter a valid URL." msgstr "Введіть коректний URL." #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "\"{value}\" не є коректним UUID." #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "Введіть дійсну IPv4 або IPv6 адресу." #: fields.py:821 msgid "A valid integer is required." msgstr "Необхідне цілочисельне значення." #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "Переконайтесь, що значення менше або дорівнює {max_value}." #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "Переконайтесь, що значення більше або дорівнює {min_value}." #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "Строкове значення занадто велике." #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "Необхідне чисельне значення." #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "Переконайтесь, що в числі не більше {max_digits} знаків." #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "Переконайтесь, що в числі не більше {max_decimal_places} знаків у дробовій частині." #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "Переконайтесь, що в числі не більше {max_whole_digits} знаків у цілій частині." #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "Невірний формат дата з часом. Використайте один з цих форматів: {format}." #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "Очікувалась дата з часом, але було отримано дату." #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "Невірний формат дати. Використайте один з цих форматів: {format}." #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "Очікувалась дата, але було отримано дату з часом." #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "Неправильний формат часу. Використайте один з цих форматів: {format}." #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "Невірний формат тривалості. Використайте один з цих форматів: {format}." #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "\"{input}\" не є коректним вибором." #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "Елементів більше, ніж {count}..." #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "Очікувався список елементів, але було отримано \"{input_type}\"." #: fields.py:1302 msgid "This selection may not be empty." msgstr "Вибір не може бути порожнім." #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\" вибраний шлях не є коректним." #: fields.py:1358 msgid "No file was submitted." msgstr "Файл не було відправленно." #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "Відправленні дані не є файл. Перевірте тип кодування у формі." #: fields.py:1360 msgid "No filename could be determined." msgstr "Неможливо визначити ім'я файлу." #: fields.py:1361 msgid "The submitted file is empty." msgstr "Відправленний файл порожній." #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "Переконайтесь, що ім'я файлу становить менше {max_length} символів (зараз {length})." #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "Завантажте коректне зображення. Завантажений файл або не є зображенням, або пошкоджений." #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "Цей список не може бути порожнім." #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "Очікувався словник зі елементами, але було отримано \"{input_type}\"." #: fields.py:1549 msgid "Value must be valid JSON." msgstr "Значення повинно бути коректним JSON." #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "Відправити" #: filters.py:336 msgid "ascending" msgstr "в порядку зростання" #: filters.py:337 msgid "descending" msgstr "у порядку зменшення" #: pagination.py:193 msgid "Invalid page." msgstr "Недійсна сторінка." #: pagination.py:427 msgid "Invalid cursor" msgstr "Недійсний курсор." #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "Недопустимий первинний ключ \"{pk_value}\" - об'єкт не існує." #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "Некоректний тип. Очікувалось значення первинного ключа, отримано {data_type}." #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "Недійсне посилання - немає збігу за URL." #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "Недійсне посилання - некоректний збіг за URL." #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "Недійсне посилання - об'єкт не існує." #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "Некоректний тип. Очікувався URL, отримано {data_type}." #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "Об'єкт із {slug_name}={value} не існує." #: relations.py:402 msgid "Invalid value." msgstr "Недійсне значення." #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "Недопустимі дані. Очікувався словник, але було отримано {datatype}." #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "Фільтри" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "Фільтри поля" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "Впорядкування" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "Пошук" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "Нічого" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "Немає елементів для вибору." #: validators.py:43 msgid "This field must be unique." msgstr "Це поле повинне бути унікальним." #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "Поля {field_names} повинні створювати унікальний масив значень." #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "Це поле повинне бути унікальним для дати \"{date_field}\"." #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "Це поле повинне бути унікальним для місяця \"{date_field}\"." #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "Це поле повинне бути унікальним для року \"{date_field}\"." #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "Недопустима версія в загаловку \"Accept\"." #: versioning.py:73 msgid "Invalid version in URL path." msgstr "Недопустима версія в шляху URL." #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "Недопустима версія в імені хоста." #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "Недопустима версія в параметрі запиту." #: views.py:88 msgid "Permission denied." msgstr "Доступ заборонено." ================================================ FILE: jet_django/deps/rest_framework/locale/vi/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Vietnamese (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/vi/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: vi\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/zh_CN/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # hunter007 , 2015 # Lele Long , 2015,2017 # Ming Chen , 2015-2016 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: Lele Long \n" "Language-Team: Chinese (China) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/zh_CN/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: zh_CN\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "无效的Basic认证头,没有提供认证信息。" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "认证字符串不应该包含空格(基本认证HTTP头无效)。" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "认证字符串base64编码错误(基本认证HTTP头无效)。" #: authentication.py:99 msgid "Invalid username/password." msgstr "用户名或者密码错误。" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "用户未激活或者已删除。" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "没有提供认证信息(认证令牌HTTP头无效)。" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "认证令牌字符串不应该包含空格(无效的认证令牌HTTP头)。" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "无效的Token。Token字符串不能包含非法的字符。" #: authentication.py:195 msgid "Invalid token." msgstr "认证令牌无效。" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "认证令牌" #: authtoken/models.py:15 msgid "Key" msgstr "键" #: authtoken/models.py:18 msgid "User" msgstr "用户" #: authtoken/models.py:20 msgid "Created" msgstr "已创建" #: authtoken/models.py:29 msgid "Token" msgstr "令牌" #: authtoken/models.py:30 msgid "Tokens" msgstr "令牌" #: authtoken/serializers.py:8 msgid "Username" msgstr "用户名" #: authtoken/serializers.py:9 msgid "Password" msgstr "密码" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "用户账户已禁用。" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "无法使用提供的认证信息登录。" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "必须包含 “用户名” 和 “密码”。" #: exceptions.py:49 msgid "A server error occurred." msgstr "服务器出现了错误。" #: exceptions.py:84 msgid "Malformed request." msgstr "错误的请求。" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "不正确的身份认证信息。" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "身份认证信息未提供。" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "您没有执行该操作的权限。" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "未找到。" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "方法 “{method}” 不被允许。" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "无法满足Accept HTTP头的请求。" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "不支持请求中的媒体类型 “{media_type}”。" #: exceptions.py:145 msgid "Request was throttled." msgstr "请求超过了限速。" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "该字段是必填项。" #: fields.py:270 msgid "This field may not be null." msgstr "该字段不能为 null。" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "“{input}” 不是合法的布尔值。" #: fields.py:674 msgid "This field may not be blank." msgstr "该字段不能为空。" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "请确保这个字段不能超过 {max_length} 个字符。" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "请确保这个字段至少包含 {min_length} 个字符。" #: fields.py:713 msgid "Enter a valid email address." msgstr "请输入合法的邮件地址。" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "输入值不匹配要求的模式。" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "请输入合法的“短语“,只能包含字母,数字,下划线或者中划线。" #: fields.py:747 msgid "Enter a valid URL." msgstr "请输入合法的URL。" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "“{value}”不是合法的UUID。" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "请输入一个有效的IPv4或IPv6地址。" #: fields.py:821 msgid "A valid integer is required." msgstr "请填写合法的整数值。" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "请确保该值小于或者等于 {max_value}。" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "请确保该值大于或者等于 {min_value}。" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "字符串值太长。" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "请填写合法的数字。" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "请确保总计不超过 {max_digits} 个数字。" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "请确保总计不超过 {max_decimal_places} 个小数位。" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "请确保小数点前不超过 {max_whole_digits} 个数字。" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "日期时间格式错误。请从这些格式中选择:{format}。" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "期望为日期时间,得到的是日期。" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "日期格式错误。请从这些格式中选择:{format}。" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "期望为日期,得到的是日期时间。" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "时间格式错误。请从这些格式中选择:{format}。" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "持续时间的格式错误。使用这些格式中的一个:{format}。" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "“{input}” 不是合法选项。" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "多于{count}条记录。" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "期望为一个包含物件的列表,得到的类型是“{input_type}”。" #: fields.py:1302 msgid "This selection may not be empty." msgstr "这项选择不能为空。" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "“{input}” 不是有效路径选项。" #: fields.py:1358 msgid "No file was submitted." msgstr "没有提交任何文件。" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "提交的数据不是一个文件。请检查表单的编码类型。" #: fields.py:1360 msgid "No filename could be determined." msgstr "无法检测到文件名。" #: fields.py:1361 msgid "The submitted file is empty." msgstr "提交的是空文件。" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "确保该文件名最多包含 {max_length} 个字符 ( 当前长度为{length} ) 。" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "请上传有效图片。您上传的该文件不是图片或者图片已经损坏。" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "列表字段不能为空值。" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "期望是包含类目的字典,得到类型为 “{input_type}”。" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "值必须是有效的 JSON 数据。" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "保存" #: filters.py:336 msgid "ascending" msgstr "升序" #: filters.py:337 msgid "descending" msgstr "降序" #: pagination.py:193 msgid "Invalid page." msgstr "无效页。" #: pagination.py:427 msgid "Invalid cursor" msgstr "无效游标" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "无效主键 “{pk_value}” - 对象不存在。" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "类型错误。期望为主键,得到的类型为 {data_type}。" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "无效超链接 -没有匹配的URL。" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "无效超链接 -错误的URL匹配。" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "无效超链接 -对象不存在。" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "类型错误。期望为URL字符串,实际的类型是 {data_type}。" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "属性 {slug_name} 为 {value} 的对象不存在。" #: relations.py:402 msgid "Invalid value." msgstr "无效值。" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "无效数据。期待为字典类型,得到的是 {datatype} 。" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "过滤器" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "过滤器字段" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "排序" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "查找" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "无" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "没有可选项。" #: validators.py:43 msgid "This field must be unique." msgstr "该字段必须唯一。" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "字段 {field_names} 必须能构成唯一集合。" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "该字段必须在日期 “{date_field}” 唯一。" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "该字段必须在月份 “{date_field}” 唯一。" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "该字段必须在年 “{date_field}” 唯一。" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "“Accept” HTTP头包含无效版本。" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "URL路径包含无效版本。" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "URL路径中存在无效版本。版本空间中无法匹配上。" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "主机名包含无效版本。" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "请求参数里包含无效版本。" #: views.py:88 msgid "Permission denied." msgstr "没有权限。" ================================================ FILE: jet_django/deps/rest_framework/locale/zh_Hans/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: # cokky , 2015 # hunter007 , 2015 # nypisces , 2015 # ppppfly , 2017 msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2017-08-03 14:58+0000\n" "Last-Translator: ppppfly \n" "Language-Team: Chinese Simplified (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/zh-Hans/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: zh-Hans\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "无效的Basic认证头,没有提供认证信息。" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "认证字符串不应该包含空格(基本认证HTTP头无效)。" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "认证字符串base64编码错误(基本认证HTTP头无效)。" #: authentication.py:99 msgid "Invalid username/password." msgstr "用户名或者密码错误。" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "用户未激活或者已删除。" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "没有提供认证信息(认证令牌HTTP头无效)。" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "认证令牌字符串不应该包含空格(无效的认证令牌HTTP头)。" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "无效的Token。Token字符串不能包含非法的字符。" #: authentication.py:195 msgid "Invalid token." msgstr "认证令牌无效。" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "认证令牌" #: authtoken/models.py:15 msgid "Key" msgstr "键" #: authtoken/models.py:18 msgid "User" msgstr "用户" #: authtoken/models.py:20 msgid "Created" msgstr "已创建" #: authtoken/models.py:29 msgid "Token" msgstr "令牌" #: authtoken/models.py:30 msgid "Tokens" msgstr "令牌" #: authtoken/serializers.py:8 msgid "Username" msgstr "用户名" #: authtoken/serializers.py:9 msgid "Password" msgstr "密码" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "用户账户已禁用。" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "无法使用提供的认证信息登录。" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "必须包含 “用户名” 和 “密码”。" #: exceptions.py:49 msgid "A server error occurred." msgstr "服务器出现了错误。" #: exceptions.py:84 msgid "Malformed request." msgstr "错误的请求。" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "不正确的身份认证信息。" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "身份认证信息未提供。" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "您没有执行该操作的权限。" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "未找到。" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "方法 “{method}” 不被允许。" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "无法满足Accept HTTP头的请求。" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "不支持请求中的媒体类型 “{media_type}”。" #: exceptions.py:145 msgid "Request was throttled." msgstr "请求超过了限速。" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "该字段是必填项。" #: fields.py:270 msgid "This field may not be null." msgstr "该字段不能为 null。" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "“{input}” 不是合法的布尔值。" #: fields.py:674 msgid "This field may not be blank." msgstr "该字段不能为空。" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "请确保这个字段不能超过 {max_length} 个字符。" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "请确保这个字段至少包含 {min_length} 个字符。" #: fields.py:713 msgid "Enter a valid email address." msgstr "请输入合法的邮件地址。" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "输入值不匹配要求的模式。" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "请输入合法的“短语“,只能包含字母,数字,下划线或者中划线。" #: fields.py:747 msgid "Enter a valid URL." msgstr "请输入合法的URL。" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "“{value}”不是合法的UUID。" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "请输入一个有效的IPv4或IPv6地址。" #: fields.py:821 msgid "A valid integer is required." msgstr "请填写合法的整数值。" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "请确保该值小于或者等于 {max_value}。" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "请确保该值大于或者等于 {min_value}。" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "字符串值太长。" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "请填写合法的数字。" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "请确保总计不超过 {max_digits} 个数字。" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "请确保总计不超过 {max_decimal_places} 个小数位。" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "请确保小数点前不超过 {max_whole_digits} 个数字。" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "日期时间格式错误。请从这些格式中选择:{format}。" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "期望为日期时间,获得的是日期。" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "日期格式错误。请从这些格式中选择:{format}。" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "期望为日期,获得的是日期时间。" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "时间格式错误。请从这些格式中选择:{format}。" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "持续时间的格式错误。使用这些格式中的一个:{format}。" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "“{input}” 不是合法选项。" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "多于{count}条记录。" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "期望为一个包含物件的列表,得到的类型是“{input_type}”。" #: fields.py:1302 msgid "This selection may not be empty." msgstr "这项选择不能为空。" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "\"{input}\"不是一个有效路径选项。" #: fields.py:1358 msgid "No file was submitted." msgstr "没有提交任何文件。" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "提交的数据不是一个文件。请检查表单的编码类型。" #: fields.py:1360 msgid "No filename could be determined." msgstr "无法检测到文件名。" #: fields.py:1361 msgid "The submitted file is empty." msgstr "提交的是空文件。" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "确保该文件名最多包含 {max_length} 个字符 ( 当前长度为{length} ) 。" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "请上传有效图片。您上传的该文件不是图片或者图片已经损坏。" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "列表不能为空。" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "期望是包含类目的字典,得到类型为 “{input_type}”。" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "值必须是有效的 JSON 数据。" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "提交" #: filters.py:336 msgid "ascending" msgstr "正排序" #: filters.py:337 msgid "descending" msgstr "倒排序" #: pagination.py:193 msgid "Invalid page." msgstr "无效页面。" #: pagination.py:427 msgid "Invalid cursor" msgstr "无效游标" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "无效主键 “{pk_value}” - 对象不存在。" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "类型错误。期望为主键,获得的类型为 {data_type}。" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "无效超链接 -没有匹配的URL。" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "无效超链接 -错误的URL匹配。" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "无效超链接 -对象不存在。" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "类型错误。期望为URL字符串,实际的类型是 {data_type}。" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "属性 {slug_name} 为 {value} 的对象不存在。" #: relations.py:402 msgid "Invalid value." msgstr "无效值。" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "无效数据。期待为字典类型,得到的是 {datatype} 。" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "过滤器" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "过滤器字段" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "排序" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr " 搜索" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "无" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "没有可选项。" #: validators.py:43 msgid "This field must be unique." msgstr "该字段必须唯一。" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "字段 {field_names} 必须能构成唯一集合。" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "该字段必须在日期 “{date_field}” 唯一。" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "该字段必须在月份 “{date_field}” 唯一。" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "该字段必须在年 “{date_field}” 唯一。" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "“Accept” HTTP头包含无效版本。" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "URL路径包含无效版本。" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "在URL路径中发现无效的版本。无法匹配任何的版本命名空间。" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "主机名包含无效版本。" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "请求参数里包含无效版本。" #: views.py:88 msgid "Permission denied." msgstr "没有权限。" ================================================ FILE: jet_django/deps/rest_framework/locale/zh_Hant/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Chinese Traditional (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/zh-Hant/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: zh-Hant\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/locale/zh_TW/LC_MESSAGES/django.po ================================================ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # # Translators: msgid "" msgstr "" "Project-Id-Version: Django REST framework\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-07-12 16:13+0100\n" "PO-Revision-Date: 2016-07-12 15:14+0000\n" "Last-Translator: Thomas Christie \n" "Language-Team: Chinese (Taiwan) (http://www.transifex.com/django-rest-framework-1/django-rest-framework/language/zh_TW/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Language: zh_TW\n" "Plural-Forms: nplurals=1; plural=0;\n" #: authentication.py:73 msgid "Invalid basic header. No credentials provided." msgstr "" #: authentication.py:76 msgid "Invalid basic header. Credentials string should not contain spaces." msgstr "" #: authentication.py:82 msgid "Invalid basic header. Credentials not correctly base64 encoded." msgstr "" #: authentication.py:99 msgid "Invalid username/password." msgstr "" #: authentication.py:102 authentication.py:198 msgid "User inactive or deleted." msgstr "" #: authentication.py:176 msgid "Invalid token header. No credentials provided." msgstr "" #: authentication.py:179 msgid "Invalid token header. Token string should not contain spaces." msgstr "" #: authentication.py:185 msgid "" "Invalid token header. Token string should not contain invalid characters." msgstr "" #: authentication.py:195 msgid "Invalid token." msgstr "" #: authtoken/apps.py:7 msgid "Auth Token" msgstr "" #: authtoken/models.py:15 msgid "Key" msgstr "" #: authtoken/models.py:18 msgid "User" msgstr "" #: authtoken/models.py:20 msgid "Created" msgstr "" #: authtoken/models.py:29 msgid "Token" msgstr "" #: authtoken/models.py:30 msgid "Tokens" msgstr "" #: authtoken/serializers.py:8 msgid "Username" msgstr "" #: authtoken/serializers.py:9 msgid "Password" msgstr "" #: authtoken/serializers.py:20 msgid "User account is disabled." msgstr "" #: authtoken/serializers.py:23 msgid "Unable to log in with provided credentials." msgstr "" #: authtoken/serializers.py:26 msgid "Must include \"username\" and \"password\"." msgstr "" #: exceptions.py:49 msgid "A server error occurred." msgstr "" #: exceptions.py:84 msgid "Malformed request." msgstr "" #: exceptions.py:89 msgid "Incorrect authentication credentials." msgstr "" #: exceptions.py:94 msgid "Authentication credentials were not provided." msgstr "" #: exceptions.py:99 msgid "You do not have permission to perform this action." msgstr "" #: exceptions.py:104 views.py:81 msgid "Not found." msgstr "" #: exceptions.py:109 msgid "Method \"{method}\" not allowed." msgstr "" #: exceptions.py:120 msgid "Could not satisfy the request Accept header." msgstr "" #: exceptions.py:132 msgid "Unsupported media type \"{media_type}\" in request." msgstr "" #: exceptions.py:145 msgid "Request was throttled." msgstr "" #: fields.py:269 relations.py:206 relations.py:239 validators.py:98 #: validators.py:181 msgid "This field is required." msgstr "" #: fields.py:270 msgid "This field may not be null." msgstr "" #: fields.py:608 fields.py:639 msgid "\"{input}\" is not a valid boolean." msgstr "" #: fields.py:674 msgid "This field may not be blank." msgstr "" #: fields.py:675 fields.py:1675 msgid "Ensure this field has no more than {max_length} characters." msgstr "" #: fields.py:676 msgid "Ensure this field has at least {min_length} characters." msgstr "" #: fields.py:713 msgid "Enter a valid email address." msgstr "" #: fields.py:724 msgid "This value does not match the required pattern." msgstr "" #: fields.py:735 msgid "" "Enter a valid \"slug\" consisting of letters, numbers, underscores or " "hyphens." msgstr "" #: fields.py:747 msgid "Enter a valid URL." msgstr "" #: fields.py:760 msgid "\"{value}\" is not a valid UUID." msgstr "" #: fields.py:796 msgid "Enter a valid IPv4 or IPv6 address." msgstr "" #: fields.py:821 msgid "A valid integer is required." msgstr "" #: fields.py:822 fields.py:857 fields.py:891 msgid "Ensure this value is less than or equal to {max_value}." msgstr "" #: fields.py:823 fields.py:858 fields.py:892 msgid "Ensure this value is greater than or equal to {min_value}." msgstr "" #: fields.py:824 fields.py:859 fields.py:896 msgid "String value too large." msgstr "" #: fields.py:856 fields.py:890 msgid "A valid number is required." msgstr "" #: fields.py:893 msgid "Ensure that there are no more than {max_digits} digits in total." msgstr "" #: fields.py:894 msgid "" "Ensure that there are no more than {max_decimal_places} decimal places." msgstr "" #: fields.py:895 msgid "" "Ensure that there are no more than {max_whole_digits} digits before the " "decimal point." msgstr "" #: fields.py:1025 msgid "Datetime has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1026 msgid "Expected a datetime but got a date." msgstr "" #: fields.py:1103 msgid "Date has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1104 msgid "Expected a date but got a datetime." msgstr "" #: fields.py:1170 msgid "Time has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1232 msgid "Duration has wrong format. Use one of these formats instead: {format}." msgstr "" #: fields.py:1251 fields.py:1300 msgid "\"{input}\" is not a valid choice." msgstr "" #: fields.py:1254 relations.py:71 relations.py:441 msgid "More than {count} items..." msgstr "" #: fields.py:1301 fields.py:1448 relations.py:437 serializers.py:524 msgid "Expected a list of items but got type \"{input_type}\"." msgstr "" #: fields.py:1302 msgid "This selection may not be empty." msgstr "" #: fields.py:1339 msgid "\"{input}\" is not a valid path choice." msgstr "" #: fields.py:1358 msgid "No file was submitted." msgstr "" #: fields.py:1359 msgid "" "The submitted data was not a file. Check the encoding type on the form." msgstr "" #: fields.py:1360 msgid "No filename could be determined." msgstr "" #: fields.py:1361 msgid "The submitted file is empty." msgstr "" #: fields.py:1362 msgid "" "Ensure this filename has at most {max_length} characters (it has {length})." msgstr "" #: fields.py:1410 msgid "" "Upload a valid image. The file you uploaded was either not an image or a " "corrupted image." msgstr "" #: fields.py:1449 relations.py:438 serializers.py:525 msgid "This list may not be empty." msgstr "" #: fields.py:1502 msgid "Expected a dictionary of items but got type \"{input_type}\"." msgstr "" #: fields.py:1549 msgid "Value must be valid JSON." msgstr "" #: filters.py:36 templates/jet_django.deps.rest_framework/filters/django_filter.html:5 msgid "Submit" msgstr "" #: filters.py:336 msgid "ascending" msgstr "" #: filters.py:337 msgid "descending" msgstr "" #: pagination.py:193 msgid "Invalid page." msgstr "" #: pagination.py:427 msgid "Invalid cursor" msgstr "" #: relations.py:207 msgid "Invalid pk \"{pk_value}\" - object does not exist." msgstr "" #: relations.py:208 msgid "Incorrect type. Expected pk value, received {data_type}." msgstr "" #: relations.py:240 msgid "Invalid hyperlink - No URL match." msgstr "" #: relations.py:241 msgid "Invalid hyperlink - Incorrect URL match." msgstr "" #: relations.py:242 msgid "Invalid hyperlink - Object does not exist." msgstr "" #: relations.py:243 msgid "Incorrect type. Expected URL string, received {data_type}." msgstr "" #: relations.py:401 msgid "Object with {slug_name}={value} does not exist." msgstr "" #: relations.py:402 msgid "Invalid value." msgstr "" #: serializers.py:326 msgid "Invalid data. Expected a dictionary, but got {datatype}." msgstr "" #: templates/jet_django.deps.rest_framework/admin.html:116 #: templates/jet_django.deps.rest_framework/base.html:128 msgid "Filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/django_filter.html:2 #: templates/jet_django.deps.rest_framework/filters/django_filter_crispyforms.html:4 msgid "Field filters" msgstr "" #: templates/jet_django.deps.rest_framework/filters/ordering.html:3 msgid "Ordering" msgstr "" #: templates/jet_django.deps.rest_framework/filters/search.html:2 msgid "Search" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/radio.html:2 #: templates/jet_django.deps.rest_framework/inline/radio.html:2 #: templates/jet_django.deps.rest_framework/vertical/radio.html:2 msgid "None" msgstr "" #: templates/jet_django.deps.rest_framework/horizontal/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/inline/select_multiple.html:2 #: templates/jet_django.deps.rest_framework/vertical/select_multiple.html:2 msgid "No items to select." msgstr "" #: validators.py:43 msgid "This field must be unique." msgstr "" #: validators.py:97 msgid "The fields {field_names} must make a unique set." msgstr "" #: validators.py:245 msgid "This field must be unique for the \"{date_field}\" date." msgstr "" #: validators.py:260 msgid "This field must be unique for the \"{date_field}\" month." msgstr "" #: validators.py:273 msgid "This field must be unique for the \"{date_field}\" year." msgstr "" #: versioning.py:42 msgid "Invalid version in \"Accept\" header." msgstr "" #: versioning.py:73 msgid "Invalid version in URL path." msgstr "" #: versioning.py:115 msgid "Invalid version in URL path. Does not match any version namespace." msgstr "" #: versioning.py:147 msgid "Invalid version in hostname." msgstr "" #: versioning.py:169 msgid "Invalid version in query parameter." msgstr "" #: views.py:88 msgid "Permission denied." msgstr "" ================================================ FILE: jet_django/deps/rest_framework/metadata.py ================================================ """ The metadata API is used to allow customization of how `OPTIONS` requests are handled. We currently provide a single default implementation that returns some fairly ad-hoc information about the view. Future implementations might use JSON schema or other definitions in order to return this information in a more standardized way. """ from __future__ import unicode_literals from collections import OrderedDict from django.core.exceptions import PermissionDenied from django.http import Http404 from django.utils.encoding import force_text from jet_django.deps.rest_framework import exceptions, serializers from jet_django.deps.rest_framework.request import clone_request from jet_django.deps.rest_framework.utils.field_mapping import ClassLookupDict class BaseMetadata(object): def determine_metadata(self, request, view): """ Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests. """ raise NotImplementedError(".determine_metadata() must be overridden.") class SimpleMetadata(BaseMetadata): """ This is the default metadata implementation. It returns an ad-hoc set of information about the view. There are not any formalized standards for `OPTIONS` responses for us to base this on. """ label_lookup = ClassLookupDict({ serializers.Field: 'field', serializers.BooleanField: 'boolean', serializers.NullBooleanField: 'boolean', serializers.CharField: 'string', serializers.UUIDField: 'string', serializers.URLField: 'url', serializers.EmailField: 'email', serializers.RegexField: 'regex', serializers.SlugField: 'slug', serializers.IntegerField: 'integer', serializers.FloatField: 'float', serializers.DecimalField: 'decimal', serializers.DateField: 'date', serializers.DateTimeField: 'datetime', serializers.TimeField: 'time', serializers.ChoiceField: 'choice', serializers.MultipleChoiceField: 'multiple choice', serializers.FileField: 'file upload', serializers.ImageField: 'image upload', serializers.ListField: 'list', serializers.DictField: 'nested object', serializers.Serializer: 'nested object', }) def determine_metadata(self, request, view): metadata = OrderedDict() metadata['name'] = view.get_view_name() metadata['description'] = view.get_view_description() metadata['renders'] = [renderer.media_type for renderer in view.renderer_classes] metadata['parses'] = [parser.media_type for parser in view.parser_classes] if hasattr(view, 'get_serializer'): actions = self.determine_actions(request, view) if actions: metadata['actions'] = actions return metadata def determine_actions(self, request, view): """ For generic class based views we return information about the fields that are accepted for 'PUT' and 'POST' methods. """ actions = {} for method in {'PUT', 'POST'} & set(view.allowed_methods): view.request = clone_request(request, method) try: # Test global permissions if hasattr(view, 'check_permissions'): view.check_permissions(view.request) # Test object permissions if method == 'PUT' and hasattr(view, 'get_object'): view.get_object() except (exceptions.APIException, PermissionDenied, Http404): pass else: # If user has appropriate permissions for the view, include # appropriate metadata about the fields that should be supplied. serializer = view.get_serializer() actions[method] = self.get_serializer_info(serializer) finally: view.request = request return actions def get_serializer_info(self, serializer): """ Given an instance of a serializer, return a dictionary of metadata about its fields. """ if hasattr(serializer, 'child'): # If this is a `ListSerializer` then we want to examine the # underlying child serializer instance instead. serializer = serializer.child return OrderedDict([ (field_name, self.get_field_info(field)) for field_name, field in serializer.fields.items() if not isinstance(field, serializers.HiddenField) ]) def get_field_info(self, field): """ Given an instance of a serializer field, return a dictionary of metadata about it. """ field_info = OrderedDict() field_info['type'] = self.label_lookup[field] field_info['required'] = getattr(field, 'required', False) attrs = [ 'read_only', 'label', 'help_text', 'min_length', 'max_length', 'min_value', 'max_value' ] for attr in attrs: value = getattr(field, attr, None) if value is not None and value != '': field_info[attr] = force_text(value, strings_only=True) if getattr(field, 'child', None): field_info['child'] = self.get_field_info(field.child) elif getattr(field, 'fields', None): field_info['children'] = self.get_serializer_info(field) if (not field_info.get('read_only') and not isinstance(field, (serializers.RelatedField, serializers.ManyRelatedField)) and hasattr(field, 'choices')): field_info['choices'] = [ { 'value': choice_value, 'display_name': force_text(choice_name, strings_only=True) } for choice_value, choice_name in field.choices.items() ] return field_info ================================================ FILE: jet_django/deps/rest_framework/mixins.py ================================================ """ Basic building blocks for generic class based views. We don't bind behaviour to http method handlers yet, which allows mixin classes to be composed in interesting ways. """ from __future__ import unicode_literals from jet_django.deps.rest_framework import status from jet_django.deps.rest_framework.response import Response from jet_django.deps.rest_framework.settings import api_settings class CreateModelMixin(object): """ Create a model instance. """ def create(self, request, *args, **kwargs): serializer = self.get_serializer(data=request.data) serializer.is_valid(raise_exception=True) self.perform_create(serializer) headers = self.get_success_headers(serializer.data) return Response(serializer.data, status=status.HTTP_201_CREATED, headers=headers) def perform_create(self, serializer): serializer.save() def get_success_headers(self, data): try: return {'Location': str(data[api_settings.URL_FIELD_NAME])} except (TypeError, KeyError): return {} class ListModelMixin(object): """ List a queryset. """ def list(self, request, *args, **kwargs): queryset = self.filter_queryset(self.get_queryset()) page = self.paginate_queryset(queryset) if page is not None: serializer = self.get_serializer(page, many=True) return self.get_paginated_response(serializer.data) serializer = self.get_serializer(queryset, many=True) return Response(serializer.data) class RetrieveModelMixin(object): """ Retrieve a model instance. """ def retrieve(self, request, *args, **kwargs): instance = self.get_object() serializer = self.get_serializer(instance) return Response(serializer.data) class UpdateModelMixin(object): """ Update a model instance. """ def update(self, request, *args, **kwargs): partial = kwargs.pop('partial', False) instance = self.get_object() serializer = self.get_serializer(instance, data=request.data, partial=partial) serializer.is_valid(raise_exception=True) self.perform_update(serializer) if getattr(instance, '_prefetched_objects_cache', None): # If 'prefetch_related' has been applied to a queryset, we need to # forcibly invalidate the prefetch cache on the instance. instance._prefetched_objects_cache = {} return Response(serializer.data) def perform_update(self, serializer): serializer.save() def partial_update(self, request, *args, **kwargs): kwargs['partial'] = True return self.update(request, *args, **kwargs) class DestroyModelMixin(object): """ Destroy a model instance. """ def destroy(self, request, *args, **kwargs): instance = self.get_object() self.perform_destroy(instance) return Response(status=status.HTTP_204_NO_CONTENT) def perform_destroy(self, instance): instance.delete() ================================================ FILE: jet_django/deps/rest_framework/models.py ================================================ # Just to keep things like ./manage.py test happy ================================================ FILE: jet_django/deps/rest_framework/negotiation.py ================================================ """ Content negotiation deals with selecting an appropriate renderer given the incoming request. Typically this will be based on the request's Accept header. """ from __future__ import unicode_literals from django.http import Http404 from jet_django.deps.rest_framework import HTTP_HEADER_ENCODING, exceptions from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils.mediatypes import ( _MediaType, media_type_matches, order_by_precedence ) class BaseContentNegotiation(object): def select_parser(self, request, parsers): raise NotImplementedError('.select_parser() must be implemented') def select_renderer(self, request, renderers, format_suffix=None): raise NotImplementedError('.select_renderer() must be implemented') class DefaultContentNegotiation(BaseContentNegotiation): settings = api_settings def select_parser(self, request, parsers): """ Given a list of parsers and a media type, return the appropriate parser to handle the incoming request. """ for parser in parsers: if media_type_matches(parser.media_type, request.content_type): return parser return None def select_renderer(self, request, renderers, format_suffix=None): """ Given a request and a list of renderers, return a two-tuple of: (renderer, media type). """ # Allow URL style format override. eg. "?format=json format_query_param = self.settings.URL_FORMAT_OVERRIDE format = format_suffix or request.query_params.get(format_query_param) if format: renderers = self.filter_renderers(renderers, format) accepts = self.get_accept_list(request) # Check the acceptable media types against each renderer, # attempting more specific media types first # NB. The inner loop here isn't as bad as it first looks :) # Worst case is we're looping over len(accept_list) * len(self.renderers) for media_type_set in order_by_precedence(accepts): for renderer in renderers: for media_type in media_type_set: if media_type_matches(renderer.media_type, media_type): # Return the most specific media type as accepted. media_type_wrapper = _MediaType(media_type) if ( _MediaType(renderer.media_type).precedence > media_type_wrapper.precedence ): # Eg client requests '*/*' # Accepted media type is 'application/json' full_media_type = ';'.join( (renderer.media_type,) + tuple('{0}={1}'.format( key, value.decode(HTTP_HEADER_ENCODING)) for key, value in media_type_wrapper.params.items())) return renderer, full_media_type else: # Eg client requests 'application/json; indent=8' # Accepted media type is 'application/json; indent=8' return renderer, media_type raise exceptions.NotAcceptable(available_renderers=renderers) def filter_renderers(self, renderers, format): """ If there is a '.json' style format suffix, filter the renderers so that we only negotiation against those that accept that format. """ renderers = [renderer for renderer in renderers if renderer.format == format] if not renderers: raise Http404 return renderers def get_accept_list(self, request): """ Given the incoming request, return a tokenized list of media type strings. """ header = request.META.get('HTTP_ACCEPT', '*/*') return [token.strip() for token in header.split(',')] ================================================ FILE: jet_django/deps/rest_framework/pagination.py ================================================ # coding: utf-8 """ Pagination serializers determine the structure of the output that should be used for paginated responses. """ from __future__ import unicode_literals from base64 import b64decode, b64encode from collections import OrderedDict, namedtuple from django.core.paginator import InvalidPage from django.core.paginator import Paginator as DjangoPaginator from django.template import loader from django.utils import six from django.utils.encoding import force_text from django.utils.six.moves.urllib import parse as urlparse from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework.compat import coreapi, coreschema from jet_django.deps.rest_framework.exceptions import NotFound from jet_django.deps.rest_framework.response import Response from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils.urls import remove_query_param, replace_query_param def _positive_int(integer_string, strict=False, cutoff=None): """ Cast a string to a strictly positive integer. """ ret = int(integer_string) if ret < 0 or (ret == 0 and strict): raise ValueError() if cutoff: return min(ret, cutoff) return ret def _divide_with_ceil(a, b): """ Returns 'a' divided by 'b', with any remainder rounded up. """ if a % b: return (a // b) + 1 return a // b def _get_displayed_page_numbers(current, final): """ This utility function determines a list of page numbers to display. This gives us a nice contextually relevant set of page numbers. For example: current=14, final=16 -> [1, None, 13, 14, 15, 16] This implementation gives one page to each side of the cursor, or two pages to the side when the cursor is at the edge, then ensures that any breaks between non-continuous page numbers never remove only a single page. For an alternative implementation which gives two pages to each side of the cursor, eg. as in GitHub issue list pagination, see: https://gist.github.com/tomchristie/321140cebb1c4a558b15 """ assert current >= 1 assert final >= current if final <= 5: return list(range(1, final + 1)) # We always include the first two pages, last two pages, and # two pages either side of the current page. included = {1, current - 1, current, current + 1, final} # If the break would only exclude a single page number then we # may as well include the page number instead of the break. if current <= 4: included.add(2) included.add(3) if current >= final - 3: included.add(final - 1) included.add(final - 2) # Now sort the page numbers and drop anything outside the limits. included = [ idx for idx in sorted(list(included)) if 0 < idx <= final ] # Finally insert any `...` breaks if current > 4: included.insert(1, None) if current < final - 3: included.insert(len(included) - 1, None) return included def _get_page_links(page_numbers, current, url_func): """ Given a list of page numbers and `None` page breaks, return a list of `PageLink` objects. """ page_links = [] for page_number in page_numbers: if page_number is None: page_link = PAGE_BREAK else: page_link = PageLink( url=url_func(page_number), number=page_number, is_active=(page_number == current), is_break=False ) page_links.append(page_link) return page_links def _reverse_ordering(ordering_tuple): """ Given an order_by tuple such as `('-created', 'uuid')` reverse the ordering and return a new tuple, eg. `('created', '-uuid')`. """ def invert(x): return x[1:] if x.startswith('-') else '-' + x return tuple([invert(item) for item in ordering_tuple]) Cursor = namedtuple('Cursor', ['offset', 'reverse', 'position']) PageLink = namedtuple('PageLink', ['url', 'number', 'is_active', 'is_break']) PAGE_BREAK = PageLink(url=None, number=None, is_active=False, is_break=True) class BasePagination(object): display_page_controls = False def paginate_queryset(self, queryset, request, view=None): # pragma: no cover raise NotImplementedError('paginate_queryset() must be implemented.') def get_paginated_response(self, data): # pragma: no cover raise NotImplementedError('get_paginated_response() must be implemented.') def to_html(self): # pragma: no cover raise NotImplementedError('to_html() must be implemented to display page controls.') def get_results(self, data): return data['results'] def get_schema_fields(self, view): assert coreapi is not None, 'coreapi must be installed to use `get_schema_fields()`' return [] class PageNumberPagination(BasePagination): """ A simple page number based style that supports page numbers as query parameters. For example: http://api.example.org/accounts/?page=4 http://api.example.org/accounts/?page=4&page_size=100 """ # The default page size. # Defaults to `None`, meaning pagination is disabled. page_size = api_settings.PAGE_SIZE django_paginator_class = DjangoPaginator # Client can control the page using this query parameter. page_query_param = 'page' page_query_description = _('A page number within the paginated result set.') # Client can control the page size using this query parameter. # Default is 'None'. Set to eg 'page_size' to enable usage. page_size_query_param = None page_size_query_description = _('Number of results to return per page.') # Set to an integer to limit the maximum page size the client may request. # Only relevant if 'page_size_query_param' has also been set. max_page_size = None last_page_strings = ('last',) template = 'jet_django.deps.rest_framework/pagination/numbers.html' invalid_page_message = _('Invalid page.') def paginate_queryset(self, queryset, request, view=None): """ Paginate a queryset if required, either returning a page object, or `None` if pagination is not configured for this view. """ page_size = self.get_page_size(request) if not page_size: return None paginator = self.django_paginator_class(queryset, page_size) page_number = request.query_params.get(self.page_query_param, 1) if page_number in self.last_page_strings: page_number = paginator.num_pages try: self.page = paginator.page(page_number) except InvalidPage as exc: msg = self.invalid_page_message.format( page_number=page_number, message=six.text_type(exc) ) raise NotFound(msg) if paginator.num_pages > 1 and self.template is not None: # The browsable API should display pagination controls. self.display_page_controls = True self.request = request return list(self.page) def get_paginated_response(self, data): return Response(OrderedDict([ ('count', self.page.paginator.count), ('next', self.get_next_link()), ('previous', self.get_previous_link()), ('results', data) ])) def get_page_size(self, request): if self.page_size_query_param: try: return _positive_int( request.query_params[self.page_size_query_param], strict=True, cutoff=self.max_page_size ) except (KeyError, ValueError): pass return self.page_size def get_next_link(self): if not self.page.has_next(): return None url = self.request.build_absolute_uri() page_number = self.page.next_page_number() return replace_query_param(url, self.page_query_param, page_number) def get_previous_link(self): if not self.page.has_previous(): return None url = self.request.build_absolute_uri() page_number = self.page.previous_page_number() if page_number == 1: return remove_query_param(url, self.page_query_param) return replace_query_param(url, self.page_query_param, page_number) def get_html_context(self): base_url = self.request.build_absolute_uri() def page_number_to_url(page_number): if page_number == 1: return remove_query_param(base_url, self.page_query_param) else: return replace_query_param(base_url, self.page_query_param, page_number) current = self.page.number final = self.page.paginator.num_pages page_numbers = _get_displayed_page_numbers(current, final) page_links = _get_page_links(page_numbers, current, page_number_to_url) return { 'previous_url': self.get_previous_link(), 'next_url': self.get_next_link(), 'page_links': page_links } def to_html(self): template = loader.get_template(self.template) context = self.get_html_context() return template.render(context) def get_schema_fields(self, view): assert coreapi is not None, 'coreapi must be installed to use `get_schema_fields()`' assert coreschema is not None, 'coreschema must be installed to use `get_schema_fields()`' fields = [ coreapi.Field( name=self.page_query_param, required=False, location='query', schema=coreschema.Integer( title='Page', description=force_text(self.page_query_description) ) ) ] if self.page_size_query_param is not None: fields.append( coreapi.Field( name=self.page_size_query_param, required=False, location='query', schema=coreschema.Integer( title='Page size', description=force_text(self.page_size_query_description) ) ) ) return fields class LimitOffsetPagination(BasePagination): """ A limit/offset based style. For example: http://api.example.org/accounts/?limit=100 http://api.example.org/accounts/?offset=400&limit=100 """ default_limit = api_settings.PAGE_SIZE limit_query_param = 'limit' limit_query_description = _('Number of results to return per page.') offset_query_param = 'offset' offset_query_description = _('The initial index from which to return the results.') max_limit = None template = 'jet_django.deps.rest_framework/pagination/numbers.html' def paginate_queryset(self, queryset, request, view=None): self.count = self.get_count(queryset) self.limit = self.get_limit(request) if self.limit is None: return None self.offset = self.get_offset(request) self.request = request if self.count > self.limit and self.template is not None: self.display_page_controls = True if self.count == 0 or self.offset > self.count: return [] return list(queryset[self.offset:self.offset + self.limit]) def get_paginated_response(self, data): return Response(OrderedDict([ ('count', self.count), ('next', self.get_next_link()), ('previous', self.get_previous_link()), ('results', data) ])) def get_limit(self, request): if self.limit_query_param: try: return _positive_int( request.query_params[self.limit_query_param], strict=True, cutoff=self.max_limit ) except (KeyError, ValueError): pass return self.default_limit def get_offset(self, request): try: return _positive_int( request.query_params[self.offset_query_param], ) except (KeyError, ValueError): return 0 def get_next_link(self): if self.offset + self.limit >= self.count: return None url = self.request.build_absolute_uri() url = replace_query_param(url, self.limit_query_param, self.limit) offset = self.offset + self.limit return replace_query_param(url, self.offset_query_param, offset) def get_previous_link(self): if self.offset <= 0: return None url = self.request.build_absolute_uri() url = replace_query_param(url, self.limit_query_param, self.limit) if self.offset - self.limit <= 0: return remove_query_param(url, self.offset_query_param) offset = self.offset - self.limit return replace_query_param(url, self.offset_query_param, offset) def get_html_context(self): base_url = self.request.build_absolute_uri() if self.limit: current = _divide_with_ceil(self.offset, self.limit) + 1 # The number of pages is a little bit fiddly. # We need to sum both the number of pages from current offset to end # plus the number of pages up to the current offset. # When offset is not strictly divisible by the limit then we may # end up introducing an extra page as an artifact. final = ( _divide_with_ceil(self.count - self.offset, self.limit) + _divide_with_ceil(self.offset, self.limit) ) if final < 1: final = 1 else: current = 1 final = 1 if current > final: current = final def page_number_to_url(page_number): if page_number == 1: return remove_query_param(base_url, self.offset_query_param) else: offset = self.offset + ((page_number - current) * self.limit) return replace_query_param(base_url, self.offset_query_param, offset) page_numbers = _get_displayed_page_numbers(current, final) page_links = _get_page_links(page_numbers, current, page_number_to_url) return { 'previous_url': self.get_previous_link(), 'next_url': self.get_next_link(), 'page_links': page_links } def to_html(self): template = loader.get_template(self.template) context = self.get_html_context() return template.render(context) def get_schema_fields(self, view): assert coreapi is not None, 'coreapi must be installed to use `get_schema_fields()`' assert coreschema is not None, 'coreschema must be installed to use `get_schema_fields()`' return [ coreapi.Field( name=self.limit_query_param, required=False, location='query', schema=coreschema.Integer( title='Limit', description=force_text(self.limit_query_description) ) ), coreapi.Field( name=self.offset_query_param, required=False, location='query', schema=coreschema.Integer( title='Offset', description=force_text(self.offset_query_description) ) ) ] def get_count(self, queryset): """ Determine an object count, supporting either querysets or regular lists. """ try: return queryset.count() except (AttributeError, TypeError): return len(queryset) class CursorPagination(BasePagination): """ The cursor pagination implementation is necessarily complex. For an overview of the position/offset style we use, see this post: http://cra.mr/2011/03/08/building-cursors-for-the-disqus-api """ cursor_query_param = 'cursor' cursor_query_description = _('The pagination cursor value.') page_size = api_settings.PAGE_SIZE invalid_cursor_message = _('Invalid cursor') ordering = '-created' template = 'jet_django.deps.rest_framework/pagination/previous_and_next.html' # Client can control the page size using this query parameter. # Default is 'None'. Set to eg 'page_size' to enable usage. page_size_query_param = None page_size_query_description = _('Number of results to return per page.') # Set to an integer to limit the maximum page size the client may request. # Only relevant if 'page_size_query_param' has also been set. max_page_size = None # The offset in the cursor is used in situations where we have a # nearly-unique index. (Eg millisecond precision creation timestamps) # We guard against malicious users attempting to cause expensive database # queries, by having a hard cap on the maximum possible size of the offset. offset_cutoff = 1000 def paginate_queryset(self, queryset, request, view=None): self.page_size = self.get_page_size(request) if not self.page_size: return None self.base_url = request.build_absolute_uri() self.ordering = self.get_ordering(request, queryset, view) self.cursor = self.decode_cursor(request) if self.cursor is None: (offset, reverse, current_position) = (0, False, None) else: (offset, reverse, current_position) = self.cursor # Cursor pagination always enforces an ordering. if reverse: queryset = queryset.order_by(*_reverse_ordering(self.ordering)) else: queryset = queryset.order_by(*self.ordering) # If we have a cursor with a fixed position then filter by that. if current_position is not None: order = self.ordering[0] is_reversed = order.startswith('-') order_attr = order.lstrip('-') # Test for: (cursor reversed) XOR (queryset reversed) if self.cursor.reverse != is_reversed: kwargs = {order_attr + '__lt': current_position} else: kwargs = {order_attr + '__gt': current_position} queryset = queryset.filter(**kwargs) # If we have an offset cursor then offset the entire page by that amount. # We also always fetch an extra item in order to determine if there is a # page following on from this one. results = list(queryset[offset:offset + self.page_size + 1]) self.page = list(results[:self.page_size]) # Determine the position of the final item following the page. if len(results) > len(self.page): has_following_position = True following_position = self._get_position_from_instance(results[-1], self.ordering) else: has_following_position = False following_position = None # If we have a reverse queryset, then the query ordering was in reverse # so we need to reverse the items again before returning them to the user. if reverse: self.page = list(reversed(self.page)) if reverse: # Determine next and previous positions for reverse cursors. self.has_next = (current_position is not None) or (offset > 0) self.has_previous = has_following_position if self.has_next: self.next_position = current_position if self.has_previous: self.previous_position = following_position else: # Determine next and previous positions for forward cursors. self.has_next = has_following_position self.has_previous = (current_position is not None) or (offset > 0) if self.has_next: self.next_position = following_position if self.has_previous: self.previous_position = current_position # Display page controls in the browsable API if there is more # than one page. if (self.has_previous or self.has_next) and self.template is not None: self.display_page_controls = True return self.page def get_page_size(self, request): if self.page_size_query_param: try: return _positive_int( request.query_params[self.page_size_query_param], strict=True, cutoff=self.max_page_size ) except (KeyError, ValueError): pass return self.page_size def get_next_link(self): if not self.has_next: return None if self.cursor and self.cursor.reverse and self.cursor.offset != 0: # If we're reversing direction and we have an offset cursor # then we cannot use the first position we find as a marker. compare = self._get_position_from_instance(self.page[-1], self.ordering) else: compare = self.next_position offset = 0 for item in reversed(self.page): position = self._get_position_from_instance(item, self.ordering) if position != compare: # The item in this position and the item following it # have different positions. We can use this position as # our marker. break # The item in this position has the same position as the item # following it, we can't use it as a marker position, so increment # the offset and keep seeking to the previous item. compare = position offset += 1 else: # There were no unique positions in the page. if not self.has_previous: # We are on the first page. # Our cursor will have an offset equal to the page size, # but no position to filter against yet. offset = self.page_size position = None elif self.cursor.reverse: # The change in direction will introduce a paging artifact, # where we end up skipping forward a few extra items. offset = 0 position = self.previous_position else: # Use the position from the existing cursor and increment # it's offset by the page size. offset = self.cursor.offset + self.page_size position = self.previous_position cursor = Cursor(offset=offset, reverse=False, position=position) return self.encode_cursor(cursor) def get_previous_link(self): if not self.has_previous: return None if self.cursor and not self.cursor.reverse and self.cursor.offset != 0: # If we're reversing direction and we have an offset cursor # then we cannot use the first position we find as a marker. compare = self._get_position_from_instance(self.page[0], self.ordering) else: compare = self.previous_position offset = 0 for item in self.page: position = self._get_position_from_instance(item, self.ordering) if position != compare: # The item in this position and the item following it # have different positions. We can use this position as # our marker. break # The item in this position has the same position as the item # following it, we can't use it as a marker position, so increment # the offset and keep seeking to the previous item. compare = position offset += 1 else: # There were no unique positions in the page. if not self.has_next: # We are on the final page. # Our cursor will have an offset equal to the page size, # but no position to filter against yet. offset = self.page_size position = None elif self.cursor.reverse: # Use the position from the existing cursor and increment # it's offset by the page size. offset = self.cursor.offset + self.page_size position = self.next_position else: # The change in direction will introduce a paging artifact, # where we end up skipping back a few extra items. offset = 0 position = self.next_position cursor = Cursor(offset=offset, reverse=True, position=position) return self.encode_cursor(cursor) def get_ordering(self, request, queryset, view): """ Return a tuple of strings, that may be used in an `order_by` method. """ ordering_filters = [ filter_cls for filter_cls in getattr(view, 'filter_backends', []) if hasattr(filter_cls, 'get_ordering') ] if ordering_filters: # If a filter exists on the view that implements `get_ordering` # then we defer to that filter to determine the ordering. filter_cls = ordering_filters[0] filter_instance = filter_cls() ordering = filter_instance.get_ordering(request, queryset, view) assert ordering is not None, ( 'Using cursor pagination, but filter class {filter_cls} ' 'returned a `None` ordering.'.format( filter_cls=filter_cls.__name__ ) ) else: # The default case is to check for an `ordering` attribute # on this pagination instance. ordering = self.ordering assert ordering is not None, ( 'Using cursor pagination, but no ordering attribute was declared ' 'on the pagination class.' ) assert '__' not in ordering, ( 'Cursor pagination does not support double underscore lookups ' 'for orderings. Orderings should be an unchanging, unique or ' 'nearly-unique field on the model, such as "-created" or "pk".' ) assert isinstance(ordering, (six.string_types, list, tuple)), ( 'Invalid ordering. Expected string or tuple, but got {type}'.format( type=type(ordering).__name__ ) ) if isinstance(ordering, six.string_types): return (ordering,) return tuple(ordering) def decode_cursor(self, request): """ Given a request with a cursor, return a `Cursor` instance. """ # Determine if we have a cursor, and if so then decode it. encoded = request.query_params.get(self.cursor_query_param) if encoded is None: return None try: querystring = b64decode(encoded.encode('ascii')).decode('ascii') tokens = urlparse.parse_qs(querystring, keep_blank_values=True) offset = tokens.get('o', ['0'])[0] offset = _positive_int(offset, cutoff=self.offset_cutoff) reverse = tokens.get('r', ['0'])[0] reverse = bool(int(reverse)) position = tokens.get('p', [None])[0] except (TypeError, ValueError): raise NotFound(self.invalid_cursor_message) return Cursor(offset=offset, reverse=reverse, position=position) def encode_cursor(self, cursor): """ Given a Cursor instance, return an url with encoded cursor. """ tokens = {} if cursor.offset != 0: tokens['o'] = str(cursor.offset) if cursor.reverse: tokens['r'] = '1' if cursor.position is not None: tokens['p'] = cursor.position querystring = urlparse.urlencode(tokens, doseq=True) encoded = b64encode(querystring.encode('ascii')).decode('ascii') return replace_query_param(self.base_url, self.cursor_query_param, encoded) def _get_position_from_instance(self, instance, ordering): field_name = ordering[0].lstrip('-') if isinstance(instance, dict): attr = instance[field_name] else: attr = getattr(instance, field_name) return six.text_type(attr) def get_paginated_response(self, data): return Response(OrderedDict([ ('next', self.get_next_link()), ('previous', self.get_previous_link()), ('results', data) ])) def get_html_context(self): return { 'previous_url': self.get_previous_link(), 'next_url': self.get_next_link() } def to_html(self): template = loader.get_template(self.template) context = self.get_html_context() return template.render(context) def get_schema_fields(self, view): assert coreapi is not None, 'coreapi must be installed to use `get_schema_fields()`' assert coreschema is not None, 'coreschema must be installed to use `get_schema_fields()`' fields = [ coreapi.Field( name=self.cursor_query_param, required=False, location='query', schema=coreschema.String( title='Cursor', description=force_text(self.cursor_query_description) ) ) ] if self.page_size_query_param is not None: fields.append( coreapi.Field( name=self.page_size_query_param, required=False, location='query', schema=coreschema.Integer( title='Page size', description=force_text(self.page_size_query_description) ) ) ) return fields ================================================ FILE: jet_django/deps/rest_framework/parsers.py ================================================ """ Parsers are used to parse the content of incoming HTTP requests. They give us a generic way of being able to handle various media types on the request, such as form content or json encoded data. """ from __future__ import unicode_literals import codecs from django.conf import settings from django.core.files.uploadhandler import StopFutureHandlers from django.http import QueryDict from django.http.multipartparser import ChunkIter from django.http.multipartparser import \ MultiPartParser as DjangoMultiPartParser from django.http.multipartparser import MultiPartParserError, parse_header from django.utils import six from django.utils.encoding import force_text from django.utils.six.moves.urllib import parse as urlparse from jet_django.deps.rest_framework import renderers from jet_django.deps.rest_framework.exceptions import ParseError from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils import json class DataAndFiles(object): def __init__(self, data, files): self.data = data self.files = files class BaseParser(object): """ All parsers should extend `BaseParser`, specifying a `media_type` attribute, and overriding the `.parse()` method. """ media_type = None def parse(self, stream, media_type=None, parser_context=None): """ Given a stream to read from, return the parsed representation. Should return parsed data, or a `DataAndFiles` object consisting of the parsed data and files. """ raise NotImplementedError(".parse() must be overridden.") class JSONParser(BaseParser): """ Parses JSON-serialized data. """ media_type = 'application/json' renderer_class = renderers.JSONRenderer strict = api_settings.STRICT_JSON def parse(self, stream, media_type=None, parser_context=None): """ Parses the incoming bytestream as JSON and returns the resulting data. """ parser_context = parser_context or {} encoding = parser_context.get('encoding', settings.DEFAULT_CHARSET) try: decoded_stream = codecs.getreader(encoding)(stream) parse_constant = json.strict_constant if self.strict else None return json.load(decoded_stream, parse_constant=parse_constant) except ValueError as exc: raise ParseError('JSON parse error - %s' % six.text_type(exc)) class FormParser(BaseParser): """ Parser for form data. """ media_type = 'application/x-www-form-urlencoded' def parse(self, stream, media_type=None, parser_context=None): """ Parses the incoming bytestream as a URL encoded form, and returns the resulting QueryDict. """ parser_context = parser_context or {} encoding = parser_context.get('encoding', settings.DEFAULT_CHARSET) data = QueryDict(stream.read(), encoding=encoding) return data class MultiPartParser(BaseParser): """ Parser for multipart form data, which may include file data. """ media_type = 'multipart/form-data' def parse(self, stream, media_type=None, parser_context=None): """ Parses the incoming bytestream as a multipart encoded form, and returns a DataAndFiles object. `.data` will be a `QueryDict` containing all the form parameters. `.files` will be a `QueryDict` containing all the form files. """ parser_context = parser_context or {} request = parser_context['request'] encoding = parser_context.get('encoding', settings.DEFAULT_CHARSET) meta = request.META.copy() meta['CONTENT_TYPE'] = media_type upload_handlers = request.upload_handlers try: parser = DjangoMultiPartParser(meta, stream, upload_handlers, encoding) data, files = parser.parse() return DataAndFiles(data, files) except MultiPartParserError as exc: raise ParseError('Multipart form parse error - %s' % six.text_type(exc)) class FileUploadParser(BaseParser): """ Parser for file upload data. """ media_type = '*/*' errors = { 'unhandled': 'FileUpload parse error - none of upload handlers can handle the stream', 'no_filename': 'Missing filename. Request should include a Content-Disposition header with a filename parameter.', } def parse(self, stream, media_type=None, parser_context=None): """ Treats the incoming bytestream as a raw file upload and returns a `DataAndFiles` object. `.data` will be None (we expect request body to be a file content). `.files` will be a `QueryDict` containing one 'file' element. """ parser_context = parser_context or {} request = parser_context['request'] encoding = parser_context.get('encoding', settings.DEFAULT_CHARSET) meta = request.META upload_handlers = request.upload_handlers filename = self.get_filename(stream, media_type, parser_context) if not filename: raise ParseError(self.errors['no_filename']) # Note that this code is extracted from Django's handling of # file uploads in MultiPartParser. content_type = meta.get('HTTP_CONTENT_TYPE', meta.get('CONTENT_TYPE', '')) try: content_length = int(meta.get('HTTP_CONTENT_LENGTH', meta.get('CONTENT_LENGTH', 0))) except (ValueError, TypeError): content_length = None # See if the handler will want to take care of the parsing. for handler in upload_handlers: result = handler.handle_raw_input(stream, meta, content_length, None, encoding) if result is not None: return DataAndFiles({}, {'file': result[1]}) # This is the standard case. possible_sizes = [x.chunk_size for x in upload_handlers if x.chunk_size] chunk_size = min([2 ** 31 - 4] + possible_sizes) chunks = ChunkIter(stream, chunk_size) counters = [0] * len(upload_handlers) for index, handler in enumerate(upload_handlers): try: handler.new_file(None, filename, content_type, content_length, encoding) except StopFutureHandlers: upload_handlers = upload_handlers[:index + 1] break for chunk in chunks: for index, handler in enumerate(upload_handlers): chunk_length = len(chunk) chunk = handler.receive_data_chunk(chunk, counters[index]) counters[index] += chunk_length if chunk is None: break for index, handler in enumerate(upload_handlers): file_obj = handler.file_complete(counters[index]) if file_obj is not None: return DataAndFiles({}, {'file': file_obj}) raise ParseError(self.errors['unhandled']) def get_filename(self, stream, media_type, parser_context): """ Detects the uploaded file name. First searches a 'filename' url kwarg. Then tries to parse Content-Disposition header. """ try: return parser_context['kwargs']['filename'] except KeyError: pass try: meta = parser_context['request'].META disposition = parse_header(meta['HTTP_CONTENT_DISPOSITION'].encode('utf-8')) filename_parm = disposition[1] if 'filename*' in filename_parm: return self.get_encoded_filename(filename_parm) return force_text(filename_parm['filename']) except (AttributeError, KeyError, ValueError): pass def get_encoded_filename(self, filename_parm): """ Handle encoded filenames per RFC6266. See also: https://tools.ietf.org/html/rfc2231#section-4 """ encoded_filename = force_text(filename_parm['filename*']) try: charset, lang, filename = encoded_filename.split('\'', 2) filename = urlparse.unquote(filename) except (ValueError, LookupError): filename = force_text(filename_parm['filename']) return filename ================================================ FILE: jet_django/deps/rest_framework/permissions.py ================================================ """ Provides a set of pluggable permission policies. """ from __future__ import unicode_literals from django.http import Http404 from jet_django.deps.rest_framework import exceptions SAFE_METHODS = ('GET', 'HEAD', 'OPTIONS') class BasePermission(object): """ A base class from which all permission classes should inherit. """ def has_permission(self, request, view): """ Return `True` if permission is granted, `False` otherwise. """ return True def has_object_permission(self, request, view, obj): """ Return `True` if permission is granted, `False` otherwise. """ return True class AllowAny(BasePermission): """ Allow any access. This isn't strictly required, since you could use an empty permission_classes list, but it's useful because it makes the intention more explicit. """ def has_permission(self, request, view): return True class IsAuthenticated(BasePermission): """ Allows access only to authenticated users. """ def has_permission(self, request, view): return request.user and request.user.is_authenticated class IsAdminUser(BasePermission): """ Allows access only to admin users. """ def has_permission(self, request, view): return request.user and request.user.is_staff class IsAuthenticatedOrReadOnly(BasePermission): """ The request is authenticated as a user, or is a read-only request. """ def has_permission(self, request, view): return ( request.method in SAFE_METHODS or request.user and request.user.is_authenticated ) class DjangoModelPermissions(BasePermission): """ The request is authenticated using `django.contrib.auth` permissions. See: https://docs.djangoproject.com/en/dev/topics/auth/#permissions It ensures that the user is authenticated, and has the appropriate `add`/`change`/`delete` permissions on the model. This permission can only be applied against view classes that provide a `.queryset` attribute. """ # Map methods into required permission codes. # Override this if you need to also provide 'view' permissions, # or if you want to provide custom permission codes. perms_map = { 'GET': [], 'OPTIONS': [], 'HEAD': [], 'POST': ['%(app_label)s.add_%(model_name)s'], 'PUT': ['%(app_label)s.change_%(model_name)s'], 'PATCH': ['%(app_label)s.change_%(model_name)s'], 'DELETE': ['%(app_label)s.delete_%(model_name)s'], } authenticated_users_only = True def get_required_permissions(self, method, model_cls): """ Given a model and an HTTP method, return the list of permission codes that the user is required to have. """ kwargs = { 'app_label': model_cls._meta.app_label, 'model_name': model_cls._meta.model_name } if method not in self.perms_map: raise exceptions.MethodNotAllowed(method) return [perm % kwargs for perm in self.perms_map[method]] def _queryset(self, view): assert hasattr(view, 'get_queryset') \ or getattr(view, 'queryset', None) is not None, ( 'Cannot apply {} on a view that does not set ' '`.queryset` or have a `.get_queryset()` method.' ).format(self.__class__.__name__) if hasattr(view, 'get_queryset'): queryset = view.get_queryset() assert queryset is not None, ( '{}.get_queryset() returned None'.format(view.__class__.__name__) ) return queryset return view.queryset def has_permission(self, request, view): # Workaround to ensure DjangoModelPermissions are not applied # to the root view when using DefaultRouter. if getattr(view, '_ignore_model_permissions', False): return True if not request.user or ( not request.user.is_authenticated and self.authenticated_users_only): return False queryset = self._queryset(view) perms = self.get_required_permissions(request.method, queryset.model) return request.user.has_perms(perms) class DjangoModelPermissionsOrAnonReadOnly(DjangoModelPermissions): """ Similar to DjangoModelPermissions, except that anonymous users are allowed read-only access. """ authenticated_users_only = False class DjangoObjectPermissions(DjangoModelPermissions): """ The request is authenticated using Django's object-level permissions. It requires an object-permissions-enabled backend, such as Django Guardian. It ensures that the user is authenticated, and has the appropriate `add`/`change`/`delete` permissions on the object using .has_perms. This permission can only be applied against view classes that provide a `.queryset` attribute. """ perms_map = { 'GET': [], 'OPTIONS': [], 'HEAD': [], 'POST': ['%(app_label)s.add_%(model_name)s'], 'PUT': ['%(app_label)s.change_%(model_name)s'], 'PATCH': ['%(app_label)s.change_%(model_name)s'], 'DELETE': ['%(app_label)s.delete_%(model_name)s'], } def get_required_object_permissions(self, method, model_cls): kwargs = { 'app_label': model_cls._meta.app_label, 'model_name': model_cls._meta.model_name } if method not in self.perms_map: raise exceptions.MethodNotAllowed(method) return [perm % kwargs for perm in self.perms_map[method]] def has_object_permission(self, request, view, obj): # authentication checks have already executed via has_permission queryset = self._queryset(view) model_cls = queryset.model user = request.user perms = self.get_required_object_permissions(request.method, model_cls) if not user.has_perms(perms, obj): # If the user does not have permissions we need to determine if # they have read permissions to see 403, or not, and simply see # a 404 response. if request.method in SAFE_METHODS: # Read permissions already checked and failed, no need # to make another lookup. raise Http404 read_perms = self.get_required_object_permissions('GET', model_cls) if not user.has_perms(read_perms, obj): raise Http404 # Has read permissions. return False return True ================================================ FILE: jet_django/deps/rest_framework/relations.py ================================================ # coding: utf-8 from __future__ import unicode_literals from collections import OrderedDict from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist from django.db.models import Manager from django.db.models.query import QuerySet from django.urls import NoReverseMatch, Resolver404, get_script_prefix, resolve from django.utils import six from django.utils.encoding import ( python_2_unicode_compatible, smart_text, uri_to_iri ) from django.utils.six.moves.urllib import parse as urlparse from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework.fields import ( Field, empty, get_attribute, is_simple_callable, iter_options ) from jet_django.deps.rest_framework.reverse import reverse from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils import html def method_overridden(method_name, klass, instance): """ Determine if a method has been overridden. """ method = getattr(klass, method_name) default_method = getattr(method, '__func__', method) # Python 3 compat return default_method is not getattr(instance, method_name).__func__ class Hyperlink(six.text_type): """ A string like object that additionally has an associated name. We use this for hyperlinked URLs that may render as a named link in some contexts, or render as a plain URL in others. """ def __new__(self, url, obj): ret = six.text_type.__new__(self, url) ret.obj = obj return ret def __getnewargs__(self): return(str(self), self.name,) @property def name(self): # This ensures that we only called `__str__` lazily, # as in some cases calling __str__ on a model instances *might* # involve a database lookup. return six.text_type(self.obj) is_hyperlink = True @python_2_unicode_compatible class PKOnlyObject(object): """ This is a mock object, used for when we only need the pk of the object instance, but still want to return an object with a .pk attribute, in order to keep the same interface as a regular model instance. """ def __init__(self, pk): self.pk = pk def __str__(self): return "%s" % self.pk # We assume that 'validators' are intended for the child serializer, # rather than the parent serializer. MANY_RELATION_KWARGS = ( 'read_only', 'write_only', 'required', 'default', 'initial', 'source', 'label', 'help_text', 'style', 'error_messages', 'allow_empty', 'html_cutoff', 'html_cutoff_text' ) class RelatedField(Field): queryset = None html_cutoff = None html_cutoff_text = None def __init__(self, **kwargs): self.queryset = kwargs.pop('queryset', self.queryset) cutoff_from_settings = api_settings.HTML_SELECT_CUTOFF if cutoff_from_settings is not None: cutoff_from_settings = int(cutoff_from_settings) self.html_cutoff = kwargs.pop('html_cutoff', cutoff_from_settings) self.html_cutoff_text = kwargs.pop( 'html_cutoff_text', self.html_cutoff_text or _(api_settings.HTML_SELECT_CUTOFF_TEXT) ) if not method_overridden('get_queryset', RelatedField, self): assert self.queryset is not None or kwargs.get('read_only', None), ( 'Relational field must provide a `queryset` argument, ' 'override `get_queryset`, or set read_only=`True`.' ) assert not (self.queryset is not None and kwargs.get('read_only', None)), ( 'Relational fields should not provide a `queryset` argument, ' 'when setting read_only=`True`.' ) kwargs.pop('many', None) kwargs.pop('allow_empty', None) super(RelatedField, self).__init__(**kwargs) def __new__(cls, *args, **kwargs): # We override this method in order to automagically create # `ManyRelatedField` classes instead when `many=True` is set. if kwargs.pop('many', False): return cls.many_init(*args, **kwargs) return super(RelatedField, cls).__new__(cls, *args, **kwargs) @classmethod def many_init(cls, *args, **kwargs): """ This method handles creating a parent `ManyRelatedField` instance when the `many=True` keyword argument is passed. Typically you won't need to override this method. Note that we're over-cautious in passing most arguments to both parent and child classes in order to try to cover the general case. If you're overriding this method you'll probably want something much simpler, eg: @classmethod def many_init(cls, *args, **kwargs): kwargs['child'] = cls() return CustomManyRelatedField(*args, **kwargs) """ list_kwargs = {'child_relation': cls(*args, **kwargs)} for key in kwargs: if key in MANY_RELATION_KWARGS: list_kwargs[key] = kwargs[key] return ManyRelatedField(**list_kwargs) def run_validation(self, data=empty): # We force empty strings to None values for relational fields. if data == '': data = None return super(RelatedField, self).run_validation(data) def get_queryset(self): queryset = self.queryset if isinstance(queryset, (QuerySet, Manager)): # Ensure queryset is re-evaluated whenever used. # Note that actually a `Manager` class may also be used as the # queryset argument. This occurs on ModelSerializer fields, # as it allows us to generate a more expressive 'repr' output # for the field. # Eg: 'MyRelationship(queryset=ExampleModel.objects.all())' queryset = queryset.all() return queryset def use_pk_only_optimization(self): return False def get_attribute(self, instance): if self.use_pk_only_optimization() and self.source_attrs: # Optimized case, return a mock object only containing the pk attribute. try: instance = get_attribute(instance, self.source_attrs[:-1]) value = instance.serializable_value(self.source_attrs[-1]) if is_simple_callable(value): # Handle edge case where the relationship `source` argument # points to a `get_relationship()` method on the model value = value().pk return PKOnlyObject(pk=value) except AttributeError: pass # Standard case, return the object instance. return super(RelatedField, self).get_attribute(instance) def get_choices(self, cutoff=None): queryset = self.get_queryset() if queryset is None: # Ensure that field.choices returns something sensible # even when accessed with a read-only field. return {} if cutoff is not None: queryset = queryset[:cutoff] return OrderedDict([ ( self.to_representation(item), self.display_value(item) ) for item in queryset ]) @property def choices(self): return self.get_choices() @property def grouped_choices(self): return self.choices def iter_options(self): return iter_options( self.get_choices(cutoff=self.html_cutoff), cutoff=self.html_cutoff, cutoff_text=self.html_cutoff_text ) def display_value(self, instance): return six.text_type(instance) class StringRelatedField(RelatedField): """ A read only field that represents its targets using their plain string representation. """ def __init__(self, **kwargs): kwargs['read_only'] = True super(StringRelatedField, self).__init__(**kwargs) def to_representation(self, value): return six.text_type(value) class PrimaryKeyRelatedField(RelatedField): default_error_messages = { 'required': _('This field is required.'), 'does_not_exist': _('Invalid pk "{pk_value}" - object does not exist.'), 'incorrect_type': _('Incorrect type. Expected pk value, received {data_type}.'), } def __init__(self, **kwargs): self.pk_field = kwargs.pop('pk_field', None) super(PrimaryKeyRelatedField, self).__init__(**kwargs) def use_pk_only_optimization(self): return True def to_internal_value(self, data): if self.pk_field is not None: data = self.pk_field.to_internal_value(data) try: return self.get_queryset().get(pk=data) except ObjectDoesNotExist: self.fail('does_not_exist', pk_value=data) except (TypeError, ValueError): self.fail('incorrect_type', data_type=type(data).__name__) def to_representation(self, value): if self.pk_field is not None: return self.pk_field.to_representation(value.pk) return value.pk class HyperlinkedRelatedField(RelatedField): lookup_field = 'pk' view_name = None default_error_messages = { 'required': _('This field is required.'), 'no_match': _('Invalid hyperlink - No URL match.'), 'incorrect_match': _('Invalid hyperlink - Incorrect URL match.'), 'does_not_exist': _('Invalid hyperlink - Object does not exist.'), 'incorrect_type': _('Incorrect type. Expected URL string, received {data_type}.'), } def __init__(self, view_name=None, **kwargs): if view_name is not None: self.view_name = view_name assert self.view_name is not None, 'The `view_name` argument is required.' self.lookup_field = kwargs.pop('lookup_field', self.lookup_field) self.lookup_url_kwarg = kwargs.pop('lookup_url_kwarg', self.lookup_field) self.format = kwargs.pop('format', None) # We include this simply for dependency injection in tests. # We can't add it as a class attributes or it would expect an # implicit `self` argument to be passed. self.reverse = reverse super(HyperlinkedRelatedField, self).__init__(**kwargs) def use_pk_only_optimization(self): return self.lookup_field == 'pk' def get_object(self, view_name, view_args, view_kwargs): """ Return the object corresponding to a matched URL. Takes the matched URL conf arguments, and should return an object instance, or raise an `ObjectDoesNotExist` exception. """ lookup_value = view_kwargs[self.lookup_url_kwarg] lookup_kwargs = {self.lookup_field: lookup_value} return self.get_queryset().get(**lookup_kwargs) def get_url(self, obj, view_name, request, format): """ Given an object, return the URL that hyperlinks to the object. May raise a `NoReverseMatch` if the `view_name` and `lookup_field` attributes are not configured to correctly match the URL conf. """ # Unsaved objects will not yet have a valid URL. if hasattr(obj, 'pk') and obj.pk in (None, ''): return None lookup_value = getattr(obj, self.lookup_field) kwargs = {self.lookup_url_kwarg: lookup_value} return self.reverse(view_name, kwargs=kwargs, request=request, format=format) def to_internal_value(self, data): request = self.context.get('request', None) try: http_prefix = data.startswith(('http:', 'https:')) except AttributeError: self.fail('incorrect_type', data_type=type(data).__name__) if http_prefix: # If needed convert absolute URLs to relative path data = urlparse.urlparse(data).path prefix = get_script_prefix() if data.startswith(prefix): data = '/' + data[len(prefix):] data = uri_to_iri(data) try: match = resolve(data) except Resolver404: self.fail('no_match') try: expected_viewname = request.versioning_scheme.get_versioned_viewname( self.view_name, request ) except AttributeError: expected_viewname = self.view_name if match.view_name != expected_viewname: self.fail('incorrect_match') try: return self.get_object(match.view_name, match.args, match.kwargs) except (ObjectDoesNotExist, TypeError, ValueError): self.fail('does_not_exist') def to_representation(self, value): assert 'request' in self.context, ( "`%s` requires the request in the serializer" " context. Add `context={'request': request}` when instantiating " "the serializer." % self.__class__.__name__ ) request = self.context['request'] format = self.context.get('format', None) # By default use whatever format is given for the current context # unless the target is a different type to the source. # # Eg. Consider a HyperlinkedIdentityField pointing from a json # representation to an html property of that representation... # # '/snippets/1/' should link to '/snippets/1/highlight/' # ...but... # '/snippets/1/.json' should link to '/snippets/1/highlight/.html' if format and self.format and self.format != format: format = self.format # Return the hyperlink, or error if incorrectly configured. try: url = self.get_url(value, self.view_name, request, format) except NoReverseMatch: msg = ( 'Could not resolve URL for hyperlinked relationship using ' 'view name "%s". You may have failed to include the related ' 'model in your API, or incorrectly configured the ' '`lookup_field` attribute on this field.' ) if value in ('', None): value_string = {'': 'the empty string', None: 'None'}[value] msg += ( " WARNING: The value of the field on the model instance " "was %s, which may be why it didn't match any " "entries in your URL conf." % value_string ) raise ImproperlyConfigured(msg % self.view_name) if url is None: return None return Hyperlink(url, value) class HyperlinkedIdentityField(HyperlinkedRelatedField): """ A read-only field that represents the identity URL for an object, itself. This is in contrast to `HyperlinkedRelatedField` which represents the URL of relationships to other objects. """ def __init__(self, view_name=None, **kwargs): assert view_name is not None, 'The `view_name` argument is required.' kwargs['read_only'] = True kwargs['source'] = '*' super(HyperlinkedIdentityField, self).__init__(view_name, **kwargs) def use_pk_only_optimization(self): # We have the complete object instance already. We don't need # to run the 'only get the pk for this relationship' code. return False class SlugRelatedField(RelatedField): """ A read-write field that represents the target of the relationship by a unique 'slug' attribute. """ default_error_messages = { 'does_not_exist': _('Object with {slug_name}={value} does not exist.'), 'invalid': _('Invalid value.'), } def __init__(self, slug_field=None, **kwargs): assert slug_field is not None, 'The `slug_field` argument is required.' self.slug_field = slug_field super(SlugRelatedField, self).__init__(**kwargs) def to_internal_value(self, data): try: return self.get_queryset().get(**{self.slug_field: data}) except ObjectDoesNotExist: self.fail('does_not_exist', slug_name=self.slug_field, value=smart_text(data)) except (TypeError, ValueError): self.fail('invalid') def to_representation(self, obj): return getattr(obj, self.slug_field) class ManyRelatedField(Field): """ Relationships with `many=True` transparently get coerced into instead being a ManyRelatedField with a child relationship. The `ManyRelatedField` class is responsible for handling iterating through the values and passing each one to the child relationship. This class is treated as private API. You shouldn't generally need to be using this class directly yourself, and should instead simply set 'many=True' on the relationship. """ initial = [] default_empty_html = [] default_error_messages = { 'not_a_list': _('Expected a list of items but got type "{input_type}".'), 'empty': _('This list may not be empty.') } html_cutoff = None html_cutoff_text = None def __init__(self, child_relation=None, *args, **kwargs): self.child_relation = child_relation self.allow_empty = kwargs.pop('allow_empty', True) cutoff_from_settings = api_settings.HTML_SELECT_CUTOFF if cutoff_from_settings is not None: cutoff_from_settings = int(cutoff_from_settings) self.html_cutoff = kwargs.pop('html_cutoff', cutoff_from_settings) self.html_cutoff_text = kwargs.pop( 'html_cutoff_text', self.html_cutoff_text or _(api_settings.HTML_SELECT_CUTOFF_TEXT) ) assert child_relation is not None, '`child_relation` is a required argument.' super(ManyRelatedField, self).__init__(*args, **kwargs) self.child_relation.bind(field_name='', parent=self) def get_value(self, dictionary): # We override the default field access in order to support # lists in HTML forms. if html.is_html_input(dictionary): # Don't return [] if the update is partial if self.field_name not in dictionary: if getattr(self.root, 'partial', False): return empty return dictionary.getlist(self.field_name) return dictionary.get(self.field_name, empty) def to_internal_value(self, data): if isinstance(data, type('')) or not hasattr(data, '__iter__'): self.fail('not_a_list', input_type=type(data).__name__) if not self.allow_empty and len(data) == 0: self.fail('empty') return [ self.child_relation.to_internal_value(item) for item in data ] def get_attribute(self, instance): # Can't have any relationships if not created if hasattr(instance, 'pk') and instance.pk is None: return [] relationship = get_attribute(instance, self.source_attrs) return relationship.all() if hasattr(relationship, 'all') else relationship def to_representation(self, iterable): return [ self.child_relation.to_representation(value) for value in iterable ] def get_choices(self, cutoff=None): return self.child_relation.get_choices(cutoff) @property def choices(self): return self.get_choices() @property def grouped_choices(self): return self.choices def iter_options(self): return iter_options( self.get_choices(cutoff=self.html_cutoff), cutoff=self.html_cutoff, cutoff_text=self.html_cutoff_text ) ================================================ FILE: jet_django/deps/rest_framework/renderers.py ================================================ """ Renderers are used to serialize a response into specific media types. They give us a generic way of being able to handle various media types on the response, such as JSON encoded data or HTML output. REST framework also provides an HTML renderer that renders the browsable API. """ from __future__ import unicode_literals import base64 from collections import OrderedDict from django import forms from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.paginator import Page from django.http.multipartparser import parse_header from django.template import engines, loader from django.test.client import encode_multipart from django.utils import six from django.utils.html import mark_safe from jet_django.deps.rest_framework import VERSION, exceptions, serializers, status from jet_django.deps.rest_framework.compat import ( INDENT_SEPARATORS, LONG_SEPARATORS, SHORT_SEPARATORS, coreapi, pygments_css ) from jet_django.deps.rest_framework.exceptions import ParseError from jet_django.deps.rest_framework.request import is_form_media_type, override_method from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils import encoders, json from jet_django.deps.rest_framework.utils.breadcrumbs import get_breadcrumbs from jet_django.deps.rest_framework.utils.field_mapping import ClassLookupDict def zero_as_none(value): return None if value == 0 else value class BaseRenderer(object): """ All renderers should extend this class, setting the `media_type` and `format` attributes, and override the `.render()` method. """ media_type = None format = None charset = 'utf-8' render_style = 'text' def render(self, data, accepted_media_type=None, renderer_context=None): raise NotImplementedError('Renderer class requires .render() to be implemented') class JSONRenderer(BaseRenderer): """ Renderer which serializes to JSON. """ media_type = 'application/json' format = 'json' encoder_class = encoders.JSONEncoder ensure_ascii = not api_settings.UNICODE_JSON compact = api_settings.COMPACT_JSON strict = api_settings.STRICT_JSON # We don't set a charset because JSON is a binary encoding, # that can be encoded as utf-8, utf-16 or utf-32. # See: https://www.ietf.org/rfc/rfc4627.txt # Also: http://lucumr.pocoo.org/2013/7/19/application-mimetypes-and-encodings/ charset = None def get_indent(self, accepted_media_type, renderer_context): if accepted_media_type: # If the media type looks like 'application/json; indent=4', # then pretty print the result. # Note that we coerce `indent=0` into `indent=None`. base_media_type, params = parse_header(accepted_media_type.encode('ascii')) try: return zero_as_none(max(min(int(params['indent']), 8), 0)) except (KeyError, ValueError, TypeError): pass # If 'indent' is provided in the context, then pretty print the result. # E.g. If we're being called by the BrowsableAPIRenderer. return renderer_context.get('indent', None) def render(self, data, accepted_media_type=None, renderer_context=None): """ Render `data` into JSON, returning a bytestring. """ if data is None: return bytes() renderer_context = renderer_context or {} indent = self.get_indent(accepted_media_type, renderer_context) if indent is None: separators = SHORT_SEPARATORS if self.compact else LONG_SEPARATORS else: separators = INDENT_SEPARATORS ret = json.dumps( data, cls=self.encoder_class, indent=indent, ensure_ascii=self.ensure_ascii, allow_nan=not self.strict, separators=separators ) # On python 2.x json.dumps() returns bytestrings if ensure_ascii=True, # but if ensure_ascii=False, the return type is underspecified, # and may (or may not) be unicode. # On python 3.x json.dumps() returns unicode strings. if isinstance(ret, six.text_type): # We always fully escape \u2028 and \u2029 to ensure we output JSON # that is a strict javascript subset. If bytes were returned # by json.dumps() then we don't have these characters in any case. # See: http://timelessrepo.com/json-isnt-a-javascript-subset ret = ret.replace('\u2028', '\\u2028').replace('\u2029', '\\u2029') return bytes(ret.encode('utf-8')) return ret class TemplateHTMLRenderer(BaseRenderer): """ An HTML renderer for use with templates. The data supplied to the Response object should be a dictionary that will be used as context for the template. The template name is determined by (in order of preference): 1. An explicit `.template_name` attribute set on the response. 2. An explicit `.template_name` attribute set on this class. 3. The return result of calling `view.get_template_names()`. For example: data = {'users': User.objects.all()} return Response(data, template_name='users.html') For pre-rendered HTML, see StaticHTMLRenderer. """ media_type = 'text/html' format = 'html' template_name = None exception_template_names = [ '%(status_code)s.html', 'api_exception.html' ] charset = 'utf-8' def render(self, data, accepted_media_type=None, renderer_context=None): """ Renders data to HTML, using Django's standard template rendering. The template name is determined by (in order of preference): 1. An explicit .template_name set on the response. 2. An explicit .template_name set on this class. 3. The return result of calling view.get_template_names(). """ renderer_context = renderer_context or {} view = renderer_context['view'] request = renderer_context['request'] response = renderer_context['response'] if response.exception: template = self.get_exception_template(response) else: template_names = self.get_template_names(response, view) template = self.resolve_template(template_names) if hasattr(self, 'resolve_context'): # Fallback for older versions. context = self.resolve_context(data, request, response) else: context = self.get_template_context(data, renderer_context) return template.render(context, request=request) def resolve_template(self, template_names): return loader.select_template(template_names) def get_template_context(self, data, renderer_context): response = renderer_context['response'] if response.exception: data['status_code'] = response.status_code return data def get_template_names(self, response, view): if response.template_name: return [response.template_name] elif self.template_name: return [self.template_name] elif hasattr(view, 'get_template_names'): return view.get_template_names() elif hasattr(view, 'template_name'): return [view.template_name] raise ImproperlyConfigured( 'Returned a template response with no `template_name` attribute set on either the view or response' ) def get_exception_template(self, response): template_names = [name % {'status_code': response.status_code} for name in self.exception_template_names] try: # Try to find an appropriate error template return self.resolve_template(template_names) except Exception: # Fall back to using eg '404 Not Found' body = '%d %s' % (response.status_code, response.status_text.title()) template = engines['django'].from_string(body) return template # Note, subclass TemplateHTMLRenderer simply for the exception behavior class StaticHTMLRenderer(TemplateHTMLRenderer): """ An HTML renderer class that simply returns pre-rendered HTML. The data supplied to the Response object should be a string representing the pre-rendered HTML content. For example: data = 'example' return Response(data) For template rendered HTML, see TemplateHTMLRenderer. """ media_type = 'text/html' format = 'html' charset = 'utf-8' def render(self, data, accepted_media_type=None, renderer_context=None): renderer_context = renderer_context or {} response = renderer_context.get('response') if response and response.exception: request = renderer_context['request'] template = self.get_exception_template(response) if hasattr(self, 'resolve_context'): context = self.resolve_context(data, request, response) else: context = self.get_template_context(data, renderer_context) return template.render(context, request=request) return data class HTMLFormRenderer(BaseRenderer): """ Renderers serializer data into an HTML form. If the serializer was instantiated without an object then this will return an HTML form not bound to any object, otherwise it will return an HTML form with the appropriate initial data populated from the object. Note that rendering of field and form errors is not currently supported. """ media_type = 'text/html' format = 'form' charset = 'utf-8' template_pack = 'jet_django.deps.rest_framework/vertical/' base_template = 'form.html' default_style = ClassLookupDict({ serializers.Field: { 'base_template': 'input.html', 'input_type': 'text' }, serializers.EmailField: { 'base_template': 'input.html', 'input_type': 'email' }, serializers.URLField: { 'base_template': 'input.html', 'input_type': 'url' }, serializers.IntegerField: { 'base_template': 'input.html', 'input_type': 'number' }, serializers.FloatField: { 'base_template': 'input.html', 'input_type': 'number' }, serializers.DateTimeField: { 'base_template': 'input.html', 'input_type': 'datetime-local' }, serializers.DateField: { 'base_template': 'input.html', 'input_type': 'date' }, serializers.TimeField: { 'base_template': 'input.html', 'input_type': 'time' }, serializers.FileField: { 'base_template': 'input.html', 'input_type': 'file' }, serializers.BooleanField: { 'base_template': 'checkbox.html' }, serializers.ChoiceField: { 'base_template': 'select.html', # Also valid: 'radio.html' }, serializers.MultipleChoiceField: { 'base_template': 'select_multiple.html', # Also valid: 'checkbox_multiple.html' }, serializers.RelatedField: { 'base_template': 'select.html', # Also valid: 'radio.html' }, serializers.ManyRelatedField: { 'base_template': 'select_multiple.html', # Also valid: 'checkbox_multiple.html' }, serializers.Serializer: { 'base_template': 'fieldset.html' }, serializers.ListSerializer: { 'base_template': 'list_fieldset.html' }, serializers.ListField: { 'base_template': 'list_field.html' }, serializers.DictField: { 'base_template': 'dict_field.html' }, serializers.FilePathField: { 'base_template': 'select.html', }, serializers.JSONField: { 'base_template': 'textarea.html', }, }) def render_field(self, field, parent_style): if isinstance(field._field, serializers.HiddenField): return '' style = dict(self.default_style[field]) style.update(field.style) if 'template_pack' not in style: style['template_pack'] = parent_style.get('template_pack', self.template_pack) style['renderer'] = self # Get a clone of the field with text-only value representation. field = field.as_form_field() if style.get('input_type') == 'datetime-local' and isinstance(field.value, six.text_type): field.value = field.value.rstrip('Z') if 'template' in style: template_name = style['template'] else: template_name = style['template_pack'].strip('/') + '/' + style['base_template'] template = loader.get_template(template_name) context = {'field': field, 'style': style} return template.render(context) def render(self, data, accepted_media_type=None, renderer_context=None): """ Render serializer data and return an HTML form, as a string. """ renderer_context = renderer_context or {} form = data.serializer style = renderer_context.get('style', {}) if 'template_pack' not in style: style['template_pack'] = self.template_pack style['renderer'] = self template_pack = style['template_pack'].strip('/') template_name = template_pack + '/' + self.base_template template = loader.get_template(template_name) context = { 'form': form, 'style': style } return template.render(context) class BrowsableAPIRenderer(BaseRenderer): """ HTML renderer used to self-document the API. """ media_type = 'text/html' format = 'api' template = 'jet_django.deps.rest_framework/api.html' filter_template = 'jet_django.deps.rest_framework/filters/base.html' code_style = 'emacs' charset = 'utf-8' form_renderer_class = HTMLFormRenderer def get_default_renderer(self, view): """ Return an instance of the first valid renderer. (Don't use another documenting renderer.) """ renderers = [renderer for renderer in view.renderer_classes if not issubclass(renderer, BrowsableAPIRenderer)] non_template_renderers = [renderer for renderer in renderers if not hasattr(renderer, 'get_template_names')] if not renderers: return None elif non_template_renderers: return non_template_renderers[0]() return renderers[0]() def get_content(self, renderer, data, accepted_media_type, renderer_context): """ Get the content as if it had been rendered by the default non-documenting renderer. """ if not renderer: return '[No renderers were found]' renderer_context['indent'] = 4 content = renderer.render(data, accepted_media_type, renderer_context) render_style = getattr(renderer, 'render_style', 'text') assert render_style in ['text', 'binary'], 'Expected .render_style ' \ '"text" or "binary", but got "%s"' % render_style if render_style == 'binary': return '[%d bytes of binary content]' % len(content) return content def show_form_for_method(self, view, method, request, obj): """ Returns True if a form should be shown for this method. """ if method not in view.allowed_methods: return # Not a valid method try: view.check_permissions(request) if obj is not None: view.check_object_permissions(request, obj) except exceptions.APIException: return False # Doesn't have permissions return True def _get_serializer(self, serializer_class, view_instance, request, *args, **kwargs): kwargs['context'] = { 'request': request, 'format': self.format, 'view': view_instance } return serializer_class(*args, **kwargs) def get_rendered_html_form(self, data, view, method, request): """ Return a string representing a rendered HTML form, possibly bound to either the input or output data. In the absence of the View having an associated form then return None. """ # See issue #2089 for refactoring this. serializer = getattr(data, 'serializer', None) if serializer and not getattr(serializer, 'many', False): instance = getattr(serializer, 'instance', None) if isinstance(instance, Page): instance = None else: instance = None # If this is valid serializer data, and the form is for the same # HTTP method as was used in the request then use the existing # serializer instance, rather than dynamically creating a new one. if request.method == method and serializer is not None: try: kwargs = {'data': request.data} except ParseError: kwargs = {} existing_serializer = serializer else: kwargs = {} existing_serializer = None with override_method(view, request, method) as request: if not self.show_form_for_method(view, method, request, instance): return if method in ('DELETE', 'OPTIONS'): return True # Don't actually need to return a form has_serializer = getattr(view, 'get_serializer', None) has_serializer_class = getattr(view, 'serializer_class', None) if ( (not has_serializer and not has_serializer_class) or not any(is_form_media_type(parser.media_type) for parser in view.parser_classes) ): return if existing_serializer is not None: try: return self.render_form_for_serializer(existing_serializer) except TypeError: pass if has_serializer: if method in ('PUT', 'PATCH'): serializer = view.get_serializer(instance=instance, **kwargs) else: serializer = view.get_serializer(**kwargs) else: # at this point we must have a serializer_class if method in ('PUT', 'PATCH'): serializer = self._get_serializer(view.serializer_class, view, request, instance=instance, **kwargs) else: serializer = self._get_serializer(view.serializer_class, view, request, **kwargs) return self.render_form_for_serializer(serializer) def render_form_for_serializer(self, serializer): if hasattr(serializer, 'initial_data'): serializer.is_valid() form_renderer = self.form_renderer_class() return form_renderer.render( serializer.data, self.accepted_media_type, {'style': {'template_pack': 'jet_django.deps.rest_framework/horizontal'}} ) def get_raw_data_form(self, data, view, method, request): """ Returns a form that allows for arbitrary content types to be tunneled via standard HTML forms. (Which are typically application/x-www-form-urlencoded) """ # See issue #2089 for refactoring this. serializer = getattr(data, 'serializer', None) if serializer and not getattr(serializer, 'many', False): instance = getattr(serializer, 'instance', None) if isinstance(instance, Page): instance = None else: instance = None with override_method(view, request, method) as request: # Check permissions if not self.show_form_for_method(view, method, request, instance): return # If possible, serialize the initial content for the generic form default_parser = view.parser_classes[0] renderer_class = getattr(default_parser, 'renderer_class', None) if hasattr(view, 'get_serializer') and renderer_class: # View has a serializer defined and parser class has a # corresponding renderer that can be used to render the data. if method in ('PUT', 'PATCH'): serializer = view.get_serializer(instance=instance) else: serializer = view.get_serializer() # Render the raw data content renderer = renderer_class() accepted = self.accepted_media_type context = self.renderer_context.copy() context['indent'] = 4 # strip HiddenField from output data = serializer.data.copy() for name, field in serializer.fields.items(): if isinstance(field, serializers.HiddenField): data.pop(name, None) content = renderer.render(data, accepted, context) # Renders returns bytes, but CharField expects a str. content = content.decode('utf-8') else: content = None # Generate a generic form that includes a content type field, # and a content field. media_types = [parser.media_type for parser in view.parser_classes] choices = [(media_type, media_type) for media_type in media_types] initial = media_types[0] class GenericContentForm(forms.Form): _content_type = forms.ChoiceField( label='Media type', choices=choices, initial=initial, widget=forms.Select(attrs={'data-override': 'content-type'}) ) _content = forms.CharField( label='Content', widget=forms.Textarea(attrs={'data-override': 'content'}), initial=content, required=False ) return GenericContentForm() def get_name(self, view): return view.get_view_name() def get_description(self, view, status_code): if status_code in (status.HTTP_401_UNAUTHORIZED, status.HTTP_403_FORBIDDEN): return '' return view.get_view_description(html=True) def get_breadcrumbs(self, request): return get_breadcrumbs(request.path, request) def get_filter_form(self, data, view, request): if not hasattr(view, 'get_queryset') or not hasattr(view, 'filter_backends'): return # Infer if this is a list view or not. paginator = getattr(view, 'paginator', None) if isinstance(data, list): pass elif paginator is not None and data is not None: try: paginator.get_results(data) except (TypeError, KeyError): return elif not isinstance(data, list): return queryset = view.get_queryset() elements = [] for backend in view.filter_backends: if hasattr(backend, 'to_html'): html = backend().to_html(request, queryset, view) if html: elements.append(html) if not elements: return template = loader.get_template(self.filter_template) context = {'elements': elements} return template.render(context) def get_context(self, data, accepted_media_type, renderer_context): """ Returns the context used to render. """ view = renderer_context['view'] request = renderer_context['request'] response = renderer_context['response'] renderer = self.get_default_renderer(view) raw_data_post_form = self.get_raw_data_form(data, view, 'POST', request) raw_data_put_form = self.get_raw_data_form(data, view, 'PUT', request) raw_data_patch_form = self.get_raw_data_form(data, view, 'PATCH', request) raw_data_put_or_patch_form = raw_data_put_form or raw_data_patch_form response_headers = OrderedDict(sorted(response.items())) renderer_content_type = '' if renderer: renderer_content_type = '%s' % renderer.media_type if renderer.charset: renderer_content_type += ' ;%s' % renderer.charset response_headers['Content-Type'] = renderer_content_type if getattr(view, 'paginator', None) and view.paginator.display_page_controls: paginator = view.paginator else: paginator = None csrf_cookie_name = settings.CSRF_COOKIE_NAME csrf_header_name = settings.CSRF_HEADER_NAME if csrf_header_name.startswith('HTTP_'): csrf_header_name = csrf_header_name[5:] csrf_header_name = csrf_header_name.replace('_', '-') context = { 'content': self.get_content(renderer, data, accepted_media_type, renderer_context), 'code_style': pygments_css(self.code_style), 'view': view, 'request': request, 'response': response, 'user': request.user, 'description': self.get_description(view, response.status_code), 'name': self.get_name(view), 'version': VERSION, 'paginator': paginator, 'breadcrumblist': self.get_breadcrumbs(request), 'allowed_methods': view.allowed_methods, 'available_formats': [renderer_cls.format for renderer_cls in view.renderer_classes], 'response_headers': response_headers, 'put_form': self.get_rendered_html_form(data, view, 'PUT', request), 'post_form': self.get_rendered_html_form(data, view, 'POST', request), 'delete_form': self.get_rendered_html_form(data, view, 'DELETE', request), 'options_form': self.get_rendered_html_form(data, view, 'OPTIONS', request), 'filter_form': self.get_filter_form(data, view, request), 'raw_data_put_form': raw_data_put_form, 'raw_data_post_form': raw_data_post_form, 'raw_data_patch_form': raw_data_patch_form, 'raw_data_put_or_patch_form': raw_data_put_or_patch_form, 'display_edit_forms': bool(response.status_code != 403), 'api_settings': api_settings, 'csrf_cookie_name': csrf_cookie_name, 'csrf_header_name': csrf_header_name } return context def render(self, data, accepted_media_type=None, renderer_context=None): """ Render the HTML for the browsable API representation. """ self.accepted_media_type = accepted_media_type or '' self.renderer_context = renderer_context or {} template = loader.get_template(self.template) context = self.get_context(data, accepted_media_type, renderer_context) ret = template.render(context, request=renderer_context['request']) # Munge DELETE Response code to allow us to return content # (Do this *after* we've rendered the template so that we include # the normal deletion response code in the output) response = renderer_context['response'] if response.status_code == status.HTTP_204_NO_CONTENT: response.status_code = status.HTTP_200_OK return ret class AdminRenderer(BrowsableAPIRenderer): template = 'jet_django.deps.rest_framework/admin.html' format = 'admin' def render(self, data, accepted_media_type=None, renderer_context=None): self.accepted_media_type = accepted_media_type or '' self.renderer_context = renderer_context or {} response = renderer_context['response'] request = renderer_context['request'] view = self.renderer_context['view'] if response.status_code == status.HTTP_400_BAD_REQUEST: # Errors still need to display the list or detail information. # The only way we can get at that is to simulate a GET request. self.error_form = self.get_rendered_html_form(data, view, request.method, request) self.error_title = {'POST': 'Create', 'PUT': 'Edit'}.get(request.method, 'Errors') with override_method(view, request, 'GET') as request: response = view.get(request, *view.args, **view.kwargs) data = response.data template = loader.get_template(self.template) context = self.get_context(data, accepted_media_type, renderer_context) ret = template.render(context, request=renderer_context['request']) # Creation and deletion should use redirects in the admin style. if response.status_code == status.HTTP_201_CREATED and 'Location' in response: response.status_code = status.HTTP_303_SEE_OTHER response['Location'] = request.build_absolute_uri() ret = '' if response.status_code == status.HTTP_204_NO_CONTENT: response.status_code = status.HTTP_303_SEE_OTHER try: # Attempt to get the parent breadcrumb URL. response['Location'] = self.get_breadcrumbs(request)[-2][1] except KeyError: # Otherwise reload current URL to get a 'Not Found' page. response['Location'] = request.full_path ret = '' return ret def get_context(self, data, accepted_media_type, renderer_context): """ Render the HTML for the browsable API representation. """ context = super(AdminRenderer, self).get_context( data, accepted_media_type, renderer_context ) paginator = getattr(context['view'], 'paginator', None) if paginator is not None and data is not None: try: results = paginator.get_results(data) except (TypeError, KeyError): results = data else: results = data if results is None: header = {} style = 'detail' elif isinstance(results, list): header = results[0] if results else {} style = 'list' else: header = results style = 'detail' columns = [key for key in header if key != 'url'] details = [key for key in header if key != 'url'] context['style'] = style context['columns'] = columns context['details'] = details context['results'] = results context['error_form'] = getattr(self, 'error_form', None) context['error_title'] = getattr(self, 'error_title', None) return context class DocumentationRenderer(BaseRenderer): media_type = 'text/html' format = 'html' charset = 'utf-8' template = 'jet_django.deps.rest_framework/docs/index.html' error_template = 'jet_django.deps.rest_framework/docs/error.html' code_style = 'emacs' languages = ['shell', 'javascript', 'python'] def get_context(self, data, request): return { 'document': data, 'langs': self.languages, 'lang_htmls': ["rest_framework/docs/langs/%s.html" % l for l in self.languages], 'lang_intro_htmls': ["rest_framework/docs/langs/%s-intro.html" % l for l in self.languages], 'code_style': pygments_css(self.code_style), 'request': request } def render(self, data, accepted_media_type=None, renderer_context=None): if isinstance(data, coreapi.Document): template = loader.get_template(self.template) context = self.get_context(data, renderer_context['request']) return template.render(context, request=renderer_context['request']) else: template = loader.get_template(self.error_template) context = { "data": data, "request": renderer_context['request'], "response": renderer_context['response'], "debug": settings.DEBUG, } return template.render(context, request=renderer_context['request']) class SchemaJSRenderer(BaseRenderer): media_type = 'application/javascript' format = 'javascript' charset = 'utf-8' template = 'jet_django.deps.rest_framework/schema.js' def render(self, data, accepted_media_type=None, renderer_context=None): codec = coreapi.codecs.CoreJSONCodec() schema = base64.b64encode(codec.encode(data)).decode('ascii') template = loader.get_template(self.template) context = {'schema': mark_safe(schema)} request = renderer_context['request'] return template.render(context, request=request) class MultiPartRenderer(BaseRenderer): media_type = 'multipart/form-data; boundary=BoUnDaRyStRiNg' format = 'multipart' charset = 'utf-8' BOUNDARY = 'BoUnDaRyStRiNg' def render(self, data, accepted_media_type=None, renderer_context=None): if hasattr(data, 'items'): for key, value in data.items(): assert not isinstance(value, dict), ( "Test data contained a dictionary value for key '%s', " "but multipart uploads do not support nested data. " "You may want to consider using format='json' in this " "test case." % key ) return encode_multipart(self.BOUNDARY, data) class CoreJSONRenderer(BaseRenderer): media_type = 'application/coreapi+json' charset = None format = 'corejson' def __init__(self): assert coreapi, 'Using CoreJSONRenderer, but `coreapi` is not installed.' def render(self, data, media_type=None, renderer_context=None): indent = bool(renderer_context.get('indent', 0)) codec = coreapi.codecs.CoreJSONCodec() return codec.dump(data, indent=indent) ================================================ FILE: jet_django/deps/rest_framework/request.py ================================================ """ The Request class is used as a wrapper around the standard request object. The wrapped request then offers a richer API, in particular : - content automatically parsed according to `Content-Type` header, and available as `request.data` - full support of PUT method, including support for file uploads - form overloading of HTTP method, content type and content """ from __future__ import unicode_literals import sys from contextlib import contextmanager from django.conf import settings from django.http import HttpRequest, QueryDict from django.http.multipartparser import parse_header from django.http.request import RawPostDataException from django.utils import six from django.utils.datastructures import MultiValueDict from jet_django.deps.rest_framework import HTTP_HEADER_ENCODING, exceptions from jet_django.deps.rest_framework.settings import api_settings def is_form_media_type(media_type): """ Return True if the media type is a valid form media type. """ base_media_type, params = parse_header(media_type.encode(HTTP_HEADER_ENCODING)) return (base_media_type == 'application/x-www-form-urlencoded' or base_media_type == 'multipart/form-data') class override_method(object): """ A context manager that temporarily overrides the method on a request, additionally setting the `view.request` attribute. Usage: with override_method(view, request, 'POST') as request: ... # Do stuff with `view` and `request` """ def __init__(self, view, request, method): self.view = view self.request = request self.method = method self.action = getattr(view, 'action', None) def __enter__(self): self.view.request = clone_request(self.request, self.method) # For viewsets we also set the `.action` attribute. action_map = getattr(self.view, 'action_map', {}) self.view.action = action_map.get(self.method.lower()) return self.view.request def __exit__(self, *args, **kwarg): self.view.request = self.request self.view.action = self.action class WrappedAttributeError(Exception): pass @contextmanager def wrap_attributeerrors(): """ Used to re-raise AttributeErrors caught during authentication, preventing these errors from otherwise being handled by the attribute access protocol. """ try: yield except AttributeError: info = sys.exc_info() exc = WrappedAttributeError(str(info[1])) six.reraise(type(exc), exc, info[2]) class Empty(object): """ Placeholder for unset attributes. Cannot use `None`, as that may be a valid value. """ pass def _hasattr(obj, name): return not getattr(obj, name) is Empty def clone_request(request, method): """ Internal helper method to clone a request, replacing with a different HTTP method. Used for checking permissions against other methods. """ ret = Request(request=request._request, parsers=request.parsers, authenticators=request.authenticators, negotiator=request.negotiator, parser_context=request.parser_context) ret._data = request._data ret._files = request._files ret._full_data = request._full_data ret._content_type = request._content_type ret._stream = request._stream ret.method = method if hasattr(request, '_user'): ret._user = request._user if hasattr(request, '_auth'): ret._auth = request._auth if hasattr(request, '_authenticator'): ret._authenticator = request._authenticator if hasattr(request, 'accepted_renderer'): ret.accepted_renderer = request.accepted_renderer if hasattr(request, 'accepted_media_type'): ret.accepted_media_type = request.accepted_media_type if hasattr(request, 'version'): ret.version = request.version if hasattr(request, 'versioning_scheme'): ret.versioning_scheme = request.versioning_scheme return ret class ForcedAuthentication(object): """ This authentication class is used if the test client or request factory forcibly authenticated the request. """ def __init__(self, force_user, force_token): self.force_user = force_user self.force_token = force_token def authenticate(self, request): return (self.force_user, self.force_token) class Request(object): """ Wrapper allowing to enhance a standard `HttpRequest` instance. Kwargs: - request(HttpRequest). The original request instance. - parsers_classes(list/tuple). The parsers to use for parsing the request content. - authentication_classes(list/tuple). The authentications used to try authenticating the request's user. """ def __init__(self, request, parsers=None, authenticators=None, negotiator=None, parser_context=None): assert isinstance(request, HttpRequest), ( 'The `request` argument must be an instance of ' '`django.http.HttpRequest`, not `{}.{}`.' .format(request.__class__.__module__, request.__class__.__name__) ) self._request = request self.parsers = parsers or () self.authenticators = authenticators or () self.negotiator = negotiator or self._default_negotiator() self.parser_context = parser_context self._data = Empty self._files = Empty self._full_data = Empty self._content_type = Empty self._stream = Empty if self.parser_context is None: self.parser_context = {} self.parser_context['request'] = self self.parser_context['encoding'] = request.encoding or settings.DEFAULT_CHARSET force_user = getattr(request, '_force_auth_user', None) force_token = getattr(request, '_force_auth_token', None) if force_user is not None or force_token is not None: forced_auth = ForcedAuthentication(force_user, force_token) self.authenticators = (forced_auth,) def _default_negotiator(self): return api_settings.DEFAULT_CONTENT_NEGOTIATION_CLASS() @property def content_type(self): meta = self._request.META return meta.get('CONTENT_TYPE', meta.get('HTTP_CONTENT_TYPE', '')) @property def stream(self): """ Returns an object that may be used to stream the request content. """ if not _hasattr(self, '_stream'): self._load_stream() return self._stream @property def query_params(self): """ More semantically correct name for request.GET. """ return self._request.GET @property def data(self): if not _hasattr(self, '_full_data'): self._load_data_and_files() return self._full_data @property def user(self): """ Returns the user associated with the current request, as authenticated by the authentication classes provided to the request. """ if not hasattr(self, '_user'): with wrap_attributeerrors(): self._authenticate() return self._user @user.setter def user(self, value): """ Sets the user on the current request. This is necessary to maintain compatibility with django.contrib.auth where the user property is set in the login and logout functions. Note that we also set the user on Django's underlying `HttpRequest` instance, ensuring that it is available to any middleware in the stack. """ self._user = value self._request.user = value @property def auth(self): """ Returns any non-user authentication information associated with the request, such as an authentication token. """ if not hasattr(self, '_auth'): with wrap_attributeerrors(): self._authenticate() return self._auth @auth.setter def auth(self, value): """ Sets any non-user authentication information associated with the request, such as an authentication token. """ self._auth = value self._request.auth = value @property def successful_authenticator(self): """ Return the instance of the authentication instance class that was used to authenticate the request, or `None`. """ if not hasattr(self, '_authenticator'): with wrap_attributeerrors(): self._authenticate() return self._authenticator def _load_data_and_files(self): """ Parses the request content into `self.data`. """ if not _hasattr(self, '_data'): self._data, self._files = self._parse() if self._files: self._full_data = self._data.copy() self._full_data.update(self._files) else: self._full_data = self._data # if a form media type, copy data & files refs to the underlying # http request so that closable objects are handled appropriately. if is_form_media_type(self.content_type): self._request._post = self.POST self._request._files = self.FILES def _load_stream(self): """ Return the content body of the request, as a stream. """ meta = self._request.META try: content_length = int( meta.get('CONTENT_LENGTH', meta.get('HTTP_CONTENT_LENGTH', 0)) ) except (ValueError, TypeError): content_length = 0 if content_length == 0: self._stream = None elif not self._request._read_started: self._stream = self._request else: self._stream = six.BytesIO(self.body) def _supports_form_parsing(self): """ Return True if this requests supports parsing form data. """ form_media = ( 'application/x-www-form-urlencoded', 'multipart/form-data' ) return any([parser.media_type in form_media for parser in self.parsers]) def _parse(self): """ Parse the request content, returning a two-tuple of (data, files) May raise an `UnsupportedMediaType`, or `ParseError` exception. """ media_type = self.content_type try: stream = self.stream except RawPostDataException: if not hasattr(self._request, '_post'): raise # If request.POST has been accessed in middleware, and a method='POST' # request was made with 'multipart/form-data', then the request stream # will already have been exhausted. if self._supports_form_parsing(): return (self._request.POST, self._request.FILES) stream = None if stream is None or media_type is None: if media_type and is_form_media_type(media_type): empty_data = QueryDict('', encoding=self._request._encoding) else: empty_data = {} empty_files = MultiValueDict() return (empty_data, empty_files) parser = self.negotiator.select_parser(self, self.parsers) if not parser: raise exceptions.UnsupportedMediaType(media_type) try: parsed = parser.parse(stream, media_type, self.parser_context) except Exception: # If we get an exception during parsing, fill in empty data and # re-raise. Ensures we don't simply repeat the error when # attempting to render the browsable renderer response, or when # logging the request or similar. self._data = QueryDict('', encoding=self._request._encoding) self._files = MultiValueDict() self._full_data = self._data raise # Parser classes may return the raw data, or a # DataAndFiles object. Unpack the result as required. try: return (parsed.data, parsed.files) except AttributeError: empty_files = MultiValueDict() return (parsed, empty_files) def _authenticate(self): """ Attempt to authenticate the request using each authentication instance in turn. """ for authenticator in self.authenticators: try: user_auth_tuple = authenticator.authenticate(self) except exceptions.APIException: self._not_authenticated() raise if user_auth_tuple is not None: self._authenticator = authenticator self.user, self.auth = user_auth_tuple return self._not_authenticated() def _not_authenticated(self): """ Set authenticator, user & authtoken representing an unauthenticated request. Defaults are None, AnonymousUser & None. """ self._authenticator = None if api_settings.UNAUTHENTICATED_USER: self.user = api_settings.UNAUTHENTICATED_USER() else: self.user = None if api_settings.UNAUTHENTICATED_TOKEN: self.auth = api_settings.UNAUTHENTICATED_TOKEN() else: self.auth = None def __getattr__(self, attr): """ If an attribute does not exist on this instance, then we also attempt to proxy it to the underlying HttpRequest object. """ try: return getattr(self._request, attr) except AttributeError: return self.__getattribute__(attr) @property def DATA(self): raise NotImplementedError( '`request.DATA` has been deprecated in favor of `request.data` ' 'since version 3.0, and has been fully removed as of version 3.2.' ) @property def POST(self): # Ensure that request.POST uses our request parsing. if not _hasattr(self, '_data'): self._load_data_and_files() if is_form_media_type(self.content_type): return self._data return QueryDict('', encoding=self._request._encoding) @property def FILES(self): # Leave this one alone for backwards compat with Django's request.FILES # Different from the other two cases, which are not valid property # names on the WSGIRequest class. if not _hasattr(self, '_files'): self._load_data_and_files() return self._files @property def QUERY_PARAMS(self): raise NotImplementedError( '`request.QUERY_PARAMS` has been deprecated in favor of `request.query_params` ' 'since version 3.0, and has been fully removed as of version 3.2.' ) def force_plaintext_errors(self, value): # Hack to allow our exception handler to force choice of # plaintext or html error responses. self._request.is_ajax = lambda: value ================================================ FILE: jet_django/deps/rest_framework/response.py ================================================ """ The Response class in REST framework is similar to HTTPResponse, except that it is initialized with unrendered data, instead of a pre-rendered string. The appropriate renderer is called during Django's template response rendering. """ from __future__ import unicode_literals from django.template.response import SimpleTemplateResponse from django.utils import six from django.utils.six.moves.http_client import responses from jet_django.deps.rest_framework.serializers import Serializer class Response(SimpleTemplateResponse): """ An HttpResponse that allows its data to be rendered into arbitrary media types. """ def __init__(self, data=None, status=None, template_name=None, headers=None, exception=False, content_type=None): """ Alters the init arguments slightly. For example, drop 'template_name', and instead use 'data'. Setting 'renderer' and 'media_type' will typically be deferred, For example being set automatically by the `APIView`. """ super(Response, self).__init__(None, status=status) if isinstance(data, Serializer): msg = ( 'You passed a Serializer instance as data, but ' 'probably meant to pass serialized `.data` or ' '`.error`. representation.' ) raise AssertionError(msg) self.data = data self.template_name = template_name self.exception = exception self.content_type = content_type if headers: for name, value in six.iteritems(headers): self[name] = value @property def rendered_content(self): renderer = getattr(self, 'accepted_renderer', None) accepted_media_type = getattr(self, 'accepted_media_type', None) context = getattr(self, 'renderer_context', None) assert renderer, ".accepted_renderer not set on Response" assert accepted_media_type, ".accepted_media_type not set on Response" assert context is not None, ".renderer_context not set on Response" context['response'] = self media_type = renderer.media_type charset = renderer.charset content_type = self.content_type if content_type is None and charset is not None: content_type = "{0}; charset={1}".format(media_type, charset) elif content_type is None: content_type = media_type self['Content-Type'] = content_type ret = renderer.render(self.data, accepted_media_type, context) if isinstance(ret, six.text_type): assert charset, ( 'renderer returned unicode, and did not specify ' 'a charset value.' ) return bytes(ret.encode(charset)) if not ret: del self['Content-Type'] return ret @property def status_text(self): """ Returns reason text corresponding to our HTTP response status code. Provided for convenience. """ return responses.get(self.status_code, '') def __getstate__(self): """ Remove attributes from the response that shouldn't be cached. """ state = super(Response, self).__getstate__() for key in ( 'accepted_renderer', 'renderer_context', 'resolver_match', 'client', 'request', 'json', 'wsgi_request' ): if key in state: del state[key] state['_closable_objects'] = [] return state ================================================ FILE: jet_django/deps/rest_framework/reverse.py ================================================ """ Provide urlresolver functions that return fully qualified URLs or view names """ from __future__ import unicode_literals from django.urls import NoReverseMatch from django.urls import reverse as django_reverse from django.utils import six from django.utils.functional import lazy from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils.urls import replace_query_param def preserve_builtin_query_params(url, request=None): """ Given an incoming request, and an outgoing URL representation, append the value of any built-in query parameters. """ if request is None: return url overrides = [ api_settings.URL_FORMAT_OVERRIDE, ] for param in overrides: if param and (param in request.GET): value = request.GET[param] url = replace_query_param(url, param, value) return url def reverse(viewname, args=None, kwargs=None, request=None, format=None, **extra): """ If versioning is being used then we pass any `reverse` calls through to the versioning scheme instance, so that the resulting URL can be modified if needed. """ scheme = getattr(request, 'versioning_scheme', None) if scheme is not None: try: url = scheme.reverse(viewname, args, kwargs, request, format, **extra) except NoReverseMatch: # In case the versioning scheme reversal fails, fallback to the # default implementation url = _reverse(viewname, args, kwargs, request, format, **extra) else: url = _reverse(viewname, args, kwargs, request, format, **extra) return preserve_builtin_query_params(url, request) def _reverse(viewname, args=None, kwargs=None, request=None, format=None, **extra): """ Same as `django.urls.reverse`, but optionally takes a request and returns a fully qualified URL, using the request to get the base URL. """ if format is not None: kwargs = kwargs or {} kwargs['format'] = format url = django_reverse(viewname, args=args, kwargs=kwargs, **extra) if request: return request.build_absolute_uri(url) return url reverse_lazy = lazy(reverse, six.text_type) ================================================ FILE: jet_django/deps/rest_framework/routers.py ================================================ """ Routers provide a convenient and consistent way of automatically determining the URL conf for your API. They are used by simply instantiating a Router class, and then registering all the required ViewSets with that router. For example, you might have a `urls.py` that looks something like this: router = routers.DefaultRouter() router.register('users', UserViewSet, 'user') router.register('accounts', AccountViewSet, 'account') urlpatterns = router.urls """ from __future__ import unicode_literals import itertools import warnings from collections import OrderedDict, namedtuple from django.conf.urls import url from django.core.exceptions import ImproperlyConfigured from django.urls import NoReverseMatch from jet_django.deps.rest_framework import views from jet_django.deps.rest_framework.response import Response from jet_django.deps.rest_framework.reverse import reverse from jet_django.deps.rest_framework.schemas import SchemaGenerator from jet_django.deps.rest_framework.schemas.views import SchemaView from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.urlpatterns import format_suffix_patterns Route = namedtuple('Route', ['url', 'mapping', 'name', 'detail', 'initkwargs']) DynamicRoute = namedtuple('DynamicRoute', ['url', 'name', 'detail', 'initkwargs']) class DynamicDetailRoute(object): def __new__(cls, url, name, initkwargs): warnings.warn( "`DynamicDetailRoute` is pending deprecation and will be removed in 3.10 " "in favor of `DynamicRoute`, which accepts a `detail` boolean. Use " "`DynamicRoute(url, name, True, initkwargs)` instead.", PendingDeprecationWarning, stacklevel=2 ) return DynamicRoute(url, name, True, initkwargs) class DynamicListRoute(object): def __new__(cls, url, name, initkwargs): warnings.warn( "`DynamicListRoute` is pending deprecation and will be removed in 3.10 in " "favor of `DynamicRoute`, which accepts a `detail` boolean. Use " "`DynamicRoute(url, name, False, initkwargs)` instead.", PendingDeprecationWarning, stacklevel=2 ) return DynamicRoute(url, name, False, initkwargs) def escape_curly_brackets(url_path): """ Double brackets in regex of url_path for escape string formatting """ if ('{' and '}') in url_path: url_path = url_path.replace('{', '{{').replace('}', '}}') return url_path def flatten(list_of_lists): """ Takes an iterable of iterables, returns a single iterable containing all items """ return itertools.chain(*list_of_lists) class BaseRouter(object): def __init__(self): self.registry = [] def register(self, prefix, viewset, base_name=None): if base_name is None: base_name = self.get_default_base_name(viewset) self.registry.append((prefix, viewset, base_name)) def get_default_base_name(self, viewset): """ If `base_name` is not specified, attempt to automatically determine it from the viewset. """ raise NotImplementedError('get_default_base_name must be overridden') def get_urls(self): """ Return a list of URL patterns, given the registered viewsets. """ raise NotImplementedError('get_urls must be overridden') @property def urls(self): if not hasattr(self, '_urls'): self._urls = self.get_urls() return self._urls class SimpleRouter(BaseRouter): routes = [ # List route. Route( url=r'^{prefix}{trailing_slash}$', mapping={ 'get': 'list', 'post': 'create' }, name='{basename}-list', detail=False, initkwargs={'suffix': 'List'} ), # Dynamically generated list routes. Generated using # @action(detail=False) decorator on methods of the viewset. DynamicRoute( url=r'^{prefix}/{url_path}{trailing_slash}$', name='{basename}-{url_name}', detail=False, initkwargs={} ), # Detail route. Route( url=r'^{prefix}/{lookup}{trailing_slash}$', mapping={ 'get': 'retrieve', 'put': 'update', 'patch': 'partial_update', 'delete': 'destroy' }, name='{basename}-detail', detail=True, initkwargs={'suffix': 'Instance'} ), # Dynamically generated detail routes. Generated using # @action(detail=True) decorator on methods of the viewset. DynamicRoute( url=r'^{prefix}/{lookup}/{url_path}{trailing_slash}$', name='{basename}-{url_name}', detail=True, initkwargs={} ), ] def __init__(self, trailing_slash=True): self.trailing_slash = '/' if trailing_slash else '' super(SimpleRouter, self).__init__() def get_default_base_name(self, viewset): """ If `base_name` is not specified, attempt to automatically determine it from the viewset. """ queryset = getattr(viewset, 'queryset', None) assert queryset is not None, '`base_name` argument not specified, and could ' \ 'not automatically determine the name from the viewset, as ' \ 'it does not have a `.queryset` attribute.' return queryset.model._meta.object_name.lower() def get_routes(self, viewset): """ Augment `self.routes` with any dynamically generated routes. Returns a list of the Route namedtuple. """ # converting to list as iterables are good for one pass, known host needs to be checked again and again for # different functions. known_actions = list(flatten([route.mapping.values() for route in self.routes if isinstance(route, Route)])) extra_actions = viewset.get_extra_actions() # checking action names against the known actions list not_allowed = [ action.__name__ for action in extra_actions if action.__name__ in known_actions ] if not_allowed: msg = ('Cannot use the @action decorator on the following ' 'methods, as they are existing routes: %s') raise ImproperlyConfigured(msg % ', '.join(not_allowed)) # partition detail and list actions detail_actions = [action for action in extra_actions if action.detail] list_actions = [action for action in extra_actions if not action.detail] routes = [] for route in self.routes: if isinstance(route, DynamicRoute) and route.detail: routes += [self._get_dynamic_route(route, action) for action in detail_actions] elif isinstance(route, DynamicRoute) and not route.detail: routes += [self._get_dynamic_route(route, action) for action in list_actions] else: routes.append(route) return routes def _get_dynamic_route(self, route, action): initkwargs = route.initkwargs.copy() initkwargs.update(action.kwargs) url_path = escape_curly_brackets(action.url_path) return Route( url=route.url.replace('{url_path}', url_path), mapping={http_method: action.__name__ for http_method in action.bind_to_methods}, name=route.name.replace('{url_name}', action.url_name), detail=route.detail, initkwargs=initkwargs, ) def get_method_map(self, viewset, method_map): """ Given a viewset, and a mapping of http methods to actions, return a new mapping which only includes any mappings that are actually implemented by the viewset. """ bound_methods = {} for method, action in method_map.items(): if hasattr(viewset, action): bound_methods[method] = action return bound_methods def get_lookup_regex(self, viewset, lookup_prefix=''): """ Given a viewset, return the portion of URL regex that is used to match against a single instance. Note that lookup_prefix is not used directly inside REST rest_framework itself, but is required in order to nicely support nested router implementations, such as drf-nested-routers. https://github.com/alanjds/drf-nested-routers """ base_regex = '(?P<{lookup_prefix}{lookup_url_kwarg}>{lookup_value})' # Use `pk` as default field, unset set. Default regex should not # consume `.json` style suffixes and should break at '/' boundaries. lookup_field = getattr(viewset, 'lookup_field', 'pk') lookup_url_kwarg = getattr(viewset, 'lookup_url_kwarg', None) or lookup_field lookup_value = getattr(viewset, 'lookup_value_regex', '[^/.]+') return base_regex.format( lookup_prefix=lookup_prefix, lookup_url_kwarg=lookup_url_kwarg, lookup_value=lookup_value ) def get_urls(self): """ Use the registered viewsets to generate a list of URL patterns. """ ret = [] for prefix, viewset, basename in self.registry: lookup = self.get_lookup_regex(viewset) routes = self.get_routes(viewset) for route in routes: # Only actions which actually exist on the viewset will be bound mapping = self.get_method_map(viewset, route.mapping) if not mapping: continue # Build the url pattern regex = route.url.format( prefix=prefix, lookup=lookup, trailing_slash=self.trailing_slash ) # If there is no prefix, the first part of the url is probably # controlled by project's urls.py and the router is in an app, # so a slash in the beginning will (A) cause Django to give # warnings and (B) generate URLS that will require using '//'. if not prefix and regex[:2] == '^/': regex = '^' + regex[2:] initkwargs = route.initkwargs.copy() initkwargs.update({ 'basename': basename, 'detail': route.detail, }) view = viewset.as_view(mapping, **initkwargs) name = route.name.format(basename=basename) ret.append(url(regex, view, name=name)) return ret class APIRootView(views.APIView): """ The default basic root view for DefaultRouter """ _ignore_model_permissions = True schema = None # exclude from schema api_root_dict = None def get(self, request, *args, **kwargs): # Return a plain {"name": "hyperlink"} response. ret = OrderedDict() namespace = request.resolver_match.namespace for key, url_name in self.api_root_dict.items(): if namespace: url_name = namespace + ':' + url_name try: ret[key] = reverse( url_name, args=args, kwargs=kwargs, request=request, format=kwargs.get('format', None) ) except NoReverseMatch: # Don't bail out if eg. no list routes exist, only detail routes. continue return Response(ret) class DefaultRouter(SimpleRouter): """ The default router extends the SimpleRouter, but also adds in a default API root view, and adds format suffix patterns to the URLs. """ include_root_view = True include_format_suffixes = True root_view_name = 'api-root' default_schema_renderers = None APIRootView = APIRootView APISchemaView = SchemaView SchemaGenerator = SchemaGenerator def __init__(self, *args, **kwargs): if 'root_renderers' in kwargs: self.root_renderers = kwargs.pop('root_renderers') else: self.root_renderers = list(api_settings.DEFAULT_RENDERER_CLASSES) super(DefaultRouter, self).__init__(*args, **kwargs) def get_api_root_view(self, api_urls=None): """ Return a basic root view. """ api_root_dict = OrderedDict() list_name = self.routes[0].name for prefix, viewset, basename in self.registry: api_root_dict[prefix] = list_name.format(basename=basename) return self.APIRootView.as_view(api_root_dict=api_root_dict) def get_urls(self): """ Generate the list of URL patterns, including a default root view for the API, and appending `.json` style format suffixes. """ urls = super(DefaultRouter, self).get_urls() if self.include_root_view: view = self.get_api_root_view(api_urls=urls) root_url = url(r'^$', view, name=self.root_view_name) urls.append(root_url) if self.include_format_suffixes: urls = format_suffix_patterns(urls) return urls ================================================ FILE: jet_django/deps/rest_framework/schemas/__init__.py ================================================ """ rest_framework.schemas schemas: __init__.py generators.py # Top-down schema generation inspectors.py # Per-endpoint view introspection utils.py # Shared helper functions views.py # Houses `SchemaView`, `APIView` subclass. We expose a minimal "public" API directly from `schemas`. This covers the basic use-cases: from jet_django.deps.rest_framework.schemas import ( AutoSchema, ManualSchema, get_schema_view, SchemaGenerator, ) Other access should target the submodules directly """ from jet_django.deps.rest_framework.settings import api_settings from .generators import SchemaGenerator from .inspectors import AutoSchema, DefaultSchema, ManualSchema # noqa def get_schema_view( title=None, url=None, description=None, urlconf=None, renderer_classes=None, public=False, patterns=None, generator_class=SchemaGenerator, authentication_classes=api_settings.DEFAULT_AUTHENTICATION_CLASSES, permission_classes=api_settings.DEFAULT_PERMISSION_CLASSES): """ Return a schema view. """ # Avoid import cycle on APIView from .views import SchemaView generator = generator_class( title=title, url=url, description=description, urlconf=urlconf, patterns=patterns, ) return SchemaView.as_view( renderer_classes=renderer_classes, schema_generator=generator, public=public, authentication_classes=authentication_classes, permission_classes=permission_classes, ) ================================================ FILE: jet_django/deps/rest_framework/schemas/generators.py ================================================ """ generators.py # Top-down schema generation See schemas.__init__.py for package overview. """ import re import warnings from collections import Counter, OrderedDict from importlib import import_module from django.conf import settings from django.contrib.admindocs.views import simplify_regex from django.core.exceptions import PermissionDenied from django.http import Http404 from django.utils import six from jet_django.deps.rest_framework import exceptions from jet_django.deps.rest_framework.compat import ( URLPattern, URLResolver, coreapi, coreschema, get_original_route ) from jet_django.deps.rest_framework.request import clone_request from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils.model_meta import _get_pk from .utils import is_list_view def common_path(paths): split_paths = [path.strip('/').split('/') for path in paths] s1 = min(split_paths) s2 = max(split_paths) common = s1 for i, c in enumerate(s1): if c != s2[i]: common = s1[:i] break return '/' + '/'.join(common) def get_pk_name(model): meta = model._meta.concrete_model._meta return _get_pk(meta).name def is_api_view(callback): """ Return `True` if the given view callback is a REST framework view/viewset. """ # Avoid import cycle on APIView from jet_django.deps.rest_framework.views import APIView cls = getattr(callback, 'cls', None) return (cls is not None) and issubclass(cls, APIView) INSERT_INTO_COLLISION_FMT = """ Schema Naming Collision. coreapi.Link for URL path {value_url} cannot be inserted into schema. Position conflicts with coreapi.Link for URL path {target_url}. Attemped to insert link with keys: {keys}. Adjust URLs to avoid naming collision or override `SchemaGenerator.get_keys()` to customise schema structure. """ class LinkNode(OrderedDict): def __init__(self): self.links = [] self.methods_counter = Counter() super(LinkNode, self).__init__() def get_available_key(self, preferred_key): if preferred_key not in self: return preferred_key while True: current_val = self.methods_counter[preferred_key] self.methods_counter[preferred_key] += 1 key = '{}_{}'.format(preferred_key, current_val) if key not in self: return key def insert_into(target, keys, value): """ Nested dictionary insertion. >>> example = {} >>> insert_into(example, ['a', 'b', 'c'], 123) >>> example LinkNode({'a': LinkNode({'b': LinkNode({'c': LinkNode(links=[123])}}}))) """ for key in keys[:-1]: if key not in target: target[key] = LinkNode() target = target[key] try: target.links.append((keys[-1], value)) except TypeError: msg = INSERT_INTO_COLLISION_FMT.format( value_url=value.url, target_url=target.url, keys=keys ) raise ValueError(msg) def distribute_links(obj): for key, value in obj.items(): distribute_links(value) for preferred_key, link in obj.links: key = obj.get_available_key(preferred_key) obj[key] = link def is_custom_action(action): return action not in { 'retrieve', 'list', 'create', 'update', 'partial_update', 'destroy' } def endpoint_ordering(endpoint): path, method, callback = endpoint method_priority = { 'GET': 0, 'POST': 1, 'PUT': 2, 'PATCH': 3, 'DELETE': 4 }.get(method, 5) return (path, method_priority) _PATH_PARAMETER_COMPONENT_RE = re.compile( r'<(?:(?P[^>:]+):)?(?P\w+)>' ) class EndpointEnumerator(object): """ A class to determine the available API endpoints that a project exposes. """ def __init__(self, patterns=None, urlconf=None): if patterns is None: if urlconf is None: # Use the default Django URL conf urlconf = settings.ROOT_URLCONF # Load the given URLconf module if isinstance(urlconf, six.string_types): urls = import_module(urlconf) else: urls = urlconf patterns = urls.urlpatterns self.patterns = patterns def get_api_endpoints(self, patterns=None, prefix=''): """ Return a list of all available API endpoints by inspecting the URL conf. """ if patterns is None: patterns = self.patterns api_endpoints = [] for pattern in patterns: path_regex = prefix + get_original_route(pattern) if isinstance(pattern, URLPattern): path = self.get_path_from_regex(path_regex) callback = pattern.callback if self.should_include_endpoint(path, callback): for method in self.get_allowed_methods(callback): endpoint = (path, method, callback) api_endpoints.append(endpoint) elif isinstance(pattern, URLResolver): nested_endpoints = self.get_api_endpoints( patterns=pattern.url_patterns, prefix=path_regex ) api_endpoints.extend(nested_endpoints) api_endpoints = sorted(api_endpoints, key=endpoint_ordering) return api_endpoints def get_path_from_regex(self, path_regex): """ Given a URL conf regex, return a URI template string. """ path = simplify_regex(path_regex) # Strip Django 2.0 convertors as they are incompatible with uritemplate format path = re.sub(_PATH_PARAMETER_COMPONENT_RE, r'{\g}', path) return path def should_include_endpoint(self, path, callback): """ Return `True` if the given endpoint should be included. """ if not is_api_view(callback): return False # Ignore anything except REST framework views. if hasattr(callback.cls, 'exclude_from_schema'): fmt = ("The `{}.exclude_from_schema` attribute is deprecated. " "Set `schema = None` instead.") msg = fmt.format(callback.cls.__name__) warnings.warn(msg, DeprecationWarning) if getattr(callback.cls, 'exclude_from_schema', False): return False if callback.cls.schema is None: return False if path.endswith('.{format}') or path.endswith('.{format}/'): return False # Ignore .json style URLs. return True def get_allowed_methods(self, callback): """ Return a list of the valid HTTP methods for this endpoint. """ if hasattr(callback, 'actions'): actions = set(callback.actions) http_method_names = set(callback.cls.http_method_names) methods = [method.upper() for method in actions & http_method_names] else: methods = callback.cls().allowed_methods return [method for method in methods if method not in ('OPTIONS', 'HEAD')] class SchemaGenerator(object): # Map HTTP methods onto actions. default_mapping = { 'get': 'retrieve', 'post': 'create', 'put': 'update', 'patch': 'partial_update', 'delete': 'destroy', } endpoint_inspector_cls = EndpointEnumerator # Map the method names we use for viewset actions onto external schema names. # These give us names that are more suitable for the external representation. # Set by 'SCHEMA_COERCE_METHOD_NAMES'. coerce_method_names = None # 'pk' isn't great as an externally exposed name for an identifier, # so by default we prefer to use the actual model field name for schemas. # Set by 'SCHEMA_COERCE_PATH_PK'. coerce_path_pk = None def __init__(self, title=None, url=None, description=None, patterns=None, urlconf=None): assert coreapi, '`coreapi` must be installed for schema support.' assert coreschema, '`coreschema` must be installed for schema support.' if url and not url.endswith('/'): url += '/' self.coerce_method_names = api_settings.SCHEMA_COERCE_METHOD_NAMES self.coerce_path_pk = api_settings.SCHEMA_COERCE_PATH_PK self.patterns = patterns self.urlconf = urlconf self.title = title self.description = description self.url = url self.endpoints = None def get_schema(self, request=None, public=False): """ Generate a `coreapi.Document` representing the API schema. """ if self.endpoints is None: inspector = self.endpoint_inspector_cls(self.patterns, self.urlconf) self.endpoints = inspector.get_api_endpoints() links = self.get_links(None if public else request) if not links: return None url = self.url if not url and request is not None: url = request.build_absolute_uri() distribute_links(links) return coreapi.Document( title=self.title, description=self.description, url=url, content=links ) def get_links(self, request=None): """ Return a dictionary containing all the links that should be included in the API schema. """ links = LinkNode() # Generate (path, method, view) given (path, method, callback). paths = [] view_endpoints = [] for path, method, callback in self.endpoints: view = self.create_view(callback, method, request) path = self.coerce_path(path, method, view) paths.append(path) view_endpoints.append((path, method, view)) # Only generate the path prefix for paths that will be included if not paths: return None prefix = self.determine_path_prefix(paths) for path, method, view in view_endpoints: if not self.has_view_permissions(path, method, view): continue link = view.schema.get_link(path, method, base_url=self.url) subpath = path[len(prefix):] keys = self.get_keys(subpath, method, view) insert_into(links, keys, link) return links # Methods used when we generate a view instance from the raw callback... def determine_path_prefix(self, paths): """ Given a list of all paths, return the common prefix which should be discounted when generating a schema structure. This will be the longest common string that does not include that last component of the URL, or the last component before a path parameter. For example: /api/v1/users/ /api/v1/users/{pk}/ The path prefix is '/api/v1/' """ prefixes = [] for path in paths: components = path.strip('/').split('/') initial_components = [] for component in components: if '{' in component: break initial_components.append(component) prefix = '/'.join(initial_components[:-1]) if not prefix: # We can just break early in the case that there's at least # one URL that doesn't have a path prefix. return '/' prefixes.append('/' + prefix + '/') return common_path(prefixes) def create_view(self, callback, method, request=None): """ Given a callback, return an actual view instance. """ view = callback.cls() for attr, val in getattr(callback, 'initkwargs', {}).items(): setattr(view, attr, val) view.args = () view.kwargs = {} view.format_kwarg = None view.request = None view.action_map = getattr(callback, 'actions', None) actions = getattr(callback, 'actions', None) if actions is not None: if method == 'OPTIONS': view.action = 'metadata' else: view.action = actions.get(method.lower()) if request is not None: view.request = clone_request(request, method) return view def has_view_permissions(self, path, method, view): """ Return `True` if the incoming request has the correct view permissions. """ if view.request is None: return True try: view.check_permissions(view.request) except (exceptions.APIException, Http404, PermissionDenied): return False return True def coerce_path(self, path, method, view): """ Coerce {pk} path arguments into the name of the model field, where possible. This is cleaner for an external representation. (Ie. "this is an identifier", not "this is a database primary key") """ if not self.coerce_path_pk or '{pk}' not in path: return path model = getattr(getattr(view, 'queryset', None), 'model', None) if model: field_name = get_pk_name(model) else: field_name = 'id' return path.replace('{pk}', '{%s}' % field_name) # Method for generating the link layout.... def get_keys(self, subpath, method, view): """ Return a list of keys that should be used to layout a link within the schema document. /users/ ("users", "list"), ("users", "create") /users/{pk}/ ("users", "read"), ("users", "update"), ("users", "delete") /users/enabled/ ("users", "enabled") # custom viewset list action /users/{pk}/star/ ("users", "star") # custom viewset detail action /users/{pk}/groups/ ("users", "groups", "list"), ("users", "groups", "create") /users/{pk}/groups/{pk}/ ("users", "groups", "read"), ("users", "groups", "update"), ("users", "groups", "delete") """ if hasattr(view, 'action'): # Viewsets have explicitly named actions. action = view.action else: # Views have no associated action, so we determine one from the method. if is_list_view(subpath, method, view): action = 'list' else: action = self.default_mapping[method.lower()] named_path_components = [ component for component in subpath.strip('/').split('/') if '{' not in component ] if is_custom_action(action): # Custom action, eg "/users/{pk}/activate/", "/users/active/" if len(view.action_map) > 1: action = self.default_mapping[method.lower()] if action in self.coerce_method_names: action = self.coerce_method_names[action] return named_path_components + [action] else: return named_path_components[:-1] + [action] if action in self.coerce_method_names: action = self.coerce_method_names[action] # Default action, eg "/users/", "/users/{pk}/" return named_path_components + [action] ================================================ FILE: jet_django/deps/rest_framework/schemas/inspectors.py ================================================ # -*- coding: utf-8 -*- """ inspectors.py # Per-endpoint view introspection See schemas.__init__.py for package overview. """ import re import warnings from collections import OrderedDict from django.db import models from django.utils.encoding import force_text, smart_text from django.utils.six.moves.urllib import parse as urlparse from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework import exceptions, serializers from jet_django.deps.rest_framework.compat import coreapi, coreschema, uritemplate from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils import formatting from .utils import is_list_view header_regex = re.compile('^[a-zA-Z][0-9A-Za-z_]*:') def field_to_schema(field): title = force_text(field.label) if field.label else '' description = force_text(field.help_text) if field.help_text else '' if isinstance(field, (serializers.ListSerializer, serializers.ListField)): child_schema = field_to_schema(field.child) return coreschema.Array( items=child_schema, title=title, description=description ) elif isinstance(field, serializers.DictField): return coreschema.Object( title=title, description=description ) elif isinstance(field, serializers.Serializer): return coreschema.Object( properties=OrderedDict([ (key, field_to_schema(value)) for key, value in field.fields.items() ]), title=title, description=description ) elif isinstance(field, serializers.ManyRelatedField): return coreschema.Array( items=coreschema.String(), title=title, description=description ) elif isinstance(field, serializers.PrimaryKeyRelatedField): schema_cls = coreschema.String model = getattr(field.queryset, 'model', None) if model is not None: model_field = model._meta.pk if isinstance(model_field, models.AutoField): schema_cls = coreschema.Integer return schema_cls(title=title, description=description) elif isinstance(field, serializers.RelatedField): return coreschema.String(title=title, description=description) elif isinstance(field, serializers.MultipleChoiceField): return coreschema.Array( items=coreschema.Enum(enum=list(field.choices)), title=title, description=description ) elif isinstance(field, serializers.ChoiceField): return coreschema.Enum( enum=list(field.choices), title=title, description=description ) elif isinstance(field, serializers.BooleanField): return coreschema.Boolean(title=title, description=description) elif isinstance(field, (serializers.DecimalField, serializers.FloatField)): return coreschema.Number(title=title, description=description) elif isinstance(field, serializers.IntegerField): return coreschema.Integer(title=title, description=description) elif isinstance(field, serializers.DateField): return coreschema.String( title=title, description=description, format='date' ) elif isinstance(field, serializers.DateTimeField): return coreschema.String( title=title, description=description, format='date-time' ) if field.style.get('base_template') == 'textarea.html': return coreschema.String( title=title, description=description, format='textarea' ) return coreschema.String(title=title, description=description) def get_pk_description(model, model_field): if isinstance(model_field, models.AutoField): value_type = _('unique integer value') elif isinstance(model_field, models.UUIDField): value_type = _('UUID string') else: value_type = _('unique value') return _('A {value_type} identifying this {name}.').format( value_type=value_type, name=model._meta.verbose_name, ) class ViewInspector(object): """ Descriptor class on APIView. Provide subclass for per-view schema generation """ def __get__(self, instance, owner): """ Enables `ViewInspector` as a Python _Descriptor_. This is how `view.schema` knows about `view`. `__get__` is called when the descriptor is accessed on the owner. (That will be when view.schema is called in our case.) `owner` is always the owner class. (An APIView, or subclass for us.) `instance` is the view instance or `None` if accessed from the class, rather than an instance. See: https://docs.python.org/3/howto/descriptor.html for info on descriptor usage. """ self.view = instance return self @property def view(self): """View property.""" assert self._view is not None, "Schema generation REQUIRES a view instance. (Hint: you accessed `schema` from the view class rather than an instance.)" return self._view @view.setter def view(self, value): self._view = value @view.deleter def view(self): self._view = None def get_link(self, path, method, base_url): """ Generate `coreapi.Link` for self.view, path and method. This is the main _public_ access point. Parameters: * path: Route path for view from URLConf. * method: The HTTP request method. * base_url: The project "mount point" as given to SchemaGenerator """ raise NotImplementedError(".get_link() must be overridden.") class AutoSchema(ViewInspector): """ Default inspector for APIView Responsible for per-view instrospection and schema generation. """ def __init__(self, manual_fields=None): """ Parameters: * `manual_fields`: list of `coreapi.Field` instances that will be added to auto-generated fields, overwriting on `Field.name` """ if manual_fields is None: manual_fields = [] self._manual_fields = manual_fields def get_link(self, path, method, base_url): fields = self.get_path_fields(path, method) fields += self.get_serializer_fields(path, method) fields += self.get_pagination_fields(path, method) fields += self.get_filter_fields(path, method) manual_fields = self.get_manual_fields(path, method) fields = self.update_fields(fields, manual_fields) if fields and any([field.location in ('form', 'body') for field in fields]): encoding = self.get_encoding(path, method) else: encoding = None description = self.get_description(path, method) if base_url and path.startswith('/'): path = path[1:] return coreapi.Link( url=urlparse.urljoin(base_url, path), action=method.lower(), encoding=encoding, fields=fields, description=description ) def get_description(self, path, method): """ Determine a link description. This will be based on the method docstring if one exists, or else the class docstring. """ view = self.view method_name = getattr(view, 'action', method.lower()) method_docstring = getattr(view, method_name, None).__doc__ if method_docstring: # An explicit docstring on the method or action. return formatting.dedent(smart_text(method_docstring)) description = view.get_view_description() lines = [line for line in description.splitlines()] current_section = '' sections = {'': ''} for line in lines: if header_regex.match(line): current_section, seperator, lead = line.partition(':') sections[current_section] = lead.strip() else: sections[current_section] += '\n' + line # TODO: SCHEMA_COERCE_METHOD_NAMES appears here and in `SchemaGenerator.get_keys` coerce_method_names = api_settings.SCHEMA_COERCE_METHOD_NAMES header = getattr(view, 'action', method.lower()) if header in sections: return sections[header].strip() if header in coerce_method_names: if coerce_method_names[header] in sections: return sections[coerce_method_names[header]].strip() return sections[''].strip() def get_path_fields(self, path, method): """ Return a list of `coreapi.Field` instances corresponding to any templated path variables. """ view = self.view model = getattr(getattr(view, 'queryset', None), 'model', None) fields = [] for variable in uritemplate.variables(path): title = '' description = '' schema_cls = coreschema.String kwargs = {} if model is not None: # Attempt to infer a field description if possible. try: model_field = model._meta.get_field(variable) except Exception: model_field = None if model_field is not None and model_field.verbose_name: title = force_text(model_field.verbose_name) if model_field is not None and model_field.help_text: description = force_text(model_field.help_text) elif model_field is not None and model_field.primary_key: description = get_pk_description(model, model_field) if hasattr(view, 'lookup_value_regex') and view.lookup_field == variable: kwargs['pattern'] = view.lookup_value_regex elif isinstance(model_field, models.AutoField): schema_cls = coreschema.Integer field = coreapi.Field( name=variable, location='path', required=True, schema=schema_cls(title=title, description=description, **kwargs) ) fields.append(field) return fields def get_serializer_fields(self, path, method): """ Return a list of `coreapi.Field` instances corresponding to any request body input, as determined by the serializer class. """ view = self.view if method not in ('PUT', 'PATCH', 'POST'): return [] if not hasattr(view, 'get_serializer'): return [] try: serializer = view.get_serializer() except exceptions.APIException: serializer = None warnings.warn('{}.get_serializer() raised an exception during ' 'schema generation. Serializer fields will not be ' 'generated for {} {}.' .format(view.__class__.__name__, method, path)) if isinstance(serializer, serializers.ListSerializer): return [ coreapi.Field( name='data', location='body', required=True, schema=coreschema.Array() ) ] if not isinstance(serializer, serializers.Serializer): return [] fields = [] for field in serializer.fields.values(): if field.read_only or isinstance(field, serializers.HiddenField): continue required = field.required and method != 'PATCH' field = coreapi.Field( name=field.field_name, location='form', required=required, schema=field_to_schema(field) ) fields.append(field) return fields def get_pagination_fields(self, path, method): view = self.view if not is_list_view(path, method, view): return [] pagination = getattr(view, 'pagination_class', None) if not pagination: return [] paginator = view.pagination_class() return paginator.get_schema_fields(view) def _allows_filters(self, path, method): """ Determine whether to include filter Fields in schema. Default implementation looks for ModelViewSet or GenericAPIView actions/methods that cause filtering on the default implementation. Override to adjust behaviour for your view. Note: Introduced in v3.7: Initially "private" (i.e. with leading underscore) to allow changes based on user experience. """ if getattr(self.view, 'filter_backends', None) is None: return False if hasattr(self.view, 'action'): return self.view.action in ["list", "retrieve", "update", "partial_update", "destroy"] return method.lower() in ["get", "put", "patch", "delete"] def get_filter_fields(self, path, method): if not self._allows_filters(path, method): return [] fields = [] for filter_backend in self.view.filter_backends: fields += filter_backend().get_schema_fields(self.view) return fields def get_manual_fields(self, path, method): return self._manual_fields @staticmethod def update_fields(fields, update_with): """ Update list of coreapi.Field instances, overwriting on `Field.name`. Utility function to handle replacing coreapi.Field fields from a list by name. Used to handle `manual_fields`. Parameters: * `fields`: list of `coreapi.Field` instances to update * `update_with: list of `coreapi.Field` instances to add or replace. """ if not update_with: return fields by_name = OrderedDict((f.name, f) for f in fields) for f in update_with: by_name[f.name] = f fields = list(by_name.values()) return fields def get_encoding(self, path, method): """ Return the 'encoding' parameter to use for a given endpoint. """ view = self.view # Core API supports the following request encodings over HTTP... supported_media_types = { 'application/json', 'application/x-www-form-urlencoded', 'multipart/form-data', } parser_classes = getattr(view, 'parser_classes', []) for parser_class in parser_classes: media_type = getattr(parser_class, 'media_type', None) if media_type in supported_media_types: return media_type # Raw binary uploads are supported with "application/octet-stream" if media_type == '*/*': return 'application/octet-stream' return None class ManualSchema(ViewInspector): """ Allows providing a list of coreapi.Fields, plus an optional description. """ def __init__(self, fields, description='', encoding=None): """ Parameters: * `fields`: list of `coreapi.Field` instances. * `descripton`: String description for view. Optional. """ assert all(isinstance(f, coreapi.Field) for f in fields), "`fields` must be a list of coreapi.Field instances" self._fields = fields self._description = description self._encoding = encoding def get_link(self, path, method, base_url): if base_url and path.startswith('/'): path = path[1:] return coreapi.Link( url=urlparse.urljoin(base_url, path), action=method.lower(), encoding=self._encoding, fields=self._fields, description=self._description ) class DefaultSchema(object): """Allows overriding AutoSchema using DEFAULT_SCHEMA_CLASS setting""" def __get__(self, instance, owner): inspector_class = api_settings.DEFAULT_SCHEMA_CLASS assert issubclass(inspector_class, ViewInspector), "DEFAULT_SCHEMA_CLASS must be set to a ViewInspector (usually an AutoSchema) subclass" inspector = inspector_class() inspector.view = instance return inspector ================================================ FILE: jet_django/deps/rest_framework/schemas/utils.py ================================================ """ utils.py # Shared helper functions See schemas.__init__.py for package overview. """ from jet_django.deps.rest_framework.mixins import RetrieveModelMixin def is_list_view(path, method, view): """ Return True if the given path/method appears to represent a list view. """ if hasattr(view, 'action'): # Viewsets have an explicitly defined action, which we can inspect. return view.action == 'list' if method.lower() != 'get': return False if isinstance(view, RetrieveModelMixin): return False path_components = path.strip('/').split('/') if path_components and '{' in path_components[-1]: return False return True ================================================ FILE: jet_django/deps/rest_framework/schemas/views.py ================================================ """ views.py # Houses `SchemaView`, `APIView` subclass. See schemas.__init__.py for package overview. """ from jet_django.deps.rest_framework import exceptions, renderers from jet_django.deps.rest_framework.response import Response from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.views import APIView class SchemaView(APIView): _ignore_model_permissions = True schema = None # exclude from schema renderer_classes = None schema_generator = None public = False def __init__(self, *args, **kwargs): super(SchemaView, self).__init__(*args, **kwargs) if self.renderer_classes is None: if renderers.BrowsableAPIRenderer in api_settings.DEFAULT_RENDERER_CLASSES: self.renderer_classes = [ renderers.CoreJSONRenderer, renderers.BrowsableAPIRenderer, ] else: self.renderer_classes = [renderers.CoreJSONRenderer] def get(self, request, *args, **kwargs): schema = self.schema_generator.get_schema(request, self.public) if schema is None: raise exceptions.PermissionDenied() return Response(schema) ================================================ FILE: jet_django/deps/rest_framework/serializers.py ================================================ """ Serializers and ModelSerializers are similar to Forms and ModelForms. Unlike forms, they are not constrained to dealing with HTML output, and form encoded input. Serialization in REST framework is a two-phase process: 1. Serializers marshal between complex types like model instances, and python primitives. 2. The process of marshalling between python primitives and request and response content is handled by parsers and renderers. """ from __future__ import unicode_literals import copy import inspect import traceback from collections import Mapping, OrderedDict from django.core.exceptions import ImproperlyConfigured from django.core.exceptions import ValidationError as DjangoValidationError from django.db import models from django.db.models import DurationField as ModelDurationField from django.db.models.fields import Field as DjangoModelField from django.db.models.fields import FieldDoesNotExist from django.utils import six, timezone from django.utils.functional import cached_property from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework.compat import postgres_fields, unicode_to_repr from jet_django.deps.rest_framework.exceptions import ErrorDetail, ValidationError from jet_django.deps.rest_framework.fields import get_error_detail, set_value from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils import html, model_meta, representation from jet_django.deps.rest_framework.utils.field_mapping import ( ClassLookupDict, get_field_kwargs, get_nested_relation_kwargs, get_relation_kwargs, get_url_kwargs ) from jet_django.deps.rest_framework.utils.serializer_helpers import ( BindingDict, BoundField, JSONBoundField, NestedBoundField, ReturnDict, ReturnList ) from jet_django.deps.rest_framework.validators import ( UniqueForDateValidator, UniqueForMonthValidator, UniqueForYearValidator, UniqueTogetherValidator ) # Note: We do the following so that users of the framework can use this style: # # example_field = serializers.CharField(...) # # This helps keep the separation between model fields, form fields, and # serializer fields more explicit. from jet_django.deps.rest_framework.fields import ( # NOQA # isort:skip BooleanField, CharField, ChoiceField, DateField, DateTimeField, DecimalField, DictField, DurationField, EmailField, Field, FileField, FilePathField, FloatField, HiddenField, HStoreField, IPAddressField, ImageField, IntegerField, JSONField, ListField, ModelField, MultipleChoiceField, NullBooleanField, ReadOnlyField, RegexField, SerializerMethodField, SlugField, TimeField, URLField, UUIDField, ) from jet_django.deps.rest_framework.relations import ( # NOQA # isort:skip HyperlinkedIdentityField, HyperlinkedRelatedField, ManyRelatedField, PrimaryKeyRelatedField, RelatedField, SlugRelatedField, StringRelatedField, ) # Non-field imports, but public API from jet_django.deps.rest_framework.fields import ( # NOQA # isort:skip CreateOnlyDefault, CurrentUserDefault, SkipField, empty ) from jet_django.deps.rest_framework.relations import Hyperlink, PKOnlyObject # NOQA # isort:skip # We assume that 'validators' are intended for the child serializer, # rather than the parent serializer. LIST_SERIALIZER_KWARGS = ( 'read_only', 'write_only', 'required', 'default', 'initial', 'source', 'label', 'help_text', 'style', 'error_messages', 'allow_empty', 'instance', 'data', 'partial', 'context', 'allow_null' ) ALL_FIELDS = '__all__' # BaseSerializer # -------------- class BaseSerializer(Field): """ The BaseSerializer class provides a minimal class which may be used for writing custom serializer implementations. Note that we strongly restrict the ordering of operations/properties that may be used on the serializer in order to enforce correct usage. In particular, if a `data=` argument is passed then: .is_valid() - Available. .initial_data - Available. .validated_data - Only available after calling `is_valid()` .errors - Only available after calling `is_valid()` .data - Only available after calling `is_valid()` If a `data=` argument is not passed then: .is_valid() - Not available. .initial_data - Not available. .validated_data - Not available. .errors - Not available. .data - Available. """ def __init__(self, instance=None, data=empty, **kwargs): self.instance = instance if data is not empty: self.initial_data = data self.partial = kwargs.pop('partial', False) self._context = kwargs.pop('context', {}) kwargs.pop('many', None) super(BaseSerializer, self).__init__(**kwargs) def __new__(cls, *args, **kwargs): # We override this method in order to automagically create # `ListSerializer` classes instead when `many=True` is set. if kwargs.pop('many', False): return cls.many_init(*args, **kwargs) return super(BaseSerializer, cls).__new__(cls, *args, **kwargs) @classmethod def many_init(cls, *args, **kwargs): """ This method implements the creation of a `ListSerializer` parent class when `many=True` is used. You can customize it if you need to control which keyword arguments are passed to the parent, and which are passed to the child. Note that we're over-cautious in passing most arguments to both parent and child classes in order to try to cover the general case. If you're overriding this method you'll probably want something much simpler, eg: @classmethod def many_init(cls, *args, **kwargs): kwargs['child'] = cls() return CustomListSerializer(*args, **kwargs) """ allow_empty = kwargs.pop('allow_empty', None) child_serializer = cls(*args, **kwargs) list_kwargs = { 'child': child_serializer, } if allow_empty is not None: list_kwargs['allow_empty'] = allow_empty list_kwargs.update({ key: value for key, value in kwargs.items() if key in LIST_SERIALIZER_KWARGS }) meta = getattr(cls, 'Meta', None) list_serializer_class = getattr(meta, 'list_serializer_class', ListSerializer) return list_serializer_class(*args, **list_kwargs) def to_internal_value(self, data): raise NotImplementedError('`to_internal_value()` must be implemented.') def to_representation(self, instance): raise NotImplementedError('`to_representation()` must be implemented.') def update(self, instance, validated_data): raise NotImplementedError('`update()` must be implemented.') def create(self, validated_data): raise NotImplementedError('`create()` must be implemented.') def save(self, **kwargs): assert not hasattr(self, 'save_object'), ( 'Serializer `%s.%s` has old-style version 2 `.save_object()` ' 'that is no longer compatible with REST framework 3. ' 'Use the new-style `.create()` and `.update()` methods instead.' % (self.__class__.__module__, self.__class__.__name__) ) assert hasattr(self, '_errors'), ( 'You must call `.is_valid()` before calling `.save()`.' ) assert not self.errors, ( 'You cannot call `.save()` on a serializer with invalid data.' ) # Guard against incorrect use of `serializer.save(commit=False)` assert 'commit' not in kwargs, ( "'commit' is not a valid keyword argument to the 'save()' method. " "If you need to access data before committing to the database then " "inspect 'serializer.validated_data' instead. " "You can also pass additional keyword arguments to 'save()' if you " "need to set extra attributes on the saved model instance. " "For example: 'serializer.save(owner=request.user)'.'" ) assert not hasattr(self, '_data'), ( "You cannot call `.save()` after accessing `serializer.data`." "If you need to access data before committing to the database then " "inspect 'serializer.validated_data' instead. " ) validated_data = dict( list(self.validated_data.items()) + list(kwargs.items()) ) if self.instance is not None: self.instance = self.update(self.instance, validated_data) assert self.instance is not None, ( '`update()` did not return an object instance.' ) else: self.instance = self.create(validated_data) assert self.instance is not None, ( '`create()` did not return an object instance.' ) return self.instance def is_valid(self, raise_exception=False): assert not hasattr(self, 'restore_object'), ( 'Serializer `%s.%s` has old-style version 2 `.restore_object()` ' 'that is no longer compatible with REST framework 3. ' 'Use the new-style `.create()` and `.update()` methods instead.' % (self.__class__.__module__, self.__class__.__name__) ) assert hasattr(self, 'initial_data'), ( 'Cannot call `.is_valid()` as no `data=` keyword argument was ' 'passed when instantiating the serializer instance.' ) if not hasattr(self, '_validated_data'): try: self._validated_data = self.run_validation(self.initial_data) except ValidationError as exc: self._validated_data = {} self._errors = exc.detail else: self._errors = {} if self._errors and raise_exception: raise ValidationError(self.errors) return not bool(self._errors) @property def data(self): if hasattr(self, 'initial_data') and not hasattr(self, '_validated_data'): msg = ( 'When a serializer is passed a `data` keyword argument you ' 'must call `.is_valid()` before attempting to access the ' 'serialized `.data` representation.\n' 'You should either call `.is_valid()` first, ' 'or access `.initial_data` instead.' ) raise AssertionError(msg) if not hasattr(self, '_data'): if self.instance is not None and not getattr(self, '_errors', None): self._data = self.to_representation(self.instance) elif hasattr(self, '_validated_data') and not getattr(self, '_errors', None): self._data = self.to_representation(self.validated_data) else: self._data = self.get_initial() return self._data @property def errors(self): if not hasattr(self, '_errors'): msg = 'You must call `.is_valid()` before accessing `.errors`.' raise AssertionError(msg) return self._errors @property def validated_data(self): if not hasattr(self, '_validated_data'): msg = 'You must call `.is_valid()` before accessing `.validated_data`.' raise AssertionError(msg) return self._validated_data # Serializer & ListSerializer classes # ----------------------------------- class SerializerMetaclass(type): """ This metaclass sets a dictionary named `_declared_fields` on the class. Any instances of `Field` included as attributes on either the class or on any of its superclasses will be include in the `_declared_fields` dictionary. """ @classmethod def _get_declared_fields(cls, bases, attrs): fields = [(field_name, attrs.pop(field_name)) for field_name, obj in list(attrs.items()) if isinstance(obj, Field)] fields.sort(key=lambda x: x[1]._creation_counter) # If this class is subclassing another Serializer, add that Serializer's # fields. Note that we loop over the bases in *reverse*. This is necessary # in order to maintain the correct order of fields. for base in reversed(bases): if hasattr(base, '_declared_fields'): fields = [ (field_name, obj) for field_name, obj in base._declared_fields.items() if field_name not in attrs ] + fields return OrderedDict(fields) def __new__(cls, name, bases, attrs): attrs['_declared_fields'] = cls._get_declared_fields(bases, attrs) return super(SerializerMetaclass, cls).__new__(cls, name, bases, attrs) def as_serializer_error(exc): assert isinstance(exc, (ValidationError, DjangoValidationError)) if isinstance(exc, DjangoValidationError): detail = get_error_detail(exc) else: detail = exc.detail if isinstance(detail, Mapping): # If errors may be a dict we use the standard {key: list of values}. # Here we ensure that all the values are *lists* of errors. return { key: value if isinstance(value, (list, Mapping)) else [value] for key, value in detail.items() } elif isinstance(detail, list): # Errors raised as a list are non-field errors. return { api_settings.NON_FIELD_ERRORS_KEY: detail } # Errors raised as a string are non-field errors. return { api_settings.NON_FIELD_ERRORS_KEY: [detail] } @six.add_metaclass(SerializerMetaclass) class Serializer(BaseSerializer): default_error_messages = { 'invalid': _('Invalid data. Expected a dictionary, but got {datatype}.') } @property def fields(self): """ A dictionary of {field_name: field_instance}. """ # `fields` is evaluated lazily. We do this to ensure that we don't # have issues importing modules that use ModelSerializers as fields, # even if Django's app-loading stage has not yet run. if not hasattr(self, '_fields'): self._fields = BindingDict(self) for key, value in self.get_fields().items(): self._fields[key] = value return self._fields @cached_property def _writable_fields(self): return [ field for field in self.fields.values() if not field.read_only ] @cached_property def _readable_fields(self): return [ field for field in self.fields.values() if not field.write_only ] def get_fields(self): """ Returns a dictionary of {field_name: field_instance}. """ # Every new serializer is created with a clone of the field instances. # This allows users to dynamically modify the fields on a serializer # instance without affecting every other serializer instance. return copy.deepcopy(self._declared_fields) def get_validators(self): """ Returns a list of validator callables. """ # Used by the lazily-evaluated `validators` property. meta = getattr(self, 'Meta', None) validators = getattr(meta, 'validators', None) return validators[:] if validators else [] def get_initial(self): if hasattr(self, 'initial_data'): # initial_data may not be a valid type if not isinstance(self.initial_data, Mapping): return OrderedDict() return OrderedDict([ (field_name, field.get_value(self.initial_data)) for field_name, field in self.fields.items() if (field.get_value(self.initial_data) is not empty) and not field.read_only ]) return OrderedDict([ (field.field_name, field.get_initial()) for field in self.fields.values() if not field.read_only ]) def get_value(self, dictionary): # We override the default field access in order to support # nested HTML forms. if html.is_html_input(dictionary): return html.parse_html_dict(dictionary, prefix=self.field_name) or empty return dictionary.get(self.field_name, empty) def run_validation(self, data=empty): """ We override the default `run_validation`, because the validation performed by validators and the `.validate()` method should be coerced into an error dictionary with a 'non_fields_error' key. """ (is_empty_value, data) = self.validate_empty_values(data) if is_empty_value: return data value = self.to_internal_value(data) try: self.run_validators(value) value = self.validate(value) assert value is not None, '.validate() should return the validated data' except (ValidationError, DjangoValidationError) as exc: raise ValidationError(detail=as_serializer_error(exc)) return value def _read_only_defaults(self): fields = [ field for field in self.fields.values() if (field.read_only) and (field.default != empty) and (field.source != '*') and ('.' not in field.source) ] defaults = OrderedDict() for field in fields: try: default = field.get_default() except SkipField: continue defaults[field.field_name] = default return defaults def run_validators(self, value): """ Add read_only fields with defaults to value before running validators. """ to_validate = self._read_only_defaults() to_validate.update(value) super(Serializer, self).run_validators(to_validate) def to_internal_value(self, data): """ Dict of native values <- Dict of primitive datatypes. """ if not isinstance(data, Mapping): message = self.error_messages['invalid'].format( datatype=type(data).__name__ ) raise ValidationError({ api_settings.NON_FIELD_ERRORS_KEY: [message] }, code='invalid') ret = OrderedDict() errors = OrderedDict() fields = self._writable_fields for field in fields: validate_method = getattr(self, 'validate_' + field.field_name, None) primitive_value = field.get_value(data) try: validated_value = field.run_validation(primitive_value) if validate_method is not None: validated_value = validate_method(validated_value) except ValidationError as exc: errors[field.field_name] = exc.detail except DjangoValidationError as exc: errors[field.field_name] = get_error_detail(exc) except SkipField: pass else: set_value(ret, field.source_attrs, validated_value) if errors: raise ValidationError(errors) return ret def to_representation(self, instance): """ Object instance -> Dict of primitive datatypes. """ ret = OrderedDict() fields = self._readable_fields for field in fields: try: attribute = field.get_attribute(instance) except SkipField: continue # We skip `to_representation` for `None` values so that fields do # not have to explicitly deal with that case. # # For related fields with `use_pk_only_optimization` we need to # resolve the pk value. check_for_none = attribute.pk if isinstance(attribute, PKOnlyObject) else attribute if check_for_none is None: ret[field.field_name] = None else: ret[field.field_name] = field.to_representation(attribute) return ret def validate(self, attrs): return attrs def __repr__(self): return unicode_to_repr(representation.serializer_repr(self, indent=1)) # The following are used for accessing `BoundField` instances on the # serializer, for the purposes of presenting a form-like API onto the # field values and field errors. def __iter__(self): for field in self.fields.values(): yield self[field.field_name] def __getitem__(self, key): field = self.fields[key] value = self.data.get(key) error = self.errors.get(key) if hasattr(self, '_errors') else None if isinstance(field, Serializer): return NestedBoundField(field, value, error) if isinstance(field, JSONField): return JSONBoundField(field, value, error) return BoundField(field, value, error) # Include a backlink to the serializer class on return objects. # Allows renderers such as HTMLFormRenderer to get the full field info. @property def data(self): ret = super(Serializer, self).data return ReturnDict(ret, serializer=self) @property def errors(self): ret = super(Serializer, self).errors if isinstance(ret, list) and len(ret) == 1 and getattr(ret[0], 'code', None) == 'null': # Edge case. Provide a more descriptive error than # "this field may not be null", when no data is passed. detail = ErrorDetail('No data provided', code='null') ret = {api_settings.NON_FIELD_ERRORS_KEY: [detail]} return ReturnDict(ret, serializer=self) # There's some replication of `ListField` here, # but that's probably better than obfuscating the call hierarchy. class ListSerializer(BaseSerializer): child = None many = True default_error_messages = { 'not_a_list': _('Expected a list of items but got type "{input_type}".'), 'empty': _('This list may not be empty.') } def __init__(self, *args, **kwargs): self.child = kwargs.pop('child', copy.deepcopy(self.child)) self.allow_empty = kwargs.pop('allow_empty', True) assert self.child is not None, '`child` is a required argument.' assert not inspect.isclass(self.child), '`child` has not been instantiated.' super(ListSerializer, self).__init__(*args, **kwargs) self.child.bind(field_name='', parent=self) def bind(self, field_name, parent): super(ListSerializer, self).bind(field_name, parent) self.partial = self.parent.partial def get_initial(self): if hasattr(self, 'initial_data'): return self.to_representation(self.initial_data) return [] def get_value(self, dictionary): """ Given the input dictionary, return the field value. """ # We override the default field access in order to support # lists in HTML forms. if html.is_html_input(dictionary): return html.parse_html_list(dictionary, prefix=self.field_name) return dictionary.get(self.field_name, empty) def run_validation(self, data=empty): """ We override the default `run_validation`, because the validation performed by validators and the `.validate()` method should be coerced into an error dictionary with a 'non_fields_error' key. """ (is_empty_value, data) = self.validate_empty_values(data) if is_empty_value: return data value = self.to_internal_value(data) try: self.run_validators(value) value = self.validate(value) assert value is not None, '.validate() should return the validated data' except (ValidationError, DjangoValidationError) as exc: raise ValidationError(detail=as_serializer_error(exc)) return value def to_internal_value(self, data): """ List of dicts of native values <- List of dicts of primitive datatypes. """ if html.is_html_input(data): data = html.parse_html_list(data) if not isinstance(data, list): message = self.error_messages['not_a_list'].format( input_type=type(data).__name__ ) raise ValidationError({ api_settings.NON_FIELD_ERRORS_KEY: [message] }, code='not_a_list') if not self.allow_empty and len(data) == 0: if self.parent and self.partial: raise SkipField() message = self.error_messages['empty'] raise ValidationError({ api_settings.NON_FIELD_ERRORS_KEY: [message] }, code='empty') ret = [] errors = [] for item in data: try: validated = self.child.run_validation(item) except ValidationError as exc: errors.append(exc.detail) else: ret.append(validated) errors.append({}) if any(errors): raise ValidationError(errors) return ret def to_representation(self, data): """ List of object instances -> List of dicts of primitive datatypes. """ # Dealing with nested relationships, data can be a Manager, # so, first get a queryset from the Manager if needed iterable = data.all() if isinstance(data, models.Manager) else data return [ self.child.to_representation(item) for item in iterable ] def validate(self, attrs): return attrs def update(self, instance, validated_data): raise NotImplementedError( "Serializers with many=True do not support multiple update by " "default, only multiple create. For updates it is unclear how to " "deal with insertions and deletions. If you need to support " "multiple update, use a `ListSerializer` class and override " "`.update()` so you can specify the behavior exactly." ) def create(self, validated_data): return [ self.child.create(attrs) for attrs in validated_data ] def save(self, **kwargs): """ Save and return a list of object instances. """ # Guard against incorrect use of `serializer.save(commit=False)` assert 'commit' not in kwargs, ( "'commit' is not a valid keyword argument to the 'save()' method. " "If you need to access data before committing to the database then " "inspect 'serializer.validated_data' instead. " "You can also pass additional keyword arguments to 'save()' if you " "need to set extra attributes on the saved model instance. " "For example: 'serializer.save(owner=request.user)'.'" ) validated_data = [ dict(list(attrs.items()) + list(kwargs.items())) for attrs in self.validated_data ] if self.instance is not None: self.instance = self.update(self.instance, validated_data) assert self.instance is not None, ( '`update()` did not return an object instance.' ) else: self.instance = self.create(validated_data) assert self.instance is not None, ( '`create()` did not return an object instance.' ) return self.instance def is_valid(self, raise_exception=False): # This implementation is the same as the default, # except that we use lists, rather than dicts, as the empty case. assert hasattr(self, 'initial_data'), ( 'Cannot call `.is_valid()` as no `data=` keyword argument was ' 'passed when instantiating the serializer instance.' ) if not hasattr(self, '_validated_data'): try: self._validated_data = self.run_validation(self.initial_data) except ValidationError as exc: self._validated_data = [] self._errors = exc.detail else: self._errors = [] if self._errors and raise_exception: raise ValidationError(self.errors) return not bool(self._errors) def __repr__(self): return unicode_to_repr(representation.list_repr(self, indent=1)) # Include a backlink to the serializer class on return objects. # Allows renderers such as HTMLFormRenderer to get the full field info. @property def data(self): ret = super(ListSerializer, self).data return ReturnList(ret, serializer=self) @property def errors(self): ret = super(ListSerializer, self).errors if isinstance(ret, list) and len(ret) == 1 and getattr(ret[0], 'code', None) == 'null': # Edge case. Provide a more descriptive error than # "this field may not be null", when no data is passed. detail = ErrorDetail('No data provided', code='null') ret = {api_settings.NON_FIELD_ERRORS_KEY: [detail]} if isinstance(ret, dict): return ReturnDict(ret, serializer=self) return ReturnList(ret, serializer=self) # ModelSerializer & HyperlinkedModelSerializer # -------------------------------------------- def raise_errors_on_nested_writes(method_name, serializer, validated_data): """ Give explicit errors when users attempt to pass writable nested data. If we don't do this explicitly they'd get a less helpful error when calling `.save()` on the serializer. We don't *automatically* support these sorts of nested writes because there are too many ambiguities to define a default behavior. Eg. Suppose we have a `UserSerializer` with a nested profile. How should we handle the case of an update, where the `profile` relationship does not exist? Any of the following might be valid: * Raise an application error. * Silently ignore the nested part of the update. * Automatically create a profile instance. """ # Ensure we don't have a writable nested field. For example: # # class UserSerializer(ModelSerializer): # ... # profile = ProfileSerializer() assert not any( isinstance(field, BaseSerializer) and (field.source in validated_data) and isinstance(validated_data[field.source], (list, dict)) for field in serializer._writable_fields ), ( 'The `.{method_name}()` method does not support writable nested ' 'fields by default.\nWrite an explicit `.{method_name}()` method for ' 'serializer `{module}.{class_name}`, or set `read_only=True` on ' 'nested serializer fields.'.format( method_name=method_name, module=serializer.__class__.__module__, class_name=serializer.__class__.__name__ ) ) # Ensure we don't have a writable dotted-source field. For example: # # class UserSerializer(ModelSerializer): # ... # address = serializer.CharField('profile.address') assert not any( '.' in field.source and (key in validated_data) and isinstance(validated_data[key], (list, dict)) for key, field in serializer.fields.items() ), ( 'The `.{method_name}()` method does not support writable dotted-source ' 'fields by default.\nWrite an explicit `.{method_name}()` method for ' 'serializer `{module}.{class_name}`, or set `read_only=True` on ' 'dotted-source serializer fields.'.format( method_name=method_name, module=serializer.__class__.__module__, class_name=serializer.__class__.__name__ ) ) class ModelSerializer(Serializer): """ A `ModelSerializer` is just a regular `Serializer`, except that: * A set of default fields are automatically populated. * A set of default validators are automatically populated. * Default `.create()` and `.update()` implementations are provided. The process of automatically determining a set of serializer fields based on the model fields is reasonably complex, but you almost certainly don't need to dig into the implementation. If the `ModelSerializer` class *doesn't* generate the set of fields that you need you should either declare the extra/differing fields explicitly on the serializer class, or simply use a `Serializer` class. """ serializer_field_mapping = { models.AutoField: IntegerField, models.BigIntegerField: IntegerField, models.BooleanField: BooleanField, models.CharField: CharField, models.CommaSeparatedIntegerField: CharField, models.DateField: DateField, models.DateTimeField: DateTimeField, models.DecimalField: DecimalField, models.EmailField: EmailField, models.Field: ModelField, models.FileField: FileField, models.FloatField: FloatField, models.ImageField: ImageField, models.IntegerField: IntegerField, models.NullBooleanField: NullBooleanField, models.PositiveIntegerField: IntegerField, models.PositiveSmallIntegerField: IntegerField, models.SlugField: SlugField, models.SmallIntegerField: IntegerField, models.TextField: CharField, models.TimeField: TimeField, models.URLField: URLField, models.GenericIPAddressField: IPAddressField, models.FilePathField: FilePathField, } if ModelDurationField is not None: serializer_field_mapping[ModelDurationField] = DurationField serializer_related_field = PrimaryKeyRelatedField serializer_related_to_field = SlugRelatedField serializer_url_field = HyperlinkedIdentityField serializer_choice_field = ChoiceField # The field name for hyperlinked identity fields. Defaults to 'url'. # You can modify this using the API setting. # # Note that if you instead need modify this on a per-serializer basis, # you'll also need to ensure you update the `create` method on any generic # views, to correctly handle the 'Location' response header for # "HTTP 201 Created" responses. url_field_name = None # Default `create` and `update` behavior... def create(self, validated_data): """ We have a bit of extra checking around this in order to provide descriptive messages when something goes wrong, but this method is essentially just: return ExampleModel.objects.create(**validated_data) If there are many to many fields present on the instance then they cannot be set until the model is instantiated, in which case the implementation is like so: example_relationship = validated_data.pop('example_relationship') instance = ExampleModel.objects.create(**validated_data) instance.example_relationship = example_relationship return instance The default implementation also does not handle nested relationships. If you want to support writable nested relationships you'll need to write an explicit `.create()` method. """ raise_errors_on_nested_writes('create', self, validated_data) ModelClass = self.Meta.model # Remove many-to-many relationships from validated_data. # They are not valid arguments to the default `.create()` method, # as they require that the instance has already been saved. info = model_meta.get_field_info(ModelClass) many_to_many = {} for field_name, relation_info in info.relations.items(): if relation_info.to_many and (field_name in validated_data): many_to_many[field_name] = validated_data.pop(field_name) try: instance = ModelClass.objects.create(**validated_data) except TypeError: tb = traceback.format_exc() msg = ( 'Got a `TypeError` when calling `%s.objects.create()`. ' 'This may be because you have a writable field on the ' 'serializer class that is not a valid argument to ' '`%s.objects.create()`. You may need to make the field ' 'read-only, or override the %s.create() method to handle ' 'this correctly.\nOriginal exception was:\n %s' % ( ModelClass.__name__, ModelClass.__name__, self.__class__.__name__, tb ) ) raise TypeError(msg) # Save many-to-many relationships after the instance is created. if many_to_many: for field_name, value in many_to_many.items(): field = getattr(instance, field_name) field.set(value) return instance def update(self, instance, validated_data): raise_errors_on_nested_writes('update', self, validated_data) info = model_meta.get_field_info(instance) # Simply set each attribute on the instance, and then save it. # Note that unlike `.create()` we don't need to treat many-to-many # relationships as being a special case. During updates we already # have an instance pk for the relationships to be associated with. for attr, value in validated_data.items(): if attr in info.relations and info.relations[attr].to_many: field = getattr(instance, attr) field.set(value) else: setattr(instance, attr, value) instance.save() return instance # Determine the fields to apply... def get_fields(self): """ Return the dict of field names -> field instances that should be used for `self.fields` when instantiating the serializer. """ if self.url_field_name is None: self.url_field_name = api_settings.URL_FIELD_NAME assert hasattr(self, 'Meta'), ( 'Class {serializer_class} missing "Meta" attribute'.format( serializer_class=self.__class__.__name__ ) ) assert hasattr(self.Meta, 'model'), ( 'Class {serializer_class} missing "Meta.model" attribute'.format( serializer_class=self.__class__.__name__ ) ) if model_meta.is_abstract_model(self.Meta.model): raise ValueError( 'Cannot use ModelSerializer with Abstract Models.' ) declared_fields = copy.deepcopy(self._declared_fields) model = getattr(self.Meta, 'model') depth = getattr(self.Meta, 'depth', 0) if depth is not None: assert depth >= 0, "'depth' may not be negative." assert depth <= 10, "'depth' may not be greater than 10." # Retrieve metadata about fields & relationships on the model class. info = model_meta.get_field_info(model) field_names = self.get_field_names(declared_fields, info) # Determine any extra field arguments and hidden fields that # should be included extra_kwargs = self.get_extra_kwargs() extra_kwargs, hidden_fields = self.get_uniqueness_extra_kwargs( field_names, declared_fields, extra_kwargs ) # Determine the fields that should be included on the serializer. fields = OrderedDict() for field_name in field_names: # If the field is explicitly declared on the class then use that. if field_name in declared_fields: fields[field_name] = declared_fields[field_name] continue extra_field_kwargs = extra_kwargs.get(field_name, {}) source = extra_field_kwargs.get('source', '*') if source == '*': source = field_name # Determine the serializer field class and keyword arguments. field_class, field_kwargs = self.build_field( source, info, model, depth ) # Include any kwargs defined in `Meta.extra_kwargs` field_kwargs = self.include_extra_kwargs( field_kwargs, extra_field_kwargs ) # Create the serializer field. fields[field_name] = field_class(**field_kwargs) # Add in any hidden fields. fields.update(hidden_fields) return fields # Methods for determining the set of field names to include... def get_field_names(self, declared_fields, info): """ Returns the list of all field names that should be created when instantiating this serializer class. This is based on the default set of fields, but also takes into account the `Meta.fields` or `Meta.exclude` options if they have been specified. """ fields = getattr(self.Meta, 'fields', None) exclude = getattr(self.Meta, 'exclude', None) if fields and fields != ALL_FIELDS and not isinstance(fields, (list, tuple)): raise TypeError( 'The `fields` option must be a list or tuple or "__all__". ' 'Got %s.' % type(fields).__name__ ) if exclude and not isinstance(exclude, (list, tuple)): raise TypeError( 'The `exclude` option must be a list or tuple. Got %s.' % type(exclude).__name__ ) assert not (fields and exclude), ( "Cannot set both 'fields' and 'exclude' options on " "serializer {serializer_class}.".format( serializer_class=self.__class__.__name__ ) ) assert not (fields is None and exclude is None), ( "Creating a ModelSerializer without either the 'fields' attribute " "or the 'exclude' attribute has been deprecated since 3.3.0, " "and is now disallowed. Add an explicit fields = '__all__' to the " "{serializer_class} serializer.".format( serializer_class=self.__class__.__name__ ), ) if fields == ALL_FIELDS: fields = None if fields is not None: # Ensure that all declared fields have also been included in the # `Meta.fields` option. # Do not require any fields that are declared in a parent class, # in order to allow serializer subclasses to only include # a subset of fields. required_field_names = set(declared_fields) for cls in self.__class__.__bases__: required_field_names -= set(getattr(cls, '_declared_fields', [])) for field_name in required_field_names: assert field_name in fields, ( "The field '{field_name}' was declared on serializer " "{serializer_class}, but has not been included in the " "'fields' option.".format( field_name=field_name, serializer_class=self.__class__.__name__ ) ) return fields # Use the default set of field names if `Meta.fields` is not specified. fields = self.get_default_field_names(declared_fields, info) if exclude is not None: # If `Meta.exclude` is included, then remove those fields. for field_name in exclude: assert field_name not in self._declared_fields, ( "Cannot both declare the field '{field_name}' and include " "it in the {serializer_class} 'exclude' option. Remove the " "field or, if inherited from a parent serializer, disable " "with `{field_name} = None`." .format( field_name=field_name, serializer_class=self.__class__.__name__ ) ) assert field_name in fields, ( "The field '{field_name}' was included on serializer " "{serializer_class} in the 'exclude' option, but does " "not match any model field.".format( field_name=field_name, serializer_class=self.__class__.__name__ ) ) fields.remove(field_name) return fields def get_default_field_names(self, declared_fields, model_info): """ Return the default list of field names that will be used if the `Meta.fields` option is not specified. """ return ( [model_info.pk.name] + list(declared_fields) + list(model_info.fields) + list(model_info.forward_relations) ) # Methods for constructing serializer fields... def build_field(self, field_name, info, model_class, nested_depth): """ Return a two tuple of (cls, kwargs) to build a serializer field with. """ if field_name in info.fields_and_pk: model_field = info.fields_and_pk[field_name] return self.build_standard_field(field_name, model_field) elif field_name in info.relations: relation_info = info.relations[field_name] if not nested_depth: return self.build_relational_field(field_name, relation_info) else: return self.build_nested_field(field_name, relation_info, nested_depth) elif hasattr(model_class, field_name): return self.build_property_field(field_name, model_class) elif field_name == self.url_field_name: return self.build_url_field(field_name, model_class) return self.build_unknown_field(field_name, model_class) def build_standard_field(self, field_name, model_field): """ Create regular model fields. """ field_mapping = ClassLookupDict(self.serializer_field_mapping) field_class = field_mapping[model_field] field_kwargs = get_field_kwargs(field_name, model_field) # Special case to handle when a OneToOneField is also the primary key if model_field.one_to_one and model_field.primary_key: field_class = self.serializer_related_field field_kwargs['queryset'] = model_field.related_model.objects if 'choices' in field_kwargs: # Fields with choices get coerced into `ChoiceField` # instead of using their regular typed field. field_class = self.serializer_choice_field # Some model fields may introduce kwargs that would not be valid # for the choice field. We need to strip these out. # Eg. models.DecimalField(max_digits=3, decimal_places=1, choices=DECIMAL_CHOICES) valid_kwargs = { 'read_only', 'write_only', 'required', 'default', 'initial', 'source', 'label', 'help_text', 'style', 'error_messages', 'validators', 'allow_null', 'allow_blank', 'choices' } for key in list(field_kwargs): if key not in valid_kwargs: field_kwargs.pop(key) if not issubclass(field_class, ModelField): # `model_field` is only valid for the fallback case of # `ModelField`, which is used when no other typed field # matched to the model field. field_kwargs.pop('model_field', None) if not issubclass(field_class, CharField) and not issubclass(field_class, ChoiceField): # `allow_blank` is only valid for textual fields. field_kwargs.pop('allow_blank', None) if postgres_fields and isinstance(model_field, postgres_fields.ArrayField): # Populate the `child` argument on `ListField` instances generated # for the PostgreSQL specific `ArrayField`. child_model_field = model_field.base_field child_field_class, child_field_kwargs = self.build_standard_field( 'child', child_model_field ) field_kwargs['child'] = child_field_class(**child_field_kwargs) return field_class, field_kwargs def build_relational_field(self, field_name, relation_info): """ Create fields for forward and reverse relationships. """ field_class = self.serializer_related_field field_kwargs = get_relation_kwargs(field_name, relation_info) to_field = field_kwargs.pop('to_field', None) if to_field and not relation_info.reverse and not relation_info.related_model._meta.get_field(to_field).primary_key: field_kwargs['slug_field'] = to_field field_class = self.serializer_related_to_field # `view_name` is only valid for hyperlinked relationships. if not issubclass(field_class, HyperlinkedRelatedField): field_kwargs.pop('view_name', None) return field_class, field_kwargs def build_nested_field(self, field_name, relation_info, nested_depth): """ Create nested fields for forward and reverse relationships. """ class NestedSerializer(ModelSerializer): class Meta: model = relation_info.related_model depth = nested_depth - 1 fields = '__all__' field_class = NestedSerializer field_kwargs = get_nested_relation_kwargs(relation_info) return field_class, field_kwargs def build_property_field(self, field_name, model_class): """ Create a read only field for model methods and properties. """ field_class = ReadOnlyField field_kwargs = {} return field_class, field_kwargs def build_url_field(self, field_name, model_class): """ Create a field representing the object's own URL. """ field_class = self.serializer_url_field field_kwargs = get_url_kwargs(model_class) return field_class, field_kwargs def build_unknown_field(self, field_name, model_class): """ Raise an error on any unknown fields. """ raise ImproperlyConfigured( 'Field name `%s` is not valid for model `%s`.' % (field_name, model_class.__name__) ) def include_extra_kwargs(self, kwargs, extra_kwargs): """ Include any 'extra_kwargs' that have been included for this field, possibly removing any incompatible existing keyword arguments. """ if extra_kwargs.get('read_only', False): for attr in [ 'required', 'default', 'allow_blank', 'allow_null', 'min_length', 'max_length', 'min_value', 'max_value', 'validators', 'queryset' ]: kwargs.pop(attr, None) if extra_kwargs.get('default') and kwargs.get('required') is False: kwargs.pop('required') if extra_kwargs.get('read_only', kwargs.get('read_only', False)): extra_kwargs.pop('required', None) # Read only fields should always omit the 'required' argument. kwargs.update(extra_kwargs) return kwargs # Methods for determining additional keyword arguments to apply... def get_extra_kwargs(self): """ Return a dictionary mapping field names to a dictionary of additional keyword arguments. """ extra_kwargs = copy.deepcopy(getattr(self.Meta, 'extra_kwargs', {})) read_only_fields = getattr(self.Meta, 'read_only_fields', None) if read_only_fields is not None: if not isinstance(read_only_fields, (list, tuple)): raise TypeError( 'The `read_only_fields` option must be a list or tuple. ' 'Got %s.' % type(read_only_fields).__name__ ) for field_name in read_only_fields: kwargs = extra_kwargs.get(field_name, {}) kwargs['read_only'] = True extra_kwargs[field_name] = kwargs else: # Guard against the possible misspelling `readonly_fields` (used # by the Django admin and others). assert not hasattr(self.Meta, 'readonly_fields'), ( 'Serializer `%s.%s` has field `readonly_fields`; ' 'the correct spelling for the option is `read_only_fields`.' % (self.__class__.__module__, self.__class__.__name__) ) return extra_kwargs def get_uniqueness_extra_kwargs(self, field_names, declared_fields, extra_kwargs): """ Return any additional field options that need to be included as a result of uniqueness constraints on the model. This is returned as a two-tuple of: ('dict of updated extra kwargs', 'mapping of hidden fields') """ if getattr(self.Meta, 'validators', None) is not None: return (extra_kwargs, {}) model = getattr(self.Meta, 'model') model_fields = self._get_model_fields( field_names, declared_fields, extra_kwargs ) # Determine if we need any additional `HiddenField` or extra keyword # arguments to deal with `unique_for` dates that are required to # be in the input data in order to validate it. unique_constraint_names = set() for model_field in model_fields.values(): # Include each of the `unique_for_*` field names. unique_constraint_names |= {model_field.unique_for_date, model_field.unique_for_month, model_field.unique_for_year} unique_constraint_names -= {None} # Include each of the `unique_together` field names, # so long as all the field names are included on the serializer. for parent_class in [model] + list(model._meta.parents): for unique_together_list in parent_class._meta.unique_together: if set(field_names).issuperset(set(unique_together_list)): unique_constraint_names |= set(unique_together_list) # Now we have all the field names that have uniqueness constraints # applied, we can add the extra 'required=...' or 'default=...' # arguments that are appropriate to these fields, or add a `HiddenField` for it. hidden_fields = {} uniqueness_extra_kwargs = {} for unique_constraint_name in unique_constraint_names: # Get the model field that is referred too. unique_constraint_field = model._meta.get_field(unique_constraint_name) if getattr(unique_constraint_field, 'auto_now_add', None): default = CreateOnlyDefault(timezone.now) elif getattr(unique_constraint_field, 'auto_now', None): default = timezone.now elif unique_constraint_field.has_default(): default = unique_constraint_field.default else: default = empty if unique_constraint_name in model_fields: # The corresponding field is present in the serializer if default is empty: uniqueness_extra_kwargs[unique_constraint_name] = {'required': True} else: uniqueness_extra_kwargs[unique_constraint_name] = {'default': default} elif default is not empty: # The corresponding field is not present in the # serializer. We have a default to use for it, so # add in a hidden field that populates it. hidden_fields[unique_constraint_name] = HiddenField(default=default) # Update `extra_kwargs` with any new options. for key, value in uniqueness_extra_kwargs.items(): if key in extra_kwargs: value.update(extra_kwargs[key]) extra_kwargs[key] = value return extra_kwargs, hidden_fields def _get_model_fields(self, field_names, declared_fields, extra_kwargs): """ Returns all the model fields that are being mapped to by fields on the serializer class. Returned as a dict of 'model field name' -> 'model field'. Used internally by `get_uniqueness_field_options`. """ model = getattr(self.Meta, 'model') model_fields = {} for field_name in field_names: if field_name in declared_fields: # If the field is declared on the serializer field = declared_fields[field_name] source = field.source or field_name else: try: source = extra_kwargs[field_name]['source'] except KeyError: source = field_name if '.' in source or source == '*': # Model fields will always have a simple source mapping, # they can't be nested attribute lookups. continue try: field = model._meta.get_field(source) if isinstance(field, DjangoModelField): model_fields[source] = field except FieldDoesNotExist: pass return model_fields # Determine the validators to apply... def get_validators(self): """ Determine the set of validators to use when instantiating serializer. """ # If the validators have been declared explicitly then use that. validators = getattr(getattr(self, 'Meta', None), 'validators', None) if validators is not None: return validators[:] # Otherwise use the default set of validators. return ( self.get_unique_together_validators() + self.get_unique_for_date_validators() ) def get_unique_together_validators(self): """ Determine a default set of validators for any unique_together constraints. """ model_class_inheritance_tree = ( [self.Meta.model] + list(self.Meta.model._meta.parents) ) # The field names we're passing though here only include fields # which may map onto a model field. Any dotted field name lookups # cannot map to a field, and must be a traversal, so we're not # including those. field_names = { field.source for field in self._writable_fields if (field.source != '*') and ('.' not in field.source) } # Special Case: Add read_only fields with defaults. field_names |= { field.source for field in self.fields.values() if (field.read_only) and (field.default != empty) and (field.source != '*') and ('.' not in field.source) } # Note that we make sure to check `unique_together` both on the # base model class, but also on any parent classes. validators = [] for parent_class in model_class_inheritance_tree: for unique_together in parent_class._meta.unique_together: if field_names.issuperset(set(unique_together)): validator = UniqueTogetherValidator( queryset=parent_class._default_manager, fields=unique_together ) validators.append(validator) return validators def get_unique_for_date_validators(self): """ Determine a default set of validators for the following constraints: * unique_for_date * unique_for_month * unique_for_year """ info = model_meta.get_field_info(self.Meta.model) default_manager = self.Meta.model._default_manager field_names = [field.source for field in self.fields.values()] validators = [] for field_name, field in info.fields_and_pk.items(): if field.unique_for_date and field_name in field_names: validator = UniqueForDateValidator( queryset=default_manager, field=field_name, date_field=field.unique_for_date ) validators.append(validator) if field.unique_for_month and field_name in field_names: validator = UniqueForMonthValidator( queryset=default_manager, field=field_name, date_field=field.unique_for_month ) validators.append(validator) if field.unique_for_year and field_name in field_names: validator = UniqueForYearValidator( queryset=default_manager, field=field_name, date_field=field.unique_for_year ) validators.append(validator) return validators if hasattr(models, 'UUIDField'): ModelSerializer.serializer_field_mapping[models.UUIDField] = UUIDField # IPAddressField is deprecated in Django if hasattr(models, 'IPAddressField'): ModelSerializer.serializer_field_mapping[models.IPAddressField] = IPAddressField if postgres_fields: ModelSerializer.serializer_field_mapping[postgres_fields.HStoreField] = HStoreField ModelSerializer.serializer_field_mapping[postgres_fields.ArrayField] = ListField ModelSerializer.serializer_field_mapping[postgres_fields.JSONField] = JSONField class HyperlinkedModelSerializer(ModelSerializer): """ A type of `ModelSerializer` that uses hyperlinked relationships instead of primary key relationships. Specifically: * A 'url' field is included instead of the 'id' field. * Relationships to other instances are hyperlinks, instead of primary keys. """ serializer_related_field = HyperlinkedRelatedField def get_default_field_names(self, declared_fields, model_info): """ Return the default list of field names that will be used if the `Meta.fields` option is not specified. """ return ( [self.url_field_name] + list(declared_fields) + list(model_info.fields) + list(model_info.forward_relations) ) def build_nested_field(self, field_name, relation_info, nested_depth): """ Create nested fields for forward and reverse relationships. """ class NestedSerializer(HyperlinkedModelSerializer): class Meta: model = relation_info.related_model depth = nested_depth - 1 fields = '__all__' field_class = NestedSerializer field_kwargs = get_nested_relation_kwargs(relation_info) return field_class, field_kwargs ================================================ FILE: jet_django/deps/rest_framework/settings.py ================================================ """ Settings for REST framework are all namespaced in the REST_FRAMEWORK setting. For example your project's `settings.py` file might look like this: REST_FRAMEWORK = { 'DEFAULT_RENDERER_CLASSES': ( 'jet_django.deps.rest_framework.renderers.JSONRenderer', 'jet_django.deps.rest_framework.renderers.TemplateHTMLRenderer', ) 'DEFAULT_PARSER_CLASSES': ( 'jet_django.deps.rest_framework.parsers.JSONParser', 'jet_django.deps.rest_framework.parsers.FormParser', 'jet_django.deps.rest_framework.parsers.MultiPartParser' ) } This module provides the `api_setting` object, that is used to access REST framework settings, checking for user settings first, then falling back to the defaults. """ from __future__ import unicode_literals from importlib import import_module from jet_django import settings from django.test.signals import setting_changed from django.utils import six from jet_django.deps.rest_framework import ISO_8601 DEFAULTS = { # Base API policies 'DEFAULT_RENDERER_CLASSES': ( 'jet_django.deps.rest_framework.renderers.JSONRenderer', 'jet_django.deps.rest_framework.renderers.BrowsableAPIRenderer', ), 'DEFAULT_PARSER_CLASSES': ( 'jet_django.deps.rest_framework.parsers.JSONParser', 'jet_django.deps.rest_framework.parsers.FormParser', 'jet_django.deps.rest_framework.parsers.MultiPartParser' ), 'DEFAULT_AUTHENTICATION_CLASSES': ( 'jet_django.deps.rest_framework.authentication.SessionAuthentication', 'jet_django.deps.rest_framework.authentication.BasicAuthentication' ), 'DEFAULT_PERMISSION_CLASSES': ( 'jet_django.deps.rest_framework.permissions.AllowAny', ), 'DEFAULT_THROTTLE_CLASSES': (), 'DEFAULT_CONTENT_NEGOTIATION_CLASS': 'jet_django.deps.rest_framework.negotiation.DefaultContentNegotiation', 'DEFAULT_METADATA_CLASS': 'jet_django.deps.rest_framework.metadata.SimpleMetadata', 'DEFAULT_VERSIONING_CLASS': None, # Generic view behavior 'DEFAULT_PAGINATION_CLASS': None, 'DEFAULT_FILTER_BACKENDS': (), # Schema 'DEFAULT_SCHEMA_CLASS': 'jet_django.deps.rest_framework.schemas.AutoSchema', # Throttling 'DEFAULT_THROTTLE_RATES': { 'user': None, 'anon': None, }, 'NUM_PROXIES': None, # Pagination 'PAGE_SIZE': None, # Filtering 'SEARCH_PARAM': 'search', 'ORDERING_PARAM': 'ordering', # Versioning 'DEFAULT_VERSION': None, 'ALLOWED_VERSIONS': None, 'VERSION_PARAM': 'version', # Authentication 'UNAUTHENTICATED_USER': 'django.contrib.auth.models.AnonymousUser', 'UNAUTHENTICATED_TOKEN': None, # View configuration 'VIEW_NAME_FUNCTION': 'jet_django.deps.rest_framework.views.get_view_name', 'VIEW_DESCRIPTION_FUNCTION': 'jet_django.deps.rest_framework.views.get_view_description', # Exception handling 'EXCEPTION_HANDLER': 'jet_django.deps.rest_framework.views.exception_handler', 'NON_FIELD_ERRORS_KEY': 'non_field_errors', # Testing 'TEST_REQUEST_RENDERER_CLASSES': ( 'jet_django.deps.rest_framework.renderers.MultiPartRenderer', 'jet_django.deps.rest_framework.renderers.JSONRenderer' ), 'TEST_REQUEST_DEFAULT_FORMAT': 'multipart', # Hyperlink settings 'URL_FORMAT_OVERRIDE': 'format', 'FORMAT_SUFFIX_KWARG': 'format', 'URL_FIELD_NAME': 'url', # Input and output formats 'DATE_FORMAT': ISO_8601, 'DATE_INPUT_FORMATS': (ISO_8601,), 'DATETIME_FORMAT': ISO_8601, 'DATETIME_INPUT_FORMATS': (ISO_8601,), 'TIME_FORMAT': ISO_8601, 'TIME_INPUT_FORMATS': (ISO_8601,), # Encoding 'UNICODE_JSON': True, 'COMPACT_JSON': True, 'STRICT_JSON': True, 'COERCE_DECIMAL_TO_STRING': True, 'UPLOADED_FILES_USE_URL': True, # Browseable API 'HTML_SELECT_CUTOFF': 1000, 'HTML_SELECT_CUTOFF_TEXT': "More than {count} items...", # Schemas 'SCHEMA_COERCE_PATH_PK': True, 'SCHEMA_COERCE_METHOD_NAMES': { 'retrieve': 'read', 'destroy': 'delete' }, } # List of settings that may be in string import notation. IMPORT_STRINGS = ( 'DEFAULT_RENDERER_CLASSES', 'DEFAULT_PARSER_CLASSES', 'DEFAULT_AUTHENTICATION_CLASSES', 'DEFAULT_PERMISSION_CLASSES', 'DEFAULT_THROTTLE_CLASSES', 'DEFAULT_CONTENT_NEGOTIATION_CLASS', 'DEFAULT_METADATA_CLASS', 'DEFAULT_VERSIONING_CLASS', 'DEFAULT_PAGINATION_CLASS', 'DEFAULT_FILTER_BACKENDS', 'DEFAULT_SCHEMA_CLASS', 'EXCEPTION_HANDLER', 'TEST_REQUEST_RENDERER_CLASSES', 'UNAUTHENTICATED_USER', 'UNAUTHENTICATED_TOKEN', 'VIEW_NAME_FUNCTION', 'VIEW_DESCRIPTION_FUNCTION' ) # List of settings that have been removed REMOVED_SETTINGS = ( "PAGINATE_BY", "PAGINATE_BY_PARAM", "MAX_PAGINATE_BY", ) def perform_import(val, setting_name): """ If the given setting is a string import notation, then perform the necessary import or imports. """ if val is None: return None elif isinstance(val, six.string_types): return import_from_string(val, setting_name) elif isinstance(val, (list, tuple)): return [import_from_string(item, setting_name) for item in val] return val def import_from_string(val, setting_name): """ Attempt to import a class from a string representation. """ try: # Nod to tastypie's use of importlib. module_path, class_name = val.rsplit('.', 1) module = import_module(module_path) return getattr(module, class_name) except (ImportError, AttributeError) as e: msg = "Could not import '%s' for API setting '%s'. %s: %s." % (val, setting_name, e.__class__.__name__, e) raise ImportError(msg) class APISettings(object): """ A settings object, that allows API settings to be accessed as properties. For example: from jet_django.deps.rest_framework.settings import api_settings print(api_settings.DEFAULT_RENDERER_CLASSES) Any setting with string import paths will be automatically resolved and return the class, rather than the string literal. """ def __init__(self, user_settings=None, defaults=None, import_strings=None): if user_settings: self._user_settings = self.__check_user_settings(user_settings) self.defaults = defaults or DEFAULTS self.import_strings = import_strings or IMPORT_STRINGS self._cached_attrs = set() @property def user_settings(self): if not hasattr(self, '_user_settings'): self._user_settings = getattr(settings, 'JET_REST_FRAMEWORK', {}) return self._user_settings def __getattr__(self, attr): if attr not in self.defaults: raise AttributeError("Invalid API setting: '%s'" % attr) try: # Check if present in user settings val = self.user_settings[attr] except KeyError: # Fall back to defaults val = self.defaults[attr] # Coerce import strings into classes if attr in self.import_strings: val = perform_import(val, attr) # Cache the result self._cached_attrs.add(attr) setattr(self, attr, val) return val def __check_user_settings(self, user_settings): SETTINGS_DOC = "http://www.django-rest-framework.org/api-guide/settings/" for setting in REMOVED_SETTINGS: if setting in user_settings: raise RuntimeError("The '%s' setting has been removed. Please refer to '%s' for available settings." % (setting, SETTINGS_DOC)) return user_settings def reload(self): for attr in self._cached_attrs: delattr(self, attr) self._cached_attrs.clear() if hasattr(self, '_user_settings'): delattr(self, '_user_settings') api_settings = APISettings(None, DEFAULTS, IMPORT_STRINGS) def reload_api_settings(*args, **kwargs): setting = kwargs['setting'] if setting == 'jet_django.deps.rest_framework': api_settings.reload() setting_changed.connect(reload_api_settings) ================================================ FILE: jet_django/deps/rest_framework/status.py ================================================ """ Descriptive HTTP status codes, for code readability. See RFC 2616 - https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html And RFC 6585 - https://tools.ietf.org/html/rfc6585 And RFC 4918 - https://tools.ietf.org/html/rfc4918 """ from __future__ import unicode_literals def is_informational(code): return 100 <= code <= 199 def is_success(code): return 200 <= code <= 299 def is_redirect(code): return 300 <= code <= 399 def is_client_error(code): return 400 <= code <= 499 def is_server_error(code): return 500 <= code <= 599 HTTP_100_CONTINUE = 100 HTTP_101_SWITCHING_PROTOCOLS = 101 HTTP_200_OK = 200 HTTP_201_CREATED = 201 HTTP_202_ACCEPTED = 202 HTTP_203_NON_AUTHORITATIVE_INFORMATION = 203 HTTP_204_NO_CONTENT = 204 HTTP_205_RESET_CONTENT = 205 HTTP_206_PARTIAL_CONTENT = 206 HTTP_207_MULTI_STATUS = 207 HTTP_300_MULTIPLE_CHOICES = 300 HTTP_301_MOVED_PERMANENTLY = 301 HTTP_302_FOUND = 302 HTTP_303_SEE_OTHER = 303 HTTP_304_NOT_MODIFIED = 304 HTTP_305_USE_PROXY = 305 HTTP_306_RESERVED = 306 HTTP_307_TEMPORARY_REDIRECT = 307 HTTP_400_BAD_REQUEST = 400 HTTP_401_UNAUTHORIZED = 401 HTTP_402_PAYMENT_REQUIRED = 402 HTTP_403_FORBIDDEN = 403 HTTP_404_NOT_FOUND = 404 HTTP_405_METHOD_NOT_ALLOWED = 405 HTTP_406_NOT_ACCEPTABLE = 406 HTTP_407_PROXY_AUTHENTICATION_REQUIRED = 407 HTTP_408_REQUEST_TIMEOUT = 408 HTTP_409_CONFLICT = 409 HTTP_410_GONE = 410 HTTP_411_LENGTH_REQUIRED = 411 HTTP_412_PRECONDITION_FAILED = 412 HTTP_413_REQUEST_ENTITY_TOO_LARGE = 413 HTTP_414_REQUEST_URI_TOO_LONG = 414 HTTP_415_UNSUPPORTED_MEDIA_TYPE = 415 HTTP_416_REQUESTED_RANGE_NOT_SATISFIABLE = 416 HTTP_417_EXPECTATION_FAILED = 417 HTTP_422_UNPROCESSABLE_ENTITY = 422 HTTP_423_LOCKED = 423 HTTP_424_FAILED_DEPENDENCY = 424 HTTP_428_PRECONDITION_REQUIRED = 428 HTTP_429_TOO_MANY_REQUESTS = 429 HTTP_431_REQUEST_HEADER_FIELDS_TOO_LARGE = 431 HTTP_451_UNAVAILABLE_FOR_LEGAL_REASONS = 451 HTTP_500_INTERNAL_SERVER_ERROR = 500 HTTP_501_NOT_IMPLEMENTED = 501 HTTP_502_BAD_GATEWAY = 502 HTTP_503_SERVICE_UNAVAILABLE = 503 HTTP_504_GATEWAY_TIMEOUT = 504 HTTP_505_HTTP_VERSION_NOT_SUPPORTED = 505 HTTP_507_INSUFFICIENT_STORAGE = 507 HTTP_511_NETWORK_AUTHENTICATION_REQUIRED = 511 ================================================ FILE: jet_django/deps/rest_framework/test.py ================================================ # -- coding: utf-8 -- # Note that we import as `DjangoRequestFactory` and `DjangoClient` in order # to make it harder for the user to import the wrong thing without realizing. from __future__ import unicode_literals import io from importlib import import_module from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.handlers.wsgi import WSGIHandler from django.test import override_settings, testcases from django.test.client import Client as DjangoClient from django.test.client import ClientHandler from django.test.client import RequestFactory as DjangoRequestFactory from django.utils import six from django.utils.encoding import force_bytes from django.utils.http import urlencode from jet_django.deps.rest_framework.compat import coreapi, requests from jet_django.deps.rest_framework.settings import api_settings def force_authenticate(request, user=None, token=None): request._force_auth_user = user request._force_auth_token = token if requests is not None: class HeaderDict(requests.packages.urllib3._collections.HTTPHeaderDict): def get_all(self, key, default): return self.getheaders(key) class MockOriginalResponse(object): def __init__(self, headers): self.msg = HeaderDict(headers) self.closed = False def isclosed(self): return self.closed def close(self): self.closed = True class DjangoTestAdapter(requests.adapters.HTTPAdapter): """ A transport adapter for `requests`, that makes requests via the Django WSGI app, rather than making actual HTTP requests over the network. """ def __init__(self): self.app = WSGIHandler() self.factory = DjangoRequestFactory() def get_environ(self, request): """ Given a `requests.PreparedRequest` instance, return a WSGI environ dict. """ method = request.method url = request.url kwargs = {} # Set request content, if any exists. if request.body is not None: if hasattr(request.body, 'read'): kwargs['data'] = request.body.read() else: kwargs['data'] = request.body if 'content-type' in request.headers: kwargs['content_type'] = request.headers['content-type'] # Set request headers. for key, value in request.headers.items(): key = key.upper() if key in ('CONNECTION', 'CONTENT-LENGTH', 'CONTENT-TYPE'): continue kwargs['HTTP_%s' % key.replace('-', '_')] = value return self.factory.generic(method, url, **kwargs).environ def send(self, request, *args, **kwargs): """ Make an outgoing request to the Django WSGI application. """ raw_kwargs = {} def start_response(wsgi_status, wsgi_headers): status, _, reason = wsgi_status.partition(' ') raw_kwargs['status'] = int(status) raw_kwargs['reason'] = reason raw_kwargs['headers'] = wsgi_headers raw_kwargs['version'] = 11 raw_kwargs['preload_content'] = False raw_kwargs['original_response'] = MockOriginalResponse(wsgi_headers) # Make the outgoing request via WSGI. environ = self.get_environ(request) wsgi_response = self.app(environ, start_response) # Build the underlying urllib3.HTTPResponse raw_kwargs['body'] = io.BytesIO(b''.join(wsgi_response)) raw = requests.packages.urllib3.HTTPResponse(**raw_kwargs) # Build the requests.Response return self.build_response(request, raw) def close(self): pass class RequestsClient(requests.Session): def __init__(self, *args, **kwargs): super(RequestsClient, self).__init__(*args, **kwargs) adapter = DjangoTestAdapter() self.mount('http://', adapter) self.mount('https://', adapter) def request(self, method, url, *args, **kwargs): if not url.startswith('http'): raise ValueError('Missing "http:" or "https:". Use a fully qualified URL, eg "http://testserver%s"' % url) return super(RequestsClient, self).request(method, url, *args, **kwargs) else: def RequestsClient(*args, **kwargs): raise ImproperlyConfigured('requests must be installed in order to use RequestsClient.') if coreapi is not None: class CoreAPIClient(coreapi.Client): def __init__(self, *args, **kwargs): self._session = RequestsClient() kwargs['transports'] = [coreapi.transports.HTTPTransport(session=self.session)] return super(CoreAPIClient, self).__init__(*args, **kwargs) @property def session(self): return self._session else: def CoreAPIClient(*args, **kwargs): raise ImproperlyConfigured('coreapi must be installed in order to use CoreAPIClient.') class APIRequestFactory(DjangoRequestFactory): renderer_classes_list = api_settings.TEST_REQUEST_RENDERER_CLASSES default_format = api_settings.TEST_REQUEST_DEFAULT_FORMAT def __init__(self, enforce_csrf_checks=False, **defaults): self.enforce_csrf_checks = enforce_csrf_checks self.renderer_classes = {} for cls in self.renderer_classes_list: self.renderer_classes[cls.format] = cls super(APIRequestFactory, self).__init__(**defaults) def _encode_data(self, data, format=None, content_type=None): """ Encode the data returning a two tuple of (bytes, content_type) """ if data is None: return ('', content_type) assert format is None or content_type is None, ( 'You may not set both `format` and `content_type`.' ) if content_type: # Content type specified explicitly, treat data as a raw bytestring ret = force_bytes(data, settings.DEFAULT_CHARSET) else: format = format or self.default_format assert format in self.renderer_classes, ( "Invalid format '{0}'. Available formats are {1}. " "Set TEST_REQUEST_RENDERER_CLASSES to enable " "extra request formats.".format( format, ', '.join(["'" + fmt + "'" for fmt in self.renderer_classes]) ) ) # Use format and render the data into a bytestring renderer = self.renderer_classes[format]() ret = renderer.render(data) # Determine the content-type header from the renderer content_type = "{0}; charset={1}".format( renderer.media_type, renderer.charset ) # Coerce text to bytes if required. if isinstance(ret, six.text_type): ret = bytes(ret.encode(renderer.charset)) return ret, content_type def get(self, path, data=None, **extra): r = { 'QUERY_STRING': urlencode(data or {}, doseq=True), } if not data and '?' in path: # Fix to support old behavior where you have the arguments in the # url. See #1461. query_string = force_bytes(path.split('?')[1]) if six.PY3: query_string = query_string.decode('iso-8859-1') r['QUERY_STRING'] = query_string r.update(extra) return self.generic('GET', path, **r) def post(self, path, data=None, format=None, content_type=None, **extra): data, content_type = self._encode_data(data, format, content_type) return self.generic('POST', path, data, content_type, **extra) def put(self, path, data=None, format=None, content_type=None, **extra): data, content_type = self._encode_data(data, format, content_type) return self.generic('PUT', path, data, content_type, **extra) def patch(self, path, data=None, format=None, content_type=None, **extra): data, content_type = self._encode_data(data, format, content_type) return self.generic('PATCH', path, data, content_type, **extra) def delete(self, path, data=None, format=None, content_type=None, **extra): data, content_type = self._encode_data(data, format, content_type) return self.generic('DELETE', path, data, content_type, **extra) def options(self, path, data=None, format=None, content_type=None, **extra): data, content_type = self._encode_data(data, format, content_type) return self.generic('OPTIONS', path, data, content_type, **extra) def generic(self, method, path, data='', content_type='application/octet-stream', secure=False, **extra): # Include the CONTENT_TYPE, regardless of whether or not data is empty. if content_type is not None: extra['CONTENT_TYPE'] = str(content_type) return super(APIRequestFactory, self).generic( method, path, data, content_type, secure, **extra) def request(self, **kwargs): request = super(APIRequestFactory, self).request(**kwargs) request._dont_enforce_csrf_checks = not self.enforce_csrf_checks return request class ForceAuthClientHandler(ClientHandler): """ A patched version of ClientHandler that can enforce authentication on the outgoing requests. """ def __init__(self, *args, **kwargs): self._force_user = None self._force_token = None super(ForceAuthClientHandler, self).__init__(*args, **kwargs) def get_response(self, request): # This is the simplest place we can hook into to patch the # request object. force_authenticate(request, self._force_user, self._force_token) return super(ForceAuthClientHandler, self).get_response(request) class APIClient(APIRequestFactory, DjangoClient): def __init__(self, enforce_csrf_checks=False, **defaults): super(APIClient, self).__init__(**defaults) self.handler = ForceAuthClientHandler(enforce_csrf_checks) self._credentials = {} def credentials(self, **kwargs): """ Sets headers that will be used on every outgoing request. """ self._credentials = kwargs def force_authenticate(self, user=None, token=None): """ Forcibly authenticates outgoing requests with the given user and/or token. """ self.handler._force_user = user self.handler._force_token = token if user is None: self.logout() # Also clear any possible session info if required def request(self, **kwargs): # Ensure that any credentials set get added to every request. kwargs.update(self._credentials) return super(APIClient, self).request(**kwargs) def get(self, path, data=None, follow=False, **extra): response = super(APIClient, self).get(path, data=data, **extra) if follow: response = self._handle_redirects(response, **extra) return response def post(self, path, data=None, format=None, content_type=None, follow=False, **extra): response = super(APIClient, self).post( path, data=data, format=format, content_type=content_type, **extra) if follow: response = self._handle_redirects(response, **extra) return response def put(self, path, data=None, format=None, content_type=None, follow=False, **extra): response = super(APIClient, self).put( path, data=data, format=format, content_type=content_type, **extra) if follow: response = self._handle_redirects(response, **extra) return response def patch(self, path, data=None, format=None, content_type=None, follow=False, **extra): response = super(APIClient, self).patch( path, data=data, format=format, content_type=content_type, **extra) if follow: response = self._handle_redirects(response, **extra) return response def delete(self, path, data=None, format=None, content_type=None, follow=False, **extra): response = super(APIClient, self).delete( path, data=data, format=format, content_type=content_type, **extra) if follow: response = self._handle_redirects(response, **extra) return response def options(self, path, data=None, format=None, content_type=None, follow=False, **extra): response = super(APIClient, self).options( path, data=data, format=format, content_type=content_type, **extra) if follow: response = self._handle_redirects(response, **extra) return response def logout(self): self._credentials = {} # Also clear any `force_authenticate` self.handler._force_user = None self.handler._force_token = None if self.session: super(APIClient, self).logout() class APITransactionTestCase(testcases.TransactionTestCase): client_class = APIClient class APITestCase(testcases.TestCase): client_class = APIClient class APISimpleTestCase(testcases.SimpleTestCase): client_class = APIClient class APILiveServerTestCase(testcases.LiveServerTestCase): client_class = APIClient class URLPatternsTestCase(testcases.SimpleTestCase): """ Isolate URL patterns on a per-TestCase basis. For example, class ATestCase(URLPatternsTestCase): urlpatterns = [...] def test_something(self): ... class AnotherTestCase(URLPatternsTestCase): urlpatterns = [...] def test_something_else(self): ... """ @classmethod def setUpClass(cls): # Get the module of the TestCase subclass cls._module = import_module(cls.__module__) cls._override = override_settings(ROOT_URLCONF=cls.__module__) if hasattr(cls._module, 'urlpatterns'): cls._module_urlpatterns = cls._module.urlpatterns cls._module.urlpatterns = cls.urlpatterns cls._override.enable() super(URLPatternsTestCase, cls).setUpClass() @classmethod def tearDownClass(cls): super(URLPatternsTestCase, cls).tearDownClass() cls._override.disable() if hasattr(cls, '_module_urlpatterns'): cls._module.urlpatterns = cls._module_urlpatterns else: del cls._module.urlpatterns ================================================ FILE: jet_django/deps/rest_framework/throttling.py ================================================ """ Provides various throttling policies. """ from __future__ import unicode_literals import time from django.core.cache import cache as default_cache from django.core.exceptions import ImproperlyConfigured from jet_django.deps.rest_framework.settings import api_settings class BaseThrottle(object): """ Rate throttling of requests. """ def allow_request(self, request, view): """ Return `True` if the request should be allowed, `False` otherwise. """ raise NotImplementedError('.allow_request() must be overridden') def get_ident(self, request): """ Identify the machine making the request by parsing HTTP_X_FORWARDED_FOR if present and number of proxies is > 0. If not use all of HTTP_X_FORWARDED_FOR if it is available, if not use REMOTE_ADDR. """ xff = request.META.get('HTTP_X_FORWARDED_FOR') remote_addr = request.META.get('REMOTE_ADDR') num_proxies = api_settings.NUM_PROXIES if num_proxies is not None: if num_proxies == 0 or xff is None: return remote_addr addrs = xff.split(',') client_addr = addrs[-min(num_proxies, len(addrs))] return client_addr.strip() return ''.join(xff.split()) if xff else remote_addr def wait(self): """ Optionally, return a recommended number of seconds to wait before the next request. """ return None class SimpleRateThrottle(BaseThrottle): """ A simple cache implementation, that only requires `.get_cache_key()` to be overridden. The rate (requests / seconds) is set by a `rate` attribute on the View class. The attribute is a string of the form 'number_of_requests/period'. Period should be one of: ('s', 'sec', 'm', 'min', 'h', 'hour', 'd', 'day') Previous request information used for throttling is stored in the cache. """ cache = default_cache timer = time.time cache_format = 'throttle_%(scope)s_%(ident)s' scope = None THROTTLE_RATES = api_settings.DEFAULT_THROTTLE_RATES def __init__(self): if not getattr(self, 'rate', None): self.rate = self.get_rate() self.num_requests, self.duration = self.parse_rate(self.rate) def get_cache_key(self, request, view): """ Should return a unique cache-key which can be used for throttling. Must be overridden. May return `None` if the request should not be throttled. """ raise NotImplementedError('.get_cache_key() must be overridden') def get_rate(self): """ Determine the string representation of the allowed request rate. """ if not getattr(self, 'scope', None): msg = ("You must set either `.scope` or `.rate` for '%s' throttle" % self.__class__.__name__) raise ImproperlyConfigured(msg) try: return self.THROTTLE_RATES[self.scope] except KeyError: msg = "No default throttle rate set for '%s' scope" % self.scope raise ImproperlyConfigured(msg) def parse_rate(self, rate): """ Given the request rate string, return a two tuple of: , """ if rate is None: return (None, None) num, period = rate.split('/') num_requests = int(num) duration = {'s': 1, 'm': 60, 'h': 3600, 'd': 86400}[period[0]] return (num_requests, duration) def allow_request(self, request, view): """ Implement the check to see if the request should be throttled. On success calls `throttle_success`. On failure calls `throttle_failure`. """ if self.rate is None: return True self.key = self.get_cache_key(request, view) if self.key is None: return True self.history = self.cache.get(self.key, []) self.now = self.timer() # Drop any requests from the history which have now passed the # throttle duration while self.history and self.history[-1] <= self.now - self.duration: self.history.pop() if len(self.history) >= self.num_requests: return self.throttle_failure() return self.throttle_success() def throttle_success(self): """ Inserts the current request's timestamp along with the key into the cache. """ self.history.insert(0, self.now) self.cache.set(self.key, self.history, self.duration) return True def throttle_failure(self): """ Called when a request to the API has failed due to throttling. """ return False def wait(self): """ Returns the recommended next request time in seconds. """ if self.history: remaining_duration = self.duration - (self.now - self.history[-1]) else: remaining_duration = self.duration available_requests = self.num_requests - len(self.history) + 1 if available_requests <= 0: return None return remaining_duration / float(available_requests) class AnonRateThrottle(SimpleRateThrottle): """ Limits the rate of API calls that may be made by a anonymous users. The IP address of the request will be used as the unique cache key. """ scope = 'anon' def get_cache_key(self, request, view): if request.user.is_authenticated: return None # Only throttle unauthenticated requests. return self.cache_format % { 'scope': self.scope, 'ident': self.get_ident(request) } class UserRateThrottle(SimpleRateThrottle): """ Limits the rate of API calls that may be made by a given user. The user id will be used as a unique cache key if the user is authenticated. For anonymous requests, the IP address of the request will be used. """ scope = 'user' def get_cache_key(self, request, view): if request.user.is_authenticated: ident = request.user.pk else: ident = self.get_ident(request) return self.cache_format % { 'scope': self.scope, 'ident': ident } class ScopedRateThrottle(SimpleRateThrottle): """ Limits the rate of API calls by different amounts for various parts of the API. Any view that has the `throttle_scope` property set will be throttled. The unique cache key will be generated by concatenating the user id of the request, and the scope of the view being accessed. """ scope_attr = 'throttle_scope' def __init__(self): # Override the usual SimpleRateThrottle, because we can't determine # the rate until called by the view. pass def allow_request(self, request, view): # We can only determine the scope once we're called by the view. self.scope = getattr(view, self.scope_attr, None) # If a view does not have a `throttle_scope` always allow the request if not self.scope: return True # Determine the allowed request rate as we normally would during # the `__init__` call. self.rate = self.get_rate() self.num_requests, self.duration = self.parse_rate(self.rate) # We can now proceed as normal. return super(ScopedRateThrottle, self).allow_request(request, view) def get_cache_key(self, request, view): """ If `view.throttle_scope` is not set, don't apply this throttle. Otherwise generate the unique cache key by concatenating the user id with the '.throttle_scope` property of the view. """ if request.user.is_authenticated: ident = request.user.pk else: ident = self.get_ident(request) return self.cache_format % { 'scope': self.scope, 'ident': ident } ================================================ FILE: jet_django/deps/rest_framework/urlpatterns.py ================================================ from __future__ import unicode_literals from django.conf.urls import include, url from jet_django.deps.rest_framework.compat import ( URLResolver, get_regex_pattern, is_route_pattern, path, register_converter ) from jet_django.deps.rest_framework.settings import api_settings def _get_format_path_converter(suffix_kwarg, allowed): if allowed: if len(allowed) == 1: allowed_pattern = allowed[0] else: allowed_pattern = '(?:%s)' % '|'.join(allowed) suffix_pattern = r"\.%s/?" % allowed_pattern else: suffix_pattern = r"\.[a-z0-9]+/?" class FormatSuffixConverter: regex = suffix_pattern def to_python(self, value): return value.strip('./') def to_url(self, value): return '.' + value + '/' converter_name = 'drf_format_suffix' if allowed: converter_name += '_' + '_'.join(allowed) return converter_name, FormatSuffixConverter def apply_suffix_patterns(urlpatterns, suffix_pattern, suffix_required, suffix_route=None): ret = [] for urlpattern in urlpatterns: if isinstance(urlpattern, URLResolver): # Set of included URL patterns regex = get_regex_pattern(urlpattern) namespace = urlpattern.namespace app_name = urlpattern.app_name kwargs = urlpattern.default_kwargs # Add in the included patterns, after applying the suffixes patterns = apply_suffix_patterns(urlpattern.url_patterns, suffix_pattern, suffix_required, suffix_route) # if the original pattern was a RoutePattern we need to preserve it if is_route_pattern(urlpattern): assert path is not None route = str(urlpattern.pattern) new_pattern = path(route, include((patterns, app_name), namespace), kwargs) else: new_pattern = url(regex, include((patterns, app_name), namespace), kwargs) ret.append(new_pattern) else: # Regular URL pattern regex = get_regex_pattern(urlpattern).rstrip('$').rstrip('/') + suffix_pattern view = urlpattern.callback kwargs = urlpattern.default_args name = urlpattern.name # Add in both the existing and the new urlpattern if not suffix_required: ret.append(urlpattern) # if the original pattern was a RoutePattern we need to preserve it if is_route_pattern(urlpattern): assert path is not None assert suffix_route is not None route = str(urlpattern.pattern).rstrip('$').rstrip('/') + suffix_route new_pattern = path(route, view, kwargs, name) else: new_pattern = url(regex, view, kwargs, name) ret.append(new_pattern) return ret def format_suffix_patterns(urlpatterns, suffix_required=False, allowed=None): """ Supplement existing urlpatterns with corresponding patterns that also include a '.format' suffix. Retains urlpattern ordering. urlpatterns: A list of URL patterns. suffix_required: If `True`, only suffixed URLs will be generated, and non-suffixed URLs will not be used. Defaults to `False`. allowed: An optional tuple/list of allowed suffixes. eg ['json', 'api'] Defaults to `None`, which allows any suffix. """ suffix_kwarg = api_settings.FORMAT_SUFFIX_KWARG if allowed: if len(allowed) == 1: allowed_pattern = allowed[0] else: allowed_pattern = '(%s)' % '|'.join(allowed) suffix_pattern = r'\.(?P<%s>%s)/?$' % (suffix_kwarg, allowed_pattern) else: suffix_pattern = r'\.(?P<%s>[a-z0-9]+)/?$' % suffix_kwarg if path and register_converter: converter_name, suffix_converter = _get_format_path_converter(suffix_kwarg, allowed) register_converter(suffix_converter, converter_name) suffix_route = '<%s:%s>' % (converter_name, suffix_kwarg) else: suffix_route = None return apply_suffix_patterns(urlpatterns, suffix_pattern, suffix_required, suffix_route) ================================================ FILE: jet_django/deps/rest_framework/urls.py ================================================ """ Login and logout views for the browsable API. Add these to your root URLconf if you're using the browsable API and your API requires authentication: urlpatterns = [ ... url(r'^auth/', include('jet_django.deps.rest_framework.urls')) ] You should make sure your authentication settings include `SessionAuthentication`. """ from __future__ import unicode_literals import django from django.conf.urls import url from django.contrib.auth import views if django.VERSION < (1, 11): login = views.login login_kwargs = {'template_name': 'jet_django.deps.rest_framework/login.html'} logout = views.logout else: login = views.LoginView.as_view(template_name='jet_django.deps.rest_framework/login.html') login_kwargs = {} logout = views.LogoutView.as_view() app_name = 'jet_django.deps.rest_framework' urlpatterns = [ url(r'^login/$', login, login_kwargs, name='login'), url(r'^logout/$', logout, name='logout'), ] ================================================ FILE: jet_django/deps/rest_framework/utils/__init__.py ================================================ ================================================ FILE: jet_django/deps/rest_framework/utils/breadcrumbs.py ================================================ from __future__ import unicode_literals from django.urls import get_script_prefix, resolve def get_breadcrumbs(url, request=None): """ Given a url returns a list of breadcrumbs, which are each a tuple of (name, url). """ from jet_django.deps.rest_framework.reverse import preserve_builtin_query_params from jet_django.deps.rest_framework.views import APIView def breadcrumbs_recursive(url, breadcrumbs_list, prefix, seen): """ Add tuples of (name, url) to the breadcrumbs list, progressively chomping off parts of the url. """ try: (view, unused_args, unused_kwargs) = resolve(url) except Exception: pass else: # Check if this is a REST framework view, # and if so add it to the breadcrumbs cls = getattr(view, 'cls', None) initkwargs = getattr(view, 'initkwargs', {}) if cls is not None and issubclass(cls, APIView): # Don't list the same view twice in a row. # Probably an optional trailing slash. if not seen or seen[-1] != view: c = cls(**initkwargs) c.suffix = getattr(view, 'suffix', None) name = c.get_view_name() insert_url = preserve_builtin_query_params(prefix + url, request) breadcrumbs_list.insert(0, (name, insert_url)) seen.append(view) if url == '': # All done return breadcrumbs_list elif url.endswith('/'): # Drop trailing slash off the end and continue to try to # resolve more breadcrumbs url = url.rstrip('/') return breadcrumbs_recursive(url, breadcrumbs_list, prefix, seen) # Drop trailing non-slash off the end and continue to try to # resolve more breadcrumbs url = url[:url.rfind('/') + 1] return breadcrumbs_recursive(url, breadcrumbs_list, prefix, seen) prefix = get_script_prefix().rstrip('/') url = url[len(prefix):] return breadcrumbs_recursive(url, [], prefix, []) ================================================ FILE: jet_django/deps/rest_framework/utils/encoders.py ================================================ """ Helper classes for parsers. """ from __future__ import absolute_import, unicode_literals import datetime import decimal import json # noqa import uuid from django.db.models.query import QuerySet from django.utils import six, timezone from django.utils.encoding import force_text from django.utils.functional import Promise from jet_django.deps.rest_framework.compat import coreapi class JSONEncoder(json.JSONEncoder): """ JSONEncoder subclass that knows how to encode date/time/timedelta, decimal types, generators and other basic python objects. """ def default(self, obj): # For Date Time string spec, see ECMA 262 # https://ecma-international.org/ecma-262/5.1/#sec-15.9.1.15 if isinstance(obj, Promise): return force_text(obj) elif isinstance(obj, datetime.datetime): representation = obj.isoformat() if representation.endswith('+00:00'): representation = representation[:-6] + 'Z' return representation elif isinstance(obj, datetime.date): return obj.isoformat() elif isinstance(obj, datetime.time): if timezone and timezone.is_aware(obj): raise ValueError("JSON can't represent timezone-aware times.") representation = obj.isoformat() return representation elif isinstance(obj, datetime.timedelta): return six.text_type(obj.total_seconds()) elif isinstance(obj, decimal.Decimal): # Serializers will coerce decimals to strings by default. return float(obj) elif isinstance(obj, uuid.UUID): return six.text_type(obj) elif isinstance(obj, QuerySet): return tuple(obj) elif isinstance(obj, six.binary_type): # Best-effort for binary blobs. See #4187. return obj.decode('utf-8') elif hasattr(obj, 'tolist'): # Numpy arrays and array scalars. return obj.tolist() elif (coreapi is not None) and isinstance(obj, (coreapi.Document, coreapi.Error)): raise RuntimeError( 'Cannot return a coreapi object from a JSON view. ' 'You should be using a schema renderer instead for this view.' ) elif hasattr(obj, '__getitem__'): try: return dict(obj) except Exception: pass elif hasattr(obj, '__iter__'): return tuple(item for item in obj) return super(JSONEncoder, self).default(obj) ================================================ FILE: jet_django/deps/rest_framework/utils/field_mapping.py ================================================ """ Helper functions for mapping model fields to a dictionary of default keyword arguments that should be used for their equivalent serializer fields. """ import inspect from django.core import validators from django.db import models from django.utils.text import capfirst from jet_django.deps.rest_framework.compat import postgres_fields from jet_django.deps.rest_framework.validators import UniqueValidator NUMERIC_FIELD_TYPES = ( models.IntegerField, models.FloatField, models.DecimalField ) class ClassLookupDict(object): """ Takes a dictionary with classes as keys. Lookups against this object will traverses the object's inheritance hierarchy in method resolution order, and returns the first matching value from the dictionary or raises a KeyError if nothing matches. """ def __init__(self, mapping): self.mapping = mapping def __getitem__(self, key): if hasattr(key, '_proxy_class'): # Deal with proxy classes. Ie. BoundField behaves as if it # is a Field instance when using ClassLookupDict. base_class = key._proxy_class else: base_class = key.__class__ for cls in inspect.getmro(base_class): if cls in self.mapping: return self.mapping[cls] raise KeyError('Class %s not found in lookup.' % base_class.__name__) def __setitem__(self, key, value): self.mapping[key] = value def needs_label(model_field, field_name): """ Returns `True` if the label based on the model's verbose name is not equal to the default label it would have based on it's field name. """ default_label = field_name.replace('_', ' ').capitalize() return capfirst(model_field.verbose_name) != default_label def get_detail_view_name(model): """ Given a model class, return the view name to use for URL relationships that refer to instances of the model. """ return '%(model_name)s-detail' % { 'app_label': model._meta.app_label, 'model_name': model._meta.object_name.lower() } def get_field_kwargs(field_name, model_field): """ Creates a default instance of a basic non-relational field. """ kwargs = {} validator_kwarg = list(model_field.validators) # The following will only be used by ModelField classes. # Gets removed for everything else. kwargs['model_field'] = model_field if model_field.verbose_name and needs_label(model_field, field_name): kwargs['label'] = capfirst(model_field.verbose_name) if model_field.help_text: kwargs['help_text'] = model_field.help_text max_digits = getattr(model_field, 'max_digits', None) if max_digits is not None: kwargs['max_digits'] = max_digits decimal_places = getattr(model_field, 'decimal_places', None) if decimal_places is not None: kwargs['decimal_places'] = decimal_places if isinstance(model_field, models.TextField) or (postgres_fields and isinstance(model_field, postgres_fields.JSONField)): kwargs['style'] = {'base_template': 'textarea.html'} if isinstance(model_field, models.AutoField) or not model_field.editable: # If this field is read-only, then return early. # Further keyword arguments are not valid. kwargs['read_only'] = True return kwargs if model_field.has_default() or model_field.blank or model_field.null: kwargs['required'] = False if model_field.null and not isinstance(model_field, models.NullBooleanField): kwargs['allow_null'] = True if model_field.blank and (isinstance(model_field, models.CharField) or isinstance(model_field, models.TextField)): kwargs['allow_blank'] = True if isinstance(model_field, models.FilePathField): kwargs['path'] = model_field.path if model_field.match is not None: kwargs['match'] = model_field.match if model_field.recursive is not False: kwargs['recursive'] = model_field.recursive if model_field.allow_files is not True: kwargs['allow_files'] = model_field.allow_files if model_field.allow_folders is not False: kwargs['allow_folders'] = model_field.allow_folders if model_field.choices: kwargs['choices'] = model_field.choices else: # Ensure that max_value is passed explicitly as a keyword arg, # rather than as a validator. max_value = next(( validator.limit_value for validator in validator_kwarg if isinstance(validator, validators.MaxValueValidator) ), None) if max_value is not None and isinstance(model_field, NUMERIC_FIELD_TYPES): kwargs['max_value'] = max_value validator_kwarg = [ validator for validator in validator_kwarg if not isinstance(validator, validators.MaxValueValidator) ] # Ensure that min_value is passed explicitly as a keyword arg, # rather than as a validator. min_value = next(( validator.limit_value for validator in validator_kwarg if isinstance(validator, validators.MinValueValidator) ), None) if min_value is not None and isinstance(model_field, NUMERIC_FIELD_TYPES): kwargs['min_value'] = min_value validator_kwarg = [ validator for validator in validator_kwarg if not isinstance(validator, validators.MinValueValidator) ] # URLField does not need to include the URLValidator argument, # as it is explicitly added in. if isinstance(model_field, models.URLField): validator_kwarg = [ validator for validator in validator_kwarg if not isinstance(validator, validators.URLValidator) ] # EmailField does not need to include the validate_email argument, # as it is explicitly added in. if isinstance(model_field, models.EmailField): validator_kwarg = [ validator for validator in validator_kwarg if validator is not validators.validate_email ] # SlugField do not need to include the 'validate_slug' argument, if isinstance(model_field, models.SlugField): validator_kwarg = [ validator for validator in validator_kwarg if validator is not validators.validate_slug ] # IPAddressField do not need to include the 'validate_ipv46_address' argument, if isinstance(model_field, models.GenericIPAddressField): validator_kwarg = [ validator for validator in validator_kwarg if validator is not validators.validate_ipv46_address ] # Our decimal validation is handled in the field code, not validator code. if isinstance(model_field, models.DecimalField): validator_kwarg = [ validator for validator in validator_kwarg if not isinstance(validator, validators.DecimalValidator) ] # Ensure that max_length is passed explicitly as a keyword arg, # rather than as a validator. max_length = getattr(model_field, 'max_length', None) if max_length is not None and (isinstance(model_field, models.CharField) or isinstance(model_field, models.TextField) or isinstance(model_field, models.FileField)): kwargs['max_length'] = max_length validator_kwarg = [ validator for validator in validator_kwarg if not isinstance(validator, validators.MaxLengthValidator) ] # Ensure that min_length is passed explicitly as a keyword arg, # rather than as a validator. min_length = next(( validator.limit_value for validator in validator_kwarg if isinstance(validator, validators.MinLengthValidator) ), None) if min_length is not None and isinstance(model_field, models.CharField): kwargs['min_length'] = min_length validator_kwarg = [ validator for validator in validator_kwarg if not isinstance(validator, validators.MinLengthValidator) ] if getattr(model_field, 'unique', False): unique_error_message = model_field.error_messages.get('unique', None) if unique_error_message: unique_error_message = unique_error_message % { 'model_name': model_field.model._meta.verbose_name, 'field_label': model_field.verbose_name } validator = UniqueValidator( queryset=model_field.model._default_manager, message=unique_error_message) validator_kwarg.append(validator) if validator_kwarg: kwargs['validators'] = validator_kwarg return kwargs def get_relation_kwargs(field_name, relation_info): """ Creates a default instance of a flat relational field. """ model_field, related_model, to_many, to_field, has_through_model, reverse = relation_info kwargs = { 'queryset': related_model._default_manager, 'view_name': get_detail_view_name(related_model) } if to_many: kwargs['many'] = True if to_field: kwargs['to_field'] = to_field if has_through_model: kwargs['read_only'] = True kwargs.pop('queryset', None) if model_field: if model_field.verbose_name and needs_label(model_field, field_name): kwargs['label'] = capfirst(model_field.verbose_name) help_text = model_field.help_text if help_text: kwargs['help_text'] = help_text if not model_field.editable: kwargs['read_only'] = True kwargs.pop('queryset', None) if kwargs.get('read_only', False): # If this field is read-only, then return early. # No further keyword arguments are valid. return kwargs if model_field.has_default() or model_field.blank or model_field.null: kwargs['required'] = False if model_field.null: kwargs['allow_null'] = True if model_field.validators: kwargs['validators'] = model_field.validators if getattr(model_field, 'unique', False): validator = UniqueValidator(queryset=model_field.model._default_manager) kwargs['validators'] = kwargs.get('validators', []) + [validator] if to_many and not model_field.blank: kwargs['allow_empty'] = False return kwargs def get_nested_relation_kwargs(relation_info): kwargs = {'read_only': True} if relation_info.to_many: kwargs['many'] = True return kwargs def get_url_kwargs(model_field): return { 'view_name': get_detail_view_name(model_field) } ================================================ FILE: jet_django/deps/rest_framework/utils/formatting.py ================================================ """ Utility functions to return a formatted name and description for a given view. """ from __future__ import unicode_literals import re from django.utils.encoding import force_text from django.utils.html import escape from django.utils.safestring import mark_safe from jet_django.deps.rest_framework.compat import apply_markdown def remove_trailing_string(content, trailing): """ Strip trailing component `trailing` from `content` if it exists. Used when generating names from view classes. """ if content.endswith(trailing) and content != trailing: return content[:-len(trailing)] return content def dedent(content): """ Remove leading indent from a block of text. Used when generating descriptions from docstrings. Note that python's `textwrap.dedent` doesn't quite cut it, as it fails to dedent multiline docstrings that include unindented text on the initial line. """ content = force_text(content) lines = [line for line in content.splitlines()[1:] if line.lstrip()] # unindent the content if needed if lines: whitespace_counts = min([len(line) - len(line.lstrip(' ')) for line in lines]) tab_counts = min([len(line) - len(line.lstrip('\t')) for line in lines]) if whitespace_counts: whitespace_pattern = '^' + (' ' * whitespace_counts) content = re.sub(re.compile(whitespace_pattern, re.MULTILINE), '', content) elif tab_counts: whitespace_pattern = '^' + ('\t' * tab_counts) content = re.sub(re.compile(whitespace_pattern, re.MULTILINE), '', content) return content.strip() def camelcase_to_spaces(content): """ Translate 'CamelCaseNames' to 'Camel Case Names'. Used when generating names from view classes. """ camelcase_boundary = '(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))' content = re.sub(camelcase_boundary, ' \\1', content).strip() return ' '.join(content.split('_')).title() def markup_description(description): """ Apply HTML markup to the given description. """ if apply_markdown: description = apply_markdown(description) else: description = escape(description).replace('\n', '
    ') description = '

    ' + description + '

    ' return mark_safe(description) ================================================ FILE: jet_django/deps/rest_framework/utils/html.py ================================================ """ Helpers for dealing with HTML input. """ import re from django.utils.datastructures import MultiValueDict def is_html_input(dictionary): # MultiDict type datastructures are used to represent HTML form input, # which may have more than one value for each key. return hasattr(dictionary, 'getlist') def parse_html_list(dictionary, prefix=''): """ Used to support list values in HTML forms. Supports lists of primitives and/or dictionaries. * List of primitives. { '[0]': 'abc', '[1]': 'def', '[2]': 'hij' } --> [ 'abc', 'def', 'hij' ] * List of dictionaries. { '[0]foo': 'abc', '[0]bar': 'def', '[1]foo': 'hij', '[1]bar': 'klm', } --> [ {'foo': 'abc', 'bar': 'def'}, {'foo': 'hij', 'bar': 'klm'} ] """ ret = {} regex = re.compile(r'^%s\[([0-9]+)\](.*)$' % re.escape(prefix)) for field, value in dictionary.items(): match = regex.match(field) if not match: continue index, key = match.groups() index = int(index) if not key: ret[index] = value elif isinstance(ret.get(index), dict): ret[index][key] = value else: ret[index] = MultiValueDict({key: [value]}) return [ret[item] for item in sorted(ret)] def parse_html_dict(dictionary, prefix=''): """ Used to support dictionary values in HTML forms. { 'profile.username': 'example', 'profile.email': 'example@example.com', } --> { 'profile': { 'username': 'example', 'email': 'example@example.com' } } """ ret = MultiValueDict() regex = re.compile(r'^%s\.(.+)$' % re.escape(prefix)) for field in dictionary: match = regex.match(field) if not match: continue key = match.groups()[0] value = dictionary.getlist(field) ret.setlist(key, value) return ret ================================================ FILE: jet_django/deps/rest_framework/utils/humanize_datetime.py ================================================ """ Helper functions that convert strftime formats into more readable representations. """ from jet_django.deps.rest_framework import ISO_8601 def datetime_formats(formats): format = ', '.join(formats).replace( ISO_8601, 'YYYY-MM-DDThh:mm[:ss[.uuuuuu]][+HH:MM|-HH:MM|Z]' ) return humanize_strptime(format) def date_formats(formats): format = ', '.join(formats).replace(ISO_8601, 'YYYY[-MM[-DD]]') return humanize_strptime(format) def time_formats(formats): format = ', '.join(formats).replace(ISO_8601, 'hh:mm[:ss[.uuuuuu]]') return humanize_strptime(format) def humanize_strptime(format_string): # Note that we're missing some of the locale specific mappings that # don't really make sense. mapping = { "%Y": "YYYY", "%y": "YY", "%m": "MM", "%b": "[Jan-Dec]", "%B": "[January-December]", "%d": "DD", "%H": "hh", "%I": "hh", # Requires '%p' to differentiate from '%H'. "%M": "mm", "%S": "ss", "%f": "uuuuuu", "%a": "[Mon-Sun]", "%A": "[Monday-Sunday]", "%p": "[AM|PM]", "%z": "[+HHMM|-HHMM]" } for key, val in mapping.items(): format_string = format_string.replace(key, val) return format_string ================================================ FILE: jet_django/deps/rest_framework/utils/json.py ================================================ """ Wrapper for the builtin json module that ensures compliance with the JSON spec. REST framework should always import this wrapper module in order to maintain spec-compliant encoding/decoding. Support for non-standard features should be handled by users at the renderer and parser layer. """ from __future__ import absolute_import import functools import json # noqa def strict_constant(o): raise ValueError('Out of range float values are not JSON compliant: ' + repr(o)) @functools.wraps(json.dump) def dump(*args, **kwargs): kwargs.setdefault('allow_nan', False) return json.dump(*args, **kwargs) @functools.wraps(json.dumps) def dumps(*args, **kwargs): kwargs.setdefault('allow_nan', False) return json.dumps(*args, **kwargs) @functools.wraps(json.load) def load(*args, **kwargs): kwargs.setdefault('parse_constant', strict_constant) return json.load(*args, **kwargs) @functools.wraps(json.loads) def loads(*args, **kwargs): kwargs.setdefault('parse_constant', strict_constant) return json.loads(*args, **kwargs) ================================================ FILE: jet_django/deps/rest_framework/utils/mediatypes.py ================================================ """ Handling of media types, as found in HTTP Content-Type and Accept headers. See https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7 """ from __future__ import unicode_literals from django.http.multipartparser import parse_header from django.utils.encoding import python_2_unicode_compatible from jet_django.deps.rest_framework import HTTP_HEADER_ENCODING def media_type_matches(lhs, rhs): """ Returns ``True`` if the media type in the first argument <= the media type in the second argument. The media types are strings as described by the HTTP spec. Valid media type strings include: 'application/json; indent=4' 'application/json' 'text/*' '*/*' """ lhs = _MediaType(lhs) rhs = _MediaType(rhs) return lhs.match(rhs) def order_by_precedence(media_type_lst): """ Returns a list of sets of media type strings, ordered by precedence. Precedence is determined by how specific a media type is: 3. 'type/subtype; param=val' 2. 'type/subtype' 1. 'type/*' 0. '*/*' """ ret = [set(), set(), set(), set()] for media_type in media_type_lst: precedence = _MediaType(media_type).precedence ret[3 - precedence].add(media_type) return [media_types for media_types in ret if media_types] @python_2_unicode_compatible class _MediaType(object): def __init__(self, media_type_str): self.orig = '' if (media_type_str is None) else media_type_str self.full_type, self.params = parse_header(self.orig.encode(HTTP_HEADER_ENCODING)) self.main_type, sep, self.sub_type = self.full_type.partition('/') def match(self, other): """Return true if this MediaType satisfies the given MediaType.""" for key in self.params: if key != 'q' and other.params.get(key, None) != self.params.get(key, None): return False if self.sub_type != '*' and other.sub_type != '*' and other.sub_type != self.sub_type: return False if self.main_type != '*' and other.main_type != '*' and other.main_type != self.main_type: return False return True @property def precedence(self): """ Return a precedence level from 0-3 for the media type given how specific it is. """ if self.main_type == '*': return 0 elif self.sub_type == '*': return 1 elif not self.params or list(self.params) == ['q']: return 2 return 3 def __str__(self): ret = "%s/%s" % (self.main_type, self.sub_type) for key, val in self.params.items(): ret += "; %s=%s" % (key, val.decode('ascii')) return ret ================================================ FILE: jet_django/deps/rest_framework/utils/model_meta.py ================================================ """ Helper function for returning the field information that is associated with a model class. This includes returning all the forward and reverse relationships and their associated metadata. Usage: `get_field_info(model)` returns a `FieldInfo` instance. """ from collections import OrderedDict, namedtuple FieldInfo = namedtuple('FieldResult', [ 'pk', # Model field instance 'fields', # Dict of field name -> model field instance 'forward_relations', # Dict of field name -> RelationInfo 'reverse_relations', # Dict of field name -> RelationInfo 'fields_and_pk', # Shortcut for 'pk' + 'fields' 'relations' # Shortcut for 'forward_relations' + 'reverse_relations' ]) RelationInfo = namedtuple('RelationInfo', [ 'model_field', 'related_model', 'to_many', 'to_field', 'has_through_model', 'reverse' ]) def get_field_info(model): """ Given a model class, returns a `FieldInfo` instance, which is a `namedtuple`, containing metadata about the various field types on the model including information about their relationships. """ opts = model._meta.concrete_model._meta pk = _get_pk(opts) fields = _get_fields(opts) forward_relations = _get_forward_relationships(opts) reverse_relations = _get_reverse_relationships(opts) fields_and_pk = _merge_fields_and_pk(pk, fields) relationships = _merge_relationships(forward_relations, reverse_relations) return FieldInfo(pk, fields, forward_relations, reverse_relations, fields_and_pk, relationships) def _get_pk(opts): pk = opts.pk rel = pk.remote_field while rel and rel.parent_link: # If model is a child via multi-table inheritance, use parent's pk. pk = pk.remote_field.model._meta.pk rel = pk.remote_field return pk def _get_fields(opts): fields = OrderedDict() for field in [field for field in opts.fields if field.serialize and not field.remote_field]: fields[field.name] = field return fields def _get_to_field(field): return getattr(field, 'to_fields', None) and field.to_fields[0] def _get_forward_relationships(opts): """ Returns an `OrderedDict` of field names to `RelationInfo`. """ forward_relations = OrderedDict() for field in [field for field in opts.fields if field.serialize and field.remote_field]: forward_relations[field.name] = RelationInfo( model_field=field, related_model=field.remote_field.model, to_many=False, to_field=_get_to_field(field), has_through_model=False, reverse=False ) # Deal with forward many-to-many relationships. for field in [field for field in opts.many_to_many if field.serialize]: forward_relations[field.name] = RelationInfo( model_field=field, related_model=field.remote_field.model, to_many=True, # manytomany do not have to_fields to_field=None, has_through_model=( not field.remote_field.through._meta.auto_created ), reverse=False ) return forward_relations def _get_reverse_relationships(opts): """ Returns an `OrderedDict` of field names to `RelationInfo`. """ reverse_relations = OrderedDict() all_related_objects = [r for r in opts.related_objects if not r.field.many_to_many] for relation in all_related_objects: accessor_name = relation.get_accessor_name() reverse_relations[accessor_name] = RelationInfo( model_field=None, related_model=relation.related_model, to_many=relation.field.remote_field.multiple, to_field=_get_to_field(relation.field), has_through_model=False, reverse=True ) # Deal with reverse many-to-many relationships. all_related_many_to_many_objects = [r for r in opts.related_objects if r.field.many_to_many] for relation in all_related_many_to_many_objects: accessor_name = relation.get_accessor_name() reverse_relations[accessor_name] = RelationInfo( model_field=None, related_model=relation.related_model, to_many=True, # manytomany do not have to_fields to_field=None, has_through_model=( (getattr(relation.field.remote_field, 'through', None) is not None) and not relation.field.remote_field.through._meta.auto_created ), reverse=True ) return reverse_relations def _merge_fields_and_pk(pk, fields): fields_and_pk = OrderedDict() fields_and_pk['pk'] = pk fields_and_pk[pk.name] = pk fields_and_pk.update(fields) return fields_and_pk def _merge_relationships(forward_relations, reverse_relations): return OrderedDict( list(forward_relations.items()) + list(reverse_relations.items()) ) def is_abstract_model(model): """ Given a model class, returns a boolean True if it is abstract and False if it is not. """ return hasattr(model, '_meta') and hasattr(model._meta, 'abstract') and model._meta.abstract ================================================ FILE: jet_django/deps/rest_framework/utils/representation.py ================================================ """ Helper functions for creating user-friendly representations of serializer classes and serializer fields. """ from __future__ import unicode_literals import re from django.db import models from django.utils.encoding import force_text from django.utils.functional import Promise from jet_django.deps.rest_framework.compat import unicode_repr def manager_repr(value): model = value.model opts = model._meta names_and_managers = [ (manager.name, manager) for manager in opts.managers ] for manager_name, manager_instance in names_and_managers: if manager_instance == value: return '%s.%s.all()' % (model._meta.object_name, manager_name) return repr(value) def smart_repr(value): if isinstance(value, models.Manager): return manager_repr(value) if isinstance(value, Promise) and value._delegate_text: value = force_text(value) value = unicode_repr(value) # Representations like u'help text' # should simply be presented as 'help text' if value.startswith("u'") and value.endswith("'"): return value[1:] # Representations like # # Should be presented as # value = re.sub(' at 0x[0-9A-Fa-f]{4,32}>', '>', value) return value def field_repr(field, force_many=False): kwargs = field._kwargs if force_many: kwargs = kwargs.copy() kwargs['many'] = True kwargs.pop('child', None) arg_string = ', '.join([smart_repr(val) for val in field._args]) kwarg_string = ', '.join([ '%s=%s' % (key, smart_repr(val)) for key, val in sorted(kwargs.items()) ]) if arg_string and kwarg_string: arg_string += ', ' if force_many: class_name = force_many.__class__.__name__ else: class_name = field.__class__.__name__ return "%s(%s%s)" % (class_name, arg_string, kwarg_string) def serializer_repr(serializer, indent, force_many=None): ret = field_repr(serializer, force_many) + ':' indent_str = ' ' * indent if force_many: fields = force_many.fields else: fields = serializer.fields for field_name, field in fields.items(): ret += '\n' + indent_str + field_name + ' = ' if hasattr(field, 'fields'): ret += serializer_repr(field, indent + 1) elif hasattr(field, 'child'): ret += list_repr(field, indent + 1) elif hasattr(field, 'child_relation'): ret += field_repr(field.child_relation, force_many=field.child_relation) else: ret += field_repr(field) if serializer.validators: ret += '\n' + indent_str + 'class Meta:' ret += '\n' + indent_str + ' validators = ' + smart_repr(serializer.validators) return ret def list_repr(serializer, indent): child = serializer.child if hasattr(child, 'fields'): return serializer_repr(serializer, indent, force_many=child) return field_repr(serializer) ================================================ FILE: jet_django/deps/rest_framework/utils/serializer_helpers.py ================================================ from __future__ import unicode_literals import collections from collections import OrderedDict from django.utils.encoding import force_text from jet_django.deps.rest_framework.compat import unicode_to_repr from jet_django.deps.rest_framework.utils import json class ReturnDict(OrderedDict): """ Return object from `serializer.data` for the `Serializer` class. Includes a backlink to the serializer instance for renderers to use if they need richer field information. """ def __init__(self, *args, **kwargs): self.serializer = kwargs.pop('serializer') super(ReturnDict, self).__init__(*args, **kwargs) def copy(self): return ReturnDict(self, serializer=self.serializer) def __repr__(self): return dict.__repr__(self) def __reduce__(self): # Pickling these objects will drop the .serializer backlink, # but preserve the raw data. return (dict, (dict(self),)) class ReturnList(list): """ Return object from `serializer.data` for the `SerializerList` class. Includes a backlink to the serializer instance for renderers to use if they need richer field information. """ def __init__(self, *args, **kwargs): self.serializer = kwargs.pop('serializer') super(ReturnList, self).__init__(*args, **kwargs) def __repr__(self): return list.__repr__(self) def __reduce__(self): # Pickling these objects will drop the .serializer backlink, # but preserve the raw data. return (list, (list(self),)) class BoundField(object): """ A field object that also includes `.value` and `.error` properties. Returned when iterating over a serializer instance, providing an API similar to Django forms and form fields. """ def __init__(self, field, value, errors, prefix=''): self._field = field self._prefix = prefix self.value = value self.errors = errors self.name = prefix + self.field_name def __getattr__(self, attr_name): return getattr(self._field, attr_name) @property def _proxy_class(self): return self._field.__class__ def __repr__(self): return unicode_to_repr('<%s value=%s errors=%s>' % ( self.__class__.__name__, self.value, self.errors )) def as_form_field(self): value = '' if (self.value is None or self.value is False) else self.value return self.__class__(self._field, value, self.errors, self._prefix) class JSONBoundField(BoundField): def as_form_field(self): value = self.value # When HTML form input is used and the input is not valid # value will be a JSONString, rather than a JSON primitive. if not getattr(value, 'is_json_string', False): try: value = json.dumps(self.value, sort_keys=True, indent=4) except (TypeError, ValueError): pass return self.__class__(self._field, value, self.errors, self._prefix) class NestedBoundField(BoundField): """ This `BoundField` additionally implements __iter__ and __getitem__ in order to support nested bound fields. This class is the type of `BoundField` that is used for serializer fields. """ def __init__(self, field, value, errors, prefix=''): if value is None or value is '': value = {} super(NestedBoundField, self).__init__(field, value, errors, prefix) def __iter__(self): for field in self.fields.values(): yield self[field.field_name] def __getitem__(self, key): field = self.fields[key] value = self.value.get(key) if self.value else None error = self.errors.get(key) if isinstance(self.errors, dict) else None if hasattr(field, 'fields'): return NestedBoundField(field, value, error, prefix=self.name + '.') return BoundField(field, value, error, prefix=self.name + '.') def as_form_field(self): values = {} for key, value in self.value.items(): if isinstance(value, (list, dict)): values[key] = value else: values[key] = '' if (value is None or value is False) else force_text(value) return self.__class__(self._field, values, self.errors, self._prefix) class BindingDict(collections.MutableMapping): """ This dict-like object is used to store fields on a serializer. This ensures that whenever fields are added to the serializer we call `field.bind()` so that the `field_name` and `parent` attributes can be set correctly. """ def __init__(self, serializer): self.serializer = serializer self.fields = OrderedDict() def __setitem__(self, key, field): self.fields[key] = field field.bind(field_name=key, parent=self.serializer) def __getitem__(self, key): return self.fields[key] def __delitem__(self, key): del self.fields[key] def __iter__(self): return iter(self.fields) def __len__(self): return len(self.fields) def __repr__(self): return dict.__repr__(self.fields) ================================================ FILE: jet_django/deps/rest_framework/utils/urls.py ================================================ from django.utils.encoding import force_str from django.utils.six.moves.urllib import parse as urlparse def replace_query_param(url, key, val): """ Given a URL and a key/val pair, set or replace an item in the query parameters of the URL, and return the new URL. """ (scheme, netloc, path, query, fragment) = urlparse.urlsplit(force_str(url)) query_dict = urlparse.parse_qs(query, keep_blank_values=True) query_dict[force_str(key)] = [force_str(val)] query = urlparse.urlencode(sorted(list(query_dict.items())), doseq=True) return urlparse.urlunsplit((scheme, netloc, path, query, fragment)) def remove_query_param(url, key): """ Given a URL and a key/val pair, remove an item in the query parameters of the URL, and return the new URL. """ (scheme, netloc, path, query, fragment) = urlparse.urlsplit(force_str(url)) query_dict = urlparse.parse_qs(query, keep_blank_values=True) query_dict.pop(key, None) query = urlparse.urlencode(sorted(list(query_dict.items())), doseq=True) return urlparse.urlunsplit((scheme, netloc, path, query, fragment)) ================================================ FILE: jet_django/deps/rest_framework/validators.py ================================================ """ We perform uniqueness checks explicitly on the serializer class, rather the using Django's `.full_clean()`. This gives us better separation of concerns, allows us to use single-step object creation, and makes it possible to switch between using the implicit `ModelSerializer` class and an equivalent explicit `Serializer` class. """ from __future__ import unicode_literals from django.db import DataError from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework.compat import unicode_to_repr from jet_django.deps.rest_framework.exceptions import ValidationError from jet_django.deps.rest_framework.utils.representation import smart_repr # Robust filter and exist implementations. Ensures that queryset.exists() for # an invalid value returns `False`, rather than raising an error. # Refs https://github.com/encode/django-rest-framework/issues/3381 def qs_exists(queryset): try: return queryset.exists() except (TypeError, ValueError, DataError): return False def qs_filter(queryset, **kwargs): try: return queryset.filter(**kwargs) except (TypeError, ValueError, DataError): return queryset.none() class UniqueValidator(object): """ Validator that corresponds to `unique=True` on a model field. Should be applied to an individual field on the serializer. """ message = _('This field must be unique.') def __init__(self, queryset, message=None, lookup='exact'): self.queryset = queryset self.serializer_field = None self.message = message or self.message self.lookup = lookup def set_context(self, serializer_field): """ This hook is called by the serializer instance, prior to the validation call being made. """ # Determine the underlying model field name. This may not be the # same as the serializer field name if `source=<>` is set. self.field_name = serializer_field.source_attrs[-1] # Determine the existing instance, if this is an update operation. self.instance = getattr(serializer_field.parent, 'instance', None) def filter_queryset(self, value, queryset): """ Filter the queryset to all instances matching the given attribute. """ filter_kwargs = {'%s__%s' % (self.field_name, self.lookup): value} return qs_filter(queryset, **filter_kwargs) def exclude_current_instance(self, queryset): """ If an instance is being updated, then do not include that instance itself as a uniqueness conflict. """ if self.instance is not None: return queryset.exclude(pk=self.instance.pk) return queryset def __call__(self, value): queryset = self.queryset queryset = self.filter_queryset(value, queryset) queryset = self.exclude_current_instance(queryset) if qs_exists(queryset): raise ValidationError(self.message, code='unique') def __repr__(self): return unicode_to_repr('<%s(queryset=%s)>' % ( self.__class__.__name__, smart_repr(self.queryset) )) class UniqueTogetherValidator(object): """ Validator that corresponds to `unique_together = (...)` on a model class. Should be applied to the serializer class, not to an individual field. """ message = _('The fields {field_names} must make a unique set.') missing_message = _('This field is required.') def __init__(self, queryset, fields, message=None): self.queryset = queryset self.fields = fields self.serializer_field = None self.message = message or self.message def set_context(self, serializer): """ This hook is called by the serializer instance, prior to the validation call being made. """ # Determine the existing instance, if this is an update operation. self.instance = getattr(serializer, 'instance', None) def enforce_required_fields(self, attrs): """ The `UniqueTogetherValidator` always forces an implied 'required' state on the fields it applies to. """ if self.instance is not None: return missing_items = { field_name: self.missing_message for field_name in self.fields if field_name not in attrs } if missing_items: raise ValidationError(missing_items, code='required') def filter_queryset(self, attrs, queryset): """ Filter the queryset to all instances matching the given attributes. """ # If this is an update, then any unprovided field should # have it's value set based on the existing instance attribute. if self.instance is not None: for field_name in self.fields: if field_name not in attrs: attrs[field_name] = getattr(self.instance, field_name) # Determine the filter keyword arguments and filter the queryset. filter_kwargs = { field_name: attrs[field_name] for field_name in self.fields } return qs_filter(queryset, **filter_kwargs) def exclude_current_instance(self, attrs, queryset): """ If an instance is being updated, then do not include that instance itself as a uniqueness conflict. """ if self.instance is not None: return queryset.exclude(pk=self.instance.pk) return queryset def __call__(self, attrs): self.enforce_required_fields(attrs) queryset = self.queryset queryset = self.filter_queryset(attrs, queryset) queryset = self.exclude_current_instance(attrs, queryset) # Ignore validation if any field is None checked_values = [ value for field, value in attrs.items() if field in self.fields ] if None not in checked_values and qs_exists(queryset): field_names = ', '.join(self.fields) message = self.message.format(field_names=field_names) raise ValidationError(message, code='unique') def __repr__(self): return unicode_to_repr('<%s(queryset=%s, fields=%s)>' % ( self.__class__.__name__, smart_repr(self.queryset), smart_repr(self.fields) )) class BaseUniqueForValidator(object): message = None missing_message = _('This field is required.') def __init__(self, queryset, field, date_field, message=None): self.queryset = queryset self.field = field self.date_field = date_field self.message = message or self.message def set_context(self, serializer): """ This hook is called by the serializer instance, prior to the validation call being made. """ # Determine the underlying model field names. These may not be the # same as the serializer field names if `source=<>` is set. self.field_name = serializer.fields[self.field].source_attrs[-1] self.date_field_name = serializer.fields[self.date_field].source_attrs[-1] # Determine the existing instance, if this is an update operation. self.instance = getattr(serializer, 'instance', None) def enforce_required_fields(self, attrs): """ The `UniqueForValidator` classes always force an implied 'required' state on the fields they are applied to. """ missing_items = { field_name: self.missing_message for field_name in [self.field, self.date_field] if field_name not in attrs } if missing_items: raise ValidationError(missing_items, code='required') def filter_queryset(self, attrs, queryset): raise NotImplementedError('`filter_queryset` must be implemented.') def exclude_current_instance(self, attrs, queryset): """ If an instance is being updated, then do not include that instance itself as a uniqueness conflict. """ if self.instance is not None: return queryset.exclude(pk=self.instance.pk) return queryset def __call__(self, attrs): self.enforce_required_fields(attrs) queryset = self.queryset queryset = self.filter_queryset(attrs, queryset) queryset = self.exclude_current_instance(attrs, queryset) if qs_exists(queryset): message = self.message.format(date_field=self.date_field) raise ValidationError({ self.field: message }, code='unique') def __repr__(self): return unicode_to_repr('<%s(queryset=%s, field=%s, date_field=%s)>' % ( self.__class__.__name__, smart_repr(self.queryset), smart_repr(self.field), smart_repr(self.date_field) )) class UniqueForDateValidator(BaseUniqueForValidator): message = _('This field must be unique for the "{date_field}" date.') def filter_queryset(self, attrs, queryset): value = attrs[self.field] date = attrs[self.date_field] filter_kwargs = {} filter_kwargs[self.field_name] = value filter_kwargs['%s__day' % self.date_field_name] = date.day filter_kwargs['%s__month' % self.date_field_name] = date.month filter_kwargs['%s__year' % self.date_field_name] = date.year return qs_filter(queryset, **filter_kwargs) class UniqueForMonthValidator(BaseUniqueForValidator): message = _('This field must be unique for the "{date_field}" month.') def filter_queryset(self, attrs, queryset): value = attrs[self.field] date = attrs[self.date_field] filter_kwargs = {} filter_kwargs[self.field_name] = value filter_kwargs['%s__month' % self.date_field_name] = date.month return qs_filter(queryset, **filter_kwargs) class UniqueForYearValidator(BaseUniqueForValidator): message = _('This field must be unique for the "{date_field}" year.') def filter_queryset(self, attrs, queryset): value = attrs[self.field] date = attrs[self.date_field] filter_kwargs = {} filter_kwargs[self.field_name] = value filter_kwargs['%s__year' % self.date_field_name] = date.year return qs_filter(queryset, **filter_kwargs) ================================================ FILE: jet_django/deps/rest_framework/versioning.py ================================================ # coding: utf-8 from __future__ import unicode_literals import re from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework import exceptions from jet_django.deps.rest_framework.compat import unicode_http_header from jet_django.deps.rest_framework.reverse import _reverse from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.templatetags.rest_framework import replace_query_param from jet_django.deps.rest_framework.utils.mediatypes import _MediaType class BaseVersioning(object): default_version = api_settings.DEFAULT_VERSION allowed_versions = api_settings.ALLOWED_VERSIONS version_param = api_settings.VERSION_PARAM def determine_version(self, request, *args, **kwargs): msg = '{cls}.determine_version() must be implemented.' raise NotImplementedError(msg.format( cls=self.__class__.__name__ )) def reverse(self, viewname, args=None, kwargs=None, request=None, format=None, **extra): return _reverse(viewname, args, kwargs, request, format, **extra) def is_allowed_version(self, version): if not self.allowed_versions: return True return ((version is not None and version == self.default_version) or (version in self.allowed_versions)) class AcceptHeaderVersioning(BaseVersioning): """ GET /something/ HTTP/1.1 Host: example.com Accept: application/json; version=1.0 """ invalid_version_message = _('Invalid version in "Accept" header.') def determine_version(self, request, *args, **kwargs): media_type = _MediaType(request.accepted_media_type) version = media_type.params.get(self.version_param, self.default_version) version = unicode_http_header(version) if not self.is_allowed_version(version): raise exceptions.NotAcceptable(self.invalid_version_message) return version # We don't need to implement `reverse`, as the versioning is based # on the `Accept` header, not on the request URL. class URLPathVersioning(BaseVersioning): """ To the client this is the same style as `NamespaceVersioning`. The difference is in the backend - this implementation uses Django's URL keyword arguments to determine the version. An example URL conf for two views that accept two different versions. urlpatterns = [ url(r'^(?P[v1|v2]+)/users/$', users_list, name='users-list'), url(r'^(?P[v1|v2]+)/users/(?P[0-9]+)/$', users_detail, name='users-detail') ] GET /1.0/something/ HTTP/1.1 Host: example.com Accept: application/json """ invalid_version_message = _('Invalid version in URL path.') def determine_version(self, request, *args, **kwargs): version = kwargs.get(self.version_param, self.default_version) if not self.is_allowed_version(version): raise exceptions.NotFound(self.invalid_version_message) return version def reverse(self, viewname, args=None, kwargs=None, request=None, format=None, **extra): if request.version is not None: kwargs = {} if (kwargs is None) else kwargs kwargs[self.version_param] = request.version return super(URLPathVersioning, self).reverse( viewname, args, kwargs, request, format, **extra ) class NamespaceVersioning(BaseVersioning): """ To the client this is the same style as `URLPathVersioning`. The difference is in the backend - this implementation uses Django's URL namespaces to determine the version. An example URL conf that is namespaced into two separate versions # users/urls.py urlpatterns = [ url(r'^/users/$', users_list, name='users-list'), url(r'^/users/(?P[0-9]+)/$', users_detail, name='users-detail') ] # urls.py urlpatterns = [ url(r'^v1/', include('users.urls', namespace='v1')), url(r'^v2/', include('users.urls', namespace='v2')) ] GET /1.0/something/ HTTP/1.1 Host: example.com Accept: application/json """ invalid_version_message = _('Invalid version in URL path. Does not match any version namespace.') def determine_version(self, request, *args, **kwargs): resolver_match = getattr(request, 'resolver_match', None) if resolver_match is None or not resolver_match.namespace: return self.default_version # Allow for possibly nested namespaces. possible_versions = resolver_match.namespace.split(':') for version in possible_versions: if self.is_allowed_version(version): return version raise exceptions.NotFound(self.invalid_version_message) def reverse(self, viewname, args=None, kwargs=None, request=None, format=None, **extra): if request.version is not None: viewname = self.get_versioned_viewname(viewname, request) return super(NamespaceVersioning, self).reverse( viewname, args, kwargs, request, format, **extra ) def get_versioned_viewname(self, viewname, request): return request.version + ':' + viewname class HostNameVersioning(BaseVersioning): """ GET /something/ HTTP/1.1 Host: v1.example.com Accept: application/json """ hostname_regex = re.compile(r'^([a-zA-Z0-9]+)\.[a-zA-Z0-9]+\.[a-zA-Z0-9]+$') invalid_version_message = _('Invalid version in hostname.') def determine_version(self, request, *args, **kwargs): hostname, separator, port = request.get_host().partition(':') match = self.hostname_regex.match(hostname) if not match: return self.default_version version = match.group(1) if not self.is_allowed_version(version): raise exceptions.NotFound(self.invalid_version_message) return version # We don't need to implement `reverse`, as the hostname will already be # preserved as part of the REST framework `reverse` implementation. class QueryParameterVersioning(BaseVersioning): """ GET /something/?version=0.1 HTTP/1.1 Host: example.com Accept: application/json """ invalid_version_message = _('Invalid version in query parameter.') def determine_version(self, request, *args, **kwargs): version = request.query_params.get(self.version_param, self.default_version) if not self.is_allowed_version(version): raise exceptions.NotFound(self.invalid_version_message) return version def reverse(self, viewname, args=None, kwargs=None, request=None, format=None, **extra): url = super(QueryParameterVersioning, self).reverse( viewname, args, kwargs, request, format, **extra ) if request.version is not None: return replace_query_param(url, self.version_param, request.version) return url ================================================ FILE: jet_django/deps/rest_framework/views.py ================================================ """ Provides an APIView class that is the base of all views in REST framework. """ from __future__ import unicode_literals from django.conf import settings from django.core.exceptions import PermissionDenied from django.db import connection, models, transaction from django.http import Http404 from django.http.response import HttpResponseBase from django.utils.cache import cc_delim_re, patch_vary_headers from django.utils.encoding import smart_text from django.views.decorators.csrf import csrf_exempt from django.views.generic import View from jet_django.deps.rest_framework import exceptions, status from jet_django.deps.rest_framework.request import Request from jet_django.deps.rest_framework.response import Response from jet_django.deps.rest_framework.schemas import DefaultSchema from jet_django.deps.rest_framework.settings import api_settings from jet_django.deps.rest_framework.utils import formatting def get_view_name(view_cls, suffix=None): """ Given a view class, return a textual name to represent the view. This name is used in the browsable API, and in OPTIONS responses. This function is the default for the `VIEW_NAME_FUNCTION` setting. """ name = view_cls.__name__ name = formatting.remove_trailing_string(name, 'View') name = formatting.remove_trailing_string(name, 'ViewSet') name = formatting.camelcase_to_spaces(name) if suffix: name += ' ' + suffix return name def get_view_description(view_cls, html=False): """ Given a view class, return a textual description to represent the view. This name is used in the browsable API, and in OPTIONS responses. This function is the default for the `VIEW_DESCRIPTION_FUNCTION` setting. """ description = view_cls.__doc__ or '' description = formatting.dedent(smart_text(description)) if html: return formatting.markup_description(description) return description def set_rollback(): atomic_requests = connection.settings_dict.get('ATOMIC_REQUESTS', False) if atomic_requests and connection.in_atomic_block: transaction.set_rollback(True) def exception_handler(exc, context): """ Returns the response that should be used for any given exception. By default we handle the REST framework `APIException`, and also Django's built-in `Http404` and `PermissionDenied` exceptions. Any unhandled exceptions may return `None`, which will cause a 500 error to be raised. """ if isinstance(exc, Http404): exc = exceptions.NotFound() elif isinstance(exc, PermissionDenied): exc = exceptions.PermissionDenied() if isinstance(exc, exceptions.APIException): headers = {} if getattr(exc, 'auth_header', None): headers['WWW-Authenticate'] = exc.auth_header if getattr(exc, 'wait', None): headers['Retry-After'] = '%d' % exc.wait if isinstance(exc.detail, (list, dict)): data = exc.detail else: data = {'detail': exc.detail} set_rollback() return Response(data, status=exc.status_code, headers=headers) return None class APIView(View): # The following policies may be set at either globally, or per-view. renderer_classes = api_settings.DEFAULT_RENDERER_CLASSES parser_classes = api_settings.DEFAULT_PARSER_CLASSES authentication_classes = api_settings.DEFAULT_AUTHENTICATION_CLASSES throttle_classes = api_settings.DEFAULT_THROTTLE_CLASSES permission_classes = api_settings.DEFAULT_PERMISSION_CLASSES content_negotiation_class = api_settings.DEFAULT_CONTENT_NEGOTIATION_CLASS metadata_class = api_settings.DEFAULT_METADATA_CLASS versioning_class = api_settings.DEFAULT_VERSIONING_CLASS # Allow dependency injection of other settings to make testing easier. settings = api_settings schema = DefaultSchema() @classmethod def as_view(cls, **initkwargs): """ Store the original class on the view function. This allows us to discover information about the view when we do URL reverse lookups. Used for breadcrumb generation. """ if isinstance(getattr(cls, 'queryset', None), models.query.QuerySet): def force_evaluation(): raise RuntimeError( 'Do not evaluate the `.queryset` attribute directly, ' 'as the result will be cached and reused between requests. ' 'Use `.all()` or call `.get_queryset()` instead.' ) cls.queryset._fetch_all = force_evaluation view = super(APIView, cls).as_view(**initkwargs) view.cls = cls view.initkwargs = initkwargs # Note: session based authentication is explicitly CSRF validated, # all other authentication is CSRF exempt. return csrf_exempt(view) @property def allowed_methods(self): """ Wrap Django's private `_allowed_methods` interface in a public property. """ return self._allowed_methods() @property def default_response_headers(self): headers = { 'Allow': ', '.join(self.allowed_methods), } if len(self.renderer_classes) > 1: headers['Vary'] = 'Accept' return headers def http_method_not_allowed(self, request, *args, **kwargs): """ If `request.method` does not correspond to a handler method, determine what kind of exception to raise. """ raise exceptions.MethodNotAllowed(request.method) def permission_denied(self, request, message=None): """ If request is not permitted, determine what kind of exception to raise. """ if request.authenticators and not request.successful_authenticator: raise exceptions.NotAuthenticated() raise exceptions.PermissionDenied(detail=message) def throttled(self, request, wait): """ If request is throttled, determine what kind of exception to raise. """ raise exceptions.Throttled(wait) def get_authenticate_header(self, request): """ If a request is unauthenticated, determine the WWW-Authenticate header to use for 401 responses, if any. """ authenticators = self.get_authenticators() if authenticators: return authenticators[0].authenticate_header(request) def get_parser_context(self, http_request): """ Returns a dict that is passed through to Parser.parse(), as the `parser_context` keyword argument. """ # Note: Additionally `request` and `encoding` will also be added # to the context by the Request object. return { 'view': self, 'args': getattr(self, 'args', ()), 'kwargs': getattr(self, 'kwargs', {}) } def get_renderer_context(self): """ Returns a dict that is passed through to Renderer.render(), as the `renderer_context` keyword argument. """ # Note: Additionally 'response' will also be added to the context, # by the Response object. return { 'view': self, 'args': getattr(self, 'args', ()), 'kwargs': getattr(self, 'kwargs', {}), 'request': getattr(self, 'request', None) } def get_exception_handler_context(self): """ Returns a dict that is passed through to EXCEPTION_HANDLER, as the `context` argument. """ return { 'view': self, 'args': getattr(self, 'args', ()), 'kwargs': getattr(self, 'kwargs', {}), 'request': getattr(self, 'request', None) } def get_view_name(self): """ Return the view name, as used in OPTIONS responses and in the browsable API. """ func = self.settings.VIEW_NAME_FUNCTION return func(self.__class__, getattr(self, 'suffix', None)) def get_view_description(self, html=False): """ Return some descriptive text for the view, as used in OPTIONS responses and in the browsable API. """ func = self.settings.VIEW_DESCRIPTION_FUNCTION return func(self.__class__, html) # API policy instantiation methods def get_format_suffix(self, **kwargs): """ Determine if the request includes a '.json' style format suffix """ if self.settings.FORMAT_SUFFIX_KWARG: return kwargs.get(self.settings.FORMAT_SUFFIX_KWARG) def get_renderers(self): """ Instantiates and returns the list of renderers that this view can use. """ return [renderer() for renderer in self.renderer_classes] def get_parsers(self): """ Instantiates and returns the list of parsers that this view can use. """ return [parser() for parser in self.parser_classes] def get_authenticators(self): """ Instantiates and returns the list of authenticators that this view can use. """ return [auth() for auth in self.authentication_classes] def get_permissions(self): """ Instantiates and returns the list of permissions that this view requires. """ return [permission() for permission in self.permission_classes] def get_throttles(self): """ Instantiates and returns the list of throttles that this view uses. """ return [throttle() for throttle in self.throttle_classes] def get_content_negotiator(self): """ Instantiate and return the content negotiation class to use. """ if not getattr(self, '_negotiator', None): self._negotiator = self.content_negotiation_class() return self._negotiator def get_exception_handler(self): """ Returns the exception handler that this view uses. """ return self.settings.EXCEPTION_HANDLER # API policy implementation methods def perform_content_negotiation(self, request, force=False): """ Determine which renderer and media type to use render the response. """ renderers = self.get_renderers() conneg = self.get_content_negotiator() try: return conneg.select_renderer(request, renderers, self.format_kwarg) except Exception: if force: return (renderers[0], renderers[0].media_type) raise def perform_authentication(self, request): """ Perform authentication on the incoming request. Note that if you override this and simply 'pass', then authentication will instead be performed lazily, the first time either `request.user` or `request.auth` is accessed. """ request.user def check_permissions(self, request): """ Check if the request should be permitted. Raises an appropriate exception if the request is not permitted. """ for permission in self.get_permissions(): if not permission.has_permission(request, self): self.permission_denied( request, message=getattr(permission, 'message', None) ) def check_object_permissions(self, request, obj): """ Check if the request should be permitted for a given object. Raises an appropriate exception if the request is not permitted. """ for permission in self.get_permissions(): if not permission.has_object_permission(request, self, obj): self.permission_denied( request, message=getattr(permission, 'message', None) ) def check_throttles(self, request): """ Check if request should be throttled. Raises an appropriate exception if the request is throttled. """ for throttle in self.get_throttles(): if not throttle.allow_request(request, self): self.throttled(request, throttle.wait()) def determine_version(self, request, *args, **kwargs): """ If versioning is being used, then determine any API version for the incoming request. Returns a two-tuple of (version, versioning_scheme) """ if self.versioning_class is None: return (None, None) scheme = self.versioning_class() return (scheme.determine_version(request, *args, **kwargs), scheme) # Dispatch methods def initialize_request(self, request, *args, **kwargs): """ Returns the initial request object. """ parser_context = self.get_parser_context(request) return Request( request, parsers=self.get_parsers(), authenticators=self.get_authenticators(), negotiator=self.get_content_negotiator(), parser_context=parser_context ) def initial(self, request, *args, **kwargs): """ Runs anything that needs to occur prior to calling the method handler. """ self.format_kwarg = self.get_format_suffix(**kwargs) # Perform content negotiation and store the accepted info on the request neg = self.perform_content_negotiation(request) request.accepted_renderer, request.accepted_media_type = neg # Determine the API version, if versioning is in use. version, scheme = self.determine_version(request, *args, **kwargs) request.version, request.versioning_scheme = version, scheme # Ensure that the incoming request is permitted self.perform_authentication(request) self.check_permissions(request) self.check_throttles(request) def finalize_response(self, request, response, *args, **kwargs): """ Returns the final response object. """ # Make the error obvious if a proper response is not returned assert isinstance(response, HttpResponseBase), ( 'Expected a `Response`, `HttpResponse` or `HttpStreamingResponse` ' 'to be returned from the view, but received a `%s`' % type(response) ) if isinstance(response, Response): if not getattr(request, 'accepted_renderer', None): neg = self.perform_content_negotiation(request, force=True) request.accepted_renderer, request.accepted_media_type = neg response.accepted_renderer = request.accepted_renderer response.accepted_media_type = request.accepted_media_type response.renderer_context = self.get_renderer_context() # Add new vary headers to the response instead of overwriting. vary_headers = self.headers.pop('Vary', None) if vary_headers is not None: patch_vary_headers(response, cc_delim_re.split(vary_headers)) for key, value in self.headers.items(): response[key] = value return response def handle_exception(self, exc): """ Handle any exception that occurs, by returning an appropriate response, or re-raising the error. """ if isinstance(exc, (exceptions.NotAuthenticated, exceptions.AuthenticationFailed)): # WWW-Authenticate header for 401 responses, else coerce to 403 auth_header = self.get_authenticate_header(self.request) if auth_header: exc.auth_header = auth_header else: exc.status_code = status.HTTP_403_FORBIDDEN exception_handler = self.get_exception_handler() context = self.get_exception_handler_context() response = exception_handler(exc, context) if response is None: self.raise_uncaught_exception(exc) response.exception = True return response def raise_uncaught_exception(self, exc): if settings.DEBUG: request = self.request renderer_format = getattr(request.accepted_renderer, 'format') use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin') request.force_plaintext_errors(use_plaintext_traceback) raise # Note: Views are made CSRF exempt from within `as_view` as to prevent # accidental removal of this exemption in cases where `dispatch` needs to # be overridden. def dispatch(self, request, *args, **kwargs): """ `.dispatch()` is pretty much the same as Django's regular dispatch, but with extra hooks for startup, finalize, and exception handling. """ self.args = args self.kwargs = kwargs request = self.initialize_request(request, *args, **kwargs) self.request = request self.headers = self.default_response_headers # deprecate? try: self.initial(request, *args, **kwargs) # Get the appropriate handler method if request.method.lower() in self.http_method_names: handler = getattr(self, request.method.lower(), self.http_method_not_allowed) else: handler = self.http_method_not_allowed response = handler(request, *args, **kwargs) except Exception as exc: response = self.handle_exception(exc) self.response = self.finalize_response(request, response, *args, **kwargs) return self.response def options(self, request, *args, **kwargs): """ Handler method for HTTP 'OPTIONS' request. """ if self.metadata_class is None: return self.http_method_not_allowed(request, *args, **kwargs) data = self.metadata_class().determine_metadata(request, self) return Response(data, status=status.HTTP_200_OK) ================================================ FILE: jet_django/deps/rest_framework/viewsets.py ================================================ """ ViewSets are essentially just a type of class based view, that doesn't provide any method handlers, such as `get()`, `post()`, etc... but instead has actions, such as `list()`, `retrieve()`, `create()`, etc... Actions are only bound to methods at the point of instantiating the views. user_list = UserViewSet.as_view({'get': 'list'}) user_detail = UserViewSet.as_view({'get': 'retrieve'}) Typically, rather than instantiate views from viewsets directly, you'll register the viewset with a router and let the URL conf be determined automatically. router = DefaultRouter() router.register(r'users', UserViewSet, 'user') urlpatterns = router.urls """ from __future__ import unicode_literals from functools import update_wrapper from inspect import getmembers from django.utils.decorators import classonlymethod from django.views.decorators.csrf import csrf_exempt from jet_django.deps.rest_framework import generics, mixins, views from jet_django.deps.rest_framework.reverse import reverse def _is_extra_action(attr): return hasattr(attr, 'bind_to_methods') class ViewSetMixin(object): """ This is the magic. Overrides `.as_view()` so that it takes an `actions` keyword that performs the binding of HTTP methods to actions on the Resource. For example, to create a concrete view binding the 'GET' and 'POST' methods to the 'list' and 'create' actions... view = MyViewSet.as_view({'get': 'list', 'post': 'create'}) """ @classonlymethod def as_view(cls, actions=None, **initkwargs): """ Because of the way class based views create a closure around the instantiated view, we need to totally reimplement `.as_view`, and slightly modify the view function that is created and returned. """ # The suffix initkwarg is reserved for displaying the viewset type. # eg. 'List' or 'Instance'. cls.suffix = None # The detail initkwarg is reserved for introspecting the viewset type. cls.detail = None # Setting a basename allows a view to reverse its action urls. This # value is provided by the router through the initkwargs. cls.basename = None # actions must not be empty if not actions: raise TypeError("The `actions` argument must be provided when " "calling `.as_view()` on a ViewSet. For example " "`.as_view({'get': 'list'})`") # sanitize keyword arguments for key in initkwargs: if key in cls.http_method_names: raise TypeError("You tried to pass in the %s method name as a " "keyword argument to %s(). Don't do that." % (key, cls.__name__)) if not hasattr(cls, key): raise TypeError("%s() received an invalid keyword %r" % ( cls.__name__, key)) def view(request, *args, **kwargs): self = cls(**initkwargs) # We also store the mapping of request methods to actions, # so that we can later set the action attribute. # eg. `self.action = 'list'` on an incoming GET request. self.action_map = actions # Bind methods to actions # This is the bit that's different to a standard view for method, action in actions.items(): handler = getattr(self, action) setattr(self, method, handler) if hasattr(self, 'get') and not hasattr(self, 'head'): self.head = self.get self.request = request self.args = args self.kwargs = kwargs # And continue as usual return self.dispatch(request, *args, **kwargs) # take name and docstring from class update_wrapper(view, cls, updated=()) # and possible attributes set by decorators # like csrf_exempt from dispatch update_wrapper(view, cls.dispatch, assigned=()) # We need to set these on the view function, so that breadcrumb # generation can pick out these bits of information from a # resolved URL. view.cls = cls view.initkwargs = initkwargs view.suffix = initkwargs.get('suffix', None) view.actions = actions return csrf_exempt(view) def initialize_request(self, request, *args, **kwargs): """ Set the `.action` attribute on the view, depending on the request method. """ request = super(ViewSetMixin, self).initialize_request(request, *args, **kwargs) method = request.method.lower() if method == 'options': # This is a special case as we always provide handling for the # options method in the base `View` class. # Unlike the other explicitly defined actions, 'metadata' is implicit. self.action = 'metadata' else: self.action = self.action_map.get(method) return request def reverse_action(self, url_name, *args, **kwargs): """ Reverse the action for the given `url_name`. """ url_name = '%s-%s' % (self.basename, url_name) kwargs.setdefault('request', self.request) return reverse(url_name, *args, **kwargs) @classmethod def get_extra_actions(cls): """ Get the methods that are marked as an extra ViewSet `@action`. """ return [method for _, method in getmembers(cls, _is_extra_action)] class ViewSet(ViewSetMixin, views.APIView): """ The base ViewSet class does not provide any actions by default. """ pass class GenericViewSet(ViewSetMixin, generics.GenericAPIView): """ The GenericViewSet class does not provide any actions by default, but does include the base set of generic view behavior, such as the `get_object` and `get_queryset` methods. """ pass class ReadOnlyModelViewSet(mixins.RetrieveModelMixin, mixins.ListModelMixin, GenericViewSet): """ A viewset that provides default `list()` and `retrieve()` actions. """ pass class ModelViewSet(mixins.CreateModelMixin, mixins.RetrieveModelMixin, mixins.UpdateModelMixin, mixins.DestroyModelMixin, mixins.ListModelMixin, GenericViewSet): """ A viewset that provides default `create()`, `retrieve()`, `update()`, `partial_update()`, `destroy()` and `list()` actions. """ pass ================================================ FILE: jet_django/fields/raw_file.py ================================================ import json from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework import serializers class RawFileField(serializers.CharField): def __init__(self, *args, **kwargs): if 'validators' in kwargs: del kwargs['validators'] self.default_error_messages['invalid_format'] = _('Not a valid format.') super().__init__(*args, **kwargs) def to_internal_value(self, data): if isinstance(data, dict): obj = data else: try: obj = json.loads(data) except (ValueError, TypeError): self.fail('invalid_format') try: return obj['value'] except KeyError: self.fail('invalid_format') def to_representation(self, value): return { 'value': super().to_representation(value), 'url': serializers.FileField.to_representation(self, value) } ================================================ FILE: jet_django/filters/__init__.py ================================================ ================================================ FILE: jet_django/filters/geos_geometry.py ================================================ from jet_django.deps import django_filters class GEOSGeometryFilter(django_filters.CharFilter): def filter(self, qs, value): try: from django.contrib.gis.geos import GEOSGeometry value = GEOSGeometry(value) return super().filter(qs, value) except (ValueError, TypeError, ImportError): return qs ================================================ FILE: jet_django/filters/model.py ================================================ from __future__ import absolute_import, unicode_literals from functools import reduce from collections import OrderedDict from jet_django.deps import django_filters from django.db import models from django.db.models import Q, fields, base from django.contrib.admin.utils import flatten from jet_django.deps.django_filters import rest_framework as filters from jet_django.deps.django_filters.constants import EMPTY_VALUES from django.db.models.fields.related import ForeignObjectRel from jet_django.deps.django_filters.utils import resolve_field, get_model_field from jet_django.filters.geos_geometry import GEOSGeometryFilter from jet_django.serializers.sql import SqlSerializer filter_overrides_value = { models.DateTimeField: { 'filter_class': filters.DateTimeFilter, 'extra': lambda f: { 'input_formats': ['%Y-%m-%dT%H:%M:%S.%fZ', '%Y-%m-%dT%H:%M:%SZ'] } }, models.DateField: { 'filter_class': filters.DateFilter, 'extra': lambda f: { 'input_formats': ['%Y-%m-%dT%H:%M:%S.%fZ', '%Y-%m-%dT%H:%M:%SZ'] } }, models.BooleanField: { 'filter_class': filters.BooleanFilter } } try: from django.contrib.gis.db.models import PointField postgis_available = True except: postgis_available = False PointField = None if postgis_available: filter_overrides_value[PointField] = { 'filter_class': GEOSGeometryFilter } def filter_field(field): if postgis_available and isinstance(field, PointField): return True try: django_filters.FilterSet.filter_for_field(field, field.name) return True except: return False def search_field(field): allowed_fields = [ fields.CharField, fields.TextField, fields.IPAddressField, fields.GenericIPAddressField, fields.UUIDField ] try: from django.contrib.postgres.fields import JSONField allowed_fields.append(JSONField) except ImportError: pass return isinstance(field, tuple(allowed_fields)) def foreign_key_field(field): return isinstance(field, (fields.related.ForeignKey,)) and isinstance(field.related_model, (base.ModelBase,)) def foreign_key_map(field): field_fields = field.related_model._meta.get_fields() return list(map(lambda x: '{}__{}'.format(field.name, x.name), filter(search_field, field_fields))) def model_filter_class_factory(build_model, model_fields, model_relations): model_fields = list(model_fields) search_fields = list(map(lambda x: x.name, filter(search_field, model_fields))) search_related_fields = flatten(list(map(foreign_key_map, filter(foreign_key_field, model_fields)))) search_fields = search_fields + search_related_fields filter_field_names = list(map(lambda x: x.name, filter(filter_field, model_fields))) filter_fields = dict(map( lambda x: [x.name, list(x.get_lookups().keys())], filter(lambda x: x.name in filter_field_names, build_model._meta.fields) )) class SearchFilter(django_filters.CharFilter): def filter(self, qs, value): if value in EMPTY_VALUES: return qs query = reduce(lambda q, field: q | Q(**dict([('{}__icontains'.format(field), value)])), search_fields, Q()) qs = qs.filter(query) return qs class M2MFilter(django_filters.CharFilter): def filter(self, qs, value): if value in EMPTY_VALUES: return qs params = value.split(',', 2) if len(params) < 2: return qs.none() relation_name, value = params relations = list(filter(lambda x: x.name == relation_name, model_relations)) if len(relations) == 0: return qs.none() relation = relations[0] if isinstance(relation, models.ManyToManyRel): query = {'{}__pk'.format(relation_name): value} qs = qs.filter(**query) elif isinstance(relation, models.ManyToManyField): query = {'{}__pk'.format(relation_name): value} qs = qs.filter(**query) return qs class ModelSegmentFilter(django_filters.CharFilter): def filter(self, qs, value): if value in EMPTY_VALUES: return qs body = self.parent.request.data if not isinstance(body, dict): return qs.none() items = list(filter(lambda x: x.get('name') == value, body.get('segments', []))) if len(items) == 0: return qs.none() query = items[0].get('query') serializer = SqlSerializer(data={'query': query}) serializer.is_valid(raise_exception=True) result = serializer.execute(serializer.validated_data) columns = list(result['columns']) rows = result['data'] if len(columns) == 0 or len(rows) == 0: return qs.none() ids = list(map(lambda x: list(x)[0], rows)) return qs.filter(pk__in=ids) class ModelRelationFilter(django_filters.CharFilter): def filter(self, qs, value): if value in EMPTY_VALUES: return qs from django.apps import apps models = apps.get_models() def get_model(model): result = list(filter(lambda x: x._meta.db_table == model, models)) return result[0] if len(result) else None def get_field_column(model, field_name): field = model._meta.get_field(field_name) return field.get_attname_column()[1] current_table = build_model path = list(map(lambda x: x.split('.'), value.split('|'))) path_len = len(path) sql = list() args = list() sql.append('SELECT {0}.{1} as id FROM {0}'.format(build_model._meta.db_table, build_model._meta.pk.name)) for i in range(path_len): item = path[i] last = i == path_len - 1 if not last: current_table_column = get_field_column(current_table, item[0]) related_table = get_model(item[1]) related_table_column = get_field_column(related_table, item[2]) sql.append('JOIN {2} ON {0}.{1} = {2}.{3}'.format( current_table._meta.db_table, current_table_column, related_table._meta.db_table, related_table_column )) current_table = related_table else: current_table_column = get_field_column(current_table, item[0]) sql.append(' WHERE {0}.{1} IN (%s)'.format(current_table._meta.db_table, current_table_column)) args.append(item[1]) query = build_model.objects.raw(' '.join(sql), args) pks = list(map(lambda x: x.pk, query)) return qs.filter(pk__in=pks) class FilterSet(django_filters.FilterSet): _order_by = filters.OrderingFilter(fields=filter_field_names) _search = SearchFilter() _m2m = M2MFilter() _segment = ModelSegmentFilter() _relation = ModelRelationFilter() class Meta: model = build_model fields = filter_fields filter_overrides = filter_overrides_value @classmethod def get_filters(cls): """ Get all filters for the filterset. This is the combination of declared and generated filters. """ # No model specified - skip filter generation if not cls._meta.model: return cls.declared_filters.copy() # Determine the filters that should be included on the filterset. filters = OrderedDict() fields = cls.get_fields() undefined = [] for field_name, lookups in fields.items(): field = get_model_field(cls._meta.model, field_name) # warn if the field doesn't exist. if field is None: undefined.append(field_name) for lookup_expr in lookups: filter_name = cls.get_filter_name(field_name, lookup_expr) # If the filter is explicitly declared on the class, skip generation if filter_name in cls.declared_filters: filters[filter_name] = cls.declared_filters[filter_name] continue if field is not None: filters[filter_name] = cls.filter_for_field(field, field_name, lookup_expr) filters['exclude__{}'.format(filter_name)] = cls.filter_for_field(field, field_name, lookup_expr, exclude=True) # filter out declared filters undefined = [f for f in undefined if f not in cls.declared_filters] if undefined: raise TypeError( "'Meta.fields' contains fields that are not defined on this FilterSet: " "%s" % ', '.join(undefined) ) # Add in declared filters. This is necessary since we don't enforce adding # declared filters to the 'Meta.fields' option filters.update(cls.declared_filters) return filters @classmethod def filter_for_field(cls, field, field_name, lookup_expr='exact', exclude=False): field, lookup_type = resolve_field(field, lookup_expr) default = { 'field_name': field_name, 'lookup_expr': lookup_expr, 'exclude': exclude } filter_class, params = cls.filter_for_lookup(field, lookup_type) default.update(params) assert filter_class is not None, ( "%s resolved field '%s' with '%s' lookup to an unrecognized field " "type %s. Try adding an override to 'Meta.filter_overrides'. See: " "https://django-filter.readthedocs.io/en/master/ref/filterset.html" "#customise-filter-generation-with-filter-overrides" ) % (cls.__name__, field_name, lookup_expr, field.__class__.__name__) return filter_class(**default) return FilterSet ================================================ FILE: jet_django/filters/model_aggregate.py ================================================ from jet_django.deps import django_filters from django.db.models import Count, Sum, Min, Max, Avg from jet_django.deps.django_filters.constants import EMPTY_VALUES class AggregateFilter(django_filters.CharFilter): def filter(self, qs, value): if value in EMPTY_VALUES: return qs if value['y_func'] == 'count': y_func = Count(value['y_column']) elif value['y_func'] == 'sum': y_func = Sum(value['y_column']) elif value['y_func'] == 'min': y_func = Min(value['y_column']) elif value['y_func'] == 'max': y_func = Max(value['y_column']) elif value['y_func'] == 'avg': y_func = Avg(value['y_column']) else: return qs.none() qs = qs \ .aggregate(y_func=y_func) return qs ================================================ FILE: jet_django/filters/model_group.py ================================================ from jet_django.deps import django_filters from django.db.models import Count, Sum, Min, Max, Avg, F from jet_django.deps.django_filters.constants import EMPTY_VALUES class GroupFilter(django_filters.CharFilter): def filter(self, qs, value): if value in EMPTY_VALUES: return qs if value['y_func'] == 'count': y_func = Count(value['y_column']) elif value['y_func'] == 'sum': y_func = Sum(value['y_column']) elif value['y_func'] == 'min': y_func = Min(value['y_column']) elif value['y_func'] == 'max': y_func = Max(value['y_column']) elif value['y_func'] == 'avg': y_func = Avg(value['y_column']) else: return qs.none() x_lookup = value['x_lookup'] if value['x_lookup'] else F qs = qs \ .annotate(group=x_lookup(value['x_column']))\ .values('group')\ .annotate(y_func=y_func)\ .order_by('group') return qs ================================================ FILE: jet_django/management/commands/jet_register_token.py ================================================ from django.core.management import BaseCommand from jet_django.utils.backend import register_token class Command(BaseCommand): def handle(self, *args, **options): token, created = register_token() if not created and token: print('Token already exists: {}'.format(token.token)) elif not created and not token: print('Token creation failed') elif created and token: print('Token created: {}'.format(token.token)) ================================================ FILE: jet_django/management/commands/jet_reset_token.py ================================================ from django.core.management import BaseCommand from jet_django.utils.backend import reset_token class Command(BaseCommand): def handle(self, *args, **options): token, created = reset_token() print('Token reset') if not created and token: print('Token already exists: {}'.format(token.token)) elif not created and not token: print('Token creation failed') elif created and token: print('Token created: {}'.format(token.token)) ================================================ FILE: jet_django/management/commands/jet_set_token.py ================================================ import uuid from django.core.management import BaseCommand from django.utils import timezone from jet_django.models.token import Token class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('token', nargs='?', type=str) def handle(self, *args, **options): token = uuid.UUID(options.get('token')) if not token: print('No token was specified') return project_token = Token.objects.all().first() if project_token: if project_token.token == token: print('This token is already set, ignoring') return project_token.token = token project_token.date_add = timezone.now() project_token.save() print('Token changed to {}'.format(project_token.token)) else: project_token = Token.objects.create(token=token, date_add=timezone.now()) print('Token created {}'.format(project_token.token)) ================================================ FILE: jet_django/management/commands/jet_token.py ================================================ from django.core.management import BaseCommand from jet_django.utils.backend import get_token class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('token', nargs='?', type=str) def handle(self, *args, **options): token = get_token() if token: print('Jet Admin Token:') print(token) else: print('Jet Admin Token is not set') ================================================ FILE: jet_django/messages.py ================================================ GET_ACTION_LIST = 'get_action_list' EXECUTE_ACTION = 'execute_action' ================================================ FILE: jet_django/migrations/0001_initial.py ================================================ # -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-08-26 17:24 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Dashboard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='name')), ('ordering', models.PositiveIntegerField(default=0, verbose_name='ordering')), ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ], options={ 'verbose_name': 'dashboard', 'verbose_name_plural': 'dashboards', 'ordering': ('ordering',), }, ), migrations.CreateModel( name='MenuSettings', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('items', models.TextField(blank=True, default='', verbose_name='items')), ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ], options={ 'verbose_name': 'menu settings', 'verbose_name_plural': 'menu settings', }, ), migrations.CreateModel( name='ModelDescription', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('app_label', models.CharField(max_length=255, verbose_name='app_label')), ('model', models.CharField(blank=True, default='', max_length=255, verbose_name='model')), ('params', models.TextField(blank=True, default='', verbose_name='params')), ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ], options={ 'verbose_name': 'model description', 'verbose_name_plural': 'model descriptions', }, ), migrations.CreateModel( name='Token', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('project', models.CharField(blank=True, default='', max_length=30, verbose_name='project')), ('token', models.UUIDField(verbose_name='token')), ('date_add', models.DateTimeField(verbose_name='date added')), ], options={ 'verbose_name': 'token', 'verbose_name_plural': 'tokens', }, ), migrations.CreateModel( name='ViewSettings', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('app_label', models.CharField(max_length=255, verbose_name='app_label')), ('model', models.CharField(blank=True, default='', max_length=255, verbose_name='model')), ('view', models.CharField(blank=True, default='change', max_length=255, verbose_name='view')), ('params', models.TextField(blank=True, default='', verbose_name='params')), ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ], options={ 'verbose_name': 'view settings', 'verbose_name_plural': 'views settings', }, ), migrations.CreateModel( name='Widget', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('widget_type', models.CharField(max_length=255, verbose_name='type')), ('name', models.CharField(max_length=255, verbose_name='name')), ('x', models.PositiveSmallIntegerField(verbose_name='x')), ('y', models.PositiveSmallIntegerField(verbose_name='y')), ('width', models.PositiveSmallIntegerField(default=1, verbose_name='width')), ('height', models.PositiveSmallIntegerField(default=1, verbose_name='height')), ('params', models.TextField(blank=True, default='', verbose_name='params')), ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date added')), ('dashboard', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='widgets', to='jet_django.Dashboard', verbose_name='dashboard')), ], options={ 'verbose_name': 'widget', 'verbose_name_plural': 'widgets', 'ordering': ('y', 'x'), }, ), ] ================================================ FILE: jet_django/migrations/0002_auto_20181014_2002.py ================================================ # -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-10-14 17:02 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('jet_django', '0001_initial'), ] operations = [ migrations.DeleteModel( name='MenuSettings', ), migrations.DeleteModel( name='ModelDescription', ), migrations.DeleteModel( name='ViewSettings', ), migrations.RemoveField( model_name='widget', name='dashboard', ), migrations.DeleteModel( name='Dashboard', ), migrations.DeleteModel( name='Widget', ), ] ================================================ FILE: jet_django/migrations/__init__.py ================================================ ================================================ FILE: jet_django/mixins/cors_api_view.py ================================================ from jet_django import settings class CORSAPIViewMixin(object): @property def default_response_headers(self): headers = super().default_response_headers if not settings.JET_CORS_HEADERS: return headers ACCESS_CONTROL_ALLOW_ORIGIN = 'Access-Control-Allow-Origin' ACCESS_CONTROL_EXPOSE_HEADERS = 'Access-Control-Expose-Headers' ACCESS_CONTROL_ALLOW_CREDENTIALS = 'Access-Control-Allow-Credentials' ACCESS_CONTROL_ALLOW_HEADERS = 'Access-Control-Allow-Headers' ACCESS_CONTROL_ALLOW_METHODS = 'Access-Control-Allow-Methods' headers[ACCESS_CONTROL_ALLOW_ORIGIN] = '*' headers[ACCESS_CONTROL_ALLOW_METHODS] = 'GET, POST, PUT, PATCH, DELETE, OPTIONS' headers[ACCESS_CONTROL_ALLOW_HEADERS] = 'Authorization,DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,X-Application-Warning,X-HTTP-Method-Override' headers[ACCESS_CONTROL_EXPOSE_HEADERS] = 'Content-Length,Content-Range,X-Application-Warning' headers[ACCESS_CONTROL_ALLOW_CREDENTIALS] = 'true' return headers ================================================ FILE: jet_django/mixins/method_override.py ================================================ class MethodOverrideViewMixin(object): def dispatch(self, request, *args, **kwargs): METHOD_OVERRIDE_HEADER = 'HTTP_X_HTTP_METHOD_OVERRIDE' if METHOD_OVERRIDE_HEADER in request.META: request.method = request.META[METHOD_OVERRIDE_HEADER] return super().dispatch(request, *args, **kwargs) ================================================ FILE: jet_django/models/token.py ================================================ from django.db import models from django.utils.translation import ugettext_lazy as _ class Token(models.Model): project = models.CharField( verbose_name=_('project'), max_length=30, blank=True, default='' ) token = models.UUIDField( verbose_name=_('token') ) date_add = models.DateTimeField( verbose_name=_('date added') ) class Meta: verbose_name = _('token') verbose_name_plural = _('tokens') def __str__(self): return str(self.token) ================================================ FILE: jet_django/pagination.py ================================================ from collections import OrderedDict from django.core.paginator import Paginator from django.db import connection from django.utils.functional import cached_property from jet_django.deps.rest_framework.pagination import PageNumberPagination from jet_django.deps.rest_framework.response import Response class CustomPaginator(Paginator): def count_for_postgresql(self, db_table): cursor = connection.cursor() cursor.execute('SELECT reltuples FROM pg_class WHERE relname = %s', [db_table]) return int(cursor.fetchone()[0]) def count_for_mysql(self, db_table): cursor = connection.cursor() cursor.execute('EXPLAIN SELECT COUNT(*) FROM `{}`'.format(db_table)) return int(cursor.fetchone()[8]) @cached_property def count(self): query = self.object_list.query result = None if not query.where: try: if connection.vendor == 'postgresql': result = self.count_for_postgresql(query.model._meta.db_table) elif connection.vendor == 'mysql': result = self.count_for_mysql(query.model._meta.db_table) except: pass if result is not None and result >= 10000: return result return super(CustomPaginator, self).count class CustomPageNumberPagination(PageNumberPagination): page_size_query_param = '_per_page' django_paginator_class = CustomPaginator def get_paginated_response(self, data): return Response(OrderedDict([ ('count', self.page.paginator.count), ('next', self.get_next_link()), ('previous', self.get_previous_link()), ('results', data), ('num_pages', self.page.paginator.num_pages), ('per_page', self.page.paginator.per_page), ])) ================================================ FILE: jet_django/permissions.py ================================================ from jet_django.deps.rest_framework.permissions import BasePermission from jet_django import settings from jet_django.utils.backend import project_auth class HasProjectPermissions(BasePermission): token_prefix = 'Token ' project_token_prefix = 'ProjectToken ' def has_permission(self, request, view): # return True token = request.META.get('HTTP_AUTHORIZATION') permission = getattr(view, 'required_project_permission', None) if not token: return False if token[:len(self.token_prefix)] == self.token_prefix: token = token[len(self.token_prefix):] result = project_auth(token, permission) if result.get('warning'): view.headers['X-Application-Warning'] = result['warning'] return result['result'] elif token[:len(self.project_token_prefix)] == self.project_token_prefix: token = token[len(self.project_token_prefix):] result = project_auth(token, permission) if result.get('warning'): view.headers['X-Application-Warning'] = result['warning'] return result['result'] else: return False class ModifyNotInDemo(BasePermission): def has_permission(self, request, view): if not settings.JET_DEMO: return True if view.action in ['create', 'update', 'partial_update', 'destroy']: return False return True ================================================ FILE: jet_django/serializers/__init__.py ================================================ ================================================ FILE: jet_django/serializers/file_upload.py ================================================ import os from django.core.exceptions import SuspiciousFileOperation, ValidationError from django.core.files.storage import default_storage from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework import serializers class FileUploadSerializer(serializers.Serializer): file = serializers.FileField(write_only=True) path = serializers.CharField(write_only=True) filename = serializers.CharField(write_only=True, required=False) uploaded_path = serializers.CharField(read_only=True) uploaded_url = serializers.CharField(read_only=True) def validate(self, attrs): if attrs.get('filename') is None: attrs['filename'] = attrs['file'].name attrs['full_path'] = os.path.join(attrs['path'], attrs['filename']) try: default_storage.get_available_name(attrs['full_path']) except SuspiciousFileOperation: raise ValidationError(_('forbidden path')) return attrs def save(self, **kwargs): request = self.context.get('request', None) uploaded_path = default_storage.save(self.validated_data['full_path'], self.validated_data['file']) self.instance = { 'uploaded_path': uploaded_path, 'uploaded_url': request.build_absolute_uri(default_storage.url(uploaded_path)) } ================================================ FILE: jet_django/serializers/message.py ================================================ from jet_django.admin.jet import jet from jet_django.deps.rest_framework import serializers class MessageSerializer(serializers.Serializer): name = serializers.CharField() params = serializers.JSONField(required=False, default={}) def save(self, **kwargs): handler = jet.get_message_handler(self.validated_data['name']) if not handler: return return handler(self.validated_data.get('params')) ================================================ FILE: jet_django/serializers/model.py ================================================ from django.db import models from jet_django.deps.rest_framework import serializers from jet_django.fields.raw_file import RawFileField def model_serializer_factory(build_model, build_fields): class Serializer(serializers.ModelSerializer): class Meta: model = build_model fields = build_fields + ['__str__'] def __new__(cls, *args, **kwargs): cls.serializer_field_mapping[models.FileField] = RawFileField cls.serializer_field_mapping[models.ImageField] = RawFileField return super(Serializer, cls).__new__(cls, *args, **kwargs) return Serializer ================================================ FILE: jet_django/serializers/model_detail.py ================================================ from jet_django.deps.rest_framework import serializers def model_detail_serializer_factory(build_model, build_fields): class Serializer(serializers.ModelSerializer): class Meta: model = build_model fields = build_fields + ['__str__'] return Serializer ================================================ FILE: jet_django/serializers/reorder.py ================================================ from django.db import transaction from django.db.models import F from jet_django.deps.rest_framework import serializers, relations def reorder_serializer_factory(build_queryset): class ReorderSerializer(serializers.Serializer): ordering_field = serializers.CharField() forward = serializers.BooleanField() segment_from = serializers.IntegerField() segment_to = serializers.IntegerField() item = relations.PrimaryKeyRelatedField(queryset=build_queryset) segment_by_ordering_field = serializers.BooleanField(default=False) def save(self): ordering_field = self.validated_data['ordering_field'] if self.validated_data.get('segment_by_ordering_field'): segment_from = self.validated_data['segment_from'] segment_to = self.validated_data['segment_to'] else: segment_from_instance = build_queryset.get(pk=self.validated_data['segment_from']) segment_to_instance = build_queryset.get(pk=self.validated_data['segment_to']) segment_from = getattr(segment_from_instance, ordering_field) segment_to = getattr(segment_to_instance, ordering_field) with transaction.atomic(): if self.validated_data['forward']: build_queryset.filter( **{ '{}__gte'.format(ordering_field): segment_from, '{}__lte'.format(ordering_field): segment_to } ).update( **{ordering_field: F(ordering_field) - 1} ) build_queryset.filter( pk=self.validated_data['item'].pk ).update( **{ordering_field: segment_to} ) else: build_queryset.filter( **{ '{}__gte'.format(ordering_field): segment_from, '{}__lte'.format(ordering_field): segment_to } ).update( **{ordering_field: F(ordering_field) + 1} ) build_queryset.filter( pk=self.validated_data['item'].pk ).update( **{ordering_field: segment_from} ) return ReorderSerializer ================================================ FILE: jet_django/serializers/reset_order.py ================================================ from django.db.models import Case, When, Value, IntegerField from jet_django.deps.rest_framework import serializers def reset_order_serializer_factory(build_queryset): class ResetOrderSerializer(serializers.Serializer): ordering_field = serializers.CharField() ordering = serializers.CharField(required=False, allow_null=True) value_ordering = serializers.CharField(required=False, allow_null=True) def save(self): ordering_field = self.validated_data['ordering_field'] ordering = self.validated_data.get('ordering') value_ordering = self.validated_data.get('value_ordering') qs = build_queryset order_by = [] if value_ordering: field, values_str = value_ordering.split('-', 2) values = values_str.split(',') qs = qs.annotate( __custom_order__=Case( *[When(**dict([(field, x), ('then', Value(i))])) for i, x in enumerate(values)], default=Value(len(values)), output_field=IntegerField() ) ) order_by.append('__custom_order__') if ordering: order_by.extend(ordering.split(',')) if len(order_by): qs = qs.order_by(*order_by) i = 1 for instance in qs: setattr(instance, ordering_field, i) instance.save(update_fields=[ordering_field]) i += 1 return ResetOrderSerializer ================================================ FILE: jet_django/serializers/sql.py ================================================ from django.db import connection, DatabaseError from django.utils import six from django.utils.translation import ugettext_lazy as _ from jet_django.deps.rest_framework import serializers, status from jet_django.deps.rest_framework.exceptions import ValidationError, APIException class ParamsSerializers(serializers.CharField): def to_internal_value(self, data): value = super().to_internal_value(data) return list(filter(lambda x: x != '', value.split(','))) def to_representation(self, value): return list(value) class SqlError(APIException): status_code = status.HTTP_400_BAD_REQUEST default_detail = _('Query failed') default_code = 'invalid' def __init__(self, detail): self.detail = {'error': str(detail)} def __str__(self): return six.text_type(self.detail) class SqlSerializer(serializers.Serializer): query = serializers.CharField() params = ParamsSerializers(required=False) def validate_query(self, value): forbidden = ['insert', 'update', 'delete', 'grant', 'show'] for i in range(len(forbidden)): forbidden.append('({}'.format(forbidden[i])) if any(map(lambda x: ' {} '.format(value.lower()).find(' {} '.format(x)) != -1, forbidden)): raise ValidationError('forbidden query') return value def execute(self, data): with connection.cursor() as cursor: try: cursor.execute(data['query'], data.get('params', [])) except (DatabaseError, TypeError) as e: raise SqlError(e) rows = cursor.fetchall() def map_column(x): if not isinstance(x, tuple) or len(x) == 0: return if x[0] == '?column?': return return x[0] return {'data': rows, 'columns': map(map_column, cursor.description)} class SqlsSerializer(serializers.Serializer): queries = SqlSerializer(many=True) def execute(self, data): serializer = SqlSerializer() return map(lambda x: serializer.execute(x), data['queries']) ================================================ FILE: jet_django/settings.py ================================================ from django.conf import settings JET_BACKEND_API_BASE_URL = getattr(settings, 'JET_BACKEND_API_BASE_URL', 'https://api.jetadmin.io/api') JET_BACKEND_WEB_BASE_URL = getattr(settings, 'JET_BACKEND_WEB_BASE_URL', 'https://app.jetadmin.io') JET_DEMO = getattr(settings, 'JET_DEMO', False) JET_REGISTER_TOKEN_ON_START = getattr(settings, 'JET_REGISTER_TOKEN_ON_START', True) JET_CORS_HEADERS = getattr(settings, 'JET_CORS_HEADERS', 'corsheaders' not in settings.INSTALLED_APPS) JET_REST_FRAMEWORK = getattr(settings, 'JET_REST_FRAMEWORK', { 'DEFAULT_PAGINATION_CLASS': 'jet_django.deps.rest_framework.pagination.PageNumberPagination', 'PAGE_SIZE': 25, 'DEFAULT_AUTHENTICATION_CLASSES': (), 'DEFAULT_FILTER_BACKENDS': ( 'jet_django.deps.django_filters.rest_framework.DjangoFilterBackend', 'jet_django.deps.rest_framework.filters.OrderingFilter', ), # 'DEFAULT_THROTTLE_CLASSES': ( # 'jet_django.deps.rest_framework.throttling.AnonRateThrottle', # 'jet_django.deps.rest_framework.throttling.UserRateThrottle' # ), # 'DEFAULT_THROTTLE_RATES': { # 'anon': '120/minute', # 'user': '480/minute' # }, 'DEFAULT_RENDERER_CLASSES': ( 'jet_django.deps.rest_framework.renderers.JSONRenderer', ), 'EXCEPTION_HANDLER': 'jet_django.views.exception_handler.jet_exception_handler', }) ================================================ FILE: jet_django/static/jet_django.deps.rest_framework/css/bootstrap-tweaks.css ================================================ /* This CSS file contains some tweaks specific to the included Bootstrap theme. It's separate from `style.css` so that it can be easily overridden by replacing a single block in the template. */ .form-actions { background: transparent; border-top-color: transparent; padding-top: 0; text-align: right; } #generic-content-form textarea { font-family:Consolas,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New, monospace; font-size: 80%; } .navbar-inverse .brand a { color: #999999; } .navbar-inverse .brand:hover a { color: white; text-decoration: none; } /* custom navigation styles */ .navbar { width: 100%; position: fixed; left: 0; top: 0; } .navbar { background: #2C2C2C; color: white; border: none; border-top: 5px solid #A30000; border-radius: 0px; } .navbar .nav li, .navbar .nav li a, .navbar .brand:hover { color: white; } .nav-list > .active > a, .nav-list > .active > a:hover { background: #2C2C2C; } .navbar .dropdown-menu li a, .navbar .dropdown-menu li { color: #A30000; } .navbar .dropdown-menu li a:hover { background: #EEEEEE; color: #C20000; } ul.breadcrumb { margin: 70px 0 0 0; } .breadcrumb li.active a { color: #777; } .pagination>.disabled>a, .pagination>.disabled>a:hover, .pagination>.disabled>a:focus { cursor: not-allowed; pointer-events: none; } .pager>.disabled>a, .pager>.disabled>a:hover, .pager>.disabled>a:focus { pointer-events: none; } .pager .next { margin-left: 10px; } /*=== dabapps bootstrap styles ====*/ html { width:100%; background: none; } /*body, .navbar .container-fluid { max-width: 1150px; margin: 0 auto; }*/ body { background: url("../img/grid.png") repeat-x; background-attachment: fixed; } #content { margin: 0; padding-bottom: 60px; } /* sticky footer and footer */ html, body { height: 100%; } .wrapper { position: relative; top: 0; left: 0; padding-top: 60px; margin: -60px 0; min-height: 100%; } .form-switcher { margin-bottom: 0; } .well { -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; } .well .form-actions { padding-bottom: 0; margin-bottom: 0; } .well form { margin-bottom: 0; } .nav-tabs { border: 0; } .nav-tabs > li { float: right; } .nav-tabs li a { margin-right: 0; } .nav-tabs > .active > a { background: #F5F5F5; } .nav-tabs > .active > a:hover { background: #F5F5F5; } .tabbable.first-tab-active .tab-content { border-top-right-radius: 0; } footer { position: absolute; bottom: 0; left: 0; clear: both; z-index: 10; height: 60px; width: 95%; margin: 0 2.5%; } footer p { text-align: center; color: gray; border-top: 1px solid #DDDDDD; padding-top: 10px; } footer a { color: gray !important; font-weight: bold; } footer a:hover { color: gray; } .page-header { border-bottom: none; padding-bottom: 0px; margin: 0; } /* custom general page styles */ .hero-unit h1, .hero-unit h2 { color: #A30000; } body a { color: #A30000; } body a:hover { color: #c20000; } .request-info { clear:both; } .horizontal-checkbox label { padding-top: 0; } .horizontal-checkbox label { padding-top: 0 !important; } .horizontal-checkbox input { float: left; width: 20px; margin-top: 3px; } .modal-footer form { margin-left: 5px; margin-right: 5px; } ================================================ FILE: jet_django/static/jet_django.deps.rest_framework/css/default.css ================================================ /* The navbar is fixed at >= 980px wide, so add padding to the body to prevent content running up underneath it. */ h1 { font-weight: 300; } h2, h3 { font-weight: 300; } .resource-description, .response-info { margin-bottom: 2em; } .version:before { content: "v"; opacity: 0.6; padding-right: 0.25em; } .version { font-size: 70%; } .format-option { font-family: Menlo, Consolas, "Andale Mono", "Lucida Console", monospace; } .button-form { float: right; margin-right: 1em; } td.nested { padding: 0 !important; } td.nested > table { margin: 0; } form select, form input, form textarea { width: 90%; } form select[multiple] { height: 150px; } /* To allow tooltips to work on disabled elements */ .disabled-tooltip-shield { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .errorlist { margin-top: 0.5em; } pre { overflow: auto; word-wrap: normal; white-space: pre; font-size: 12px; } .page-header { border-bottom: none; padding-bottom: 0px; } #filtersModal form input[type=submit] { width: auto; } #filtersModal .modal-body h2 { margin-top: 0 } ================================================ FILE: jet_django/static/jet_django.deps.rest_framework/css/font-awesome-4.0.3.css ================================================ /*! * Font Awesome 4.0.3 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) */ /* FONT PATH * -------------------------- */ @font-face { font-family: 'FontAwesome'; src: url('../fonts/fontawesome-webfont.eot?v=4.0.3'); src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg'); font-weight: normal; font-style: normal; } .fa { display: inline-block; font-family: FontAwesome; font-style: normal; font-weight: normal; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* makes the font 33% larger relative to the icon container */ .fa-lg { font-size: 1.3333333333333333em; line-height: 0.75em; vertical-align: -15%; } .fa-2x { font-size: 2em; } .fa-3x { font-size: 3em; } .fa-4x { font-size: 4em; } .fa-5x { font-size: 5em; } .fa-fw { width: 1.2857142857142858em; text-align: center; } .fa-ul { padding-left: 0; margin-left: 2.142857142857143em; list-style-type: none; } .fa-ul > li { position: relative; } .fa-li { position: absolute; left: -2.142857142857143em; width: 2.142857142857143em; top: 0.14285714285714285em; text-align: center; } .fa-li.fa-lg { left: -1.8571428571428572em; } .fa-border { padding: .2em .25em .15em; border: solid 0.08em #eeeeee; border-radius: .1em; } .pull-right { float: right; } .pull-left { float: left; } .fa.pull-left { margin-right: .3em; } .fa.pull-right { margin-left: .3em; } .fa-spin { -webkit-animation: spin 2s infinite linear; -moz-animation: spin 2s infinite linear; -o-animation: spin 2s infinite linear; animation: spin 2s infinite linear; } @-moz-keyframes spin { 0% { -moz-transform: rotate(0deg); } 100% { -moz-transform: rotate(359deg); } } @-webkit-keyframes spin { 0% { -webkit-transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); } } @-o-keyframes spin { 0% { -o-transform: rotate(0deg); } 100% { -o-transform: rotate(359deg); } } @-ms-keyframes spin { 0% { -ms-transform: rotate(0deg); } 100% { -ms-transform: rotate(359deg); } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(359deg); } } .fa-rotate-90 { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); -ms-transform: rotate(90deg); -o-transform: rotate(90deg); transform: rotate(90deg); } .fa-rotate-180 { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2); -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -o-transform: rotate(180deg); transform: rotate(180deg); } .fa-rotate-270 { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); -webkit-transform: rotate(270deg); -moz-transform: rotate(270deg); -ms-transform: rotate(270deg); -o-transform: rotate(270deg); transform: rotate(270deg); } .fa-flip-horizontal { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1); -webkit-transform: scale(-1, 1); -moz-transform: scale(-1, 1); -ms-transform: scale(-1, 1); -o-transform: scale(-1, 1); transform: scale(-1, 1); } .fa-flip-vertical { filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1); -webkit-transform: scale(1, -1); -moz-transform: scale(1, -1); -ms-transform: scale(1, -1); -o-transform: scale(1, -1); transform: scale(1, -1); } .fa-stack { position: relative; display: inline-block; width: 2em; height: 2em; line-height: 2em; vertical-align: middle; } .fa-stack-1x, .fa-stack-2x { position: absolute; left: 0; width: 100%; text-align: center; } .fa-stack-1x { line-height: inherit; } .fa-stack-2x { font-size: 2em; } .fa-inverse { color: #ffffff; } /* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen readers do not read off random characters that represent icons */ .fa-glass:before { content: "\f000"; } .fa-music:before { content: "\f001"; } .fa-search:before { content: "\f002"; } .fa-envelope-o:before { content: "\f003"; } .fa-heart:before { content: "\f004"; } .fa-star:before { content: "\f005"; } .fa-star-o:before { content: "\f006"; } .fa-user:before { content: "\f007"; } .fa-film:before { content: "\f008"; } .fa-th-large:before { content: "\f009"; } .fa-th:before { content: "\f00a"; } .fa-th-list:before { content: "\f00b"; } .fa-check:before { content: "\f00c"; } .fa-times:before { content: "\f00d"; } .fa-search-plus:before { content: "\f00e"; } .fa-search-minus:before { content: "\f010"; } .fa-power-off:before { content: "\f011"; } .fa-signal:before { content: "\f012"; } .fa-gear:before, .fa-cog:before { content: "\f013"; } .fa-trash-o:before { content: "\f014"; } .fa-home:before { content: "\f015"; } .fa-file-o:before { content: "\f016"; } .fa-clock-o:before { content: "\f017"; } .fa-road:before { content: "\f018"; } .fa-download:before { content: "\f019"; } .fa-arrow-circle-o-down:before { content: "\f01a"; } .fa-arrow-circle-o-up:before { content: "\f01b"; } .fa-inbox:before { content: "\f01c"; } .fa-play-circle-o:before { content: "\f01d"; } .fa-rotate-right:before, .fa-repeat:before { content: "\f01e"; } .fa-refresh:before { content: "\f021"; } .fa-list-alt:before { content: "\f022"; } .fa-lock:before { content: "\f023"; } .fa-flag:before { content: "\f024"; } .fa-headphones:before { content: "\f025"; } .fa-volume-off:before { content: "\f026"; } .fa-volume-down:before { content: "\f027"; } .fa-volume-up:before { content: "\f028"; } .fa-qrcode:before { content: "\f029"; } .fa-barcode:before { content: "\f02a"; } .fa-tag:before { content: "\f02b"; } .fa-tags:before { content: "\f02c"; } .fa-book:before { content: "\f02d"; } .fa-bookmark:before { content: "\f02e"; } .fa-print:before { content: "\f02f"; } .fa-camera:before { content: "\f030"; } .fa-font:before { content: "\f031"; } .fa-bold:before { content: "\f032"; } .fa-italic:before { content: "\f033"; } .fa-text-height:before { content: "\f034"; } .fa-text-width:before { content: "\f035"; } .fa-align-left:before { content: "\f036"; } .fa-align-center:before { content: "\f037"; } .fa-align-right:before { content: "\f038"; } .fa-align-justify:before { content: "\f039"; } .fa-list:before { content: "\f03a"; } .fa-dedent:before, .fa-outdent:before { content: "\f03b"; } .fa-indent:before { content: "\f03c"; } .fa-video-camera:before { content: "\f03d"; } .fa-picture-o:before { content: "\f03e"; } .fa-pencil:before { content: "\f040"; } .fa-map-marker:before { content: "\f041"; } .fa-adjust:before { content: "\f042"; } .fa-tint:before { content: "\f043"; } .fa-edit:before, .fa-pencil-square-o:before { content: "\f044"; } .fa-share-square-o:before { content: "\f045"; } .fa-check-square-o:before { content: "\f046"; } .fa-arrows:before { content: "\f047"; } .fa-step-backward:before { content: "\f048"; } .fa-fast-backward:before { content: "\f049"; } .fa-backward:before { content: "\f04a"; } .fa-play:before { content: "\f04b"; } .fa-pause:before { content: "\f04c"; } .fa-stop:before { content: "\f04d"; } .fa-forward:before { content: "\f04e"; } .fa-fast-forward:before { content: "\f050"; } .fa-step-forward:before { content: "\f051"; } .fa-eject:before { content: "\f052"; } .fa-chevron-left:before { content: "\f053"; } .fa-chevron-right:before { content: "\f054"; } .fa-plus-circle:before { content: "\f055"; } .fa-minus-circle:before { content: "\f056"; } .fa-times-circle:before { content: "\f057"; } .fa-check-circle:before { content: "\f058"; } .fa-question-circle:before { content: "\f059"; } .fa-info-circle:before { content: "\f05a"; } .fa-crosshairs:before { content: "\f05b"; } .fa-times-circle-o:before { content: "\f05c"; } .fa-check-circle-o:before { content: "\f05d"; } .fa-ban:before { content: "\f05e"; } .fa-arrow-left:before { content: "\f060"; } .fa-arrow-right:before { content: "\f061"; } .fa-arrow-up:before { content: "\f062"; } .fa-arrow-down:before { content: "\f063"; } .fa-mail-forward:before, .fa-share:before { content: "\f064"; } .fa-expand:before { content: "\f065"; } .fa-compress:before { content: "\f066"; } .fa-plus:before { content: "\f067"; } .fa-minus:before { content: "\f068"; } .fa-asterisk:before { content: "\f069"; } .fa-exclamation-circle:before { content: "\f06a"; } .fa-gift:before { content: "\f06b"; } .fa-leaf:before { content: "\f06c"; } .fa-fire:before { content: "\f06d"; } .fa-eye:before { content: "\f06e"; } .fa-eye-slash:before { content: "\f070"; } .fa-warning:before, .fa-exclamation-triangle:before { content: "\f071"; } .fa-plane:before { content: "\f072"; } .fa-calendar:before { content: "\f073"; } .fa-random:before { content: "\f074"; } .fa-comment:before { content: "\f075"; } .fa-magnet:before { content: "\f076"; } .fa-chevron-up:before { content: "\f077"; } .fa-chevron-down:before { content: "\f078"; } .fa-retweet:before { content: "\f079"; } .fa-shopping-cart:before { content: "\f07a"; } .fa-folder:before { content: "\f07b"; } .fa-folder-open:before { content: "\f07c"; } .fa-arrows-v:before { content: "\f07d"; } .fa-arrows-h:before { content: "\f07e"; } .fa-bar-chart-o:before { content: "\f080"; } .fa-twitter-square:before { content: "\f081"; } .fa-facebook-square:before { content: "\f082"; } .fa-camera-retro:before { content: "\f083"; } .fa-key:before { content: "\f084"; } .fa-gears:before, .fa-cogs:before { content: "\f085"; } .fa-comments:before { content: "\f086"; } .fa-thumbs-o-up:before { content: "\f087"; } .fa-thumbs-o-down:before { content: "\f088"; } .fa-star-half:before { content: "\f089"; } .fa-heart-o:before { content: "\f08a"; } .fa-sign-out:before { content: "\f08b"; } .fa-linkedin-square:before { content: "\f08c"; } .fa-thumb-tack:before { content: "\f08d"; } .fa-external-link:before { content: "\f08e"; } .fa-sign-in:before { content: "\f090"; } .fa-trophy:before { content: "\f091"; } .fa-github-square:before { content: "\f092"; } .fa-upload:before { content: "\f093"; } .fa-lemon-o:before { content: "\f094"; } .fa-phone:before { content: "\f095"; } .fa-square-o:before { content: "\f096"; } .fa-bookmark-o:before { content: "\f097"; } .fa-phone-square:before { content: "\f098"; } .fa-twitter:before { content: "\f099"; } .fa-facebook:before { content: "\f09a"; } .fa-github:before { content: "\f09b"; } .fa-unlock:before { content: "\f09c"; } .fa-credit-card:before { content: "\f09d"; } .fa-rss:before { content: "\f09e"; } .fa-hdd-o:before { content: "\f0a0"; } .fa-bullhorn:before { content: "\f0a1"; } .fa-bell:before { content: "\f0f3"; } .fa-certificate:before { content: "\f0a3"; } .fa-hand-o-right:before { content: "\f0a4"; } .fa-hand-o-left:before { content: "\f0a5"; } .fa-hand-o-up:before { content: "\f0a6"; } .fa-hand-o-down:before { content: "\f0a7"; } .fa-arrow-circle-left:before { content: "\f0a8"; } .fa-arrow-circle-right:before { content: "\f0a9"; } .fa-arrow-circle-up:before { content: "\f0aa"; } .fa-arrow-circle-down:before { content: "\f0ab"; } .fa-globe:before { content: "\f0ac"; } .fa-wrench:before { content: "\f0ad"; } .fa-tasks:before { content: "\f0ae"; } .fa-filter:before { content: "\f0b0"; } .fa-briefcase:before { content: "\f0b1"; } .fa-arrows-alt:before { content: "\f0b2"; } .fa-group:before, .fa-users:before { content: "\f0c0"; } .fa-chain:before, .fa-link:before { content: "\f0c1"; } .fa-cloud:before { content: "\f0c2"; } .fa-flask:before { content: "\f0c3"; } .fa-cut:before, .fa-scissors:before { content: "\f0c4"; } .fa-copy:before, .fa-files-o:before { content: "\f0c5"; } .fa-paperclip:before { content: "\f0c6"; } .fa-save:before, .fa-floppy-o:before { content: "\f0c7"; } .fa-square:before { content: "\f0c8"; } .fa-bars:before { content: "\f0c9"; } .fa-list-ul:before { content: "\f0ca"; } .fa-list-ol:before { content: "\f0cb"; } .fa-strikethrough:before { content: "\f0cc"; } .fa-underline:before { content: "\f0cd"; } .fa-table:before { content: "\f0ce"; } .fa-magic:before { content: "\f0d0"; } .fa-truck:before { content: "\f0d1"; } .fa-pinterest:before { content: "\f0d2"; } .fa-pinterest-square:before { content: "\f0d3"; } .fa-google-plus-square:before { content: "\f0d4"; } .fa-google-plus:before { content: "\f0d5"; } .fa-money:before { content: "\f0d6"; } .fa-caret-down:before { content: "\f0d7"; } .fa-caret-up:before { content: "\f0d8"; } .fa-caret-left:before { content: "\f0d9"; } .fa-caret-right:before { content: "\f0da"; } .fa-columns:before { content: "\f0db"; } .fa-unsorted:before, .fa-sort:before { content: "\f0dc"; } .fa-sort-down:before, .fa-sort-asc:before { content: "\f0dd"; } .fa-sort-up:before, .fa-sort-desc:before { content: "\f0de"; } .fa-envelope:before { content: "\f0e0"; } .fa-linkedin:before { content: "\f0e1"; } .fa-rotate-left:before, .fa-undo:before { content: "\f0e2"; } .fa-legal:before, .fa-gavel:before { content: "\f0e3"; } .fa-dashboard:before, .fa-tachometer:before { content: "\f0e4"; } .fa-comment-o:before { content: "\f0e5"; } .fa-comments-o:before { content: "\f0e6"; } .fa-flash:before, .fa-bolt:before { content: "\f0e7"; } .fa-sitemap:before { content: "\f0e8"; } .fa-umbrella:before { content: "\f0e9"; } .fa-paste:before, .fa-clipboard:before { content: "\f0ea"; } .fa-lightbulb-o:before { content: "\f0eb"; } .fa-exchange:before { content: "\f0ec"; } .fa-cloud-download:before { content: "\f0ed"; } .fa-cloud-upload:before { content: "\f0ee"; } .fa-user-md:before { content: "\f0f0"; } .fa-stethoscope:before { content: "\f0f1"; } .fa-suitcase:before { content: "\f0f2"; } .fa-bell-o:before { content: "\f0a2"; } .fa-coffee:before { content: "\f0f4"; } .fa-cutlery:before { content: "\f0f5"; } .fa-file-text-o:before { content: "\f0f6"; } .fa-building-o:before { content: "\f0f7"; } .fa-hospital-o:before { content: "\f0f8"; } .fa-ambulance:before { content: "\f0f9"; } .fa-medkit:before { content: "\f0fa"; } .fa-fighter-jet:before { content: "\f0fb"; } .fa-beer:before { content: "\f0fc"; } .fa-h-square:before { content: "\f0fd"; } .fa-plus-square:before { content: "\f0fe"; } .fa-angle-double-left:before { content: "\f100"; } .fa-angle-double-right:before { content: "\f101"; } .fa-angle-double-up:before { content: "\f102"; } .fa-angle-double-down:before { content: "\f103"; } .fa-angle-left:before { content: "\f104"; } .fa-angle-right:before { content: "\f105"; } .fa-angle-up:before { content: "\f106"; } .fa-angle-down:before { content: "\f107"; } .fa-desktop:before { content: "\f108"; } .fa-laptop:before { content: "\f109"; } .fa-tablet:before { content: "\f10a"; } .fa-mobile-phone:before, .fa-mobile:before { content: "\f10b"; } .fa-circle-o:before { content: "\f10c"; } .fa-quote-left:before { content: "\f10d"; } .fa-quote-right:before { content: "\f10e"; } .fa-spinner:before { content: "\f110"; } .fa-circle:before { content: "\f111"; } .fa-mail-reply:before, .fa-reply:before { content: "\f112"; } .fa-github-alt:before { content: "\f113"; } .fa-folder-o:before { content: "\f114"; } .fa-folder-open-o:before { content: "\f115"; } .fa-smile-o:before { content: "\f118"; } .fa-frown-o:before { content: "\f119"; } .fa-meh-o:before { content: "\f11a"; } .fa-gamepad:before { content: "\f11b"; } .fa-keyboard-o:before { content: "\f11c"; } .fa-flag-o:before { content: "\f11d"; } .fa-flag-checkered:before { content: "\f11e"; } .fa-terminal:before { content: "\f120"; } .fa-code:before { content: "\f121"; } .fa-reply-all:before { content: "\f122"; } .fa-mail-reply-all:before { content: "\f122"; } .fa-star-half-empty:before, .fa-star-half-full:before, .fa-star-half-o:before { content: "\f123"; } .fa-location-arrow:before { content: "\f124"; } .fa-crop:before { content: "\f125"; } .fa-code-fork:before { content: "\f126"; } .fa-unlink:before, .fa-chain-broken:before { content: "\f127"; } .fa-question:before { content: "\f128"; } .fa-info:before { content: "\f129"; } .fa-exclamation:before { content: "\f12a"; } .fa-superscript:before { content: "\f12b"; } .fa-subscript:before { content: "\f12c"; } .fa-eraser:before { content: "\f12d"; } .fa-puzzle-piece:before { content: "\f12e"; } .fa-microphone:before { content: "\f130"; } .fa-microphone-slash:before { content: "\f131"; } .fa-shield:before { content: "\f132"; } .fa-calendar-o:before { content: "\f133"; } .fa-fire-extinguisher:before { content: "\f134"; } .fa-rocket:before { content: "\f135"; } .fa-maxcdn:before { content: "\f136"; } .fa-chevron-circle-left:before { content: "\f137"; } .fa-chevron-circle-right:before { content: "\f138"; } .fa-chevron-circle-up:before { content: "\f139"; } .fa-chevron-circle-down:before { content: "\f13a"; } .fa-html5:before { content: "\f13b"; } .fa-css3:before { content: "\f13c"; } .fa-anchor:before { content: "\f13d"; } .fa-unlock-alt:before { content: "\f13e"; } .fa-bullseye:before { content: "\f140"; } .fa-ellipsis-h:before { content: "\f141"; } .fa-ellipsis-v:before { content: "\f142"; } .fa-rss-square:before { content: "\f143"; } .fa-play-circle:before { content: "\f144"; } .fa-ticket:before { content: "\f145"; } .fa-minus-square:before { content: "\f146"; } .fa-minus-square-o:before { content: "\f147"; } .fa-level-up:before { content: "\f148"; } .fa-level-down:before { content: "\f149"; } .fa-check-square:before { content: "\f14a"; } .fa-pencil-square:before { content: "\f14b"; } .fa-external-link-square:before { content: "\f14c"; } .fa-share-square:before { content: "\f14d"; } .fa-compass:before { content: "\f14e"; } .fa-toggle-down:before, .fa-caret-square-o-down:before { content: "\f150"; } .fa-toggle-up:before, .fa-caret-square-o-up:before { content: "\f151"; } .fa-toggle-right:before, .fa-caret-square-o-right:before { content: "\f152"; } .fa-euro:before, .fa-eur:before { content: "\f153"; } .fa-gbp:before { content: "\f154"; } .fa-dollar:before, .fa-usd:before { content: "\f155"; } .fa-rupee:before, .fa-inr:before { content: "\f156"; } .fa-cny:before, .fa-rmb:before, .fa-yen:before, .fa-jpy:before { content: "\f157"; } .fa-ruble:before, .fa-rouble:before, .fa-rub:before { content: "\f158"; } .fa-won:before, .fa-krw:before { content: "\f159"; } .fa-bitcoin:before, .fa-btc:before { content: "\f15a"; } .fa-file:before { content: "\f15b"; } .fa-file-text:before { content: "\f15c"; } .fa-sort-alpha-asc:before { content: "\f15d"; } .fa-sort-alpha-desc:before { content: "\f15e"; } .fa-sort-amount-asc:before { content: "\f160"; } .fa-sort-amount-desc:before { content: "\f161"; } .fa-sort-numeric-asc:before { content: "\f162"; } .fa-sort-numeric-desc:before { content: "\f163"; } .fa-thumbs-up:before { content: "\f164"; } .fa-thumbs-down:before { content: "\f165"; } .fa-youtube-square:before { content: "\f166"; } .fa-youtube:before { content: "\f167"; } .fa-xing:before { content: "\f168"; } .fa-xing-square:before { content: "\f169"; } .fa-youtube-play:before { content: "\f16a"; } .fa-dropbox:before { content: "\f16b"; } .fa-stack-overflow:before { content: "\f16c"; } .fa-instagram:before { content: "\f16d"; } .fa-flickr:before { content: "\f16e"; } .fa-adn:before { content: "\f170"; } .fa-bitbucket:before { content: "\f171"; } .fa-bitbucket-square:before { content: "\f172"; } .fa-tumblr:before { content: "\f173"; } .fa-tumblr-square:before { content: "\f174"; } .fa-long-arrow-down:before { content: "\f175"; } .fa-long-arrow-up:before { content: "\f176"; } .fa-long-arrow-left:before { content: "\f177"; } .fa-long-arrow-right:before { content: "\f178"; } .fa-apple:before { content: "\f179"; } .fa-windows:before { content: "\f17a"; } .fa-android:before { content: "\f17b"; } .fa-linux:before { content: "\f17c"; } .fa-dribbble:before { content: "\f17d"; } .fa-skype:before { content: "\f17e"; } .fa-foursquare:before { content: "\f180"; } .fa-trello:before { content: "\f181"; } .fa-female:before { content: "\f182"; } .fa-male:before { content: "\f183"; } .fa-gittip:before { content: "\f184"; } .fa-sun-o:before { content: "\f185"; } .fa-moon-o:before { content: "\f186"; } .fa-archive:before { content: "\f187"; } .fa-bug:before { content: "\f188"; } .fa-vk:before { content: "\f189"; } .fa-weibo:before { content: "\f18a"; } .fa-renren:before { content: "\f18b"; } .fa-pagelines:before { content: "\f18c"; } .fa-stack-exchange:before { content: "\f18d"; } .fa-arrow-circle-o-right:before { content: "\f18e"; } .fa-arrow-circle-o-left:before { content: "\f190"; } .fa-toggle-left:before, .fa-caret-square-o-left:before { content: "\f191"; } .fa-dot-circle-o:before { content: "\f192"; } .fa-wheelchair:before { content: "\f193"; } .fa-vimeo-square:before { content: "\f194"; } .fa-turkish-lira:before, .fa-try:before { content: "\f195"; } .fa-plus-square-o:before { content: "\f196"; } ================================================ FILE: jet_django/static/jet_django.deps.rest_framework/css/prettify.css ================================================ .com { color: #93a1a1; } .lit { color: #195f91; } .pun, .opn, .clo { color: #93a1a1; } .fun { color: #dc322f; } .str, .atv { color: #D14; } .kwd, .prettyprint .tag { color: #1e347b; } .typ, .atn, .dec, .var { color: teal; } .pln { color: #48484c; } .prettyprint { padding: 8px; background-color: #f7f7f9; border: 1px solid #e1e1e8; } .prettyprint.linenums { -webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; -moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; } /* Specify class=linenums on a pre to get line numbering */ ol.linenums { margin: 0 0 0 33px; /* IE indents via margin-left */ } ol.linenums li { padding-left: 12px; color: #bebec5; line-height: 20px; text-shadow: 0 1px 0 #fff; } ================================================ FILE: jet_django/static/jet_django.deps.rest_framework/docs/css/base.css ================================================ h1 { font-size: 45px; } .intro-code { margin-top: 20px; } pre.highlight code * { white-space: nowrap; // this sets all children inside to nowrap } pre.highlight { overflow-x: auto; // this sets the scrolling in x } pre.highlight code { white-space: pre; // forces to respect
     formatting
    }
    
    .main-container {
      padding-left: 30px;
      padding-right: 30px;
    }
    
    .btn:focus,
    .btn:focus:active {
      outline: none;
    }
    
    .sidebar {
      overflow: auto;
      font-family: verdana;
      font-size: 12px;
      font-weight: 200;
      background-color: #2e353d;
      position: fixed;
      top: 0px;
      width: 225px;
      height: 100%;
      color: #FFF;
    }
    
    .sidebar .brand {
        background-color: #23282e;
        display: block;
        text-align: center;
        padding: 25px 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .sidebar .brand a {
        color: #FFF;
    }
    
    .sidebar .brand a:hover,
    .sidebar .brand a:active,
    .sidebar .brand a:focus {
      text-decoration: none;
    }
    
    .sidebar .toggle-btn {
      display: none;
    }
    
    .sidebar .menu-list {
      width: inherit;
    }
    
    .sidebar .menu-list ul,
    .sidebar .menu-list li {
      background: #2e353d;
      list-style: none;
      padding: 0px;
      margin: 0px;
      line-height: 35px;
      cursor: pointer;
    }
    
    .sidebar .menu-list ul :not(collapsed) .arrow:before,
    .sidebar .menu-list li :not(collapsed) .arrow:before {
      font-family: FontAwesome;
      content: "\f078";
      display: inline-block;
      padding-left: 10px;
      padding-right: 10px;
      vertical-align: middle;
      float: right;
    }
    
    .sidebar .menu-list ul .active,
    .sidebar .menu-list li .active {
      border-left: 3px solid #d19b3d;
      background-color: #4f5b69;
    }
    
    .sidebar .menu-list ul .sub-menu li.active,
    .sidebar .menu-list li .sub-menu li.active {
      color: #d19b3d;
    }
    
    .sidebar .menu-list ul .sub-menu li.active a,
    .sidebar .menu-list li .sub-menu li.active a {
      color: #d19b3d;
    }
    
    .sidebar .menu-list ul .sub-menu li,
    .sidebar .menu-list li .sub-menu li {
      background-color: #181c20;
      border: none;
      border-bottom: 1px solid #23282e;
      margin-left: 0px;
      text-indent: 10px;
    }
    
    .sidebar .menu-list ul .sub-menu li:hover,
    .sidebar .menu-list li .sub-menu li:hover {
      background-color: #020203;
    }
    
    
    .sidebar .menu-list ul .sub-menu li a,
    .sidebar .menu-list li .sub-menu li a {
      display: block;
    }
    
    .sidebar .menu-list ul .sub-menu li a:before,
    .sidebar .menu-list li .sub-menu li a:before {
      font-family: FontAwesome;
      content: "\f105";
      display: inline-block;
      padding-left: 10px;
      padding-right: 10px;
      vertical-align: middle;
    }
    
    .sidebar .menu-list li {
      padding-left: 0px;
      border-left: 3px solid #2e353d;
      border-bottom: 1px solid #23282e;
    }
    
    .sidebar .menu-list li a {
      text-decoration: none;
      color: white;
    }
    
    .sidebar .menu-list li a i {
      padding-left: 10px;
      width: 20px;
      padding-right: 20px;
    }
    
    .sidebar .menu-list li:hover {
      border-left: 3px solid #d19b3d;
      background-color: #4f5b69;
      -webkit-transition: all 1s ease;
      -moz-transition: all 1s ease;
      -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
      transition: all 1s ease;
    }
    
    body {
      margin: 0px;
      padding: 0px;
    }
    
    .coredocs-section-title {
        margin-top: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid lightgrey;
    }
    
    .coredocs-link-title a,
    .coredocs-section-title a {
      display: none;
    }
    
    .coredocs-link-title a,
    .coredocs-section-title a {
      text-decoration: none;
    }
    
    .coredocs-link-title:hover a,
    .coredocs-section-title:hover a {
      display: inline;
      font-size: 20px;
    }
    
    .coredocs-section-title:last-child {
        margin-top: 0;
    }
    
    
    /* @group Language Switcher */
    
    .sidebar .menu-list.menu-list-bottom {
        margin-bottom: 0;
        position: fixed;
        width: inherit;
        bottom: 0;
        left: 0;
        right: 0;
        border-top: 1px solid #23282e;
    }
    
    .sidebar .menu-list-bottom li span {
      float: right;
      margin-right: 20px;
      color: #d19b3d;
    }
    
    /* @end Language Switcher */
    
    
    /* @group Docs Content */
    
    .docs-content .meta .label {
        vertical-align: middle;
        font-size: 14px;
        font-weight: normal;
    }
    
    .docs-content .meta code {
        vertical-align: middle;
        padding: .2em .6em .3em;
        font-size: 14px;
    }
    
    .docs-content .btn {
      font-size: inherit;
    }
    
    .code-samples pre {
      margin-top: 20px;
    }
    
    /* @end Docs Content */
    
    
    @media (max-width: 767px) {
      .main-container {
        padding-left: 15px;
        padding-right: 15px;
      }
    
      .sidebar {
        position: relative;
        width: 100%;
        margin-bottom: 10px;
        overflow: visible;
      }
    
      .sidebar .toggle-btn {
        display: block;
        cursor: pointer;
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 10 !important;
        padding: 3px;
        width: 40px;
        text-align: center;
      }
    
      .sidebar .menu-list.menu-list-bottom {
        position: static;
      }
    
      .sidebar .brand {
        margin-top: 0;
        margin-bottom: 0;
    
        text-align: left !important;
        font-size: 22px;
        padding: 0;
        padding-left: 20px;
        line-height: 50px !important;
      }
    }
    
    @media (min-width: 767px) {
      .sidebar .menu-list .menu-content {
        display: block;
      }
      #main {
        width:calc(100% - 225px);
        float: right;
      }
    }
    
    @media (min-width: 992px) {
      .modal-lg {
          width: 980px;
      }
    }
    
    .api-modal .modal-title .fa {
      color: #93c54b;
    }
    
    .api-modal .modal-body .request-awaiting {
      padding: 35px 10px;
      color: #7F8177;
      text-align: center;
    }
    
    .api-modal .modal-body .meta {
      margin-bottom: 20px;
    }
    
    .api-modal .modal-body .meta .label {
        vertical-align: middle;
        font-size: 14px;
        font-weight: normal;
    }
    
    .api-modal .modal-body .meta code {
        vertical-align: middle;
        padding: .2em .6em .3em;
        font-size: 14px;
    }
    
    .api-modal .modal-content .toggle-view {
      text-align: right;
      float: right;
    }
    
    .api-modal .modal-content .response .well {
      margin: 0;
      max-height: 550px;
    }
    
    .highlight {
        background-color: #f7f7f9
    }
    
    .checkbox label.control-label {
        font-weight: bold
    }
    
    @media (min-width: 768px) {
        .navbar-nav.navbar-right:last-child {
            margin-right: 0 !important;
        }
    }
    
    
    ================================================
    FILE: jet_django/static/jet_django.deps.rest_framework/docs/css/highlight.css
    ================================================
    /*
    This is the GitHub theme for highlight.js
    
    github.com style (c) Vasily Polovnyov 
    
    */
    
    .hljs {
      display: block;
      overflow-x: auto;
      padding: 0.5em;
      color: #333;
      -webkit-text-size-adjust: none;
    }
    
    .hljs-comment,
    .diff .hljs-header,
    .hljs-javadoc {
      color: #998;
      font-style: italic;
    }
    
    .hljs-keyword,
    .css .rule .hljs-keyword,
    .hljs-winutils,
    .nginx .hljs-title,
    .hljs-subst,
    .hljs-request,
    .hljs-status {
      color: #333;
      font-weight: bold;
    }
    
    .hljs-number,
    .hljs-hexcolor,
    .ruby .hljs-constant {
      color: #008080;
    }
    
    .hljs-string,
    .hljs-tag .hljs-value,
    .hljs-phpdoc,
    .hljs-dartdoc,
    .tex .hljs-formula {
      color: #d14;
    }
    
    .hljs-title,
    .hljs-id,
    .scss .hljs-preprocessor {
      color: #900;
      font-weight: bold;
    }
    
    .hljs-list .hljs-keyword,
    .hljs-subst {
      font-weight: normal;
    }
    
    .hljs-class .hljs-title,
    .hljs-type,
    .vhdl .hljs-literal,
    .tex .hljs-command {
      color: #458;
      font-weight: bold;
    }
    
    .hljs-tag,
    .hljs-tag .hljs-title,
    .hljs-rule .hljs-property,
    .django .hljs-tag .hljs-keyword {
      color: #000080;
      font-weight: normal;
    }
    
    .hljs-attribute,
    .hljs-variable,
    .lisp .hljs-body,
    .hljs-name {
      color: #008080;
    }
    
    .hljs-regexp {
      color: #009926;
    }
    
    .hljs-symbol,
    .ruby .hljs-symbol .hljs-string,
    .lisp .hljs-keyword,
    .clojure .hljs-keyword,
    .scheme .hljs-keyword,
    .tex .hljs-special,
    .hljs-prompt {
      color: #990073;
    }
    
    .hljs-built_in {
      color: #0086b3;
    }
    
    .hljs-preprocessor,
    .hljs-pragma,
    .hljs-pi,
    .hljs-doctype,
    .hljs-shebang,
    .hljs-cdata {
      color: #999;
      font-weight: bold;
    }
    
    .hljs-deletion {
      background: #fdd;
    }
    
    .hljs-addition {
      background: #dfd;
    }
    
    .diff .hljs-change {
      background: #0086b3;
    }
    
    .hljs-chunk {
      color: #aaa;
    }
    
    
    ================================================
    FILE: jet_django/static/jet_django.deps.rest_framework/docs/js/api.js
    ================================================
    var responseDisplay = 'data'
    var coreapi = window.coreapi
    var schema = window.schema
    
    function normalizeKeys (arr) {
      var _normarr = [];
      for (var i = 0; i < arr.length; i++) {
        _normarr = _normarr.concat(arr[i].split(' > '));
      }
      return _normarr;
    }
    
    function normalizeHTTPHeader (str) {
      // Capitalize HTTP headers for display.
      return (str.charAt(0).toUpperCase() + str.substring(1))
        .replace(/-(.)/g, function ($1) {
          return $1.toUpperCase()
        })
        .replace(/(Www)/g, function ($1) {
          return 'WWW'
        })
        .replace(/(Xss)/g, function ($1) {
          return 'XSS'
        })
        .replace(/(Md5)/g, function ($1) {
          return 'MD5'
        })
    }
    
    function formEntries (form) {
      // Polyfill for new FormData(form).entries()
      var formData = new FormData(form)
      if (formData.entries !== undefined) {
        return Array.from(formData.entries())
      }
    
      var entries = []
    
      for (var i = 0; i < form.elements.length; i++) {
        var element = form.elements[i]
    
        if (!element.name) {
          continue
        }
    
        if (element.type === 'file') {
          for (var j = 0; j < element.files.length; j++) {
            entries.push([element.name, element.files[j]])
          }
        } else if (element.type === 'select-multiple' || element.type === 'select-one') {
          for (var j = 0; j < element.selectedOptions.length; j++) {
            entries.push([element.name, element.selectedOptions[j].value])
          }
        } else if (element.type === 'checkbox') {
          if (element.checked) {
            entries.push([element.name, element.value])
          }
        } else {
          entries.push([element.name, element.value])
        }
      }
    
      return entries
    }
    
    $(function () {
      var $selectedAuthentication = $('#selected-authentication')
      var $authControl = $('#auth-control')
      var $authTokenModal = $('#auth_token_modal')
      var $authBasicModal = $('#auth_basic_modal')
      var $authSessionModal = $('#auth_session_modal')
    
      // Language Control
      $('#language-control li').click(function (event) {
        event.preventDefault()
        var $languageMenuItem = $(this).find('a')
        var $languageControls = $(this).closest('ul').find('li')
        var $languageControlLinks = $languageControls.find('a')
        var language = $languageMenuItem.data('language')
    
        $languageControlLinks.not('[data-language="' + language + '"]').parent().removeClass('active')
        $languageControlLinks.filter('[data-language="' + language + '"]').parent().addClass('active')
    
        $('#selected-language').text(language)
    
        var $codeBlocks = $('pre.highlight')
        $codeBlocks.not('[data-language="' + language + '"]').addClass('hide')
        $codeBlocks.filter('[data-language="' + language + '"]').removeClass('hide')
      })
    
      // API Explorer
      $('form.api-interaction').submit(function (event) {
        event.preventDefault()
    
        var $form = $(this).closest('form')
        var $requestMethod = $form.find('.request-method')
        var $requestUrl = $form.find('.request-url')
        var $toggleView = $form.closest('.modal-content').find('.toggle-view')
        var $responseStatusCode = $form.find('.response-status-code')
        var $meta = $form.find('.meta')
        var $responseRawResponse = $form.find('.response-raw-response')
        var $requestAwaiting = $form.find('.request-awaiting')
        var $responseRaw = $form.find('.response-raw')
        var $responseData = $form.find('.response-data')
        var key = normalizeKeys($form.data('key'))
        var params = {}
        var entries = formEntries($form.get()[0])
    
        for (var i = 0; i < entries.length; i++) {
          var entry = entries[i]
          var paramKey = entry[0]
          var paramValue = entry[1]
          var $elem = $form.find('[name="' + paramKey + '"]')
          var dataType = $elem.data('type') || 'string'
    
          if (dataType === 'integer' && paramValue) {
            var value = parseInt(paramValue)
            if (!isNaN(value)) {
              params[paramKey] = value
            }
          } else if (dataType === 'number' && paramValue) {
            var value = parseFloat(paramValue)
            if (!isNaN(value)) {
              params[paramKey] = value
            }
          } else if (dataType === 'boolean' && paramValue) {
            var value = {
              'true': true,
              'false': false
            }[paramValue.toLowerCase()]
            if (value !== undefined) {
              params[paramKey] = value
            }
          } else if (dataType === 'array' && paramValue) {
            try {
              params[paramKey] = JSON.parse(paramValue)
            } catch (err) {
              // Ignore malformed JSON
            }
          } else if (dataType === 'object' && paramValue) {
            try {
              params[paramKey] = JSON.parse(paramValue)
            } catch (err) {
              // Ignore malformed JSON
            }
          } else if (dataType === 'string' && paramValue) {
            params[paramKey] = paramValue
          }
        }
    
        $form.find(':checkbox').each(function (index) {
          // Handle unselected checkboxes
          var name = $(this).attr('name')
          if (!params.hasOwnProperty(name)) {
            params[name] = false
          }
        })
    
        function requestCallback (request) {
          // Fill in the "GET /foo/" display.
          var parser = document.createElement('a')
          parser.href = request.url
          var method = request.options.method
          var path = parser.pathname + parser.hash + parser.search
    
          $requestMethod.text(method)
          $requestUrl.text(path)
        }
    
        function responseCallback (response, responseText) {
          // Display the 'Data'/'Raw' control.
          $toggleView.removeClass('hide')
    
          // Fill in the "200 OK" display.
          $responseStatusCode.removeClass('label-success').removeClass('label-danger')
          if (response.ok) {
            $responseStatusCode.addClass('label-success')
          } else {
            $responseStatusCode.addClass('label-danger')
          }
          $responseStatusCode.text(response.status)
          $meta.removeClass('hide')
    
          // Fill in the Raw HTTP response display.
          var panelText = 'HTTP/1.1 ' + response.status + ' ' + response.statusText + '\n'
          response.headers.forEach(function (header, key) {
            panelText += normalizeHTTPHeader(key) + ': ' + header + '\n'
          })
          if (responseText) {
            panelText += '\n' + responseText
          }
          $responseRawResponse.text(panelText)
        }
    
        // Instantiate a client to make the outgoing request.
        var options = {
          requestCallback: requestCallback,
          responseCallback: responseCallback
        }
    
        // Setup authentication options.
        if (window.auth && window.auth.type === 'token') {
          // Header authentication
          options.auth = new coreapi.auth.TokenAuthentication({
            scheme: window.auth.scheme,
            token: window.auth.token
          })
        } else if (window.auth && window.auth.type === 'basic') {
          // Basic authentication
          options.auth = new coreapi.auth.BasicAuthentication({
            username: window.auth.username,
            password: window.auth.password
          })
        } else if (window.auth && window.auth.type === 'session') {
          // Session authentication
          options.auth = new coreapi.auth.SessionAuthentication({
            csrfCookieName: 'csrftoken',
            csrfHeaderName: 'X-CSRFToken'
          })
        }
    
        var client = new coreapi.Client(options)
        client.action(schema, key, params).then(function (data) {
          var response = JSON.stringify(data, null, 2)
          $requestAwaiting.addClass('hide')
          $responseRaw.addClass('hide')
          $responseData.addClass('hide').text('').jsonView(response)
    
          if (responseDisplay === 'data') {
            $responseData.removeClass('hide')
          } else {
            $responseRaw.removeClass('hide')
          }
        }).catch(function (error) {
          var response = JSON.stringify(error.content, null, 2)
          $requestAwaiting.addClass('hide')
          $responseRaw.addClass('hide')
          $responseData.addClass('hide').text('').jsonView(response)
    
          if (responseDisplay === 'data') {
            $responseData.removeClass('hide')
          } else {
            $responseRaw.removeClass('hide')
          }
        })
      })
    
      // 'Data'/'Raw' control
      $('.toggle-view button').click(function () {
        var $modalContent = $(this).closest('.modal-content')
        var $modalResponseRaw = $modalContent.find('.response-raw')
        var $modalResponseData = $modalContent.find('.response-data')
    
        responseDisplay = $(this).data('display-toggle')
    
        $(this).removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info')
    
        if (responseDisplay === 'raw') {
          $modalResponseRaw.removeClass('hide')
          $modalResponseData.addClass('hide')
        } else {
          $modalResponseData.removeClass('hide')
          $modalResponseRaw.addClass('hide')
        }
      })
    
      // Authentication: none
      $authControl.find("[data-auth='none']").click(function (event) {
        event.preventDefault()
        window.auth = null
        $selectedAuthentication.text('none')
        $authControl.find("[data-auth]").closest('li').removeClass('active')
        $authControl.find("[data-auth='none']").closest('li').addClass('active')
      })
    
      // Authentication: token
      $('form.authentication-token-form').submit(function (event) {
        event.preventDefault()
        var $form = $(this).closest('form')
        var scheme = $form.find('input#scheme').val()
        var token = $form.find('input#token').val()
        window.auth = {
          'type': 'token',
          'scheme': scheme,
          'token': token
        }
        $selectedAuthentication.text('token')
        $authControl.find("[data-auth]").closest('li').removeClass('active')
        $authControl.find("[data-auth='token']").closest('li').addClass('active')
        $authTokenModal.modal('hide')
      })
    
      // Authentication: basic
      $('form.authentication-basic-form').submit(function (event) {
        event.preventDefault()
        var $form = $(this).closest('form')
        var username = $form.find('input#username').val()
        var password = $form.find('input#password').val()
        window.auth = {
          'type': 'basic',
          'username': username,
          'password': password
        }
        $selectedAuthentication.text('basic')
        $authControl.find("[data-auth]").closest('li').removeClass('active')
        $authControl.find("[data-auth='basic']").closest('li').addClass('active')
        $authBasicModal.modal('hide')
      })
    
      // Authentication: session
      $('form.authentication-session-form').submit(function (event) {
        event.preventDefault()
        window.auth = {
          'type': 'session'
        }
        $selectedAuthentication.text('session')
        $authControl.find("[data-auth]").closest('li').removeClass('active')
        $authControl.find("[data-auth='session']").closest('li').addClass('active')
        $authSessionModal.modal('hide')
      })
    })
    
    
    ================================================
    FILE: jet_django/static/jet_django.deps.rest_framework/docs/js/highlight.pack.js
    ================================================
    !function(e){"undefined"!=typeof exports?e(exports):(window.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return window.hljs}))}(function(e){function n(e){return e.replace(/&/gm,"&").replace(//gm,">")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0==t.index}function a(e){var n=(e.className+" "+(e.parentNode?e.parentNode.className:"")).split(/\s+/);return n=n.map(function(e){return e.replace(/^lang(uage)?-/,"")}),n.filter(function(e){return N(e)||/no(-?)highlight|plain|text/.test(e)})[0]}function i(e,n){var t,r={};for(t in e)r[t]=e[t];if(n)for(t in n)r[t]=n[t];return r}function o(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3==i.nodeType?a+=i.nodeValue.length:1==i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function u(e,r,a){function i(){return e.length&&r.length?e[0].offset!=r[0].offset?e[0].offset"}function u(e){l+=""}function c(e){("start"==e.event?o:u)(e.node)}for(var s=0,l="",f=[];e.length||r.length;){var g=i();if(l+=n(a.substr(s,g[0].offset-s)),s=g[0].offset,g==e){f.reverse().forEach(u);do c(g.splice(0,1)[0]),g=i();while(g==e&&g.length&&g[0].offset==s);f.reverse().forEach(o)}else"start"==g[0].event?f.push(g[0].node):f.pop(),c(g.splice(0,1)[0])}return l+n(a.substr(s))}function c(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,o){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var u={},c=function(n,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");u[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.k?c("keyword",a.k):Object.keys(a.k).forEach(function(e){c(e,a.k[e])}),a.k=u}a.lR=t(a.l||/\b\w+\b/,!0),o&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW&&o.tE&&(a.tE+=(a.e?"|":"")+o.tE)),a.i&&(a.iR=t(a.i)),void 0===a.r&&(a.r=1),a.c||(a.c=[]);var s=[];a.c.forEach(function(e){e.v?e.v.forEach(function(n){s.push(i(e,n))}):s.push("self"==e?a:e)}),a.c=s,a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,o);var l=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean);a.t=l.length?t(l.join("|"),!0):{exec:function(){return null}}}}r(e)}function s(e,t,a,i){function o(e,n){for(var t=0;t";return i+=e+'">',i+n+o}function d(){if(!L.k)return n(y);var e="",t=0;L.lR.lastIndex=0;for(var r=L.lR.exec(y);r;){e+=n(y.substr(t,r.index-t));var a=g(L,r);a?(B+=a[1],e+=p(a[0],n(r[0]))):e+=n(r[0]),t=L.lR.lastIndex,r=L.lR.exec(y)}return e+n(y.substr(t))}function h(){if(L.sL&&!w[L.sL])return n(y);var e=L.sL?s(L.sL,y,!0,M[L.sL]):l(y);return L.r>0&&(B+=e.r),"continuous"==L.subLanguageMode&&(M[L.sL]=e.top),p(e.language,e.value,!1,!0)}function b(){return void 0!==L.sL?h():d()}function v(e,t){var r=e.cN?p(e.cN,"",!0):"";e.rB?(k+=r,y=""):e.eB?(k+=n(t)+r,y=""):(k+=r,y=t),L=Object.create(e,{parent:{value:L}})}function m(e,t){if(y+=e,void 0===t)return k+=b(),0;var r=o(t,L);if(r)return k+=b(),v(r,t),r.rB?0:t.length;var a=u(L,t);if(a){var i=L;i.rE||i.eE||(y+=t),k+=b();do L.cN&&(k+=""),B+=L.r,L=L.parent;while(L!=a.parent);return i.eE&&(k+=n(t)),y="",a.starts&&v(a.starts,""),i.rE?0:t.length}if(f(t,L))throw new Error('Illegal lexeme "'+t+'" for mode "'+(L.cN||"")+'"');return y+=t,t.length||1}var E=N(e);if(!E)throw new Error('Unknown language: "'+e+'"');c(E);var R,L=i||E,M={},k="";for(R=L;R!=E;R=R.parent)R.cN&&(k=p(R.cN,"",!0)+k);var y="",B=0;try{for(var C,j,I=0;;){if(L.t.lastIndex=I,C=L.t.exec(t),!C)break;j=m(t.substr(I,C.index-I),C[0]),I=C.index+j}for(m(t.substr(I)),R=L;R.parent;R=R.parent)R.cN&&(k+="");return{r:B,value:k,language:e,top:L}}catch(S){if(-1!=S.message.indexOf("Illegal"))return{r:0,value:n(t)};throw S}}function l(e,t){t=t||x.languages||Object.keys(w);var r={r:0,value:n(e)},a=r;return t.forEach(function(n){if(N(n)){var t=s(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}}),a.language&&(r.second_best=a),r}function f(e){return x.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,n){return n.replace(/\t/g,x.tabReplace)})),x.useBR&&(e=e.replace(/\n/g,"
    ")),e}function g(e,n,t){var r=n?E[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}function p(e){var n=a(e);if(!/no(-?)highlight|plain|text/.test(n)){var t;x.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):t=e;var r=t.textContent,i=n?s(n,r,!0):l(r),c=o(t);if(c.length){var p=document.createElementNS("http://www.w3.org/1999/xhtml","div");p.innerHTML=i.value,i.value=u(c,o(p),r)}i.value=f(i.value),e.innerHTML=i.value,e.className=g(e.className,n,i.language),e.result={language:i.language,re:i.r},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.r})}}function d(e){x=i(x,e)}function h(){if(!h.called){h.called=!0;var e=document.querySelectorAll("pre code");Array.prototype.forEach.call(e,p)}}function b(){addEventListener("DOMContentLoaded",h,!1),addEventListener("load",h,!1)}function v(n,t){var r=w[n]=t(e);r.aliases&&r.aliases.forEach(function(e){E[e]=n})}function m(){return Object.keys(w)}function N(e){return w[e]||w[E[e]]}var x={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},w={},E={};return e.highlight=s,e.highlightAuto=l,e.fixMarkup=f,e.highlightBlock=p,e.configure=d,e.initHighlighting=h,e.initHighlightingOnLoad=b,e.registerLanguage=v,e.listLanguages=m,e.getLanguage=N,e.inherit=i,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="\\b(0[xX][a-fA-F0-9]+|(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)\b/},e.C=function(n,t,r){var a=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return a.c.push(e.PWM),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e});hljs.registerLanguage("objectivec",function(e){var t={cN:"built_in",b:"(AV|CA|CF|CG|CI|MK|MP|NS|UI)\\w+"},i={keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},o=/[a-zA-Z@][a-zA-Z0-9_]*/,n="@interface @class @protocol @implementation";return{aliases:["m","mm","objc","obj-c"],k:i,l:o,i:""}]}]},{cN:"class",b:"("+n.split(" ").join("|")+")\\b",e:"({|$)",eE:!0,k:n,l:o,c:[e.UTM]},{cN:"variable",b:"\\."+e.UIR,r:0}]}});hljs.registerLanguage("sql",function(e){var t=e.C("--","$");return{cI:!0,i:/[<>]/,c:[{cN:"operator",bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate savepoint release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke",e:/;/,eW:!0,k:{keyword:"abs absolute acos action add adddate addtime aes_decrypt aes_encrypt after aggregate all allocate alter analyze and any are as asc ascii asin assertion at atan atan2 atn2 authorization authors avg backup before begin benchmark between bin binlog bit_and bit_count bit_length bit_or bit_xor both by cache call cascade cascaded case cast catalog ceil ceiling chain change changed char_length character_length charindex charset check checksum checksum_agg choose close coalesce coercibility collate collation collationproperty column columns columns_updated commit compress concat concat_ws concurrent connect connection connection_id consistent constraint constraints continue contributors conv convert convert_tz corresponding cos cot count count_big crc32 create cross cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime data database databases datalength date_add date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts datetimeoffsetfromparts day dayname dayofmonth dayofweek dayofyear deallocate declare decode default deferrable deferred degrees delayed delete des_decrypt des_encrypt des_key_file desc describe descriptor diagnostics difference disconnect distinct distinctrow div do domain double drop dumpfile each else elt enclosed encode encrypt end end-exec engine engines eomonth errors escape escaped event eventdata events except exception exec execute exists exp explain export_set extended external extract fast fetch field fields find_in_set first first_value floor flush for force foreign format found found_rows from from_base64 from_days from_unixtime full function get get_format get_lock getdate getutcdate global go goto grant grants greatest group group_concat grouping grouping_id gtid_subset gtid_subtract handler having help hex high_priority hosts hour ident_current ident_incr ident_seed identified identity if ifnull ignore iif ilike immediate in index indicator inet6_aton inet6_ntoa inet_aton inet_ntoa infile initially inner innodb input insert install instr intersect into is is_free_lock is_ipv4 is_ipv4_compat is_ipv4_mapped is_not is_not_null is_used_lock isdate isnull isolation join key kill language last last_day last_insert_id last_value lcase lead leading least leaves left len lenght level like limit lines ln load load_file local localtime localtimestamp locate lock log log10 log2 logfile logs low_priority lower lpad ltrim make_set makedate maketime master master_pos_wait match matched max md5 medium merge microsecond mid min minute mod mode module month monthname mutex name_const names national natural nchar next no no_write_to_binlog not now nullif nvarchar oct octet_length of old_password on only open optimize option optionally or ord order outer outfile output pad parse partial partition password patindex percent_rank percentile_cont percentile_disc period_add period_diff pi plugin position pow power pragma precision prepare preserve primary prior privileges procedure procedure_analyze processlist profile profiles public publishingservername purge quarter query quick quote quotename radians rand read references regexp relative relaylog release release_lock rename repair repeat replace replicate reset restore restrict return returns reverse revoke right rlike rollback rollup round row row_count rows rpad rtrim savepoint schema scroll sec_to_time second section select serializable server session session_user set sha sha1 sha2 share show sign sin size slave sleep smalldatetimefromparts snapshot some soname soundex sounds_like space sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sql_variant_property sqlstate sqrt square start starting status std stddev stddev_pop stddev_samp stdev stdevp stop str str_to_date straight_join strcmp string stuff subdate substr substring subtime subtring_index sum switchoffset sysdate sysdatetime sysdatetimeoffset system_user sysutcdatetime table tables tablespace tan temporary terminated tertiary_weights then time time_format time_to_sec timediff timefromparts timestamp timestampadd timestampdiff timezone_hour timezone_minute to to_base64 to_days to_seconds todatetimeoffset trailing transaction translation trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse ucase uncompress uncompressed_length unhex unicode uninstall union unique unix_timestamp unknown unlock update upgrade upped upper usage use user user_resources using utc_date utc_time utc_timestamp uuid uuid_short validate_password_strength value values var var_pop var_samp variables variance varp version view warnings week weekday weekofyear weight_string when whenever where with work write xml xor year yearweek zon",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int integer interval number numeric real serial smallint varchar varying int8 serial8 text"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}});hljs.registerLanguage("javascript",function(e){return{aliases:["js"],k:{keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},c:[{cN:"pi",r:10,v:[{b:/^\s*('|")use strict('|")/},{b:/^\s*('|")use asm('|")/}]},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",b:"\\b(0[xXbBoO][a-fA-F0-9]+|(\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/\s*[);\]]/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/\[|%/},{b:/\$[(.]/},{b:"\\."+e.IR,r:0},{bK:"import",e:"[;$]",k:"import from as",c:[e.ASM,e.QSM]},{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]}]}});hljs.registerLanguage("scss",function(e){{var t="[a-zA-Z-][a-zA-Z0-9_-]*",i={cN:"variable",b:"(\\$"+t+")\\b"},r={cN:"function",b:t+"\\(",rB:!0,eE:!0,e:"\\("},o={cN:"hexcolor",b:"#[0-9A-Fa-f]+"};({cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{cN:"value",eW:!0,eE:!0,c:[r,o,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"important",b:"!important"}]}})}return{cI:!0,i:"[=/|']",c:[e.CLCM,e.CBCM,r,{cN:"id",b:"\\#[A-Za-z0-9_-]+",r:0},{cN:"class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"attr_selector",b:"\\[",e:"\\]",i:"$"},{cN:"tag",b:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",r:0},{cN:"pseudo",b:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{cN:"pseudo",b:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},i,{cN:"attribute",b:"\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",i:"[^\\s]"},{cN:"value",b:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{cN:"value",b:":",e:";",c:[r,i,o,e.CSSNM,e.QSM,e.ASM,{cN:"important",b:"!important"}]},{cN:"at_rule",b:"@",e:"[{;]",k:"mixin include extend for if else each while charset import debug media page content font-face namespace warn",c:[r,i,e.QSM,e.ASM,o,e.CSSNM,{cN:"preprocessor",b:"\\s[A-Za-z0-9_.-]+",r:0}]}]}});hljs.registerLanguage("mel",function(e){return{k:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",i:"",o={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:c,c:["self"].concat(r)}]};return{aliases:["coffee","cson","iced"],k:c,i:/\/\*/,c:r.concat([e.C("###","###"),e.HCM,{cN:"function",b:"^\\s*"+n+"\\s*=\\s*"+s,e:"[-=]>",rB:!0,c:[i,o]},{b:/[:\(,=]\s*/,r:0,c:[{cN:"function",b:s,e:"[-=]>",rB:!0,c:[o]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{cN:"attribute",b:n+":",e:":",rB:!0,rE:!0,r:0}])}});hljs.registerLanguage("tex",function(c){var e={cN:"command",b:"\\\\[a-zA-Zа-яА-я]+[\\*]?"},m={cN:"command",b:"\\\\[^a-zA-Zа-яА-я0-9]"},r={cN:"special",b:"[{}\\[\\]\\&#~]",r:0};return{c:[{b:"\\\\[a-zA-Zа-яА-я]+[\\*]? *= *-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",rB:!0,c:[e,m,{cN:"number",b:" *=",e:"-?\\d*\\.?\\d+(pt|pc|mm|cm|in|dd|cc|ex|em)?",eB:!0}],r:10},e,m,r,{cN:"formula",b:"\\$\\$",e:"\\$\\$",c:[e,m,r],r:0},{cN:"formula",b:"\\$",e:"\\$",c:[e,m,r],r:0},c.C("%","$",{r:0})]}});hljs.registerLanguage("go",function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer",constant:"true false iota nil",typename:"bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],k:t,i:"",sL:"vbscript"}]}});hljs.registerLanguage("haskell",function(e){var c=[e.C("--","$"),e.C("{-","-}",{c:["self"]})],a={cN:"pragma",b:"{-#",e:"#-}"},i={cN:"preprocessor",b:"^#",e:"$"},n={cN:"type",b:"\\b[A-Z][\\w']*",r:0},t={cN:"container",b:"\\(",e:"\\)",i:'"',c:[a,i,{cN:"type",b:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TM,{b:"[_a-z][\\w']*"})].concat(c)},l={cN:"container",b:"{",e:"}",c:t.c};return{aliases:["hs"],k:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",c:[{cN:"module",b:"\\bmodule\\b",e:"where",k:"module where",c:[t].concat(c),i:"\\W\\.|;"},{cN:"import",b:"\\bimport\\b",e:"$",k:"import|0 qualified as hiding",c:[t].concat(c),i:"\\W\\.|;"},{cN:"class",b:"^(\\s*)?(class|instance)\\b",e:"where",k:"class family instance where",c:[n,t].concat(c)},{cN:"typedef",b:"\\b(data|(new)?type)\\b",e:"$",k:"data family type newtype deriving",c:[a,n,t,l].concat(c)},{cN:"default",bK:"default",e:"$",c:[n,t].concat(c)},{cN:"infix",bK:"infix infixl infixr",e:"$",c:[e.CNM].concat(c)},{cN:"foreign",b:"\\bforeign\\b",e:"$",k:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",c:[n,e.QSM].concat(c)},{cN:"shebang",b:"#!\\/usr\\/bin\\/env runhaskell",e:"$"},a,i,e.QSM,e.CNM,n,e.inherit(e.TM,{b:"^[_a-z][\\w']*"}),{b:"->|<-"}].concat(c)}});hljs.registerLanguage("scilab",function(e){var n=[e.CNM,{cN:"string",b:"'|\"",e:"'|\"",c:[e.BE,{b:"''"}]}];return{aliases:["sci"],k:{keyword:"abort break case clear catch continue do elseif else endfunction end for functionglobal if pause return resume select try then while%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp errorexec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isemptyisinfisnan isvector lasterror length load linspace list listfiles log10 log2 logmax min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand realround sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tantype typename warning zeros matrix"},i:'("|#|/\\*|\\s+/\\w+)',c:[{cN:"function",bK:"function endfunction",e:"$",k:"function endfunction|10",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)"}]},{cN:"transposed_variable",b:"[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",e:"",r:0},{cN:"matrix",b:"\\[",e:"\\]'*[\\.']*",r:0,c:n},e.C("//","$")].concat(n)}});hljs.registerLanguage("profile",function(e){return{c:[e.CNM,{cN:"built_in",b:"{",e:"}$",eB:!0,eE:!0,c:[e.ASM,e.QSM],r:0},{cN:"filename",b:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",e:":",eE:!0},{cN:"header",b:"(ncalls|tottime|cumtime)",e:"$",k:"ncalls tottime|10 cumtime|10 filename",r:10},{cN:"summary",b:"function calls",e:"$",c:[e.CNM],r:10},e.ASM,e.QSM,{cN:"function",b:"\\(",e:"\\)$",c:[e.UTM],r:0}]}});hljs.registerLanguage("thrift",function(e){var t="bool byte i16 i32 i64 double string binary";return{k:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:t,literal:"true false"},c:[e.QSM,e.NM,e.CLCM,e.CBCM,{cN:"class",bK:"struct enum service exception",e:/\{/,i:/\n/,c:[e.inherit(e.TM,{starts:{eW:!0,eE:!0}})]},{b:"\\b(set|list|map)\\s*<",e:">",k:t,c:["self"]}]}});hljs.registerLanguage("matlab",function(e){var a=[e.CNM,{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]}],s={r:0,c:[{cN:"operator",b:/'['\.]*/}]};return{k:{keyword:"break case catch classdef continue else elseif end enumerated events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson"},i:'(//|"|#|/\\*|\\s+/\\w+)',c:[{cN:"function",bK:"function",e:"$",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)"},{cN:"params",b:"\\[",e:"\\]"}]},{b:/[a-zA-Z_][a-zA-Z_0-9]*'['\.]*/,rB:!0,r:0,c:[{b:/[a-zA-Z_][a-zA-Z_0-9]*/,r:0},s.c[0]]},{cN:"matrix",b:"\\[",e:"\\]",c:a,r:0,starts:s},{cN:"cell",b:"\\{",e:/}/,c:a,r:0,starts:s},{b:/\)/,r:0,starts:s},e.C("^\\s*\\%\\{\\s*$","^\\s*\\%\\}\\s*$"),e.C("\\%","$")].concat(a)}});hljs.registerLanguage("vbscript",function(e){return{aliases:["vbs"],cI:!0,k:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:"lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid scriptenginebuildversion scriptengine split scriptengineminorversion cint sin datepart ltrim sqr scriptenginemajorversion time derived eval date formatpercent exp inputbox left ascw chrw regexp server response request cstr err",literal:"true false null nothing empty"},i:"//",c:[e.inherit(e.QSM,{c:[{b:'""'}]}),e.C(/'/,/$/,{r:0}),e.CNM]}});hljs.registerLanguage("capnproto",function(t){return{aliases:["capnp"],k:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},c:[t.QSM,t.NM,t.HCM,{cN:"shebang",b:/@0x[\w\d]{16};/,i:/\n/},{cN:"number",b:/@\d+\b/},{cN:"class",bK:"struct enum",e:/\{/,i:/\n/,c:[t.inherit(t.TM,{starts:{eW:!0,eE:!0}})]},{cN:"class",bK:"interface",e:/\{/,i:/\n/,c:[t.inherit(t.TM,{starts:{eW:!0,eE:!0}})]}]}});hljs.registerLanguage("xl",function(e){var t="ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts",o={keyword:"if then else do while until for loop import with is as where when by data constant",literal:"true false nil",type:"integer real text name boolean symbol infix prefix postfix block tree",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at",module:t,id:"text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons"},a={cN:"constant",b:"[A-Z][A-Z_0-9]+",r:0},r={cN:"variable",b:"([A-Z][a-z_0-9]+)+",r:0},i={cN:"id",b:"[a-z][a-z_0-9]+",r:0},l={cN:"string",b:'"',e:'"',i:"\\n"},n={cN:"string",b:"'",e:"'",i:"\\n"},s={cN:"string",b:"<<",e:">>"},c={cN:"number",b:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?",r:10},_={cN:"import",bK:"import",e:"$",k:{keyword:"import",module:t},r:0,c:[l]},d={cN:"function",b:"[a-z].*->"};return{aliases:["tao"],l:/[a-zA-Z][a-zA-Z0-9_?]*/,k:o,c:[e.CLCM,e.CBCM,l,n,s,d,_,a,r,i,c,e.NM]}});hljs.registerLanguage("scala",function(e){var t={cN:"annotation",b:"@[A-Za-z]+"},a={cN:"string",b:'u?r?"""',e:'"""',r:10},r={cN:"symbol",b:"'\\w[\\w\\d_]*(?!')"},c={cN:"type",b:"\\b[A-Z][A-Za-z0-9_]*",r:0},i={cN:"title",b:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,r:0},l={cN:"class",bK:"class object trait type",e:/[:={\[(\n;]/,c:[{cN:"keyword",bK:"extends with",r:10},i]},n={cN:"function",bK:"def val",e:/[:={\[(\n;]/,c:[i]};return{k:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},c:[e.CLCM,e.CBCM,a,e.QSM,r,c,n,l,e.CNM,t]}});hljs.registerLanguage("elixir",function(e){var n="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",b="and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote",c={cN:"subst",b:"#\\{",e:"}",l:n,k:b},a={cN:"string",c:[e.BE,c],v:[{b:/'/,e:/'/},{b:/"/,e:/"/}]},i={cN:"function",bK:"def defp defmacro",e:/\B\b/,c:[e.inherit(e.TM,{b:n,endsParent:!0})]},s=e.inherit(i,{cN:"class",bK:"defmodule defrecord",e:/\bdo\b|$|;/}),l=[a,e.HCM,s,i,{cN:"constant",b:"(\\b[A-Z_]\\w*(.)?)+",r:0},{cN:"symbol",b:":",c:[a,{b:r}],r:0},{cN:"symbol",b:n+":",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"->"},{b:"("+e.RSR+")\\s*",c:[e.HCM,{cN:"regexp",i:"\\n",c:[e.BE,c],v:[{b:"/",e:"/[a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}],r:0}];return c.c=l,{l:n,k:b,c:l}});hljs.registerLanguage("sml",function(e){return{aliases:["ml"],k:{keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},i:/\/\/|>>/,l:"[a-z_]\\w*!?",c:[{cN:"literal",b:"\\[(\\|\\|)?\\]|\\(\\)"},e.C("\\(\\*","\\*\\)",{c:["self"]}),{cN:"symbol",b:"'[A-Za-z_](?!')[\\w']*"},{cN:"tag",b:"`[A-Z][\\w']*"},{cN:"type",b:"\\b[A-Z][\\w']*",r:0},{b:"[a-z_]\\w*'[\\w']*"},e.inherit(e.ASM,{cN:"char",r:0}),e.inherit(e.QSM,{i:null}),{cN:"number",b:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",r:0},{b:/[-=]>/}]}});hljs.registerLanguage("apache",function(e){var r={cN:"number",b:"[\\$%]\\d+"};return{aliases:["apacheconf"],cI:!0,c:[e.HCM,{cN:"tag",b:""},{cN:"keyword",b:/\w+/,r:0,k:{common:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{e:/$/,r:0,k:{literal:"on off all"},c:[{cN:"sqbracket",b:"\\s\\[",e:"\\]$"},{cN:"cbracket",b:"[\\$%]\\{",e:"\\}",c:["self",r]},r,e.QSM]}}],i:/\S/}});hljs.registerLanguage("dockerfile",function(n){return{aliases:["docker"],cI:!0,k:{built_ins:"from maintainer cmd expose add copy entrypoint volume user workdir onbuild run env"},c:[n.HCM,{k:{built_in:"run cmd entrypoint volume add copy workdir onbuild"},b:/^ *(onbuild +)?(run|cmd|entrypoint|volume|add|copy|workdir) +/,starts:{e:/[^\\]\n/,sL:"bash",subLanguageMode:"continuous"}},{k:{built_in:"from maintainer expose env user onbuild"},b:/^ *(onbuild +)?(from|maintainer|expose|env|user|onbuild) +/,e:/[^\\]\n/,c:[n.ASM,n.QSM,n.NM,n.HCM]}]}});hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"header",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"blockquote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"`.+?`"},{b:"^( {4}| )",e:"$",r:0}]},{cN:"horizontal_rule",b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"link_label",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link_url",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"link_reference",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:"^\\[.+\\]:",rB:!0,c:[{cN:"link_reference",b:"\\[",e:"\\]:",eB:!0,eE:!0,starts:{cN:"link_url",e:"$"}}]}]}});hljs.registerLanguage("haml",function(s){return{cI:!0,c:[{cN:"doctype",b:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",r:10},s.C("^\\s*(!=#|=#|-#|/).*$",!1,{r:0}),{b:"^\\s*(-|=|!=)(?!#)",starts:{e:"\\n",sL:"ruby"}},{cN:"tag",b:"^\\s*%",c:[{cN:"title",b:"\\w+"},{cN:"value",b:"[#\\.]\\w+"},{b:"{\\s*",e:"\\s*}",eE:!0,c:[{b:":\\w+\\s*=>",e:",\\s+",rB:!0,eW:!0,c:[{cN:"symbol",b:":\\w+"},{cN:"string",b:'"',e:'"'},{cN:"string",b:"'",e:"'"},{b:"\\w+",r:0}]}]},{b:"\\(\\s*",e:"\\s*\\)",eE:!0,c:[{b:"\\w+\\s*=",e:"\\s+",rB:!0,eW:!0,c:[{cN:"attribute",b:"\\w+",r:0},{cN:"string",b:'"',e:'"'},{cN:"string",b:"'",e:"'"},{b:"\\w+",r:0}]}]}]},{cN:"bullet",b:"^\\s*[=~]\\s*",r:0},{b:"#{",starts:{e:"}",sL:"ruby"}}]}});hljs.registerLanguage("fortran",function(e){var t={cN:"params",b:"\\(",e:"\\)"},n={constant:".False. .True.",type:"integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_ofacosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image"};return{cI:!0,aliases:["f90","f95"],k:n,c:[e.inherit(e.ASM,{cN:"string",r:0}),e.inherit(e.QSM,{cN:"string",r:0}),{cN:"function",bK:"subroutine function program",i:"[${=\\n]",c:[e.UTM,t]},e.C("!","$",{r:0}),{cN:"number",b:"(?=\\b|\\+|\\-|\\.)(?=\\.\\d|\\d)(?:\\d+)?(?:\\.?\\d*)(?:[de][+-]?\\d+)?\\b\\.?",r:0}]}});hljs.registerLanguage("smali",function(r){var t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],n=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],s=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{aliases:["smali"],c:[{cN:"string",b:'"',e:'"',r:0},r.C("#","$",{r:0}),{cN:"keyword",b:"\\s*\\.end\\s[a-zA-Z0-9]*",r:1},{cN:"keyword",b:"^[ ]*\\.[a-zA-Z]*",r:0},{cN:"keyword",b:"\\s:[a-zA-Z_0-9]*",r:0},{cN:"keyword",b:"\\s("+s.join("|")+")",r:1},{cN:"keyword",b:"\\[",r:0},{cN:"instruction",b:"\\s("+t.join("|")+")\\s",r:1},{cN:"instruction",b:"\\s("+t.join("|")+")((\\-|/)[a-zA-Z0-9]+)+\\s",r:10},{cN:"instruction",b:"\\s("+n.join("|")+")((\\-|/)[a-zA-Z0-9]+)*\\s",r:10},{cN:"class",b:"L[^(;:\n]*;",r:0},{cN:"function",b:'( |->)[^(\n ;"]*\\(',r:0},{cN:"function",b:"\\)",r:0},{cN:"variable",b:"[vp][0-9]+",r:0}]}});hljs.registerLanguage("julia",function(r){var e={keyword:"in abstract baremodule begin bitstype break catch ccall const continue do else elseif end export finally for function global if immutable import importall let local macro module quote return try type typealias using while",literal:"true false ANY ARGS CPU_CORES C_NULL DL_LOAD_PATH DevNull ENDIAN_BOM ENV I|0 Inf Inf16 Inf32 InsertionSort JULIA_HOME LOAD_PATH MS_ASYNC MS_INVALIDATE MS_SYNC MergeSort NaN NaN16 NaN32 OS_NAME QuickSort RTLD_DEEPBIND RTLD_FIRST RTLD_GLOBAL RTLD_LAZY RTLD_LOCAL RTLD_NODELETE RTLD_NOLOAD RTLD_NOW RoundDown RoundFromZero RoundNearest RoundToZero RoundUp STDERR STDIN STDOUT VERSION WORD_SIZE catalan cglobal e eu eulergamma golden im nothing pi γ π φ",built_in:"ASCIIString AbstractArray AbstractRNG AbstractSparseArray Any ArgumentError Array Associative Base64Pipe Bidiagonal BigFloat BigInt BitArray BitMatrix BitVector Bool BoundsError Box CFILE Cchar Cdouble Cfloat Char CharString Cint Clong Clonglong ClusterManager Cmd Coff_t Colon Complex Complex128 Complex32 Complex64 Condition Cptrdiff_t Cshort Csize_t Cssize_t Cuchar Cuint Culong Culonglong Cushort Cwchar_t DArray DataType DenseArray Diagonal Dict DimensionMismatch DirectIndexString Display DivideError DomainError EOFError EachLine Enumerate ErrorException Exception Expr Factorization FileMonitor FileOffset Filter Float16 Float32 Float64 FloatRange FloatingPoint Function GetfieldNode GotoNode Hermitian IO IOBuffer IOStream IPv4 IPv6 InexactError Int Int128 Int16 Int32 Int64 Int8 IntSet Integer InterruptException IntrinsicFunction KeyError LabelNode LambdaStaticData LineNumberNode LoadError LocalProcess MIME MathConst MemoryError MersenneTwister Method MethodError MethodTable Module NTuple NewvarNode Nothing Number ObjectIdDict OrdinalRange OverflowError ParseError PollingFileWatcher ProcessExitedException ProcessGroup Ptr QuoteNode Range Range1 Ranges Rational RawFD Real Regex RegexMatch RemoteRef RepString RevString RopeString RoundingMode Set SharedArray Signed SparseMatrixCSC StackOverflowError Stat StatStruct StepRange String SubArray SubString SymTridiagonal Symbol SymbolNode Symmetric SystemError Task TextDisplay Timer TmStruct TopNode Triangular Tridiagonal Type TypeConstructor TypeError TypeName TypeVar UTF16String UTF32String UTF8String UdpSocket Uint Uint128 Uint16 Uint32 Uint64 Uint8 UndefRefError UndefVarError UniformScaling UnionType UnitRange Unsigned Vararg VersionNumber WString WeakKeyDict WeakRef Woodbury Zip"},t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",o={l:t,k:e},n={cN:"type-annotation",b:/::/},a={cN:"subtype",b:/<:/},i={cN:"number",b:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,r:0},l={cN:"char",b:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},c={cN:"subst",b:/\$\(/,e:/\)/,k:e},u={cN:"variable",b:"\\$"+t},d={cN:"string",c:[r.BE,c,u],v:[{b:/\w*"/,e:/"\w*/},{b:/\w*"""/,e:/"""\w*/}]},g={cN:"string",c:[r.BE,c,u],b:"`",e:"`"},s={cN:"macrocall",b:"@"+t},S={cN:"comment",v:[{b:"#=",e:"=#",r:10},{b:"#",e:"$"}]};return o.c=[i,l,n,a,d,g,s,S,r.HCM],c.c=o.c,o});hljs.registerLanguage("delphi",function(e){var r="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure",t=[e.CLCM,e.C(/\{/,/\}/,{r:0}),e.C(/\(\*/,/\*\)/,{r:10})],i={cN:"string",b:/'/,e:/'/,c:[{b:/''/}]},c={cN:"string",b:/(#\d+)+/},o={b:e.IR+"\\s*=\\s*class\\s*\\(",rB:!0,c:[e.TM]},n={cN:"function",bK:"function constructor destructor procedure",e:/[:;]/,k:"function constructor|10 destructor|10 procedure|10",c:[e.TM,{cN:"params",b:/\(/,e:/\)/,k:r,c:[i,c]}].concat(t)};return{cI:!0,k:r,i:/"|\$[G-Zg-z]|\/\*|<\/|\|/,c:[i,c,e.NM,o,n].concat(t)}});hljs.registerLanguage("brainfuck",function(r){var n={cN:"literal",b:"[\\+\\-]",r:0};return{aliases:["bf"],c:[r.C("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{rE:!0,r:0}),{cN:"title",b:"[\\[\\]]",r:0},{cN:"string",b:"[\\.,]",r:0},{b:/\+\+|\-\-/,rB:!0,c:[n]},n]}});hljs.registerLanguage("ini",function(e){return{cI:!0,i:/\S/,c:[e.C(";","$"),{cN:"title",b:"^\\[",e:"\\]"},{cN:"setting",b:"^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*",e:"$",c:[{cN:"value",eW:!0,k:"on off true false yes no",c:[e.QSM,e.NM],r:0}]}]}});hljs.registerLanguage("json",function(e){var t={literal:"true false null"},i=[e.QSM,e.CNM],l={cN:"value",e:",",eW:!0,eE:!0,c:i,k:t},c={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:!0,eE:!0,c:[e.BE],i:"\\n",starts:l}],i:"\\S"},n={b:"\\[",e:"\\]",c:[e.inherit(l,{cN:null})],i:"\\S"};return i.splice(i.length,0,c,n),{c:i,k:t,i:"\\S"}});hljs.registerLanguage("powershell",function(e){var t={b:"`[\\s\\S]",r:0},r={cN:"variable",v:[{b:/\$[\w\d][\w\d_:]*/}]},o={cN:"string",b:/"/,e:/"/,c:[t,r,{cN:"variable",b:/\$[A-z]/,e:/[^A-z]/}]},a={cN:"string",b:/'/,e:/'/};return{aliases:["ps"],l:/-?[A-z\.\-]+/,cI:!0,k:{keyword:"if else foreach return function do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch",literal:"$null $true $false",built_in:"Add-Content Add-History Add-Member Add-PSSnapin Clear-Content Clear-Item Clear-Item Property Clear-Variable Compare-Object ConvertFrom-SecureString Convert-Path ConvertTo-Html ConvertTo-SecureString Copy-Item Copy-ItemProperty Export-Alias Export-Clixml Export-Console Export-Csv ForEach-Object Format-Custom Format-List Format-Table Format-Wide Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-Content Get-Credential Get-Culture Get-Date Get-EventLog Get-ExecutionPolicy Get-Help Get-History Get-Host Get-Item Get-ItemProperty Get-Location Get-Member Get-PfxCertificate Get-Process Get-PSDrive Get-PSProvider Get-PSSnapin Get-Service Get-TraceSource Get-UICulture Get-Unique Get-Variable Get-WmiObject Group-Object Import-Alias Import-Clixml Import-Csv Invoke-Expression Invoke-History Invoke-Item Join-Path Measure-Command Measure-Object Move-Item Move-ItemProperty New-Alias New-Item New-ItemProperty New-Object New-PSDrive New-Service New-TimeSpan New-Variable Out-Default Out-File Out-Host Out-Null Out-Printer Out-String Pop-Location Push-Location Read-Host Remove-Item Remove-ItemProperty Remove-PSDrive Remove-PSSnapin Remove-Variable Rename-Item Rename-ItemProperty Resolve-Path Restart-Service Resume-Service Select-Object Select-String Set-Acl Set-Alias Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item Set-ItemProperty Set-Location Set-PSDebug Set-Service Set-TraceSource Set-Variable Sort-Object Split-Path Start-Service Start-Sleep Start-Transcript Stop-Process Stop-Service Stop-Transcript Suspend-Service Tee-Object Test-Path Trace-Command Update-FormatData Update-TypeData Where-Object Write-Debug Write-Error Write-Host Write-Output Write-Progress Write-Verbose Write-Warning",operator:"-ne -eq -lt -gt -ge -le -not -like -notlike -match -notmatch -contains -notcontains -in -notin -replace"},c:[e.HCM,e.NM,o,a,r]}});hljs.registerLanguage("gradle",function(e){return{cI:!0,k:{keyword:"task project allprojects subprojects artifacts buildscript configurations dependencies repositories sourceSets description delete from into include exclude source classpath destinationDir includes options sourceCompatibility targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant def abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true antlrtask checkstyle codenarc copy boolean byte char class double float int interface long short void compile runTime file fileTree abs any append asList asWritable call collect compareTo count div dump each eachByte eachFile eachLine every find findAll flatten getAt getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter newReader newWriter next plus pop power previous print println push putAt read readBytes readLines reverse reverseEach round size sort splitEachLine step subMap times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader withStream withWriter withWriterAppend write writeLine"},c:[e.CLCM,e.CBCM,e.ASM,e.QSM,e.NM,e.RM]}});hljs.registerLanguage("erb",function(e){return{sL:"xml",subLanguageMode:"continuous",c:[e.C("<%#","%>"),{b:"<%[%=-]?",e:"[%-]?%>",sL:"ruby",eB:!0,eE:!0}]}});hljs.registerLanguage("swift",function(e){var i={keyword:"class deinit enum extension func import init let protocol static struct subscript typealias var break case continue default do else fallthrough if in for return switch where while as dynamicType is new super self Self Type __COLUMN__ __FILE__ __FUNCTION__ __LINE__ associativity didSet get infix inout left mutating none nonmutating operator override postfix precedence prefix right set unowned unowned safe unsafe weak willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue assert bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal false filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced join lexicographicalCompare map max maxElement min minElement nil numericCast partition posix print println quickSort reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith strideof strideofValue swap swift toString transcode true underestimateCount unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafePointers withVaList"},t={cN:"type",b:"\\b[A-Z][\\w']*",r:0},n=e.C("/\\*","\\*/",{c:["self"]}),r={cN:"subst",b:/\\\(/,e:"\\)",k:i,c:[]},s={cN:"number",b:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",r:0},o=e.inherit(e.QSM,{c:[r,e.BE]});return r.c=[s],{k:i,c:[o,e.CLCM,n,t,s,{cN:"func",bK:"func",e:"{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/,i:/\(/}),{cN:"generics",b://,i:/>/},{cN:"params",b:/\(/,e:/\)/,endsParent:!0,k:i,c:["self",s,o,e.CBCM,{b:":"}],i:/["']/}],i:/\[|%/},{cN:"class",bK:"struct protocol class extension enum",k:i,e:"\\{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/})]},{cN:"preprocessor",b:"(@assignment|@class_protocol|@exported|@final|@lazy|@noreturn|@NSCopying|@NSManaged|@objc|@optional|@required|@auto_closure|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix)"}]}});hljs.registerLanguage("lisp",function(b){var e="[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",c="\\|[^]*?\\|",r="(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?",a={cN:"shebang",b:"^#!",e:"$"},i={cN:"literal",b:"\\b(t{1}|nil)\\b"},l={cN:"number",v:[{b:r,r:0},{b:"#(b|B)[0-1]+(/[0-1]+)?"},{b:"#(o|O)[0-7]+(/[0-7]+)?"},{b:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{b:"#(c|C)\\("+r+" +"+r,e:"\\)"}]},t=b.inherit(b.QSM,{i:null}),d=b.C(";","$",{r:0}),n={cN:"variable",b:"\\*",e:"\\*"},u={cN:"keyword",b:"[:&]"+e},N={b:e,r:0},o={b:c},s={b:"\\(",e:"\\)",c:["self",i,t,l,N]},v={cN:"quoted",c:[l,t,n,u,s,N],v:[{b:"['`]\\(",e:"\\)"},{b:"\\(quote ",e:"\\)",k:"quote"},{b:"'"+c}]},f={cN:"quoted",v:[{b:"'"+e},{b:"#'"+e+"(::"+e+")*"}]},g={cN:"list",b:"\\(\\s*",e:"\\)"},q={eW:!0,r:0};return g.c=[{cN:"keyword",v:[{b:e},{b:c}]},q],q.c=[v,f,g,i,l,t,d,n,u,o,N],{i:/\S/,c:[l,a,i,t,d,v,f,g,N]}});hljs.registerLanguage("rsl",function(e){return{k:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},i:" > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},n={cN:"shebang",b:"^#!",e:"$"},c={cN:"literal",b:"(#t|#f|#\\\\"+t+"|#\\\\.)"},l={cN:"number",v:[{b:r,r:0},{b:i,r:0},{b:"#b[0-1]+(/[0-1]+)?"},{b:"#o[0-7]+(/[0-7]+)?"},{b:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},s=e.QSM,o=[e.C(";","$",{r:0}),e.C("#\\|","\\|#")],u={b:t,r:0},p={cN:"variable",b:"'"+t},d={eW:!0,r:0},g={cN:"list",v:[{b:"\\(",e:"\\)"},{b:"\\[",e:"\\]"}],c:[{cN:"keyword",b:t,l:t,k:a},d]};return d.c=[c,l,s,u,p,g].concat(o),{i:/\S/,c:[n,l,s,p,g].concat(o)}});hljs.registerLanguage("stata",function(e){return{aliases:["do","ado"],cI:!0,k:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate g gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l la lab labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize meqparse mer merg merge mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",c:[{cN:"label",v:[{b:"\\$\\{?[a-zA-Z0-9_]+\\}?"},{b:"`[a-zA-Z0-9_]+'"}]},{cN:"string",v:[{b:'`"[^\r\n]*?"\''},{b:'"[^\r\n"]*"'}]},{cN:"literal",v:[{b:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\(|$)"}]},e.C("^[ ]*\\*.*$",!1),e.CLCM,e.CBCM]}});hljs.registerLanguage("asciidoc",function(e){return{aliases:["adoc"],c:[e.C("^/{4,}\\n","\\n/{4,}$",{r:10}),e.C("^//","$",{r:0}),{cN:"title",b:"^\\.\\w.*$"},{b:"^[=\\*]{4,}\\n",e:"\\n^[=\\*]{4,}$",r:10},{cN:"header",b:"^(={1,5}) .+?( \\1)?$",r:10},{cN:"header",b:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$",r:10},{cN:"attribute",b:"^:.+?:",e:"\\s",eE:!0,r:10},{cN:"attribute",b:"^\\[.+?\\]$",r:0},{cN:"blockquote",b:"^_{4,}\\n",e:"\\n_{4,}$",r:10},{cN:"code",b:"^[\\-\\.]{4,}\\n",e:"\\n[\\-\\.]{4,}$",r:10},{b:"^\\+{4,}\\n",e:"\\n\\+{4,}$",c:[{b:"<",e:">",sL:"xml",r:0}],r:10},{cN:"bullet",b:"^(\\*+|\\-+|\\.+|[^\\n]+?::)\\s+"},{cN:"label",b:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",r:10},{cN:"strong",b:"\\B\\*(?![\\*\\s])",e:"(\\n{2}|\\*)",c:[{b:"\\\\*\\w",r:0}]},{cN:"emphasis",b:"\\B'(?!['\\s])",e:"(\\n{2}|')",c:[{b:"\\\\'\\w",r:0}],r:0},{cN:"emphasis",b:"_(?![_\\s])",e:"(\\n{2}|_)",r:0},{cN:"smartquote",v:[{b:"``.+?''"},{b:"`.+?'"}]},{cN:"code",b:"(`.+?`|\\+.+?\\+)",r:0},{cN:"code",b:"^[ \\t]",e:"$",r:0},{cN:"horizontal_rule",b:"^'{3,}[ \\t]*$",r:10},{b:"(link:)?(http|https|ftp|file|irc|image:?):\\S+\\[.*?\\]",rB:!0,c:[{b:"(link|image:?):",r:0},{cN:"link_url",b:"\\w",e:"[^\\[]+",r:0},{cN:"link_label",b:"\\[",e:"\\]",eB:!0,eE:!0,r:0}],r:10}]}});hljs.registerLanguage("php",function(e){var c={cN:"variable",b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},i={cN:"preprocessor",b:/<\?(php)?|\?>/},a={cN:"string",c:[e.BE,i],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},n={v:[e.BNM,e.CNM]};return{aliases:["php3","php4","php5","php6"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.CLCM,e.HCM,e.C("/\\*","\\*/",{c:[{cN:"phpdoc",b:"\\s@[A-Za-z]+"},i]}),e.C("__halt_compiler.+?;",!1,{eW:!0,k:"__halt_compiler",l:e.UIR}),{cN:"string",b:"<<<['\"]?\\w+['\"]?$",e:"^\\w+;",c:[e.BE]},i,c,{b:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",c,e.CBCM,a,n]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},a,n]}});hljs.registerLanguage("java",function(e){var a=e.UIR+"(<"+e.UIR+">)?",t="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",c="(\\b(0b[01_]+)|\\b0[xX][a-fA-F0-9_]+|(\\b[\\d_]+(\\.[\\d_]*)?|\\.[\\d_]+)([eE][-+]?\\d+)?)[lLfF]?",r={cN:"number",b:c,r:0};return{aliases:["jsp"],k:t,i:/<\//,c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw return",r:0},{cN:"function",b:"("+a+"\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:t,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},r,{cN:"annotation",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("glsl",function(e){return{k:{keyword:"atomic_uint attribute bool break bvec2 bvec3 bvec4 case centroid coherent const continue default discard dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 do double dvec2 dvec3 dvec4 else flat float for highp if iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray in inout int invariant isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 layout lowp mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 mediump noperspective out patch precision readonly restrict return sample sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow smooth struct subroutine switch uimage1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint uniform usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D usamplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 varying vec2 vec3 vec4 void volatile while writeonly",built_in:"gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffsetgl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_PerVertex gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicCounter atomicCounterDecrement atomicCounterIncrement barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow gl_TextureMatrix gl_TextureMatrixInverse",literal:"true false"},i:'"',c:[e.CLCM,e.CBCM,e.CNM,{cN:"preprocessor",b:"#",e:"$"}]}});hljs.registerLanguage("lua",function(e){var t="\\[=*\\[",a="\\]=*\\]",r={b:t,e:a,c:["self"]},n=[e.C("--(?!"+t+")","$"),e.C("--"+t,a,{c:[r],r:10})];return{l:e.UIR,k:{keyword:"and break do else elseif end false for if in local nil not or repeat return then true until while",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},c:n.concat([{cN:"function",bK:"function",e:"\\)",c:[e.inherit(e.TM,{b:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{cN:"params",b:"\\(",eW:!0,c:n}].concat(n)},e.CNM,e.ASM,e.QSM,{cN:"string",b:t,e:a,c:[r],r:5}])}});hljs.registerLanguage("protobuf",function(e){return{k:{keyword:"package import option optional required repeated group",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},c:[e.QSM,e.NM,e.CLCM,{cN:"class",bK:"message enum service",e:/\{/,i:/\n/,c:[e.inherit(e.TM,{starts:{eW:!0,eE:!0}})]},{cN:"function",bK:"rpc",e:/;/,eE:!0,k:"rpc returns"},{cN:"constant",b:/^\s*[A-Z_]+/,e:/\s*=/,eE:!0}]}});hljs.registerLanguage("gcode",function(e){var N="[A-Z_][A-Z0-9_.]*",i="\\%",c={literal:"",built_in:"",keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},r={cN:"preprocessor",b:"([O])([0-9]+)"},l=[e.CLCM,e.CBCM,e.C(/\(/,/\)/),e.inherit(e.CNM,{b:"([-+]?([0-9]*\\.?[0-9]+\\.?))|"+e.CNR}),e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null}),{cN:"keyword",b:"([G])([0-9]+\\.?[0-9]?)"},{cN:"title",b:"([M])([0-9]+\\.?[0-9]?)"},{cN:"title",b:"(VC|VS|#)",e:"(\\d+)"},{cN:"title",b:"(VZOFX|VZOFY|VZOFZ)"},{cN:"built_in",b:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",e:"([-+]?([0-9]*\\.?[0-9]+\\.?))(\\])"},{cN:"label",v:[{b:"N",e:"\\d+",i:"\\W"}]}];return{aliases:["nc"],cI:!0,l:N,k:c,c:[{cN:"preprocessor",b:i},r].concat(l)}});hljs.registerLanguage("vim",function(e){return{l:/[!#@\w]+/,k:{keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw d|0 delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu g|0 go gr grepa gu gv ha h|0 helpf helpg helpt hi hid his i|0 ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs n|0 new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf q|0 quita qa r|0 rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv s|0 sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync t|0 tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up v|0 ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"abs acos add and append argc argidx argv asin atan atan2 browse browsedir bufexists buflisted bufloaded bufname bufnr bufwinnr byte2line byteidx call ceil changenr char2nr cindent clearmatches col complete complete_add complete_check confirm copy cos cosh count cscope_connection cursor deepcopy delete did_filetype diff_filler diff_hlID empty escape eval eventhandler executable exists exp expand extend feedkeys filereadable filewritable filter finddir findfile float2nr floor fmod fnameescape fnamemodify foldclosed foldclosedend foldlevel foldtext foldtextresult foreground function garbagecollect get getbufline getbufvar getchar getcharmod getcmdline getcmdpos getcmdtype getcwd getfontname getfperm getfsize getftime getftype getline getloclist getmatches getpid getpos getqflist getreg getregtype gettabvar gettabwinvar getwinposx getwinposy getwinvar glob globpath has has_key haslocaldir hasmapto histadd histdel histget histnr hlexists hlID hostname iconv indent index input inputdialog inputlist inputrestore inputsave inputsecret insert invert isdirectory islocked items join keys len libcall libcallnr line line2byte lispindent localtime log log10 luaeval map maparg mapcheck match matchadd matcharg matchdelete matchend matchlist matchstr max min mkdir mode mzeval nextnonblank nr2char or pathshorten pow prevnonblank printf pumvisible py3eval pyeval range readfile reltime reltimestr remote_expr remote_foreground remote_peek remote_read remote_send remove rename repeat resolve reverse round screenattr screenchar screencol screenrow search searchdecl searchpair searchpairpos searchpos server2client serverlist setbufvar setcmdpos setline setloclist setmatches setpos setqflist setreg settabvar settabwinvar setwinvar sha256 shellescape shiftwidth simplify sin sinh sort soundfold spellbadword spellsuggest split sqrt str2float str2nr strchars strdisplaywidth strftime stridx string strlen strpart strridx strtrans strwidth submatch substitute synconcealed synID synIDattr synIDtrans synstack system tabpagebuflist tabpagenr tabpagewinnr tagfiles taglist tan tanh tempname tolower toupper tr trunc type undofile undotree values virtcol visualmode wildmenumode winbufnr wincol winheight winline winnr winrestcmd winrestview winsaveview winwidth writefile xor"},i:/[{:]/,c:[e.NM,e.ASM,{cN:"string",b:/"((\\")|[^"\n])*("|\n)/},{cN:"variable",b:/[bwtglsav]:[\w\d_]*/},{cN:"function",bK:"function function!",e:"$",r:0,c:[e.TM,{cN:"params",b:"\\(",e:"\\)"}]}]}});hljs.registerLanguage("processing",function(e){return{k:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",constant:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",variable:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width",title:"setup draw",built_in:"size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},c:[e.CLCM,e.CBCM,e.ASM,e.QSM,e.CNM]}});hljs.registerLanguage("mizar",function(e){return{k:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",c:[e.C("::","$")]}});hljs.registerLanguage("vbnet",function(e){return{aliases:["vb"],cI:!0,k:{keyword:"addhandler addressof alias and andalso aggregate ansi as assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into is isfalse isnot istrue join key let lib like loop me mid mod module mustinherit mustoverride mybase myclass namespace narrowing new next not notinheritable notoverridable of off on operator option optional or order orelse overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim rem removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly xor",built_in:"boolean byte cbool cbyte cchar cdate cdec cdbl char cint clng cobj csbyte cshort csng cstr ctype date decimal directcast double gettype getxmlnamespace iif integer long object sbyte short single string trycast typeof uinteger ulong ushort",literal:"true false nothing"},i:"//|{|}|endif|gosub|variant|wend",c:[e.inherit(e.QSM,{c:[{b:'""'}]}),e.C("'","$",{rB:!0,c:[{cN:"xmlDocTag",b:"'''|",c:[e.PWM]},{cN:"xmlDocTag",b:"",c:[e.PWM]}]}),e.CNM,{cN:"preprocessor",b:"#",e:"$",k:"if else elseif end region externalsource"}]}});hljs.registerLanguage("q",function(e){var s={keyword:"do while select delete by update from",constant:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",typename:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"};return{aliases:["k","kdb"],k:s,l:/\b(`?)[A-Za-z0-9_]+\b/,c:[e.CLCM,e.QSM,e.CNM]}});hljs.registerLanguage("livescript",function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger case default function var with then unless until loop of by when and or is isnt not it that otherwise from to til fallthrough super case default function var void const let enum export import native __hasProp __extends __slice __bind __indexOf",literal:"true false null undefined yes no on off it that void",built_in:"npm require console print module global window document"},s="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",i=e.inherit(e.TM,{b:s}),n={cN:"subst",b:/#\{/,e:/}/,k:t},r={cN:"subst",b:/#[A-Za-z$_]/,e:/(?:\-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,k:t},c=[e.BNM,{cN:"number",b:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",r:0,starts:{e:"(\\s*/)?",r:0}},{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,n,r]},{b:/"/,e:/"/,c:[e.BE,n,r]},{b:/\\/,e:/(\s|$)/,eE:!0}]},{cN:"pi",v:[{b:"//",e:"//[gim]*",c:[n,e.HCM]},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{cN:"property",b:"@"+s},{b:"``",e:"``",eB:!0,eE:!0,sL:"javascript"}];n.c=c;var a={cN:"params",b:"\\(",rB:!0,c:[{b:/\(/,e:/\)/,k:t,c:["self"].concat(c)}]};return{aliases:["ls"],k:t,i:/\/\*/,c:c.concat([e.C("\\/\\*","\\*\\/"),e.HCM,{cN:"function",c:[i,a],rB:!0,v:[{b:"("+s+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B\\->\\*?",e:"\\->\\*?"},{b:"("+s+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\))?\\s*\\B[-~]{1,2}>\\*?",e:"[-~]{1,2}>\\*?"},{b:"("+s+"\\s*(?:=|:=)\\s*)?(\\(.*\\))?\\s*\\B!?[-~]{1,2}>\\*?",e:"!?[-~]{1,2}>\\*?"}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{cN:"attribute",b:s+":",e:":",rB:!0,rE:!0,r:0}])}});hljs.registerLanguage("haxe",function(e){var r="([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)";return{aliases:["hx"],k:{keyword:"break callback case cast catch class continue default do dynamic else enum extends extern for function here if implements import in inline interface never new override package private public return static super switch this throw trace try typedef untyped using var while",literal:"true false null"},c:[e.ASM,e.QSM,e.CLCM,e.CBCM,e.CNM,{cN:"class",bK:"class interface",e:"{",eE:!0,c:[{bK:"extends implements"},e.TM]},{cN:"preprocessor",b:"#",e:"$",k:"if else elseif end error"},{cN:"function",bK:"function",e:"[{;]",eE:!0,i:"\\S",c:[e.TM,{cN:"params",b:"\\(",e:"\\)",c:[e.ASM,e.QSM,e.CLCM,e.CBCM]},{cN:"type",b:":",e:r,r:10}]}]}});hljs.registerLanguage("monkey",function(e){var n={cN:"number",r:0,v:[{b:"[$][a-fA-F0-9]+"},e.NM]};return{cI:!0,k:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},c:[e.C("#rem","#end"),e.C("'","$",{r:0}),{cN:"function",bK:"function method",e:"[(=:]|$",i:/\n/,c:[e.UTM]},{cN:"class",bK:"class interface",e:"$",c:[{bK:"extends implements"},e.UTM]},{cN:"variable",b:"\\b(self|super)\\b"},{cN:"preprocessor",bK:"import",e:"$"},{cN:"preprocessor",b:"\\s*#",e:"$",k:"if else elseif endif end then"},{cN:"pi",b:"^\\s*strict\\b"},{bK:"alias",e:"=",c:[e.UTM]},e.QSM,n]}});hljs.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},s={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]},a={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/-?[a-z\.]+/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",operator:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"shebang",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,e.NM,s,a,t]}});hljs.registerLanguage("erlang",function(e){var r="[a-z'][a-zA-Z0-9_']*",c="("+r+":"+r+"|"+r+")",a={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},n=e.C("%","$"),i={cN:"number",b:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",r:0},b={b:"fun\\s+"+r+"/\\d+"},d={b:c+"\\(",e:"\\)",rB:!0,r:0,c:[{cN:"function_name",b:c,r:0},{b:"\\(",e:"\\)",eW:!0,rE:!0,r:0}]},o={cN:"tuple",b:"{",e:"}",r:0},t={cN:"variable",b:"\\b_([A-Z][A-Za-z0-9_]*)?",r:0},l={cN:"variable",b:"[A-Z][a-zA-Z0-9_]*",r:0},f={b:"#"+e.UIR,r:0,rB:!0,c:[{cN:"record_name",b:"#"+e.UIR,r:0},{b:"{",e:"}",r:0}]},s={bK:"fun receive if try case",e:"end",k:a};s.c=[n,b,e.inherit(e.ASM,{cN:""}),s,d,e.QSM,i,o,t,l,f];var u=[n,b,s,d,e.QSM,i,o,t,l,f];d.c[1].c=u,o.c=u,f.c[1].c=u;var v={cN:"params",b:"\\(",e:"\\)",c:u};return{aliases:["erl"],k:a,i:"(",rB:!0,i:"\\(|#|//|/\\*|\\\\|:|;",c:[v,e.inherit(e.TM,{b:r})],starts:{e:";|\\.",k:a,c:u}},n,{cN:"pp",b:"^-",e:"\\.",r:0,eE:!0,rB:!0,l:"-"+e.IR,k:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec",c:[v]},i,e.QSM,f,t,l,o,{b:/\.$/}]}});hljs.registerLanguage("kotlin",function(e){var a="val var get set class trait object public open private protected final enum if else do while for when break continue throw try catch finally import package is as in return fun override default companion reified inline volatile transient native";return{k:{typename:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null",keyword:a},c:[e.CLCM,{cN:"javadoc",b:"/\\*\\*",e:"\\*//*",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CBCM,{cN:"type",b://,rB:!0,eE:!1,r:0},{cN:"function",bK:"fun",e:"[(]|$",rB:!0,eE:!0,k:a,i:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,r:5,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"type",b://,k:"reified",r:0},{cN:"params",b:/\(/,e:/\)/,k:a,r:0,i:/\([^\(,\s:]+,/,c:[{cN:"typename",b:/:\s*/,e:/\s*[=\)]/,eB:!0,rE:!0,r:0}]},e.CLCM,e.CBCM]},{cN:"class",bK:"class trait",e:/[:\{(]|$/,eE:!0,i:"extends implements",c:[e.UTM,{cN:"type",b://,eB:!0,eE:!0,r:0},{cN:"typename",b:/[,:]\s*/,e:/[<\(,]|$/,eB:!0,rE:!0}]},{cN:"variable",bK:"var val",e:/\s*[=:$]/,eE:!0},e.QSM,{cN:"shebang",b:"^#!/usr/bin/env",e:"$",i:"\n"},e.CNM]}});hljs.registerLanguage("stylus",function(t){var e={cN:"variable",b:"\\$"+t.IR},o={cN:"hexcolor",b:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})",r:10},i=["charset","css","debug","extend","font-face","for","import","include","media","mixin","page","warn","while"],r=["after","before","first-letter","first-line","active","first-child","focus","hover","lang","link","visited"],n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],a="[\\.\\s\\n\\[\\:,]",l=["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"],d=["\\{","\\}","\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"];return{aliases:["styl"],cI:!1,i:"("+d.join("|")+")",k:"if else for in",c:[t.QSM,t.ASM,t.CLCM,t.CBCM,o,{b:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+a,rB:!0,c:[{cN:"class",b:"\\.[a-zA-Z][a-zA-Z0-9_-]*"}]},{b:"\\#[a-zA-Z][a-zA-Z0-9_-]*"+a,rB:!0,c:[{cN:"id",b:"\\#[a-zA-Z][a-zA-Z0-9_-]*"}]},{b:"\\b("+n.join("|")+")"+a,rB:!0,c:[{cN:"tag",b:"\\b[a-zA-Z][a-zA-Z0-9_-]*"}]},{cN:"pseudo",b:"&?:?:\\b("+r.join("|")+")"+a},{cN:"at_rule",b:"@("+i.join("|")+")\\b"},e,t.CSSNM,t.NM,{cN:"function",b:"\\b[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",i:"[\\n]",rB:!0,c:[{cN:"title",b:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{cN:"params",b:/\(/,e:/\)/,c:[o,e,t.ASM,t.CSSNM,t.NM,t.QSM]}]},{cN:"attribute",b:"\\b("+l.reverse().join("|")+")\\b"}]}});hljs.registerLanguage("css",function(e){var c="[a-zA-Z-][a-zA-Z0-9_-]*",a={cN:"function",b:c+"\\(",rB:!0,eE:!0,e:"\\("},r={cN:"rule",b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{cN:"value",eW:!0,eE:!0,c:[a,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"hexcolor",b:"#[0-9A-Fa-f]+"},{cN:"important",b:"!important"}]}}]};return{cI:!0,i:/[=\/|']/,c:[e.CBCM,r,{cN:"id",b:/\#[A-Za-z0-9_-]+/},{cN:"class",b:/\.[A-Za-z0-9_-]+/,r:0},{cN:"attr_selector",b:/\[/,e:/\]/,i:"$"},{cN:"pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"']+/},{cN:"at_rule",b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{cN:"at_rule",b:"@",e:"[{;]",c:[{cN:"keyword",b:/\S+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[a,e.ASM,e.QSM,e.CSSNM]}]},{cN:"tag",b:c,r:0},{cN:"rules",b:"{",e:"}",i:/\S/,r:0,c:[e.CBCM,r]}]}});hljs.registerLanguage("puppet",function(e){var s="augeas computer cron exec file filebucket host interface k5login macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service firewall nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod notify package resources router schedule scheduled_task selboolean selmodule service ssh_authorized_key sshkey stage tidy user vlan yumrepo zfs zone zpool",r="alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",a={keyword:"and case class default define else elsif false if in import enherits node or true undef unless main settings $string "+s,literal:r,built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},i=e.C("#","$"),o={cN:"string",c:[e.BE],v:[{b:/'/,e:/'/},{b:/"/,e:/"/}]},n=[o,i,{cN:"keyword",bK:"class",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"(::)?[A-Za-z_]\\w*(::\\w+)*"}),i,o]},{cN:"keyword",b:"([a-zA-Z_(::)]+ *\\{)",c:[o,i],r:0},{cN:"keyword",b:"(\\}|\\{)",r:0},{cN:"function",b:"[a-zA-Z_]+\\s*=>"},{cN:"constant",b:"(::)?(\\b[A-Z][a-z_]*(::)?)+",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0}];return{aliases:["pp"],k:a,c:n}});hljs.registerLanguage("nimrod",function(t){return{aliases:["nim"],k:{keyword:"addr and as asm bind block break|0 case|0 cast const|0 continue|0 converter discard distinct|10 div do elif else|0 end|0 enum|0 except export finally for from generic if|0 import|0 in include|0 interface is isnot|10 iterator|10 let|0 macro method|10 mixin mod nil not notin|10 object|0 of or out proc|10 ptr raise ref|10 return shl shr static template|10 try|0 tuple type|0 using|0 var|0 when while|0 with without xor yield",literal:"shared guarded stdin stdout stderr result|10 true false"},c:[{cN:"decorator",b:/{\./,e:/\.}/,r:10},{cN:"string",b:/[a-zA-Z]\w*"/,e:/"/,c:[{b:/""/}]},{cN:"string",b:/([a-zA-Z]\w*)?"""/,e:/"""/},t.QSM,{cN:"type",b:/\b[A-Z]\w+\b/,r:0},{cN:"type",b:/\b(int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|float|float32|float64|bool|char|string|cstring|pointer|expr|stmt|void|auto|any|range|array|openarray|varargs|seq|set|clong|culong|cchar|cschar|cshort|cint|csize|clonglong|cfloat|cdouble|clongdouble|cuchar|cushort|cuint|culonglong|cstringarray|semistatic)\b/},{cN:"number",b:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/,r:0},{cN:"number",b:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/,r:0},{cN:"number",b:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/,r:0},{cN:"number",b:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/,r:0},t.HCM]}});hljs.registerLanguage("smalltalk",function(a){var r="[a-z][a-zA-Z0-9_]*",s={cN:"char",b:"\\$.{1}"},c={cN:"symbol",b:"#"+a.UIR};return{aliases:["st"],k:"self super nil true false thisContext",c:[a.C('"','"'),a.ASM,{cN:"class",b:"\\b[A-Z][A-Za-z0-9_]*",r:0},{cN:"method",b:r+":",r:0},a.CNM,c,s,{cN:"localvars",b:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",rB:!0,e:/\|/,i:/\S/,c:[{b:"(\\|[ ]*)?"+r}]},{cN:"array",b:"\\#\\(",e:"\\)",c:[a.ASM,s,a.CNM,c]}]}});hljs.registerLanguage("x86asm",function(s){return{cI:!0,l:"\\.?"+s.IR,k:{keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",literal:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l",pseudo:"db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times",preprocessor:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public ",built_in:"bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},c:[s.C(";","$",{r:0}),{cN:"number",b:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*\\.?[0-9_]*(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",r:0},{cN:"number",b:"\\$[0-9][0-9A-Fa-f]*",r:0},{cN:"number",b:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[HhXx]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{cN:"number",b:"\\b(?:0[HhXx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"},s.QSM,{cN:"string",b:"'",e:"[^\\\\]'",r:0},{cN:"string",b:"`",e:"[^\\\\]`",r:0},{cN:"string",b:"\\.[A-Za-z0-9]+",r:0},{cN:"label",b:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",r:0},{cN:"label",b:"^\\s*%%[A-Za-z0-9_$#@~.?]*:",r:0},{cN:"argument",b:"%[0-9]+",r:0},{cN:"built_in",b:"%!S+",r:0}]}});hljs.registerLanguage("roboconf",function(e){var n="[a-zA-Z-_][^\n{\r\n]+\\{";return{aliases:["graph","instances"],cI:!0,k:"import",c:[{cN:"facet",b:"^facet "+n,e:"}",k:"facet installer exports children extends",c:[e.HCM]},{cN:"instance-of",b:"^instance of "+n,e:"}",k:"name count channels instance-data instance-state instance of",c:[{cN:"keyword",b:"[a-zA-Z-_]+( | )*:"},e.HCM]},{cN:"component",b:"^"+n,e:"}",l:"\\(?[a-zA-Z]+\\)?",k:"installer exports children extends imports facets alias (optional)",c:[{cN:"string",b:"\\.[a-zA-Z-_]+",e:"\\s|,|;",eE:!0},e.HCM]},e.HCM]}});hljs.registerLanguage("ruby",function(e){var c="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",r="and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",b={cN:"yardoctag",b:"@[A-Za-z]+"},a={cN:"value",b:"#<",e:">"},n=[e.C("#","$",{c:[b]}),e.C("^\\=begin","^\\=end",{c:[b],r:10}),e.C("^__END__","\\n$")],s={cN:"subst",b:"#\\{",e:"}",k:r},t={cN:"string",c:[e.BE,s],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/}]},i={cN:"params",b:"\\(",e:"\\)",k:r},d=[t,a,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{cN:"inheritance",b:"<\\s*",c:[{cN:"parent",b:"("+e.IR+"::)?"+e.IR}]}].concat(n)},{cN:"function",bK:"def",e:" |$|;",r:0,c:[e.inherit(e.TM,{b:c}),i].concat(n)},{cN:"constant",b:"(::)?(\\b[A-Z]\\w*(::)?)+",r:0},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":",c:[t,{b:c}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"("+e.RSR+")\\s*",c:[a,{cN:"regexp",c:[e.BE,s],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(n),r:0}].concat(n);s.c=d,i.c=d;var o="[>?]>",l="[\\w#]+\\(\\w+\\):\\d+:\\d+>",u="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",N=[{b:/^\s*=>/,cN:"status",starts:{e:"$",c:d}},{cN:"prompt",b:"^("+o+"|"+l+"|"+u+")",starts:{e:"$",c:d}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:r,c:n.concat(N).concat(d)}});hljs.registerLanguage("typescript",function(e){return{aliases:["ts"],k:{keyword:"in if for while finally var new function|0 do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private get set super interface extendsstatic constructor implements enum export import declare type protected",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void"},c:[{cN:"pi",b:/^\s*('|")use strict('|")/,r:0},e.ASM,e.QSM,e.CLCM,e.CBCM,e.CNM,{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/;/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/\[|%/,r:0},{cN:"constructor",bK:"constructor",e:/\{/,eE:!0,r:10},{cN:"module",bK:"module",e:/\{/,eE:!0},{cN:"interface",bK:"interface",e:/\{/,eE:!0},{b:/\$[(.]/},{b:"\\."+e.IR,r:0}]}});hljs.registerLanguage("handlebars",function(e){var a="each in with if else unless bindattr action collection debugger log outlet template unbound view yield";return{aliases:["hbs","html.hbs","html.handlebars"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[{cN:"expression",b:"{{",e:"}}",c:[{cN:"begin-block",b:"#[a-zA-Z- .]+",k:a},{cN:"string",b:'"',e:'"'},{cN:"end-block",b:"\\/[a-zA-Z- .]+",k:a},{cN:"variable",b:"[a-zA-Z-.]+",k:a}]}]}});hljs.registerLanguage("mercury",function(e){var i={keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",pragma:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses",preprocessor:"foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},r={cN:"label",b:"XXX",e:"$",eW:!0,r:0},t=e.inherit(e.CLCM,{b:"%"}),_=e.inherit(e.CBCM,{r:0});t.c.push(r),_.c.push(r);var n={cN:"number",b:"0'.\\|0[box][0-9a-fA-F]*"},a=e.inherit(e.ASM,{r:0}),o=e.inherit(e.QSM,{r:0}),l={cN:"constant",b:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",r:0};o.c.push(l);var s={cN:"built_in",v:[{b:"<=>"},{b:"<=",r:0},{b:"=>",r:0},{b:"/\\\\"},{b:"\\\\/"}]},c={cN:"built_in",v:[{b:":-\\|-->"},{b:"=",r:0}]};return{aliases:["m","moo"],k:i,c:[s,c,t,_,n,e.NM,a,o,{b:/:-/}]}});hljs.registerLanguage("fix",function(u){return{c:[{b:/[^\u2401\u0001]+/,e:/[\u2401\u0001]/,eE:!0,rB:!0,rE:!1,c:[{b:/([^\u2401\u0001=]+)/,e:/=([^\u2401\u0001=]+)/,rE:!0,rB:!1,cN:"attribute"},{b:/=/,e:/([\u2401\u0001])/,eE:!0,eB:!0,cN:"string"}]}],cI:!0}});hljs.registerLanguage("clojure",function(e){var t={built_in:"def cond apply if-not if-let if not not= = < > <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},r="a-zA-Z_\\-!.?+*=<>&#'",n="["+r+"]["+r+"0-9/;:]*",a="[-+]?\\d+(\\.\\d+)?",o={b:n,r:0},s={cN:"number",b:a,r:0},i=e.inherit(e.QSM,{i:null}),c=e.C(";","$",{r:0}),d={cN:"literal",b:/\b(true|false|nil)\b/},l={cN:"collection",b:"[\\[\\{]",e:"[\\]\\}]"},m={cN:"comment",b:"\\^"+n},p=e.C("\\^\\{","\\}"),u={cN:"attribute",b:"[:]"+n},f={cN:"list",b:"\\(",e:"\\)"},h={eW:!0,r:0},y={k:t,l:n,cN:"keyword",b:n,starts:h},b=[f,i,m,p,c,u,l,s,d,o];return f.c=[e.C("comment",""),y,h],h.c=b,l.c=b,{aliases:["clj"],i:/\S/,c:[f,i,m,p,c,u,l,s,d]}});hljs.registerLanguage("perl",function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",r={cN:"subst",b:"[$@]\\{",e:"\\}",k:t},s={b:"->{",e:"}"},n={cN:"variable",v:[{b:/\$\d/},{b:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{b:/[\$%@][^\s\w{]/,r:0}]},i=e.C("^(__END__|__DATA__)","\\n$",{r:5}),o=[e.BE,r,n],a=[n,e.HCM,i,e.C("^\\=\\w","\\=cut",{eW:!0}),s,{cN:"string",c:o,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",r:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",r:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",r:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",r:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",r:5},{b:"qw\\s+q",e:"q",r:5},{b:"'",e:"'",c:[e.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[e.BE]},{b:"{\\w+}",c:[],r:0},{b:"-?\\w+\\s*\\=\\>",c:[],r:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\/\\/|"+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,i,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"sub",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",r:5},{cN:"operator",b:"-\\w\\b",r:0}];return r.c=a,s.c=a,{aliases:["pl"],k:t,c:a}});hljs.registerLanguage("twig",function(e){var t={cN:"params",b:"\\(",e:"\\)"},a="attribute block constant cycle date dump include max min parent random range source template_from_string",r={cN:"function",bK:a,r:0,c:[t]},c={cN:"filter",b:/\|[A-Za-z_]+:?/,k:"abs batch capitalize convert_encoding date date_modify default escape first format join json_encode keys last length lower merge nl2br number_format raw replace reverse round slice sort split striptags title trim upper url_encode",c:[r]},n="autoescape block do embed extends filter flush for if import include macro sandbox set spaceless use verbatim";return n=n+" "+n.split(" ").map(function(e){return"end"+e}).join(" "),{aliases:["craftcms"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[e.C(/\{#/,/#}/),{cN:"template_tag",b:/\{%/,e:/%}/,k:n,c:[c,r]},{cN:"variable",b:/\{\{/,e:/}}/,c:[c,r]}]}});hljs.registerLanguage("livecodeserver",function(e){var r={cN:"variable",b:"\\b[gtps][A-Z]+[A-Za-z0-9_\\-]*\\b|\\$_[A-Z]+",r:0},t=[e.CBCM,e.HCM,e.C("--","$"),e.C("[^:]//","$")],a=e.inherit(e.TM,{v:[{b:"\\b_*rig[A-Z]+[A-Za-z0-9_\\-]*"},{b:"\\b_[a-z0-9\\-]+"}]}),o=e.inherit(e.TM,{b:"\\b([A-Za-z0-9_\\-]+)\\b"});return{cI:!1,k:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if",constant:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",operator:"div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract union unload wait write"},c:[r,{cN:"keyword",b:"\\bend\\sif\\b"},{cN:"function",bK:"function",e:"$",c:[r,o,e.ASM,e.QSM,e.BNM,e.CNM,a]},{cN:"function",bK:"end",e:"$",c:[o,a]},{cN:"command",bK:"command on",e:"$",c:[r,o,e.ASM,e.QSM,e.BNM,e.CNM,a]},{cN:"command",bK:"end",e:"$",c:[o,a]},{cN:"preprocessor",b:"<\\?rev|<\\?lc|<\\?livecode",r:10},{cN:"preprocessor",b:"<\\?"},{cN:"preprocessor",b:"\\?>"},e.ASM,e.QSM,e.BNM,e.CNM,a].concat(t),i:";$|^\\[|^="}});hljs.registerLanguage("step21",function(e){var r="[A-Z_][A-Z0-9_.]*",i="END-ISO-10303-21;",l={literal:"",built_in:"",keyword:"HEADER ENDSEC DATA"},s={cN:"preprocessor",b:"ISO-10303-21;",r:10},t=[e.CLCM,e.CBCM,e.C("/\\*\\*!","\\*/"),e.CNM,e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null}),{cN:"string",b:"'",e:"'"},{cN:"label",v:[{b:"#",e:"\\d+",i:"\\W"}]}];return{aliases:["p21","step","stp"],cI:!0,l:r,k:l,c:[{cN:"preprocessor",b:i,r:10},s].concat(t)}});hljs.registerLanguage("cpp",function(t){var i={keyword:"false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex _Complex _Imaginary intmax_t uintmax_t int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_t int_least8_t uint_least8_t int_least16_t uint_least16_t int_least32_t uint_least32_t int_least64_t uint_least64_t int_fast8_t uint_fast8_t int_fast16_t uint_fast16_t int_fast32_t uint_fast32_t int_fast64_t uint_fast64_t intptr_t uintptr_t atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong atomic_wchar_t atomic_char16_t atomic_char32_t atomic_intmax_t atomic_uintmax_t atomic_intptr_t atomic_uintptr_t atomic_size_t atomic_ptrdiff_t atomic_int_least8_t atomic_int_least16_t atomic_int_least32_t atomic_int_least64_t atomic_uint_least8_t atomic_uint_least16_t atomic_uint_least32_t atomic_uint_least64_t atomic_int_fast8_t atomic_int_fast16_t atomic_int_fast32_t atomic_int_fast64_t atomic_uint_fast8_t atomic_uint_fast16_t atomic_uint_fast32_t atomic_uint_fast64_t",built_in:"std string cin cout cerr clog stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf"};return{aliases:["c","cc","h","c++","h++","hpp"],k:i,i:""]',k:"include",i:"\\n"},t.CLCM]},{b:"\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",e:">",k:i,c:["self"]},{b:t.IR+"::",k:i},{bK:"new throw return else",r:0},{cN:"function",b:"("+t.IR+"\\s+)+"+t.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:i,c:[{b:t.IR+"\\s*\\(",rB:!0,c:[t.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:i,r:0,c:[t.CBCM]},t.CLCM,t.CBCM]}]}});hljs.registerLanguage("vala",function(e){return{k:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object",literal:"false true null"},c:[{cN:"class",bK:"class interface delegate namespace",e:"{",eE:!0,i:"[^,:\\n\\s\\.]",c:[e.UTM]},e.CLCM,e.CBCM,{cN:"string",b:'"""',e:'"""',r:5},e.ASM,e.QSM,e.CNM,{cN:"preprocessor",b:"^#",e:"$",r:2},{cN:"constant",b:" [A-Z_]+ ",r:0}]}});hljs.registerLanguage("http",function(t){return{aliases:["https"],i:"\\S",c:[{cN:"status",b:"^HTTP/[0-9\\.]+",e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{cN:"request",b:"^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{cN:"string",e:"$"}},{b:"\\n\\n",starts:{sL:"",eW:!0}}]}});hljs.registerLanguage("avrasm",function(r){return{cI:!0,l:"\\.?"+r.IR,k:{keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",preprocessor:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},c:[r.CBCM,r.C(";","$",{r:0}),r.CNM,r.BNM,{cN:"number",b:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},r.QSM,{cN:"string",b:"'",e:"[^\\\\]'",i:"[^\\\\][^']"},{cN:"label",b:"^[A-Za-z0-9_.$]+:"},{cN:"preprocessor",b:"#",e:"$"},{cN:"localvars",b:"@[0-9]+"}]}});hljs.registerLanguage("aspectj",function(e){var t="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance",i="get set args call";return{k:t,i:/<\//,c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"aspect",bK:"aspect",e:/[{;=]/,eE:!0,i:/[:;"\[\]]/,c:[{bK:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UTM,{b:/\([^\)]*/,e:/[)]+/,k:t+" "+i,eE:!1}]},{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,r:0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"pointcut after before around throwing returning",e:/[)]/,eE:!1,i:/["\[\]]/,c:[{b:e.UIR+"\\s*\\(",rB:!0,c:[e.UTM]}]},{b:/[:]/,rB:!0,e:/[{;]/,r:0,eE:!1,k:t,i:/["\[\]]/,c:[{b:e.UIR+"\\s*\\(",k:t+" "+i},e.QSM]},{bK:"new throw",r:0},{cN:"function",b:/\w+ +\w+(\.)?\w+\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,rB:!0,e:/[{;=]/,k:t,eE:!0,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,r:0,k:t,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("rib",function(e){return{k:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",i:">>|\.\.\.) /},b={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[r],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[r],r:10},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},e.ASM,e.QSM]},l={cN:"number",r:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},c={cN:"params",b:/\(/,e:/\)/,c:["self",r,l,b]};return{aliases:["py","gyp"],k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i:/(<\/|->|\?)/,c:[r,l,b,e.HCM,{v:[{cN:"function",bK:"def",r:10},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n,]/,c:[e.UTM,c]},{cN:"decorator",b:/@/,e:/$/},{b:/\b(print|exec)\(/}]}});hljs.registerLanguage("axapta",function(e){return{k:"false int abstract private char boolean static null if for true while long throw finally protected final return void enum else break new catch byte super case short default double public try this switch continue reverse firstfast firstonly forupdate nofetch sum avg minof maxof count order group by asc desc index hint like dispaly edit client server ttsbegin ttscommit str real date container anytype common div mod",c:[e.CLCM,e.CBCM,e.ASM,e.QSM,e.CNM,{cN:"preprocessor",b:"#",e:"$"},{cN:"class",bK:"class interface",e:"{",eE:!0,i:":",c:[{bK:"extends implements"},e.UTM]}]}});hljs.registerLanguage("nix",function(e){var t={keyword:"rec with let in inherit assert if else then",constant:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},i={cN:"subst",b:/\$\{/,e:/}/,k:t},r={cN:"variable",b:/[a-zA-Z0-9-_]+(\s*=)/},n={cN:"string",b:"''",e:"''",c:[i]},s={cN:"string",b:'"',e:'"',c:[i]},a=[e.NM,e.HCM,e.CBCM,n,s,r];return i.c=a,{aliases:["nixos"],k:t,c:a}});hljs.registerLanguage("diff",function(e){return{aliases:["patch"],c:[{cN:"chunk",r:10,v:[{b:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"header",v:[{b:/Index: /,e:/$/},{b:/=====/,e:/=====$/},{b:/^\-\-\-/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+\+\+/,e:/$/},{b:/\*{5}/,e:/\*{5}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"change",b:"^\\!",e:"$"}]}});hljs.registerLanguage("parser3",function(r){var e=r.C("{","}",{c:["self"]});return{sL:"xml",r:0,c:[r.C("^#","$"),r.C("\\^rem{","}",{r:10,c:[e]}),{cN:"preprocessor",b:"^@(?:BASE|USE|CLASS|OPTIONS)$",r:10},{cN:"title",b:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{cN:"variable",b:"\\$\\{?[\\w\\-\\.\\:]+\\}?"},{cN:"keyword",b:"\\^[\\w\\-\\.\\:]+"},{cN:"number",b:"\\^#[0-9a-fA-F]+"},r.CNM]}});hljs.registerLanguage("django",function(e){var t={cN:"filter",b:/\|[A-Za-z]+:?/,k:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone",c:[{cN:"argument",b:/"/,e:/"/},{cN:"argument",b:/'/,e:/'/}]};return{aliases:["jinja"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[e.C(/\{%\s*comment\s*%}/,/\{%\s*endcomment\s*%}/),e.C(/\{#/,/#}/),{cN:"template_tag",b:/\{%/,e:/%}/,k:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor in ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup by as ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim",c:[t]},{cN:"variable",b:/\{\{/,e:/}}/,c:[t]}]}});hljs.registerLanguage("rust",function(e){var t=e.inherit(e.CBCM);return t.c.push("self"),{aliases:["rs"],k:{keyword:"alignof as be box break const continue crate do else enum extern false fn for if impl in let loop match mod mut offsetof once priv proc pub pure ref return self sizeof static struct super trait true type typeof unsafe unsized use virtual while yield int i8 i16 i32 i64 uint u8 u32 u64 float f32 f64 str char bool",built_in:"assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln!"},l:e.IR+"!?",i:""}]}});hljs.registerLanguage("vhdl",function(e){var t="\\d(_|\\d)*",r="[eE][-+]?"+t,n=t+"(\\."+t+")?("+r+")?",o="\\w+",i=t+"#"+o+"(\\."+o+")?#("+r+")?",a="\\b("+i+"|"+n+")";return{cI:!0,k:{keyword:"abs access after alias all and architecture array assert attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable vmode vprop vunit wait when while with xnor xor",typename:"boolean bit character severity_level integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_ulogic std_ulogic_vector std_logic std_logic_vector unsigned signed boolean_vector integer_vector real_vector time_vector"},i:"{",c:[e.CBCM,e.C("--","$"),e.QSM,{cN:"number",b:a,r:0},{cN:"literal",b:"'(U|X|0|1|Z|W|L|H|-)'",c:[e.BE]},{cN:"attribute",b:"'[A-Za-z](_?[A-Za-z0-9])*",c:[e.BE]}]}});hljs.registerLanguage("ocaml",function(e){return{aliases:["ml"],k:{keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},i:/\/\/|>>/,l:"[a-z_]\\w*!?",c:[{cN:"literal",b:"\\[(\\|\\|)?\\]|\\(\\)"},e.C("\\(\\*","\\*\\)",{c:["self"]}),{cN:"symbol",b:"'[A-Za-z_](?!')[\\w']*"},{cN:"tag",b:"`[A-Z][\\w']*"},{cN:"type",b:"\\b[A-Z][\\w']*",r:0},{b:"[a-z_]\\w*'[\\w']*"},e.inherit(e.ASM,{cN:"char",r:0}),e.inherit(e.QSM,{i:null}),{cN:"number",b:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",r:0},{b:/[-=]>/}]}});hljs.registerLanguage("cmake",function(e){return{aliases:["cmake.in"],cI:!0,k:{keyword:"add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_subdirectory add_test aux_source_directory break build_command cmake_minimum_required cmake_policy configure_file create_test_sourcelist define_property else elseif enable_language enable_testing endforeach endfunction endif endmacro endwhile execute_process export find_file find_library find_package find_path find_program fltk_wrap_ui foreach function get_cmake_property get_directory_property get_filename_component get_property get_source_file_property get_target_property get_test_property if include include_directories include_external_msproject include_regular_expression install link_directories load_cache load_command macro mark_as_advanced message option output_required_files project qt_wrap_cpp qt_wrap_ui remove_definitions return separate_arguments set set_directory_properties set_property set_source_files_properties set_target_properties set_tests_properties site_name source_group string target_link_libraries try_compile try_run unset variable_watch while build_name exec_program export_library_dependencies install_files install_programs install_targets link_libraries make_directory remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or",operator:"equal less greater strless strgreater strequal matches"},c:[{cN:"envvar",b:"\\${",e:"}"},e.HCM,e.QSM,e.NM]}});hljs.registerLanguage("1c",function(c){var e="[a-zA-Zа-яА-Я][a-zA-Z0-9_а-яА-Я]*",r="возврат дата для если и или иначе иначеесли исключение конецесли конецпопытки конецпроцедуры конецфункции конеццикла константа не перейти перем перечисление по пока попытка прервать продолжить процедура строка тогда фс функция цикл число экспорт",t="ansitooem oemtoansi ввестивидсубконто ввестидату ввестизначение ввестиперечисление ввестипериод ввестиплансчетов ввестистроку ввестичисло вопрос восстановитьзначение врег выбранныйплансчетов вызватьисключение датагод датамесяц датачисло добавитьмесяц завершитьработусистемы заголовоксистемы записьжурналарегистрации запуститьприложение зафиксироватьтранзакцию значениевстроку значениевстрокувнутр значениевфайл значениеизстроки значениеизстрокивнутр значениеизфайла имякомпьютера имяпользователя каталогвременныхфайлов каталогиб каталогпользователя каталогпрограммы кодсимв командасистемы конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лев лог лог10 макс максимальноеколичествосубконто мин монопольныйрежим названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найти найтипомеченныенаудаление найтиссылки началопериодаби началостандартногоинтервала начатьтранзакцию начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода нрег обработкаожидания окр описаниеошибки основнойжурналрасчетов основнойплансчетов основнойязык открытьформу открытьформумодально отменитьтранзакцию очиститьокносообщений периодстр полноеимяпользователя получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта прав праводоступа предупреждение префиксавтонумерации пустаястрока пустоезначение рабочаядаттьпустоезначение рабочаядата разделительстраниц разделительстрок разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо сигнал симв символтабуляции создатьобъект сокрл сокрлп сокрп сообщить состояние сохранитьзначение сред статусвозврата стрдлина стрзаменить стрколичествострок стрполучитьстроку стрчисловхождений сформироватьпозициюдокумента счетпокоду текущаядата текущеевремя типзначения типзначениястр удалитьобъекты установитьтана установитьтапо фиксшаблон формат цел шаблон",i={cN:"dquote",b:'""'},n={cN:"string",b:'"',e:'"|$',c:[i]},a={cN:"string",b:"\\|",e:'"|$',c:[i]};return{cI:!0,l:e,k:{keyword:r,built_in:t},c:[c.CLCM,c.NM,n,a,{cN:"function",b:"(процедура|функция)",e:"$",l:e,k:"процедура функция",c:[c.inherit(c.TM,{b:e}),{cN:"tail",eW:!0,c:[{cN:"params",b:"\\(",e:"\\)",l:e,k:"знач",c:[n,a]},{cN:"export",b:"экспорт",eW:!0,l:e,k:"экспорт",c:[c.CLCM]}]},c.CLCM]},{cN:"preprocessor",b:"#",e:"$"},{cN:"date",b:"'\\d{2}\\.\\d{2}\\.(\\d{2}|\\d{4})'"}]}});hljs.registerLanguage("tcl",function(e){return{aliases:["tk"],k:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",c:[e.C(";[ \\t]*#","$"),e.C("^[ \\t]*#","$"),{bK:"proc",e:"[\\{]",eE:!0,c:[{cN:"symbol",b:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",e:"[ \\t\\n\\r]",eW:!0,eE:!0}]},{cN:"variable",eE:!0,v:[{b:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)",e:"[^a-zA-Z0-9_\\}\\$]"},{b:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",e:"(\\))?[^a-zA-Z0-9_\\}\\$]"}]},{cN:"string",c:[e.BE],v:[e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},{cN:"number",v:[e.BNM,e.CNM]}]}});hljs.registerLanguage("groovy",function(e){return{k:{typename:"byte short char int long boolean float double void",literal:"true false null",keyword:"def as in assert trait super this abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},c:[e.CLCM,{cN:"javadoc",b:"/\\*\\*",e:"\\*//*",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CBCM,{cN:"string",b:'"""',e:'"""'},{cN:"string",b:"'''",e:"'''"},{cN:"string",b:"\\$/",e:"/\\$",r:10},e.ASM,{cN:"regexp",b:/~?\/[^\/\n]+\//,c:[e.BE]},e.QSM,{cN:"shebang",b:"^#!/usr/bin/env",e:"$",i:"\n"},e.BNM,{cN:"class",bK:"class interface trait enum",e:"{",i:":",c:[{bK:"extends implements"},e.UTM]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"},{cN:"string",b:/[^\?]{0}[A-Za-z0-9_$]+ *:/},{b:/\?/,e:/\:/},{cN:"label",b:"^\\s*[A-Za-z0-9_$]+:",r:0}]}});hljs.registerLanguage("erlang-repl",function(r){return{k:{special_functions:"spawn spawn_link self",reserved:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},c:[{cN:"prompt",b:"^[0-9]+> ",r:10},r.C("%","$"),{cN:"number",b:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",r:0},r.ASM,r.QSM,{cN:"constant",b:"\\?(::)?([A-Z]\\w*(::)?)+"},{cN:"arrow",b:"->"},{cN:"ok",b:"ok"},{cN:"exclamation_mark",b:"!"},{cN:"function_or_atom",b:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",r:0},{cN:"variable",b:"[A-Z][a-zA-Z0-9_']*",r:0}]}});hljs.registerLanguage("nginx",function(e){var r={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},b={eW:!0,l:"[a-z/_]+",k:{built_in:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,r],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{cN:"url",b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0,c:[r]},{cN:"regexp",c:[e.BE,r],v:[{b:"\\s\\^",e:"\\s|{|;",rE:!0},{b:"~\\*?\\s+",e:"\\s|{|;",rE:!0},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0},r]};return{aliases:["nginxconf"],c:[e.HCM,{b:e.UIR+"\\s",e:";|{",rB:!0,c:[{cN:"title",b:e.UIR,starts:b}],r:0}],i:"[^\\s\\}]"}});hljs.registerLanguage("mathematica",function(e){return{aliases:["mma"],l:"(\\$|\\b)"+e.IR+"\\b",k:"AbelianGroup Abort AbortKernels AbortProtect Above Abs Absolute AbsoluteCorrelation AbsoluteCorrelationFunction AbsoluteCurrentValue AbsoluteDashing AbsoluteFileName AbsoluteOptions AbsolutePointSize AbsoluteThickness AbsoluteTime AbsoluteTiming AccountingForm Accumulate Accuracy AccuracyGoal ActionDelay ActionMenu ActionMenuBox ActionMenuBoxOptions Active ActiveItem ActiveStyle AcyclicGraphQ AddOnHelpPath AddTo AdjacencyGraph AdjacencyList AdjacencyMatrix AdjustmentBox AdjustmentBoxOptions AdjustTimeSeriesForecast AffineTransform After AiryAi AiryAiPrime AiryAiZero AiryBi AiryBiPrime AiryBiZero AlgebraicIntegerQ AlgebraicNumber AlgebraicNumberDenominator AlgebraicNumberNorm AlgebraicNumberPolynomial AlgebraicNumberTrace AlgebraicRules AlgebraicRulesData Algebraics AlgebraicUnitQ Alignment AlignmentMarker AlignmentPoint All AllowedDimensions AllowGroupClose AllowInlineCells AllowKernelInitialization AllowReverseGroupClose AllowScriptLevelChange AlphaChannel AlternatingGroup AlternativeHypothesis Alternatives AmbientLight Analytic AnchoredSearch And AndersonDarlingTest AngerJ AngleBracket AngularGauge Animate AnimationCycleOffset AnimationCycleRepetitions AnimationDirection AnimationDisplayTime AnimationRate AnimationRepetitions AnimationRunning Animator AnimatorBox AnimatorBoxOptions AnimatorElements Annotation Annuity AnnuityDue Antialiasing Antisymmetric Apart ApartSquareFree Appearance AppearanceElements AppellF1 Append AppendTo Apply ArcCos ArcCosh ArcCot ArcCoth ArcCsc ArcCsch ArcSec ArcSech ArcSin ArcSinDistribution ArcSinh ArcTan ArcTanh Arg ArgMax ArgMin ArgumentCountQ ARIMAProcess ArithmeticGeometricMean ARMAProcess ARProcess Array ArrayComponents ArrayDepth ArrayFlatten ArrayPad ArrayPlot ArrayQ ArrayReshape ArrayRules Arrays Arrow Arrow3DBox ArrowBox Arrowheads AspectRatio AspectRatioFixed Assert Assuming Assumptions AstronomicalData Asynchronous AsynchronousTaskObject AsynchronousTasks AtomQ Attributes AugmentedSymmetricPolynomial AutoAction AutoDelete AutoEvaluateEvents AutoGeneratedPackage AutoIndent AutoIndentSpacings AutoItalicWords AutoloadPath AutoMatch Automatic AutomaticImageSize AutoMultiplicationSymbol AutoNumberFormatting AutoOpenNotebooks AutoOpenPalettes AutorunSequencing AutoScaling AutoScroll AutoSpacing AutoStyleOptions AutoStyleWords Axes AxesEdge AxesLabel AxesOrigin AxesStyle Axis BabyMonsterGroupB Back Background BackgroundTasksSettings Backslash Backsubstitution Backward Band BandpassFilter BandstopFilter BarabasiAlbertGraphDistribution BarChart BarChart3D BarLegend BarlowProschanImportance BarnesG BarOrigin BarSpacing BartlettHannWindow BartlettWindow BaseForm Baseline BaselinePosition BaseStyle BatesDistribution BattleLemarieWavelet Because BeckmannDistribution Beep Before Begin BeginDialogPacket BeginFrontEndInteractionPacket BeginPackage BellB BellY Below BenfordDistribution BeniniDistribution BenktanderGibratDistribution BenktanderWeibullDistribution BernoulliB BernoulliDistribution BernoulliGraphDistribution BernoulliProcess BernsteinBasis BesselFilterModel BesselI BesselJ BesselJZero BesselK BesselY BesselYZero Beta BetaBinomialDistribution BetaDistribution BetaNegativeBinomialDistribution BetaPrimeDistribution BetaRegularized BetweennessCentrality BezierCurve BezierCurve3DBox BezierCurve3DBoxOptions BezierCurveBox BezierCurveBoxOptions BezierFunction BilateralFilter Binarize BinaryFormat BinaryImageQ BinaryRead BinaryReadList BinaryWrite BinCounts BinLists Binomial BinomialDistribution BinomialProcess BinormalDistribution BiorthogonalSplineWavelet BipartiteGraphQ BirnbaumImportance BirnbaumSaundersDistribution BitAnd BitClear BitGet BitLength BitNot BitOr BitSet BitShiftLeft BitShiftRight BitXor Black BlackmanHarrisWindow BlackmanNuttallWindow BlackmanWindow Blank BlankForm BlankNullSequence BlankSequence Blend Block BlockRandom BlomqvistBeta BlomqvistBetaTest Blue Blur BodePlot BohmanWindow Bold Bookmarks Boole BooleanConsecutiveFunction BooleanConvert BooleanCountingFunction BooleanFunction BooleanGraph BooleanMaxterms BooleanMinimize BooleanMinterms Booleans BooleanTable BooleanVariables BorderDimensions BorelTannerDistribution Bottom BottomHatTransform BoundaryStyle Bounds Box BoxBaselineShift BoxData BoxDimensions Boxed Boxes BoxForm BoxFormFormatTypes BoxFrame BoxID BoxMargins BoxMatrix BoxRatios BoxRotation BoxRotationPoint BoxStyle BoxWhiskerChart Bra BracketingBar BraKet BrayCurtisDistance BreadthFirstScan Break Brown BrownForsytheTest BrownianBridgeProcess BrowserCategory BSplineBasis BSplineCurve BSplineCurve3DBox BSplineCurveBox BSplineCurveBoxOptions BSplineFunction BSplineSurface BSplineSurface3DBox BubbleChart BubbleChart3D BubbleScale BubbleSizes BulletGauge BusinessDayQ ButterflyGraph ButterworthFilterModel Button ButtonBar ButtonBox ButtonBoxOptions ButtonCell ButtonContents ButtonData ButtonEvaluator ButtonExpandable ButtonFrame ButtonFunction ButtonMargins ButtonMinHeight ButtonNote ButtonNotebook ButtonSource ButtonStyle ButtonStyleMenuListing Byte ByteCount ByteOrdering C CachedValue CacheGraphics CalendarData CalendarType CallPacket CanberraDistance Cancel CancelButton CandlestickChart Cap CapForm CapitalDifferentialD CardinalBSplineBasis CarmichaelLambda Cases Cashflow Casoratian Catalan CatalanNumber Catch CauchyDistribution CauchyWindow CayleyGraph CDF CDFDeploy CDFInformation CDFWavelet Ceiling Cell CellAutoOverwrite CellBaseline CellBoundingBox CellBracketOptions CellChangeTimes CellContents CellContext CellDingbat CellDynamicExpression CellEditDuplicate CellElementsBoundingBox CellElementSpacings CellEpilog CellEvaluationDuplicate CellEvaluationFunction CellEventActions CellFrame CellFrameColor CellFrameLabelMargins CellFrameLabels CellFrameMargins CellGroup CellGroupData CellGrouping CellGroupingRules CellHorizontalScrolling CellID CellLabel CellLabelAutoDelete CellLabelMargins CellLabelPositioning CellMargins CellObject CellOpen CellPrint CellProlog Cells CellSize CellStyle CellTags CellularAutomaton CensoredDistribution Censoring Center CenterDot CentralMoment CentralMomentGeneratingFunction CForm ChampernowneNumber ChanVeseBinarize Character CharacterEncoding CharacterEncodingsPath CharacteristicFunction CharacteristicPolynomial CharacterRange Characters ChartBaseStyle ChartElementData ChartElementDataFunction ChartElementFunction ChartElements ChartLabels ChartLayout ChartLegends ChartStyle Chebyshev1FilterModel Chebyshev2FilterModel ChebyshevDistance ChebyshevT ChebyshevU Check CheckAbort CheckAll Checkbox CheckboxBar CheckboxBox CheckboxBoxOptions ChemicalData ChessboardDistance ChiDistribution ChineseRemainder ChiSquareDistribution ChoiceButtons ChoiceDialog CholeskyDecomposition Chop Circle CircleBox CircleDot CircleMinus CirclePlus CircleTimes CirculantGraph CityData Clear ClearAll ClearAttributes ClearSystemCache ClebschGordan ClickPane Clip ClipboardNotebook ClipFill ClippingStyle ClipPlanes ClipRange Clock ClockGauge ClockwiseContourIntegral Close Closed CloseKernels ClosenessCentrality Closing ClosingAutoSave ClosingEvent ClusteringComponents CMYKColor Coarse Coefficient CoefficientArrays CoefficientDomain CoefficientList CoefficientRules CoifletWavelet Collect Colon ColonForm ColorCombine ColorConvert ColorData ColorDataFunction ColorFunction ColorFunctionScaling Colorize ColorNegate ColorOutput ColorProfileData ColorQuantize ColorReplace ColorRules ColorSelectorSettings ColorSeparate ColorSetter ColorSetterBox ColorSetterBoxOptions ColorSlider ColorSpace Column ColumnAlignments ColumnBackgrounds ColumnForm ColumnLines ColumnsEqual ColumnSpacings ColumnWidths CommonDefaultFormatTypes Commonest CommonestFilter CommonUnits CommunityBoundaryStyle CommunityGraphPlot CommunityLabels CommunityRegionStyle CompatibleUnitQ CompilationOptions CompilationTarget Compile Compiled CompiledFunction Complement CompleteGraph CompleteGraphQ CompleteKaryTree CompletionsListPacket Complex Complexes ComplexExpand ComplexInfinity ComplexityFunction ComponentMeasurements ComponentwiseContextMenu Compose ComposeList ComposeSeries Composition CompoundExpression CompoundPoissonDistribution CompoundPoissonProcess CompoundRenewalProcess Compress CompressedData Condition ConditionalExpression Conditioned Cone ConeBox ConfidenceLevel ConfidenceRange ConfidenceTransform ConfigurationPath Congruent Conjugate ConjugateTranspose Conjunction Connect ConnectedComponents ConnectedGraphQ ConnesWindow ConoverTest ConsoleMessage ConsoleMessagePacket ConsolePrint Constant ConstantArray Constants ConstrainedMax ConstrainedMin ContentPadding ContentsBoundingBox ContentSelectable ContentSize Context ContextMenu Contexts ContextToFilename ContextToFileName Continuation Continue ContinuedFraction ContinuedFractionK ContinuousAction ContinuousMarkovProcess ContinuousTimeModelQ ContinuousWaveletData ContinuousWaveletTransform ContourDetect ContourGraphics ContourIntegral ContourLabels ContourLines ContourPlot ContourPlot3D Contours ContourShading ContourSmoothing ContourStyle ContraharmonicMean Control ControlActive ControlAlignment ControllabilityGramian ControllabilityMatrix ControllableDecomposition ControllableModelQ ControllerDuration ControllerInformation ControllerInformationData ControllerLinking ControllerManipulate ControllerMethod ControllerPath ControllerState ControlPlacement ControlsRendering ControlType Convergents ConversionOptions ConversionRules ConvertToBitmapPacket ConvertToPostScript ConvertToPostScriptPacket Convolve ConwayGroupCo1 ConwayGroupCo2 ConwayGroupCo3 CoordinateChartData CoordinatesToolOptions CoordinateTransform CoordinateTransformData CoprimeQ Coproduct CopulaDistribution Copyable CopyDirectory CopyFile CopyTag CopyToClipboard CornerFilter CornerNeighbors Correlation CorrelationDistance CorrelationFunction CorrelationTest Cos Cosh CoshIntegral CosineDistance CosineWindow CosIntegral Cot Coth Count CounterAssignments CounterBox CounterBoxOptions CounterClockwiseContourIntegral CounterEvaluator CounterFunction CounterIncrements CounterStyle CounterStyleMenuListing CountRoots CountryData Covariance CovarianceEstimatorFunction CovarianceFunction CoxianDistribution CoxIngersollRossProcess CoxModel CoxModelFit CramerVonMisesTest CreateArchive CreateDialog CreateDirectory CreateDocument CreateIntermediateDirectories CreatePalette CreatePalettePacket CreateScheduledTask CreateTemporary CreateWindow CriticalityFailureImportance CriticalitySuccessImportance CriticalSection Cross CrossingDetect CrossMatrix Csc Csch CubeRoot Cubics Cuboid CuboidBox Cumulant CumulantGeneratingFunction Cup CupCap Curl CurlyDoubleQuote CurlyQuote CurrentImage CurrentlySpeakingPacket CurrentValue CurvatureFlowFilter CurveClosed Cyan CycleGraph CycleIndexPolynomial Cycles CyclicGroup Cyclotomic Cylinder CylinderBox CylindricalDecomposition D DagumDistribution DamerauLevenshteinDistance DampingFactor Darker Dashed Dashing DataCompression DataDistribution DataRange DataReversed Date DateDelimiters DateDifference DateFunction DateList DateListLogPlot DateListPlot DatePattern DatePlus DateRange DateString DateTicksFormat DaubechiesWavelet DavisDistribution DawsonF DayCount DayCountConvention DayMatchQ DayName DayPlus DayRange DayRound DeBruijnGraph Debug DebugTag Decimal DeclareKnownSymbols DeclarePackage Decompose Decrement DedekindEta Default DefaultAxesStyle DefaultBaseStyle DefaultBoxStyle DefaultButton DefaultColor DefaultControlPlacement DefaultDuplicateCellStyle DefaultDuration DefaultElement DefaultFaceGridsStyle DefaultFieldHintStyle DefaultFont DefaultFontProperties DefaultFormatType DefaultFormatTypeForStyle DefaultFrameStyle DefaultFrameTicksStyle DefaultGridLinesStyle DefaultInlineFormatType DefaultInputFormatType DefaultLabelStyle DefaultMenuStyle DefaultNaturalLanguage DefaultNewCellStyle DefaultNewInlineCellStyle DefaultNotebook DefaultOptions DefaultOutputFormatType DefaultStyle DefaultStyleDefinitions DefaultTextFormatType DefaultTextInlineFormatType DefaultTicksStyle DefaultTooltipStyle DefaultValues Defer DefineExternal DefineInputStreamMethod DefineOutputStreamMethod Definition Degree DegreeCentrality DegreeGraphDistribution DegreeLexicographic DegreeReverseLexicographic Deinitialization Del Deletable Delete DeleteBorderComponents DeleteCases DeleteContents DeleteDirectory DeleteDuplicates DeleteFile DeleteSmallComponents DeleteWithContents DeletionWarning Delimiter DelimiterFlashTime DelimiterMatching Delimiters Denominator DensityGraphics DensityHistogram DensityPlot DependentVariables Deploy Deployed Depth DepthFirstScan Derivative DerivativeFilter DescriptorStateSpace DesignMatrix Det DGaussianWavelet DiacriticalPositioning Diagonal DiagonalMatrix Dialog DialogIndent DialogInput DialogLevel DialogNotebook DialogProlog DialogReturn DialogSymbols Diamond DiamondMatrix DiceDissimilarity DictionaryLookup DifferenceDelta DifferenceOrder DifferenceRoot DifferenceRootReduce Differences DifferentialD DifferentialRoot DifferentialRootReduce DifferentiatorFilter DigitBlock DigitBlockMinimum DigitCharacter DigitCount DigitQ DihedralGroup Dilation Dimensions DiracComb DiracDelta DirectedEdge DirectedEdges DirectedGraph DirectedGraphQ DirectedInfinity Direction Directive Directory DirectoryName DirectoryQ DirectoryStack DirichletCharacter DirichletConvolve DirichletDistribution DirichletL DirichletTransform DirichletWindow DisableConsolePrintPacket DiscreteChirpZTransform DiscreteConvolve DiscreteDelta DiscreteHadamardTransform DiscreteIndicator DiscreteLQEstimatorGains DiscreteLQRegulatorGains DiscreteLyapunovSolve DiscreteMarkovProcess DiscretePlot DiscretePlot3D DiscreteRatio DiscreteRiccatiSolve DiscreteShift DiscreteTimeModelQ DiscreteUniformDistribution DiscreteVariables DiscreteWaveletData DiscreteWaveletPacketTransform DiscreteWaveletTransform Discriminant Disjunction Disk DiskBox DiskMatrix Dispatch DispersionEstimatorFunction Display DisplayAllSteps DisplayEndPacket DisplayFlushImagePacket DisplayForm DisplayFunction DisplayPacket DisplayRules DisplaySetSizePacket DisplayString DisplayTemporary DisplayWith DisplayWithRef DisplayWithVariable DistanceFunction DistanceTransform Distribute Distributed DistributedContexts DistributeDefinitions DistributionChart DistributionDomain DistributionFitTest DistributionParameterAssumptions DistributionParameterQ Dithering Div Divergence Divide DivideBy Dividers Divisible Divisors DivisorSigma DivisorSum DMSList DMSString Do DockedCells DocumentNotebook DominantColors DOSTextFormat Dot DotDashed DotEqual Dotted DoubleBracketingBar DoubleContourIntegral DoubleDownArrow DoubleLeftArrow DoubleLeftRightArrow DoubleLeftTee DoubleLongLeftArrow DoubleLongLeftRightArrow DoubleLongRightArrow DoubleRightArrow DoubleRightTee DoubleUpArrow DoubleUpDownArrow DoubleVerticalBar DoublyInfinite Down DownArrow DownArrowBar DownArrowUpArrow DownLeftRightVector DownLeftTeeVector DownLeftVector DownLeftVectorBar DownRightTeeVector DownRightVector DownRightVectorBar Downsample DownTee DownTeeArrow DownValues DragAndDrop DrawEdges DrawFrontFaces DrawHighlighted Drop DSolve Dt DualLinearProgramming DualSystemsModel DumpGet DumpSave DuplicateFreeQ Dynamic DynamicBox DynamicBoxOptions DynamicEvaluationTimeout DynamicLocation DynamicModule DynamicModuleBox DynamicModuleBoxOptions DynamicModuleParent DynamicModuleValues DynamicName DynamicNamespace DynamicReference DynamicSetting DynamicUpdating DynamicWrapper DynamicWrapperBox DynamicWrapperBoxOptions E EccentricityCentrality EdgeAdd EdgeBetweennessCentrality EdgeCapacity EdgeCapForm EdgeColor EdgeConnectivity EdgeCost EdgeCount EdgeCoverQ EdgeDashing EdgeDelete EdgeDetect EdgeForm EdgeIndex EdgeJoinForm EdgeLabeling EdgeLabels EdgeLabelStyle EdgeList EdgeOpacity EdgeQ EdgeRenderingFunction EdgeRules EdgeShapeFunction EdgeStyle EdgeThickness EdgeWeight Editable EditButtonSettings EditCellTagsSettings EditDistance EffectiveInterest Eigensystem Eigenvalues EigenvectorCentrality Eigenvectors Element ElementData Eliminate EliminationOrder EllipticE EllipticExp EllipticExpPrime EllipticF EllipticFilterModel EllipticK EllipticLog EllipticNomeQ EllipticPi EllipticReducedHalfPeriods EllipticTheta EllipticThetaPrime EmitSound EmphasizeSyntaxErrors EmpiricalDistribution Empty EmptyGraphQ EnableConsolePrintPacket Enabled Encode End EndAdd EndDialogPacket EndFrontEndInteractionPacket EndOfFile EndOfLine EndOfString EndPackage EngineeringForm Enter EnterExpressionPacket EnterTextPacket Entropy EntropyFilter Environment Epilog Equal EqualColumns EqualRows EqualTilde EquatedTo Equilibrium EquirippleFilterKernel Equivalent Erf Erfc Erfi ErlangB ErlangC ErlangDistribution Erosion ErrorBox ErrorBoxOptions ErrorNorm ErrorPacket ErrorsDialogSettings EstimatedDistribution EstimatedProcess EstimatorGains EstimatorRegulator EuclideanDistance EulerE EulerGamma EulerianGraphQ EulerPhi Evaluatable Evaluate Evaluated EvaluatePacket EvaluationCell EvaluationCompletionAction EvaluationElements EvaluationMode EvaluationMonitor EvaluationNotebook EvaluationObject EvaluationOrder Evaluator EvaluatorNames EvenQ EventData EventEvaluator EventHandler EventHandlerTag EventLabels ExactBlackmanWindow ExactNumberQ ExactRootIsolation ExampleData Except ExcludedForms ExcludePods Exclusions ExclusionsStyle Exists Exit ExitDialog Exp Expand ExpandAll ExpandDenominator ExpandFileName ExpandNumerator Expectation ExpectationE ExpectedValue ExpGammaDistribution ExpIntegralE ExpIntegralEi Exponent ExponentFunction ExponentialDistribution ExponentialFamily ExponentialGeneratingFunction ExponentialMovingAverage ExponentialPowerDistribution ExponentPosition ExponentStep Export ExportAutoReplacements ExportPacket ExportString Expression ExpressionCell ExpressionPacket ExpToTrig ExtendedGCD Extension ExtentElementFunction ExtentMarkers ExtentSize ExternalCall ExternalDataCharacterEncoding Extract ExtractArchive ExtremeValueDistribution FaceForm FaceGrids FaceGridsStyle Factor FactorComplete Factorial Factorial2 FactorialMoment FactorialMomentGeneratingFunction FactorialPower FactorInteger FactorList FactorSquareFree FactorSquareFreeList FactorTerms FactorTermsList Fail FailureDistribution False FARIMAProcess FEDisableConsolePrintPacket FeedbackSector FeedbackSectorStyle FeedbackType FEEnableConsolePrintPacket Fibonacci FieldHint FieldHintStyle FieldMasked FieldSize File FileBaseName FileByteCount FileDate FileExistsQ FileExtension FileFormat FileHash FileInformation FileName FileNameDepth FileNameDialogSettings FileNameDrop FileNameJoin FileNames FileNameSetter FileNameSplit FileNameTake FilePrint FileType FilledCurve FilledCurveBox Filling FillingStyle FillingTransform FilterRules FinancialBond FinancialData FinancialDerivative FinancialIndicator Find FindArgMax FindArgMin FindClique FindClusters FindCurvePath FindDistributionParameters FindDivisions FindEdgeCover FindEdgeCut FindEulerianCycle FindFaces FindFile FindFit FindGeneratingFunction FindGeoLocation FindGeometricTransform FindGraphCommunities FindGraphIsomorphism FindGraphPartition FindHamiltonianCycle FindIndependentEdgeSet FindIndependentVertexSet FindInstance FindIntegerNullVector FindKClan FindKClique FindKClub FindKPlex FindLibrary FindLinearRecurrence FindList FindMaximum FindMaximumFlow FindMaxValue FindMinimum FindMinimumCostFlow FindMinimumCut FindMinValue FindPermutation FindPostmanTour FindProcessParameters FindRoot FindSequenceFunction FindSettings FindShortestPath FindShortestTour FindThreshold FindVertexCover FindVertexCut Fine FinishDynamic FiniteAbelianGroupCount FiniteGroupCount FiniteGroupData First FirstPassageTimeDistribution FischerGroupFi22 FischerGroupFi23 FischerGroupFi24Prime FisherHypergeometricDistribution FisherRatioTest FisherZDistribution Fit FitAll FittedModel FixedPoint FixedPointList FlashSelection Flat Flatten FlattenAt FlatTopWindow FlipView Floor FlushPrintOutputPacket Fold FoldList Font FontColor FontFamily FontForm FontName FontOpacity FontPostScriptName FontProperties FontReencoding FontSize FontSlant FontSubstitutions FontTracking FontVariations FontWeight For ForAll Format FormatRules FormatType FormatTypeAutoConvert FormatValues FormBox FormBoxOptions FortranForm Forward ForwardBackward Fourier FourierCoefficient FourierCosCoefficient FourierCosSeries FourierCosTransform FourierDCT FourierDCTFilter FourierDCTMatrix FourierDST FourierDSTMatrix FourierMatrix FourierParameters FourierSequenceTransform FourierSeries FourierSinCoefficient FourierSinSeries FourierSinTransform FourierTransform FourierTrigSeries FractionalBrownianMotionProcess FractionalPart FractionBox FractionBoxOptions FractionLine Frame FrameBox FrameBoxOptions Framed FrameInset FrameLabel Frameless FrameMargins FrameStyle FrameTicks FrameTicksStyle FRatioDistribution FrechetDistribution FreeQ FrequencySamplingFilterKernel FresnelC FresnelS Friday FrobeniusNumber FrobeniusSolve FromCharacterCode FromCoefficientRules FromContinuedFraction FromDate FromDigits FromDMS Front FrontEndDynamicExpression FrontEndEventActions FrontEndExecute FrontEndObject FrontEndResource FrontEndResourceString FrontEndStackSize FrontEndToken FrontEndTokenExecute FrontEndValueCache FrontEndVersion FrontFaceColor FrontFaceOpacity Full FullAxes FullDefinition FullForm FullGraphics FullOptions FullSimplify Function FunctionExpand FunctionInterpolation FunctionSpace FussellVeselyImportance GaborFilter GaborMatrix GaborWavelet GainMargins GainPhaseMargins Gamma GammaDistribution GammaRegularized GapPenalty Gather GatherBy GaugeFaceElementFunction GaugeFaceStyle GaugeFrameElementFunction GaugeFrameSize GaugeFrameStyle GaugeLabels GaugeMarkers GaugeStyle GaussianFilter GaussianIntegers GaussianMatrix GaussianWindow GCD GegenbauerC General GeneralizedLinearModelFit GenerateConditions GeneratedCell GeneratedParameters GeneratingFunction Generic GenericCylindricalDecomposition GenomeData GenomeLookup GeodesicClosing GeodesicDilation GeodesicErosion GeodesicOpening GeoDestination GeodesyData GeoDirection GeoDistance GeoGridPosition GeometricBrownianMotionProcess GeometricDistribution GeometricMean GeometricMeanFilter GeometricTransformation GeometricTransformation3DBox GeometricTransformation3DBoxOptions GeometricTransformationBox GeometricTransformationBoxOptions GeoPosition GeoPositionENU GeoPositionXYZ GeoProjectionData GestureHandler GestureHandlerTag Get GetBoundingBoxSizePacket GetContext GetEnvironment GetFileName GetFrontEndOptionsDataPacket GetLinebreakInformationPacket GetMenusPacket GetPageBreakInformationPacket Glaisher GlobalClusteringCoefficient GlobalPreferences GlobalSession Glow GoldenRatio GompertzMakehamDistribution GoodmanKruskalGamma GoodmanKruskalGammaTest Goto Grad Gradient GradientFilter GradientOrientationFilter Graph GraphAssortativity GraphCenter GraphComplement GraphData GraphDensity GraphDiameter GraphDifference GraphDisjointUnion GraphDistance GraphDistanceMatrix GraphElementData GraphEmbedding GraphHighlight GraphHighlightStyle GraphHub Graphics Graphics3D Graphics3DBox Graphics3DBoxOptions GraphicsArray GraphicsBaseline GraphicsBox GraphicsBoxOptions GraphicsColor GraphicsColumn GraphicsComplex GraphicsComplex3DBox GraphicsComplex3DBoxOptions GraphicsComplexBox GraphicsComplexBoxOptions GraphicsContents GraphicsData GraphicsGrid GraphicsGridBox GraphicsGroup GraphicsGroup3DBox GraphicsGroup3DBoxOptions GraphicsGroupBox GraphicsGroupBoxOptions GraphicsGrouping GraphicsHighlightColor GraphicsRow GraphicsSpacing GraphicsStyle GraphIntersection GraphLayout GraphLinkEfficiency GraphPeriphery GraphPlot GraphPlot3D GraphPower GraphPropertyDistribution GraphQ GraphRadius GraphReciprocity GraphRoot GraphStyle GraphUnion Gray GrayLevel GreatCircleDistance Greater GreaterEqual GreaterEqualLess GreaterFullEqual GreaterGreater GreaterLess GreaterSlantEqual GreaterTilde Green Grid GridBaseline GridBox GridBoxAlignment GridBoxBackground GridBoxDividers GridBoxFrame GridBoxItemSize GridBoxItemStyle GridBoxOptions GridBoxSpacings GridCreationSettings GridDefaultElement GridElementStyleOptions GridFrame GridFrameMargins GridGraph GridLines GridLinesStyle GroebnerBasis GroupActionBase GroupCentralizer GroupElementFromWord GroupElementPosition GroupElementQ GroupElements GroupElementToWord GroupGenerators GroupMultiplicationTable GroupOrbits GroupOrder GroupPageBreakWithin GroupSetwiseStabilizer GroupStabilizer GroupStabilizerChain Gudermannian GumbelDistribution HaarWavelet HadamardMatrix HalfNormalDistribution HamiltonianGraphQ HammingDistance HammingWindow HankelH1 HankelH2 HankelMatrix HannPoissonWindow HannWindow HaradaNortonGroupHN HararyGraph HarmonicMean HarmonicMeanFilter HarmonicNumber Hash HashTable Haversine HazardFunction Head HeadCompose Heads HeavisideLambda HeavisidePi HeavisideTheta HeldGroupHe HeldPart HelpBrowserLookup HelpBrowserNotebook HelpBrowserSettings HermiteDecomposition HermiteH HermitianMatrixQ HessenbergDecomposition Hessian HexadecimalCharacter Hexahedron HexahedronBox HexahedronBoxOptions HiddenSurface HighlightGraph HighlightImage HighpassFilter HigmanSimsGroupHS HilbertFilter HilbertMatrix Histogram Histogram3D HistogramDistribution HistogramList HistogramTransform HistogramTransformInterpolation HitMissTransform HITSCentrality HodgeDual HoeffdingD HoeffdingDTest Hold HoldAll HoldAllComplete HoldComplete HoldFirst HoldForm HoldPattern HoldRest HolidayCalendar HomeDirectory HomePage Horizontal HorizontalForm HorizontalGauge HorizontalScrollPosition HornerForm HotellingTSquareDistribution HoytDistribution HTMLSave Hue HumpDownHump HumpEqual HurwitzLerchPhi HurwitzZeta HyperbolicDistribution HypercubeGraph HyperexponentialDistribution Hyperfactorial Hypergeometric0F1 Hypergeometric0F1Regularized Hypergeometric1F1 Hypergeometric1F1Regularized Hypergeometric2F1 Hypergeometric2F1Regularized HypergeometricDistribution HypergeometricPFQ HypergeometricPFQRegularized HypergeometricU Hyperlink HyperlinkCreationSettings Hyphenation HyphenationOptions HypoexponentialDistribution HypothesisTestData I Identity IdentityMatrix If IgnoreCase Im Image Image3D Image3DSlices ImageAccumulate ImageAdd ImageAdjust ImageAlign ImageApply ImageAspectRatio ImageAssemble ImageCache ImageCacheValid ImageCapture ImageChannels ImageClip ImageColorSpace ImageCompose ImageConvolve ImageCooccurrence ImageCorners ImageCorrelate ImageCorrespondingPoints ImageCrop ImageData ImageDataPacket ImageDeconvolve ImageDemosaic ImageDifference ImageDimensions ImageDistance ImageEffect ImageFeatureTrack ImageFileApply ImageFileFilter ImageFileScan ImageFilter ImageForestingComponents ImageForwardTransformation ImageHistogram ImageKeypoints ImageLevels ImageLines ImageMargins ImageMarkers ImageMeasurements ImageMultiply ImageOffset ImagePad ImagePadding ImagePartition ImagePeriodogram ImagePerspectiveTransformation ImageQ ImageRangeCache ImageReflect ImageRegion ImageResize ImageResolution ImageRotate ImageRotated ImageScaled ImageScan ImageSize ImageSizeAction ImageSizeCache ImageSizeMultipliers ImageSizeRaw ImageSubtract ImageTake ImageTransformation ImageTrim ImageType ImageValue ImageValuePositions Implies Import ImportAutoReplacements ImportString ImprovementImportance In IncidenceGraph IncidenceList IncidenceMatrix IncludeConstantBasis IncludeFileExtension IncludePods IncludeSingularTerm Increment Indent IndentingNewlineSpacings IndentMaxFraction IndependenceTest IndependentEdgeSetQ IndependentUnit IndependentVertexSetQ Indeterminate IndexCreationOptions Indexed IndexGraph IndexTag Inequality InexactNumberQ InexactNumbers Infinity Infix Information Inherited InheritScope Initialization InitializationCell InitializationCellEvaluation InitializationCellWarning InlineCounterAssignments InlineCounterIncrements InlineRules Inner Inpaint Input InputAliases InputAssumptions InputAutoReplacements InputField InputFieldBox InputFieldBoxOptions InputForm InputGrouping InputNamePacket InputNotebook InputPacket InputSettings InputStream InputString InputStringPacket InputToBoxFormPacket Insert InsertionPointObject InsertResults Inset Inset3DBox Inset3DBoxOptions InsetBox InsetBoxOptions Install InstallService InString Integer IntegerDigits IntegerExponent IntegerLength IntegerPart IntegerPartitions IntegerQ Integers IntegerString Integral Integrate Interactive InteractiveTradingChart Interlaced Interleaving InternallyBalancedDecomposition InterpolatingFunction InterpolatingPolynomial Interpolation InterpolationOrder InterpolationPoints InterpolationPrecision Interpretation InterpretationBox InterpretationBoxOptions InterpretationFunction InterpretTemplate InterquartileRange Interrupt InterruptSettings Intersection Interval IntervalIntersection IntervalMemberQ IntervalUnion Inverse InverseBetaRegularized InverseCDF InverseChiSquareDistribution InverseContinuousWaveletTransform InverseDistanceTransform InverseEllipticNomeQ InverseErf InverseErfc InverseFourier InverseFourierCosTransform InverseFourierSequenceTransform InverseFourierSinTransform InverseFourierTransform InverseFunction InverseFunctions InverseGammaDistribution InverseGammaRegularized InverseGaussianDistribution InverseGudermannian InverseHaversine InverseJacobiCD InverseJacobiCN InverseJacobiCS InverseJacobiDC InverseJacobiDN InverseJacobiDS InverseJacobiNC InverseJacobiND InverseJacobiNS InverseJacobiSC InverseJacobiSD InverseJacobiSN InverseLaplaceTransform InversePermutation InverseRadon InverseSeries InverseSurvivalFunction InverseWaveletTransform InverseWeierstrassP InverseZTransform Invisible InvisibleApplication InvisibleTimes IrreduciblePolynomialQ IsolatingInterval IsomorphicGraphQ IsotopeData Italic Item ItemBox ItemBoxOptions ItemSize ItemStyle ItoProcess JaccardDissimilarity JacobiAmplitude Jacobian JacobiCD JacobiCN JacobiCS JacobiDC JacobiDN JacobiDS JacobiNC JacobiND JacobiNS JacobiP JacobiSC JacobiSD JacobiSN JacobiSymbol JacobiZeta JankoGroupJ1 JankoGroupJ2 JankoGroupJ3 JankoGroupJ4 JarqueBeraALMTest JohnsonDistribution Join Joined JoinedCurve JoinedCurveBox JoinForm JordanDecomposition JordanModelDecomposition K KagiChart KaiserBesselWindow KaiserWindow KalmanEstimator KalmanFilter KarhunenLoeveDecomposition KaryTree KatzCentrality KCoreComponents KDistribution KelvinBei KelvinBer KelvinKei KelvinKer KendallTau KendallTauTest KernelExecute KernelMixtureDistribution KernelObject Kernels Ket Khinchin KirchhoffGraph KirchhoffMatrix KleinInvariantJ KnightTourGraph KnotData KnownUnitQ KolmogorovSmirnovTest KroneckerDelta KroneckerModelDecomposition KroneckerProduct KroneckerSymbol KuiperTest KumaraswamyDistribution Kurtosis KuwaharaFilter Label Labeled LabeledSlider LabelingFunction LabelStyle LaguerreL LambdaComponents LambertW LanczosWindow LandauDistribution Language LanguageCategory LaplaceDistribution LaplaceTransform Laplacian LaplacianFilter LaplacianGaussianFilter Large Larger Last Latitude LatitudeLongitude LatticeData LatticeReduce Launch LaunchKernels LayeredGraphPlot LayerSizeFunction LayoutInformation LCM LeafCount LeapYearQ LeastSquares LeastSquaresFilterKernel Left LeftArrow LeftArrowBar LeftArrowRightArrow LeftDownTeeVector LeftDownVector LeftDownVectorBar LeftRightArrow LeftRightVector LeftTee LeftTeeArrow LeftTeeVector LeftTriangle LeftTriangleBar LeftTriangleEqual LeftUpDownVector LeftUpTeeVector LeftUpVector LeftUpVectorBar LeftVector LeftVectorBar LegendAppearance Legended LegendFunction LegendLabel LegendLayout LegendMargins LegendMarkers LegendMarkerSize LegendreP LegendreQ LegendreType Length LengthWhile LerchPhi Less LessEqual LessEqualGreater LessFullEqual LessGreater LessLess LessSlantEqual LessTilde LetterCharacter LetterQ Level LeveneTest LeviCivitaTensor LevyDistribution Lexicographic LibraryFunction LibraryFunctionError LibraryFunctionInformation LibraryFunctionLoad LibraryFunctionUnload LibraryLoad LibraryUnload LicenseID LiftingFilterData LiftingWaveletTransform LightBlue LightBrown LightCyan Lighter LightGray LightGreen Lighting LightingAngle LightMagenta LightOrange LightPink LightPurple LightRed LightSources LightYellow Likelihood Limit LimitsPositioning LimitsPositioningTokens LindleyDistribution Line Line3DBox LinearFilter LinearFractionalTransform LinearModelFit LinearOffsetFunction LinearProgramming LinearRecurrence LinearSolve LinearSolveFunction LineBox LineBreak LinebreakAdjustments LineBreakChart LineBreakWithin LineColor LineForm LineGraph LineIndent LineIndentMaxFraction LineIntegralConvolutionPlot LineIntegralConvolutionScale LineLegend LineOpacity LineSpacing LineWrapParts LinkActivate LinkClose LinkConnect LinkConnectedQ LinkCreate LinkError LinkFlush LinkFunction LinkHost LinkInterrupt LinkLaunch LinkMode LinkObject LinkOpen LinkOptions LinkPatterns LinkProtocol LinkRead LinkReadHeld LinkReadyQ Links LinkWrite LinkWriteHeld LiouvilleLambda List Listable ListAnimate ListContourPlot ListContourPlot3D ListConvolve ListCorrelate ListCurvePathPlot ListDeconvolve ListDensityPlot Listen ListFourierSequenceTransform ListInterpolation ListLineIntegralConvolutionPlot ListLinePlot ListLogLinearPlot ListLogLogPlot ListLogPlot ListPicker ListPickerBox ListPickerBoxBackground ListPickerBoxOptions ListPlay ListPlot ListPlot3D ListPointPlot3D ListPolarPlot ListQ ListStreamDensityPlot ListStreamPlot ListSurfacePlot3D ListVectorDensityPlot ListVectorPlot ListVectorPlot3D ListZTransform Literal LiteralSearch LocalClusteringCoefficient LocalizeVariables LocationEquivalenceTest LocationTest Locator LocatorAutoCreate LocatorBox LocatorBoxOptions LocatorCentering LocatorPane LocatorPaneBox LocatorPaneBoxOptions LocatorRegion Locked Log Log10 Log2 LogBarnesG LogGamma LogGammaDistribution LogicalExpand LogIntegral LogisticDistribution LogitModelFit LogLikelihood LogLinearPlot LogLogisticDistribution LogLogPlot LogMultinormalDistribution LogNormalDistribution LogPlot LogRankTest LogSeriesDistribution LongEqual Longest LongestAscendingSequence LongestCommonSequence LongestCommonSequencePositions LongestCommonSubsequence LongestCommonSubsequencePositions LongestMatch LongForm Longitude LongLeftArrow LongLeftRightArrow LongRightArrow Loopback LoopFreeGraphQ LowerCaseQ LowerLeftArrow LowerRightArrow LowerTriangularize LowpassFilter LQEstimatorGains LQGRegulator LQOutputRegulatorGains LQRegulatorGains LUBackSubstitution LucasL LuccioSamiComponents LUDecomposition LyapunovSolve LyonsGroupLy MachineID MachineName MachineNumberQ MachinePrecision MacintoshSystemPageSetup Magenta Magnification Magnify MainSolve MaintainDynamicCaches Majority MakeBoxes MakeExpression MakeRules MangoldtLambda ManhattanDistance Manipulate Manipulator MannWhitneyTest MantissaExponent Manual Map MapAll MapAt MapIndexed MAProcess MapThread MarcumQ MardiaCombinedTest MardiaKurtosisTest MardiaSkewnessTest MarginalDistribution MarkovProcessProperties Masking MatchingDissimilarity MatchLocalNameQ MatchLocalNames MatchQ Material MathematicaNotation MathieuC MathieuCharacteristicA MathieuCharacteristicB MathieuCharacteristicExponent MathieuCPrime MathieuGroupM11 MathieuGroupM12 MathieuGroupM22 MathieuGroupM23 MathieuGroupM24 MathieuS MathieuSPrime MathMLForm MathMLText Matrices MatrixExp MatrixForm MatrixFunction MatrixLog MatrixPlot MatrixPower MatrixQ MatrixRank Max MaxBend MaxDetect MaxExtraBandwidths MaxExtraConditions MaxFeatures MaxFilter Maximize MaxIterations MaxMemoryUsed MaxMixtureKernels MaxPlotPoints MaxPoints MaxRecursion MaxStableDistribution MaxStepFraction MaxSteps MaxStepSize MaxValue MaxwellDistribution McLaughlinGroupMcL Mean MeanClusteringCoefficient MeanDegreeConnectivity MeanDeviation MeanFilter MeanGraphDistance MeanNeighborDegree MeanShift MeanShiftFilter Median MedianDeviation MedianFilter Medium MeijerG MeixnerDistribution MemberQ MemoryConstrained MemoryInUse Menu MenuAppearance MenuCommandKey MenuEvaluator MenuItem MenuPacket MenuSortingValue MenuStyle MenuView MergeDifferences Mesh MeshFunctions MeshRange MeshShading MeshStyle Message MessageDialog MessageList MessageName MessageOptions MessagePacket Messages MessagesNotebook MetaCharacters MetaInformation Method MethodOptions MexicanHatWavelet MeyerWavelet Min MinDetect MinFilter MinimalPolynomial MinimalStateSpaceModel Minimize Minors MinRecursion MinSize MinStableDistribution Minus MinusPlus MinValue Missing MissingDataMethod MittagLefflerE MixedRadix MixedRadixQuantity MixtureDistribution Mod Modal Mode Modular ModularLambda Module Modulus MoebiusMu Moment Momentary MomentConvert MomentEvaluate MomentGeneratingFunction Monday Monitor MonomialList MonomialOrder MonsterGroupM MorletWavelet MorphologicalBinarize MorphologicalBranchPoints MorphologicalComponents MorphologicalEulerNumber MorphologicalGraph MorphologicalPerimeter MorphologicalTransform Most MouseAnnotation MouseAppearance MouseAppearanceTag MouseButtons Mouseover MousePointerNote MousePosition MovingAverage MovingMedian MoyalDistribution MultiedgeStyle MultilaunchWarning MultiLetterItalics MultiLetterStyle MultilineFunction Multinomial MultinomialDistribution MultinormalDistribution MultiplicativeOrder Multiplicity Multiselection MultivariateHypergeometricDistribution MultivariatePoissonDistribution MultivariateTDistribution N NakagamiDistribution NameQ Names NamespaceBox Nand NArgMax NArgMin NBernoulliB NCache NDSolve NDSolveValue Nearest NearestFunction NeedCurrentFrontEndPackagePacket NeedCurrentFrontEndSymbolsPacket NeedlemanWunschSimilarity Needs Negative NegativeBinomialDistribution NegativeMultinomialDistribution NeighborhoodGraph Nest NestedGreaterGreater NestedLessLess NestedScriptRules NestList NestWhile NestWhileList NevilleThetaC NevilleThetaD NevilleThetaN NevilleThetaS NewPrimitiveStyle NExpectation Next NextPrime NHoldAll NHoldFirst NHoldRest NicholsGridLines NicholsPlot NIntegrate NMaximize NMaxValue NMinimize NMinValue NominalVariables NonAssociative NoncentralBetaDistribution NoncentralChiSquareDistribution NoncentralFRatioDistribution NoncentralStudentTDistribution NonCommutativeMultiply NonConstants None NonlinearModelFit NonlocalMeansFilter NonNegative NonPositive Nor NorlundB Norm Normal NormalDistribution NormalGrouping Normalize NormalizedSquaredEuclideanDistance NormalsFunction NormFunction Not NotCongruent NotCupCap NotDoubleVerticalBar Notebook NotebookApply NotebookAutoSave NotebookClose NotebookConvertSettings NotebookCreate NotebookCreateReturnObject NotebookDefault NotebookDelete NotebookDirectory NotebookDynamicExpression NotebookEvaluate NotebookEventActions NotebookFileName NotebookFind NotebookFindReturnObject NotebookGet NotebookGetLayoutInformationPacket NotebookGetMisspellingsPacket NotebookInformation NotebookInterfaceObject NotebookLocate NotebookObject NotebookOpen NotebookOpenReturnObject NotebookPath NotebookPrint NotebookPut NotebookPutReturnObject NotebookRead NotebookResetGeneratedCells Notebooks NotebookSave NotebookSaveAs NotebookSelection NotebookSetupLayoutInformationPacket NotebooksMenu NotebookWrite NotElement NotEqualTilde NotExists NotGreater NotGreaterEqual NotGreaterFullEqual NotGreaterGreater NotGreaterLess NotGreaterSlantEqual NotGreaterTilde NotHumpDownHump NotHumpEqual NotLeftTriangle NotLeftTriangleBar NotLeftTriangleEqual NotLess NotLessEqual NotLessFullEqual NotLessGreater NotLessLess NotLessSlantEqual NotLessTilde NotNestedGreaterGreater NotNestedLessLess NotPrecedes NotPrecedesEqual NotPrecedesSlantEqual NotPrecedesTilde NotReverseElement NotRightTriangle NotRightTriangleBar NotRightTriangleEqual NotSquareSubset NotSquareSubsetEqual NotSquareSuperset NotSquareSupersetEqual NotSubset NotSubsetEqual NotSucceeds NotSucceedsEqual NotSucceedsSlantEqual NotSucceedsTilde NotSuperset NotSupersetEqual NotTilde NotTildeEqual NotTildeFullEqual NotTildeTilde NotVerticalBar NProbability NProduct NProductFactors NRoots NSolve NSum NSumTerms Null NullRecords NullSpace NullWords Number NumberFieldClassNumber NumberFieldDiscriminant NumberFieldFundamentalUnits NumberFieldIntegralBasis NumberFieldNormRepresentatives NumberFieldRegulator NumberFieldRootsOfUnity NumberFieldSignature NumberForm NumberFormat NumberMarks NumberMultiplier NumberPadding NumberPoint NumberQ NumberSeparator NumberSigns NumberString Numerator NumericFunction NumericQ NuttallWindow NValues NyquistGridLines NyquistPlot O ObservabilityGramian ObservabilityMatrix ObservableDecomposition ObservableModelQ OddQ Off Offset OLEData On ONanGroupON OneIdentity Opacity Open OpenAppend Opener OpenerBox OpenerBoxOptions OpenerView OpenFunctionInspectorPacket Opening OpenRead OpenSpecialOptions OpenTemporary OpenWrite Operate OperatingSystem OptimumFlowData Optional OptionInspectorSettings OptionQ Options OptionsPacket OptionsPattern OptionValue OptionValueBox OptionValueBoxOptions Or Orange Order OrderDistribution OrderedQ Ordering Orderless OrnsteinUhlenbeckProcess Orthogonalize Out Outer OutputAutoOverwrite OutputControllabilityMatrix OutputControllableModelQ OutputForm OutputFormData OutputGrouping OutputMathEditExpression OutputNamePacket OutputResponse OutputSizeLimit OutputStream Over OverBar OverDot Overflow OverHat Overlaps Overlay OverlayBox OverlayBoxOptions Overscript OverscriptBox OverscriptBoxOptions OverTilde OverVector OwenT OwnValues PackingMethod PaddedForm Padding PadeApproximant PadLeft PadRight PageBreakAbove PageBreakBelow PageBreakWithin PageFooterLines PageFooters PageHeaderLines PageHeaders PageHeight PageRankCentrality PageWidth PairedBarChart PairedHistogram PairedSmoothHistogram PairedTTest PairedZTest PaletteNotebook PalettePath Pane PaneBox PaneBoxOptions Panel PanelBox PanelBoxOptions Paneled PaneSelector PaneSelectorBox PaneSelectorBoxOptions PaperWidth ParabolicCylinderD ParagraphIndent ParagraphSpacing ParallelArray ParallelCombine ParallelDo ParallelEvaluate Parallelization Parallelize ParallelMap ParallelNeeds ParallelProduct ParallelSubmit ParallelSum ParallelTable ParallelTry Parameter ParameterEstimator ParameterMixtureDistribution ParameterVariables ParametricFunction ParametricNDSolve ParametricNDSolveValue ParametricPlot ParametricPlot3D ParentConnect ParentDirectory ParentForm Parenthesize ParentList ParetoDistribution Part PartialCorrelationFunction PartialD ParticleData Partition PartitionsP PartitionsQ ParzenWindow PascalDistribution PassEventsDown PassEventsUp Paste PasteBoxFormInlineCells PasteButton Path PathGraph PathGraphQ Pattern PatternSequence PatternTest PauliMatrix PaulWavelet Pause PausedTime PDF PearsonChiSquareTest PearsonCorrelationTest PearsonDistribution PerformanceGoal PeriodicInterpolation Periodogram PeriodogramArray PermutationCycles PermutationCyclesQ PermutationGroup PermutationLength PermutationList PermutationListQ PermutationMax PermutationMin PermutationOrder PermutationPower PermutationProduct PermutationReplace Permutations PermutationSupport Permute PeronaMalikFilter Perpendicular PERTDistribution PetersenGraph PhaseMargins Pi Pick PIDData PIDDerivativeFilter PIDFeedforward PIDTune Piecewise PiecewiseExpand PieChart PieChart3D PillaiTrace PillaiTraceTest Pink Pivoting PixelConstrained PixelValue PixelValuePositions Placed Placeholder PlaceholderReplace Plain PlanarGraphQ Play PlayRange Plot Plot3D Plot3Matrix PlotDivision PlotJoined PlotLabel PlotLayout PlotLegends PlotMarkers PlotPoints PlotRange PlotRangeClipping PlotRangePadding PlotRegion PlotStyle Plus PlusMinus Pochhammer PodStates PodWidth Point Point3DBox PointBox PointFigureChart PointForm PointLegend PointSize PoissonConsulDistribution PoissonDistribution PoissonProcess PoissonWindow PolarAxes PolarAxesOrigin PolarGridLines PolarPlot PolarTicks PoleZeroMarkers PolyaAeppliDistribution PolyGamma Polygon Polygon3DBox Polygon3DBoxOptions PolygonBox PolygonBoxOptions PolygonHoleScale PolygonIntersections PolygonScale PolyhedronData PolyLog PolynomialExtendedGCD PolynomialForm PolynomialGCD PolynomialLCM PolynomialMod PolynomialQ PolynomialQuotient PolynomialQuotientRemainder PolynomialReduce PolynomialRemainder Polynomials PopupMenu PopupMenuBox PopupMenuBoxOptions PopupView PopupWindow Position Positive PositiveDefiniteMatrixQ PossibleZeroQ Postfix PostScript Power PowerDistribution PowerExpand PowerMod PowerModList PowerSpectralDensity PowersRepresentations PowerSymmetricPolynomial Precedence PrecedenceForm Precedes PrecedesEqual PrecedesSlantEqual PrecedesTilde Precision PrecisionGoal PreDecrement PredictionRoot PreemptProtect PreferencesPath Prefix PreIncrement Prepend PrependTo PreserveImageOptions Previous PriceGraphDistribution PrimaryPlaceholder Prime PrimeNu PrimeOmega PrimePi PrimePowerQ PrimeQ Primes PrimeZetaP PrimitiveRoot PrincipalComponents PrincipalValue Print PrintAction PrintForm PrintingCopies PrintingOptions PrintingPageRange PrintingStartingPageNumber PrintingStyleEnvironment PrintPrecision PrintTemporary Prism PrismBox PrismBoxOptions PrivateCellOptions PrivateEvaluationOptions PrivateFontOptions PrivateFrontEndOptions PrivateNotebookOptions PrivatePaths Probability ProbabilityDistribution ProbabilityPlot ProbabilityPr ProbabilityScalePlot ProbitModelFit ProcessEstimator ProcessParameterAssumptions ProcessParameterQ ProcessStateDomain ProcessTimeDomain Product ProductDistribution ProductLog ProgressIndicator ProgressIndicatorBox ProgressIndicatorBoxOptions Projection Prolog PromptForm Properties Property PropertyList PropertyValue Proportion Proportional Protect Protected ProteinData Pruning PseudoInverse Purple Put PutAppend Pyramid PyramidBox PyramidBoxOptions QBinomial QFactorial QGamma QHypergeometricPFQ QPochhammer QPolyGamma QRDecomposition QuadraticIrrationalQ Quantile QuantilePlot Quantity QuantityForm QuantityMagnitude QuantityQ QuantityUnit Quartics QuartileDeviation Quartiles QuartileSkewness QueueingNetworkProcess QueueingProcess QueueProperties Quiet Quit Quotient QuotientRemainder RadialityCentrality RadicalBox RadicalBoxOptions RadioButton RadioButtonBar RadioButtonBox RadioButtonBoxOptions Radon RamanujanTau RamanujanTauL RamanujanTauTheta RamanujanTauZ Random RandomChoice RandomComplex RandomFunction RandomGraph RandomImage RandomInteger RandomPermutation RandomPrime RandomReal RandomSample RandomSeed RandomVariate RandomWalkProcess Range RangeFilter RangeSpecification RankedMax RankedMin Raster Raster3D Raster3DBox Raster3DBoxOptions RasterArray RasterBox RasterBoxOptions Rasterize RasterSize Rational RationalFunctions Rationalize Rationals Ratios Raw RawArray RawBoxes RawData RawMedium RayleighDistribution Re Read ReadList ReadProtected Real RealBlockDiagonalForm RealDigits RealExponent Reals Reap Record RecordLists RecordSeparators Rectangle RectangleBox RectangleBoxOptions RectangleChart RectangleChart3D RecurrenceFilter RecurrenceTable RecurringDigitsForm Red Reduce RefBox ReferenceLineStyle ReferenceMarkers ReferenceMarkerStyle Refine ReflectionMatrix ReflectionTransform Refresh RefreshRate RegionBinarize RegionFunction RegionPlot RegionPlot3D RegularExpression Regularization Reinstall Release ReleaseHold ReliabilityDistribution ReliefImage ReliefPlot Remove RemoveAlphaChannel RemoveAsynchronousTask Removed RemoveInputStreamMethod RemoveOutputStreamMethod RemoveProperty RemoveScheduledTask RenameDirectory RenameFile RenderAll RenderingOptions RenewalProcess RenkoChart Repeated RepeatedNull RepeatedString Replace ReplaceAll ReplaceHeldPart ReplaceImageValue ReplaceList ReplacePart ReplacePixelValue ReplaceRepeated Resampling Rescale RescalingTransform ResetDirectory ResetMenusPacket ResetScheduledTask Residue Resolve Rest Resultant ResumePacket Return ReturnExpressionPacket ReturnInputFormPacket ReturnPacket ReturnTextPacket Reverse ReverseBiorthogonalSplineWavelet ReverseElement ReverseEquilibrium ReverseGraph ReverseUpEquilibrium RevolutionAxis RevolutionPlot3D RGBColor RiccatiSolve RiceDistribution RidgeFilter RiemannR RiemannSiegelTheta RiemannSiegelZ Riffle Right RightArrow RightArrowBar RightArrowLeftArrow RightCosetRepresentative RightDownTeeVector RightDownVector RightDownVectorBar RightTee RightTeeArrow RightTeeVector RightTriangle RightTriangleBar RightTriangleEqual RightUpDownVector RightUpTeeVector RightUpVector RightUpVectorBar RightVector RightVectorBar RiskAchievementImportance RiskReductionImportance RogersTanimotoDissimilarity Root RootApproximant RootIntervals RootLocusPlot RootMeanSquare RootOfUnityQ RootReduce Roots RootSum Rotate RotateLabel RotateLeft RotateRight RotationAction RotationBox RotationBoxOptions RotationMatrix RotationTransform Round RoundImplies RoundingRadius Row RowAlignments RowBackgrounds RowBox RowHeights RowLines RowMinHeight RowReduce RowsEqual RowSpacings RSolve RudvalisGroupRu Rule RuleCondition RuleDelayed RuleForm RulerUnits Run RunScheduledTask RunThrough RuntimeAttributes RuntimeOptions RussellRaoDissimilarity SameQ SameTest SampleDepth SampledSoundFunction SampledSoundList SampleRate SamplingPeriod SARIMAProcess SARMAProcess SatisfiabilityCount SatisfiabilityInstances SatisfiableQ Saturday Save Saveable SaveAutoDelete SaveDefinitions SawtoothWave Scale Scaled ScaleDivisions ScaledMousePosition ScaleOrigin ScalePadding ScaleRanges ScaleRangeStyle ScalingFunctions ScalingMatrix ScalingTransform Scan ScheduledTaskActiveQ ScheduledTaskData ScheduledTaskObject ScheduledTasks SchurDecomposition ScientificForm ScreenRectangle ScreenStyleEnvironment ScriptBaselineShifts ScriptLevel ScriptMinSize ScriptRules ScriptSizeMultipliers Scrollbars ScrollingOptions ScrollPosition Sec Sech SechDistribution SectionGrouping SectorChart SectorChart3D SectorOrigin SectorSpacing SeedRandom Select Selectable SelectComponents SelectedCells SelectedNotebook Selection SelectionAnimate SelectionCell SelectionCellCreateCell SelectionCellDefaultStyle SelectionCellParentStyle SelectionCreateCell SelectionDebuggerTag SelectionDuplicateCell SelectionEvaluate SelectionEvaluateCreateCell SelectionMove SelectionPlaceholder SelectionSetStyle SelectWithContents SelfLoops SelfLoopStyle SemialgebraicComponentInstances SendMail Sequence SequenceAlignment SequenceForm SequenceHold SequenceLimit Series SeriesCoefficient SeriesData SessionTime Set SetAccuracy SetAlphaChannel SetAttributes Setbacks SetBoxFormNamesPacket SetDelayed SetDirectory SetEnvironment SetEvaluationNotebook SetFileDate SetFileLoadingContext SetNotebookStatusLine SetOptions SetOptionsPacket SetPrecision SetProperty SetSelectedNotebook SetSharedFunction SetSharedVariable SetSpeechParametersPacket SetStreamPosition SetSystemOptions Setter SetterBar SetterBox SetterBoxOptions Setting SetValue Shading Shallow ShannonWavelet ShapiroWilkTest Share Sharpen ShearingMatrix ShearingTransform ShenCastanMatrix Short ShortDownArrow Shortest ShortestMatch ShortestPathFunction ShortLeftArrow ShortRightArrow ShortUpArrow Show ShowAutoStyles ShowCellBracket ShowCellLabel ShowCellTags ShowClosedCellArea ShowContents ShowControls ShowCursorTracker ShowGroupOpenCloseIcon ShowGroupOpener ShowInvisibleCharacters ShowPageBreaks ShowPredictiveInterface ShowSelection ShowShortBoxForm ShowSpecialCharacters ShowStringCharacters ShowSyntaxStyles ShrinkingDelay ShrinkWrapBoundingBox SiegelTheta SiegelTukeyTest Sign Signature SignedRankTest SignificanceLevel SignPadding SignTest SimilarityRules SimpleGraph SimpleGraphQ Simplify Sin Sinc SinghMaddalaDistribution SingleEvaluation SingleLetterItalics SingleLetterStyle SingularValueDecomposition SingularValueList SingularValuePlot SingularValues Sinh SinhIntegral SinIntegral SixJSymbol Skeleton SkeletonTransform SkellamDistribution Skewness SkewNormalDistribution Skip SliceDistribution Slider Slider2D Slider2DBox Slider2DBoxOptions SliderBox SliderBoxOptions SlideView Slot SlotSequence Small SmallCircle Smaller SmithDelayCompensator SmithWatermanSimilarity SmoothDensityHistogram SmoothHistogram SmoothHistogram3D SmoothKernelDistribution SocialMediaData Socket SokalSneathDissimilarity Solve SolveAlways SolveDelayed Sort SortBy Sound SoundAndGraphics SoundNote SoundVolume Sow Space SpaceForm Spacer Spacings Span SpanAdjustments SpanCharacterRounding SpanFromAbove SpanFromBoth SpanFromLeft SpanLineThickness SpanMaxSize SpanMinSize SpanningCharacters SpanSymmetric SparseArray SpatialGraphDistribution Speak SpeakTextPacket SpearmanRankTest SpearmanRho Spectrogram SpectrogramArray Specularity SpellingCorrection SpellingDictionaries SpellingDictionariesPath SpellingOptions SpellingSuggestionsPacket Sphere SphereBox SphericalBesselJ SphericalBesselY SphericalHankelH1 SphericalHankelH2 SphericalHarmonicY SphericalPlot3D SphericalRegion SpheroidalEigenvalue SpheroidalJoiningFactor SpheroidalPS SpheroidalPSPrime SpheroidalQS SpheroidalQSPrime SpheroidalRadialFactor SpheroidalS1 SpheroidalS1Prime SpheroidalS2 SpheroidalS2Prime Splice SplicedDistribution SplineClosed SplineDegree SplineKnots SplineWeights Split SplitBy SpokenString Sqrt SqrtBox SqrtBoxOptions Square SquaredEuclideanDistance SquareFreeQ SquareIntersection SquaresR SquareSubset SquareSubsetEqual SquareSuperset SquareSupersetEqual SquareUnion SquareWave StabilityMargins StabilityMarginsStyle StableDistribution Stack StackBegin StackComplete StackInhibit StandardDeviation StandardDeviationFilter StandardForm Standardize StandbyDistribution Star StarGraph StartAsynchronousTask StartingStepSize StartOfLine StartOfString StartScheduledTask StartupSound StateDimensions StateFeedbackGains StateOutputEstimator StateResponse StateSpaceModel StateSpaceRealization StateSpaceTransform StationaryDistribution StationaryWaveletPacketTransform StationaryWaveletTransform StatusArea StatusCentrality StepMonitor StieltjesGamma StirlingS1 StirlingS2 StopAsynchronousTask StopScheduledTask StrataVariables StratonovichProcess StreamColorFunction StreamColorFunctionScaling StreamDensityPlot StreamPlot StreamPoints StreamPosition Streams StreamScale StreamStyle String StringBreak StringByteCount StringCases StringCount StringDrop StringExpression StringForm StringFormat StringFreeQ StringInsert StringJoin StringLength StringMatchQ StringPosition StringQ StringReplace StringReplaceList StringReplacePart StringReverse StringRotateLeft StringRotateRight StringSkeleton StringSplit StringTake StringToStream StringTrim StripBoxes StripOnInput StripWrapperBoxes StrokeForm StructuralImportance StructuredArray StructuredSelection StruveH StruveL Stub StudentTDistribution Style StyleBox StyleBoxAutoDelete StyleBoxOptions StyleData StyleDefinitions StyleForm StyleKeyMapping StyleMenuListing StyleNameDialogSettings StyleNames StylePrint StyleSheetPath Subfactorial Subgraph SubMinus SubPlus SubresultantPolynomialRemainders SubresultantPolynomials Subresultants Subscript SubscriptBox SubscriptBoxOptions Subscripted Subset SubsetEqual Subsets SubStar Subsuperscript SubsuperscriptBox SubsuperscriptBoxOptions Subtract SubtractFrom SubValues Succeeds SucceedsEqual SucceedsSlantEqual SucceedsTilde SuchThat Sum SumConvergence Sunday SuperDagger SuperMinus SuperPlus Superscript SuperscriptBox SuperscriptBoxOptions Superset SupersetEqual SuperStar Surd SurdForm SurfaceColor SurfaceGraphics SurvivalDistribution SurvivalFunction SurvivalModel SurvivalModelFit SuspendPacket SuzukiDistribution SuzukiGroupSuz SwatchLegend Switch Symbol SymbolName SymletWavelet Symmetric SymmetricGroup SymmetricMatrixQ SymmetricPolynomial SymmetricReduction Symmetrize SymmetrizedArray SymmetrizedArrayRules SymmetrizedDependentComponents SymmetrizedIndependentComponents SymmetrizedReplacePart SynchronousInitialization SynchronousUpdating Syntax SyntaxForm SyntaxInformation SyntaxLength SyntaxPacket SyntaxQ SystemDialogInput SystemException SystemHelpPath SystemInformation SystemInformationData SystemOpen SystemOptions SystemsModelDelay SystemsModelDelayApproximate SystemsModelDelete SystemsModelDimensions SystemsModelExtract SystemsModelFeedbackConnect SystemsModelLabels SystemsModelOrder SystemsModelParallelConnect SystemsModelSeriesConnect SystemsModelStateFeedbackConnect SystemStub Tab TabFilling Table TableAlignments TableDepth TableDirections TableForm TableHeadings TableSpacing TableView TableViewBox TabSpacings TabView TabViewBox TabViewBoxOptions TagBox TagBoxNote TagBoxOptions TaggingRules TagSet TagSetDelayed TagStyle TagUnset Take TakeWhile Tally Tan Tanh TargetFunctions TargetUnits TautologyQ TelegraphProcess TemplateBox TemplateBoxOptions TemplateSlotSequence TemporalData Temporary TemporaryVariable TensorContract TensorDimensions TensorExpand TensorProduct TensorQ TensorRank TensorReduce TensorSymmetry TensorTranspose TensorWedge Tetrahedron TetrahedronBox TetrahedronBoxOptions TeXForm TeXSave Text Text3DBox Text3DBoxOptions TextAlignment TextBand TextBoundingBox TextBox TextCell TextClipboardType TextData TextForm TextJustification TextLine TextPacket TextParagraph TextRecognize TextRendering TextStyle Texture TextureCoordinateFunction TextureCoordinateScaling Therefore ThermometerGauge Thick Thickness Thin Thinning ThisLink ThompsonGroupTh Thread ThreeJSymbol Threshold Through Throw Thumbnail Thursday Ticks TicksStyle Tilde TildeEqual TildeFullEqual TildeTilde TimeConstrained TimeConstraint Times TimesBy TimeSeriesForecast TimeSeriesInvertibility TimeUsed TimeValue TimeZone Timing Tiny TitleGrouping TitsGroupT ToBoxes ToCharacterCode ToColor ToContinuousTimeModel ToDate ToDiscreteTimeModel ToeplitzMatrix ToExpression ToFileName Together Toggle ToggleFalse Toggler TogglerBar TogglerBox TogglerBoxOptions ToHeldExpression ToInvertibleTimeSeries TokenWords Tolerance ToLowerCase ToNumberField TooBig Tooltip TooltipBox TooltipBoxOptions TooltipDelay TooltipStyle Top TopHatTransform TopologicalSort ToRadicals ToRules ToString Total TotalHeight TotalVariationFilter TotalWidth TouchscreenAutoZoom TouchscreenControlPlacement ToUpperCase Tr Trace TraceAbove TraceAction TraceBackward TraceDepth TraceDialog TraceForward TraceInternal TraceLevel TraceOff TraceOn TraceOriginal TracePrint TraceScan TrackedSymbols TradingChart TraditionalForm TraditionalFunctionNotation TraditionalNotation TraditionalOrder TransferFunctionCancel TransferFunctionExpand TransferFunctionFactor TransferFunctionModel TransferFunctionPoles TransferFunctionTransform TransferFunctionZeros TransformationFunction TransformationFunctions TransformationMatrix TransformedDistribution TransformedField Translate TranslationTransform TransparentColor Transpose TreeForm TreeGraph TreeGraphQ TreePlot TrendStyle TriangleWave TriangularDistribution Trig TrigExpand TrigFactor TrigFactorList Trigger TrigReduce TrigToExp TrimmedMean True TrueQ TruncatedDistribution TsallisQExponentialDistribution TsallisQGaussianDistribution TTest Tube TubeBezierCurveBox TubeBezierCurveBoxOptions TubeBox TubeBSplineCurveBox TubeBSplineCurveBoxOptions Tuesday TukeyLambdaDistribution TukeyWindow Tuples TuranGraph TuringMachine Transparent UnateQ Uncompress Undefined UnderBar Underflow Underlined Underoverscript UnderoverscriptBox UnderoverscriptBoxOptions Underscript UnderscriptBox UnderscriptBoxOptions UndirectedEdge UndirectedGraph UndirectedGraphQ UndocumentedTestFEParserPacket UndocumentedTestGetSelectionPacket Unequal Unevaluated UniformDistribution UniformGraphDistribution UniformSumDistribution Uninstall Union UnionPlus Unique UnitBox UnitConvert UnitDimensions Unitize UnitRootTest UnitSimplify UnitStep UnitTriangle UnitVector Unprotect UnsameQ UnsavedVariables Unset UnsetShared UntrackedVariables Up UpArrow UpArrowBar UpArrowDownArrow Update UpdateDynamicObjects UpdateDynamicObjectsSynchronous UpdateInterval UpDownArrow UpEquilibrium UpperCaseQ UpperLeftArrow UpperRightArrow UpperTriangularize Upsample UpSet UpSetDelayed UpTee UpTeeArrow UpValues URL URLFetch URLFetchAsynchronous URLSave URLSaveAsynchronous UseGraphicsRange Using UsingFrontEnd V2Get ValidationLength Value ValueBox ValueBoxOptions ValueForm ValueQ ValuesData Variables Variance VarianceEquivalenceTest VarianceEstimatorFunction VarianceGammaDistribution VarianceTest VectorAngle VectorColorFunction VectorColorFunctionScaling VectorDensityPlot VectorGlyphData VectorPlot VectorPlot3D VectorPoints VectorQ Vectors VectorScale VectorStyle Vee Verbatim Verbose VerboseConvertToPostScriptPacket VerifyConvergence VerifySolutions VerifyTestAssumptions Version VersionNumber VertexAdd VertexCapacity VertexColors VertexComponent VertexConnectivity VertexCoordinateRules VertexCoordinates VertexCorrelationSimilarity VertexCosineSimilarity VertexCount VertexCoverQ VertexDataCoordinates VertexDegree VertexDelete VertexDiceSimilarity VertexEccentricity VertexInComponent VertexInDegree VertexIndex VertexJaccardSimilarity VertexLabeling VertexLabels VertexLabelStyle VertexList VertexNormals VertexOutComponent VertexOutDegree VertexQ VertexRenderingFunction VertexReplace VertexShape VertexShapeFunction VertexSize VertexStyle VertexTextureCoordinates VertexWeight Vertical VerticalBar VerticalForm VerticalGauge VerticalSeparator VerticalSlider VerticalTilde ViewAngle ViewCenter ViewMatrix ViewPoint ViewPointSelectorSettings ViewPort ViewRange ViewVector ViewVertical VirtualGroupData Visible VisibleCell VoigtDistribution VonMisesDistribution WaitAll WaitAsynchronousTask WaitNext WaitUntil WakebyDistribution WalleniusHypergeometricDistribution WaringYuleDistribution WatershedComponents WatsonUSquareTest WattsStrogatzGraphDistribution WaveletBestBasis WaveletFilterCoefficients WaveletImagePlot WaveletListPlot WaveletMapIndexed WaveletMatrixPlot WaveletPhi WaveletPsi WaveletScale WaveletScalogram WaveletThreshold WeaklyConnectedComponents WeaklyConnectedGraphQ WeakStationarity WeatherData WeberE Wedge Wednesday WeibullDistribution WeierstrassHalfPeriods WeierstrassInvariants WeierstrassP WeierstrassPPrime WeierstrassSigma WeierstrassZeta WeightedAdjacencyGraph WeightedAdjacencyMatrix WeightedData WeightedGraphQ Weights WelchWindow WheelGraph WhenEvent Which While White Whitespace WhitespaceCharacter WhittakerM WhittakerW WienerFilter WienerProcess WignerD WignerSemicircleDistribution WilksW WilksWTest WindowClickSelect WindowElements WindowFloating WindowFrame WindowFrameElements WindowMargins WindowMovable WindowOpacity WindowSelected WindowSize WindowStatusArea WindowTitle WindowToolbars WindowWidth With WolframAlpha WolframAlphaDate WolframAlphaQuantity WolframAlphaResult Word WordBoundary WordCharacter WordData WordSearch WordSeparators WorkingPrecision Write WriteString Wronskian XMLElement XMLObject Xnor Xor Yellow YuleDissimilarity ZernikeR ZeroSymmetric ZeroTest ZeroWidthTimes Zeta ZetaZero ZipfDistribution ZTest ZTransform $Aborted $ActivationGroupID $ActivationKey $ActivationUserRegistered $AddOnsDirectory $AssertFunction $Assumptions $AsynchronousTask $BaseDirectory $BatchInput $BatchOutput $BoxForms $ByteOrdering $Canceled $CharacterEncoding $CharacterEncodings $CommandLine $CompilationTarget $ConditionHold $ConfiguredKernels $Context $ContextPath $ControlActiveSetting $CreationDate $CurrentLink $DateStringFormat $DefaultFont $DefaultFrontEnd $DefaultImagingDevice $DefaultPath $Display $DisplayFunction $DistributedContexts $DynamicEvaluation $Echo $Epilog $ExportFormats $Failed $FinancialDataSource $FormatType $FrontEnd $FrontEndSession $GeoLocation $HistoryLength $HomeDirectory $HTTPCookies $IgnoreEOF $ImagingDevices $ImportFormats $InitialDirectory $Input $InputFileName $InputStreamMethods $Inspector $InstallationDate $InstallationDirectory $InterfaceEnvironment $IterationLimit $KernelCount $KernelID $Language $LaunchDirectory $LibraryPath $LicenseExpirationDate $LicenseID $LicenseProcesses $LicenseServer $LicenseSubprocesses $LicenseType $Line $Linked $LinkSupported $LoadedFiles $MachineAddresses $MachineDomain $MachineDomains $MachineEpsilon $MachineID $MachineName $MachinePrecision $MachineType $MaxExtraPrecision $MaxLicenseProcesses $MaxLicenseSubprocesses $MaxMachineNumber $MaxNumber $MaxPiecewiseCases $MaxPrecision $MaxRootDegree $MessageGroups $MessageList $MessagePrePrint $Messages $MinMachineNumber $MinNumber $MinorReleaseNumber $MinPrecision $ModuleNumber $NetworkLicense $NewMessage $NewSymbol $Notebooks $NumberMarks $Off $OperatingSystem $Output $OutputForms $OutputSizeLimit $OutputStreamMethods $Packages $ParentLink $ParentProcessID $PasswordFile $PatchLevelID $Path $PathnameSeparator $PerformanceGoal $PipeSupported $Post $Pre $PreferencesDirectory $PrePrint $PreRead $PrintForms $PrintLiteral $ProcessID $ProcessorCount $ProcessorType $ProductInformation $ProgramName $RandomState $RecursionLimit $ReleaseNumber $RootDirectory $ScheduledTask $ScriptCommandLine $SessionID $SetParentLink $SharedFunctions $SharedVariables $SoundDisplay $SoundDisplayFunction $SuppressInputFormHeads $SynchronousEvaluation $SyntaxHandler $System $SystemCharacterEncoding $SystemID $SystemWordLength $TemporaryDirectory $TemporaryPrefix $TextStyle $TimedOut $TimeUnit $TimeZone $TopDirectory $TraceOff $TraceOn $TracePattern $TracePostAction $TracePreAction $Urgent $UserAddOnsDirectory $UserBaseDirectory $UserDocumentsDirectory $UserName $Version $VersionNumber", c:[{cN:"comment",b:/\(\*/,e:/\*\)/},e.ASM,e.QSM,e.CNM,{cN:"list",b:/\{/,e:/\}/,i:/:/}]}});hljs.registerLanguage("fsharp",function(e){var t={b:"<",e:">",c:[e.inherit(e.TM,{b:/'[a-zA-Z0-9_]+/})]};return{aliases:["fs"],k:"yield! return! let! do!abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",c:[{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},{cN:"string",b:'"""',e:'"""'},e.C("\\(\\*","\\*\\)"),{cN:"class",bK:"type",e:"\\(|=|$",eE:!0,c:[e.UTM,t]},{cN:"annotation",b:"\\[<",e:">\\]",r:10},{cN:"attribute",b:"\\B('[A-Za-z])\\b",c:[e.BE]},e.CLCM,e.inherit(e.QSM,{i:null}),e.CNM]}});hljs.registerLanguage("verilog",function(e){return{aliases:["v"],cI:!0,k:{keyword:"always and assign begin buf bufif0 bufif1 case casex casez cmos deassign default defparam disable edge else end endcase endfunction endmodule endprimitive endspecify endtable endtask event for force forever fork function if ifnone initial inout input join macromodule module nand negedge nmos nor not notif0 notif1 or output parameter pmos posedge primitive pulldown pullup rcmos release repeat rnmos rpmos rtran rtranif0 rtranif1 specify specparam table task timescale tran tranif0 tranif1 wait while xnor xor",typename:"highz0 highz1 integer large medium pull0 pull1 real realtime reg scalared signed small strong0 strong1 supply0 supply0 supply1 supply1 time tri tri0 tri1 triand trior trireg vectored wand weak0 weak1 wire wor"},c:[e.CBCM,e.CLCM,e.QSM,{cN:"number",b:"\\b(\\d+'(b|h|o|d|B|H|O|D))?[0-9xzXZ]+",c:[e.BE],r:0},{cN:"typename",b:"\\.\\w+",r:0},{cN:"value",b:"#\\((?!parameter).+\\)"},{cN:"keyword",b:"\\+|-|\\*|/|%|<|>|=|#|`|\\!|&|\\||@|:|\\^|~|\\{|\\}",r:0}]}});hljs.registerLanguage("dos",function(e){var r=e.C(/@?rem\b/,/$/,{r:10}),t={cN:"label",b:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",r:0};return{aliases:["bat","cmd"],cI:!0,k:{flow:"if else goto for in do call exit not exist errorlevel defined",operator:"equ neq lss leq gtr geq",keyword:"shift cd dir echo setlocal endlocal set pause copy",stream:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux",winutils:"ping net ipconfig taskkill xcopy ren del",built_in:"append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shiftsort start subst time title tree type ver verify vol"},c:[{cN:"envvar",b:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{cN:"function",b:t.b,e:"goto:eof",c:[e.inherit(e.TM,{b:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),r]},{cN:"number",b:"\\b\\d+",r:0},r]}});hljs.registerLanguage("gherkin",function(e){return{aliases:["feature"],k:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",c:[{cN:"keyword",b:"\\*"},e.C("@[^@\r\n ]+","$"),{cN:"string",b:"\\|",e:"\\$"},{cN:"variable",b:"<",e:">"},e.HCM,{cN:"string",b:'"""',e:'"""'},e.QSM]}});hljs.registerLanguage("xml",function(t){var e="[A-Za-z0-9\\._:-]+",s={b:/<\?(php)?(?!\w)/,e:/\?>/,sL:"php",subLanguageMode:"continuous"},c={eW:!0,i:/]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xsl","plist"],cI:!0,c:[{cN:"doctype",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},t.C("",{r:10}),{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"|$)",e:">",k:{title:"style"},c:[c],starts:{e:"",rE:!0,sL:"css"}},{cN:"tag",b:"|$)",e:">",k:{title:"script"},c:[c],starts:{e:"",rE:!0,sL:""}},s,{cN:"pi",b:/<\?\w+/,e:/\?>/,r:10},{cN:"tag",b:"",c:[{cN:"title",b:/[^ \/><\n\t]+/,r:0},c]}]}});hljs.registerLanguage("autohotkey",function(e){var r={cN:"escape",b:"`[\\s\\S]"},c=e.C(";","$",{r:0}),n=[{cN:"built_in",b:"A_[a-zA-Z0-9]+"},{cN:"built_in",bK:"ComSpec Clipboard ClipboardAll ErrorLevel"}];return{cI:!0,k:{keyword:"Break Continue Else Gosub If Loop Return While",literal:"A true false NOT AND OR"},c:n.concat([r,e.inherit(e.QSM,{c:[r]}),c,{cN:"number",b:e.NR,r:0},{cN:"var_expand",b:"%",e:"%",i:"\\n",c:[r]},{cN:"label",c:[r],v:[{b:'^[^\\n";]+::(?!=)'},{b:'^[^\\n";]+:(?!=)',r:0}]},{b:",\\s*,",r:10}])}});hljs.registerLanguage("r",function(e){var r="([a-zA-Z]|\\.[a-zA-Z.])[a-zA-Z0-9._]*";return{c:[e.HCM,{b:r,l:r,k:{keyword:"function if in break next repeat else for return switch while try tryCatch stop warning require library attach detach source setMethod setGeneric setGroupGeneric setClass ...",literal:"NULL NA TRUE FALSE T F Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10"},r:0},{cN:"number",b:"0[xX][0-9a-fA-F]+[Li]?\\b",r:0},{cN:"number",b:"\\d+(?:[eE][+\\-]?\\d*)?L\\b",r:0},{cN:"number",b:"\\d+\\.(?!\\d)(?:i\\b)?",r:0},{cN:"number",b:"\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b",r:0},{cN:"number",b:"\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b",r:0},{b:"`",e:"`",r:0},{cN:"string",c:[e.BE],v:[{b:'"',e:'"'},{b:"'",e:"'"}]}]}});hljs.registerLanguage("cs",function(e){var r="abstract as base bool break byte case catch char checked const continue decimal dynamic default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long null when object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this true try typeof uint ulong unchecked unsafe ushort using virtual volatile void while async protected public private internal ascending descending from get group into join let orderby partial select set value var where yield",t=e.IR+"(<"+e.IR+">)?";return{aliases:["csharp"],k:r,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"xmlDocTag",v:[{b:"///",r:0},{b:""},{b:""}]}]}),e.CLCM,e.CBCM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line region endregion pragma checksum"},{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},e.ASM,e.QSM,e.CNM,{bK:"class namespace interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"new return throw await",r:0},{cN:"function",b:"("+t+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:r,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:r,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}});hljs.registerLanguage("nsis",function(e){var t={cN:"symbol",b:"\\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)"},n={cN:"constant",b:"\\$+{[a-zA-Z0-9_]+}"},i={cN:"variable",b:"\\$+[a-zA-Z0-9_]+",i:"\\(\\){}"},r={cN:"constant",b:"\\$+\\([a-zA-Z0-9_]+\\)"},o={cN:"params",b:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},l={cN:"constant",b:"\\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversionsystem|ifdef|ifmacrodef|ifmacrondef|ifndef|if|include|insertmacro|macroend|macro|makensis|packhdr|searchparse|searchreplace|tempfile|undef|verbose|warning)"};return{cI:!1,k:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileSeek FileWrite FileWriteByte FileWriteUTF16LE FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI FunctionEnd GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText IntCmp IntCmpU IntFmt IntOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PageExEnd Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionEnd SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionGroupEnd SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetPluginUnload SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption SubSectionEnd Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both colored current false force hide highest lastused leave listonly none normal notset off on open print show silent silentlog smooth textonly true user "},c:[e.HCM,e.CBCM,{cN:"string",b:'"',e:'"',i:"\\n",c:[{cN:"symbol",b:"\\$(\\\\(n|r|t)|\\$)"},t,n,i,r]},e.C(";","$",{r:0}),{cN:"function",bK:"Function PageEx Section SectionGroup SubSection",e:"$"},l,n,i,r,o,e.NM,{cN:"literal",b:e.IR+"::"+e.IR}]}});hljs.registerLanguage("less",function(e){var r="[\\w-]+",t="("+r+"|@{"+r+"})",a=[],c=[],n=function(e){return{cN:"string",b:"~?"+e+".*?"+e}},i=function(e,r,t){return{cN:e,b:r,r:t}},s=function(r,t,a){return e.inherit({cN:r,b:t+"\\(",e:"\\(",rB:!0,eE:!0,r:0},a)},b={b:"\\(",e:"\\)",c:c,r:0};c.push(e.CLCM,e.CBCM,n("'"),n('"'),e.CSSNM,i("hexcolor","#[0-9A-Fa-f]+\\b"),s("function","(url|data-uri)",{starts:{cN:"string",e:"[\\)\\n]",eE:!0}}),s("function",r),b,i("variable","@@?"+r,10),i("variable","@{"+r+"}"),i("built_in","~?`[^`]*?`"),{cN:"attribute",b:r+"\\s*:",e:":",rB:!0,eE:!0});var o=c.concat({b:"{",e:"}",c:a}),u={bK:"when",eW:!0,c:[{bK:"and not"}].concat(c)},C={cN:"attribute",b:t,e:":",eE:!0,c:[e.CLCM,e.CBCM],i:/\S/,starts:{e:"[;}]",rE:!0,c:c,i:"[<=$]"}},l={cN:"at_rule",b:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{e:"[;{}]",rE:!0,c:c,r:0}},d={cN:"variable",v:[{b:"@"+r+"\\s*:",r:15},{b:"@"+r}],starts:{e:"[;}]",rE:!0,c:o}},p={v:[{b:"[\\.#:&\\[]",e:"[;{}]"},{b:t+"[^;]*{",e:"{"}],rB:!0,rE:!0,i:"[<='$\"]",c:[e.CLCM,e.CBCM,u,i("keyword","all\\b"),i("variable","@{"+r+"}"),i("tag",t+"%?",0),i("id","#"+t),i("class","\\."+t,0),i("keyword","&",0),s("pseudo",":not"),s("keyword",":extend"),i("pseudo","::?"+t),{cN:"attr_selector",b:"\\[",e:"\\]"},{b:"\\(",e:"\\)",c:o},{b:"!important"}]};return a.push(e.CLCM,e.CBCM,l,d,p,C),{cI:!0,i:"[=>'/<($\"]",c:a}});hljs.registerLanguage("pf",function(t){var o={cN:"variable",b:/\$[\w\d#@][\w\d_]*/},e={cN:"variable",b://};return{aliases:["pf.conf"],l:/[a-z0-9_<>-]+/,k:{built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to routeallow-opts divert-packet divert-reply divert-to flags group icmp-typeicmp6-type label once probability recieved-on rtable prio queuetos tag tagged user keep fragment for os dropaf-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robinsource-hash static-portdup-to reply-to route-toparent bandwidth default min max qlimitblock-policy debug fingerprints hostid limit loginterface optimizationreassemble ruleset-optimization basic none profile skip state-defaultsstate-policy timeoutconst counters persistno modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppysource-track global rule max-src-nodes max-src-states max-src-connmax-src-conn-rate overload flushscrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},c:[t.HCM,t.NM,t.QSM,o,e]}});hljs.registerLanguage("lasso",function(e){var r="[a-zA-Z_][a-zA-Z0-9_.]*",a="<\\?(lasso(script)?|=)",t="\\]|\\?>",s={literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited",keyword:"error_code error_msg error_pop error_push error_reset cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},n=e.C("",{r:0}),o={cN:"preprocessor",b:"\\[noprocess\\]",starts:{cN:"markup",e:"\\[/noprocess\\]",rE:!0,c:[n]}},i={cN:"preprocessor",b:"\\[/noprocess|"+a},l={cN:"variable",b:"'"+r+"'"},c=[e.CLCM,{cN:"javadoc",b:"/\\*\\*!",e:"\\*/",c:[e.PWM]},e.CBCM,e.inherit(e.CNM,{b:e.CNR+"|(-?infinity|nan)\\b"}),e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null}),{cN:"string",b:"`",e:"`"},{cN:"variable",v:[{b:"[#$]"+r},{b:"#",e:"\\d+",i:"\\W"}]},{cN:"tag",b:"::\\s*",e:r,i:"\\W"},{cN:"attribute",v:[{b:"-"+e.UIR,r:0},{b:"(\\.\\.\\.)"}]},{cN:"subst",v:[{b:"->\\s*",c:[l]},{b:":=|/(?!\\w)=?|[-+*%=<>&|!?\\\\]+",r:0}]},{cN:"built_in",b:"\\.\\.?\\s*",r:0,c:[l]},{cN:"class",bK:"define",rE:!0,e:"\\(|=>",c:[e.inherit(e.TM,{b:e.UIR+"(=(?!>))?"})]}];return{aliases:["ls","lassoscript"],cI:!0,l:r+"|&[lg]t;",k:s,c:[{cN:"preprocessor",b:t,r:0,starts:{cN:"markup",e:"\\[|"+a,rE:!0,r:0,c:[n]}},o,i,{cN:"preprocessor",b:"\\[no_square_brackets",starts:{e:"\\[/no_square_brackets\\]",l:r+"|&[lg]t;",k:s,c:[{cN:"preprocessor",b:t,r:0,starts:{cN:"markup",e:"\\[noprocess\\]|"+a,rE:!0,c:[n]}},o,i].concat(c)}},{cN:"preprocessor",b:"\\[",r:0},{cN:"shebang",b:"^#!.+lasso9\\b",r:10}].concat(c)}});hljs.registerLanguage("prolog",function(c){var r={cN:"atom",b:/[a-z][A-Za-z0-9_]*/,r:0},b={cN:"name",v:[{b:/[A-Z][a-zA-Z0-9_]*/},{b:/_[A-Za-z0-9_]*/}],r:0},a={b:/\(/,e:/\)/,r:0},e={b:/\[/,e:/\]/},n={cN:"comment",b:/%/,e:/$/,c:[c.PWM]},t={cN:"string",b:/`/,e:/`/,c:[c.BE]},g={cN:"string",b:/0\'(\\\'|.)/},N={cN:"string",b:/0\'\\s/},o={b:/:-/},s=[r,b,a,o,e,n,c.CBCM,c.QSM,c.ASM,t,g,N,c.CNM];return a.c=s,e.c=s,{c:s.concat([{b:/\.$/}])}});hljs.registerLanguage("oxygene",function(e){var r="abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained",t=e.C("{","}",{r:0}),a=e.C("\\(\\*","\\*\\)",{r:10}),n={cN:"string",b:"'",e:"'",c:[{b:"''"}]},o={cN:"string",b:"(#\\d+)+"},i={cN:"function",bK:"function constructor destructor procedure method",e:"[:;]",k:"function constructor|10 destructor|10 procedure|10 method|10",c:[e.TM,{cN:"params",b:"\\(",e:"\\)",k:r,c:[n,o]},t,a]};return{cI:!0,k:r,i:'("|\\$[G-Zg-z]|\\/\\*||->)',c:[t,a,e.CLCM,n,o,e.NM,i,{cN:"class",b:"=\\bclass\\b",e:"end;",k:r,c:[n,o,t,a,e.CLCM,i]}]}});hljs.registerLanguage("applescript",function(e){var t=e.inherit(e.QSM,{i:""}),r={cN:"params",b:"\\(",e:"\\)",c:["self",e.CNM,t]},o=e.C("--","$"),n=e.C("\\(\\*","\\*\\)",{c:["self",o]}),a=[o,n,e.HCM];return{aliases:["osascript"],k:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",constant:"AppleScript false linefeed return pi quote result space tab true",type:"alias application boolean class constant date file integer list number real record string text",command:"activate beep count delay launch log offset read round run say summarize write",property:"character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},c:[t,e.CNM,{cN:"type",b:"\\bPOSIX file\\b"},{cN:"command",b:"\\b(clipboard info|the clipboard|info for|list (disks|folder)|mount volume|path to|(close|open for) access|(get|set) eof|current date|do shell script|get volume settings|random number|set volume|system attribute|system info|time to GMT|(load|run|store) script|scripting components|ASCII (character|number)|localized string|choose (application|color|file|file name|folder|from list|remote application|URL)|display (alert|dialog))\\b|^\\s*return\\b"},{cN:"constant",b:"\\b(text item delimiters|current application|missing value)\\b"},{cN:"keyword",b:"\\b(apart from|aside from|instead of|out of|greater than|isn't|(doesn't|does not) (equal|come before|come after|contain)|(greater|less) than( or equal)?|(starts?|ends|begins?) with|contained by|comes (before|after)|a (ref|reference))\\b"},{cN:"property",b:"\\b(POSIX path|(date|time) string|quoted form)\\b"},{cN:"function_start",bK:"on",i:"[${=;\\n]",c:[e.UTM,r]}].concat(a),i:"//|->|=>"}});hljs.registerLanguage("makefile",function(e){var a={cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]};return{aliases:["mk","mak"],c:[e.HCM,{b:/^\w+\s*\W*=/,rB:!0,r:0,starts:{cN:"constant",e:/\s*\W*=/,eE:!0,starts:{e:/$/,r:0,c:[a]}}},{cN:"title",b:/^[\w]+:\s*$/},{cN:"phony",b:/^\.PHONY:/,e:/$/,k:".PHONY",l:/[\.\w]+/},{b:/^\t+/,e:/$/,r:0,c:[e.QSM,a]}]}});hljs.registerLanguage("dust",function(e){var a="if eq ne lt lte gt gte select default math sep";return{aliases:["dst"],cI:!0,sL:"xml",subLanguageMode:"continuous",c:[{cN:"expression",b:"{",e:"}",r:0,c:[{cN:"begin-block",b:"#[a-zA-Z- .]+",k:a},{cN:"string",b:'"',e:'"'},{cN:"end-block",b:"\\/[a-zA-Z- .]+",k:a},{cN:"variable",b:"[a-zA-Z-.]+",k:a,r:0}]}]}});hljs.registerLanguage("clojure-repl",function(e){return{c:[{cN:"prompt",b:/^([\w.-]+|\s*#_)=>/,starts:{e:/$/,sL:"clojure",subLanguageMode:"continuous"}}]}});hljs.registerLanguage("dart",function(e){var t={cN:"subst",b:"\\$\\{",e:"}",k:"true false null this is new super"},r={cN:"string",v:[{b:"r'''",e:"'''"},{b:'r"""',e:'"""'},{b:"r'",e:"'",i:"\\n"},{b:'r"',e:'"',i:"\\n"},{b:"'''",e:"'''",c:[e.BE,t]},{b:'"""',e:'"""',c:[e.BE,t]},{b:"'",e:"'",i:"\\n",c:[e.BE,t]},{b:'"',e:'"',i:"\\n",c:[e.BE,t]}]};t.c=[e.CNM,r];var n={keyword:"assert break case catch class const continue default do else enum extends false final finally for if in is new null rethrow return super switch this throw true try var void while with",literal:"abstract as dynamic export external factory get implements import library operator part set static typedef",built_in:"print Comparable DateTime Duration Function Iterable Iterator List Map Match Null Object Pattern RegExp Set Stopwatch String StringBuffer StringSink Symbol Type Uri bool double int num document window querySelector querySelectorAll Element ElementList"};return{k:n,c:[r,{cN:"dartdoc",b:"/\\*\\*",e:"\\*/",sL:"markdown",subLanguageMode:"continuous"},{cN:"dartdoc",b:"///",e:"$",sL:"markdown",subLanguageMode:"continuous"},e.CLCM,e.CBCM,{cN:"class",bK:"class interface",e:"{",eE:!0,c:[{bK:"extends implements"},e.UTM]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"},{b:"=>"}]}}); ================================================ FILE: jet_django/static/jet_django.deps.rest_framework/js/ajax-form.js ================================================ function replaceDocument(docString) { var doc = document.open("text/html"); doc.write(docString); doc.close(); } function doAjaxSubmit(e) { var form = $(this); var btn = $(this.clk); var method = ( btn.data('method') || form.data('method') || form.attr('method') || 'GET' ).toUpperCase(); if (method === 'GET') { // GET requests can always use standard form submits. return; } var contentType = form.find('input[data-override="content-type"]').val() || form.find('select[data-override="content-type"] option:selected').text(); if (method === 'POST' && !contentType) { // POST requests can use standard form submits, unless we have // overridden the content type. return; } // At this point we need to make an AJAX form submission. e.preventDefault(); var url = form.attr('action'); var data; if (contentType) { data = form.find('[data-override="content"]').val() || '' if (contentType === 'multipart/form-data') { // We need to add a boundary parameter to the header // We assume the first valid-looking boundary line in the body is correct // regex is from RFC 2046 appendix A var boundaryCharNoSpace = "0-9A-Z'()+_,-./:=?"; var boundaryChar = boundaryCharNoSpace + ' '; var re = new RegExp('^--([' + boundaryChar + ']{0,69}[' + boundaryCharNoSpace + '])[\\s]*?$', 'im'); var boundary = data.match(re); if (boundary !== null) { contentType += '; boundary="' + boundary[1] + '"'; } // Fix textarea.value EOL normalisation (multipart/form-data should use CR+NL, not NL) data = data.replace(/\n/g, '\r\n'); } } else { contentType = form.attr('enctype') || form.attr('encoding') if (contentType === 'multipart/form-data') { if (!window.FormData) { alert('Your browser does not support AJAX multipart form submissions'); return; } // Use the FormData API and allow the content type to be set automatically, // so it includes the boundary string. // See https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects contentType = false; data = new FormData(form[0]); } else { contentType = 'application/x-www-form-urlencoded; charset=UTF-8' data = form.serialize(); } } var ret = $.ajax({ url: url, method: method, data: data, contentType: contentType, processData: false, headers: { 'Accept': 'text/html; q=1.0, */*' }, }); ret.always(function(data, textStatus, jqXHR) { if (textStatus != 'success') { jqXHR = data; } var responseContentType = jqXHR.getResponseHeader("content-type") || ""; if (responseContentType.toLowerCase().indexOf('text/html') === 0) { replaceDocument(jqXHR.responseText); try { // Modify the location and scroll to top, as if after page load. history.replaceState({}, '', url); scroll(0, 0); } catch (err) { // History API not supported, so redirect. window.location = url; } } else { // Not HTML content. We can't open this directly, so redirect. window.location = url; } }); return ret; } function captureSubmittingElement(e) { var target = e.target; var form = this; form.clk = target; } $.fn.ajaxForm = function() { var options = {} return this .unbind('submit.form-plugin click.form-plugin') .bind('submit.form-plugin', options, doAjaxSubmit) .bind('click.form-plugin', options, captureSubmittingElement); }; ================================================ FILE: jet_django/static/jet_django.deps.rest_framework/js/coreapi-0.1.1.js ================================================ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.coreapi = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 0 && arguments[0] !== undefined ? arguments[0] : {}; _classCallCheck(this, BasicAuthentication); var username = options.username; var password = options.password; var hash = window.btoa(username + ':' + password); this.auth = 'Basic ' + hash; } _createClass(BasicAuthentication, [{ key: 'authenticate', value: function authenticate(options) { options.headers['Authorization'] = this.auth; return options; } }]); return BasicAuthentication; }(); module.exports = { BasicAuthentication: BasicAuthentication }; },{}],2:[function(require,module,exports){ 'use strict'; var basic = require('./basic'); var session = require('./session'); var token = require('./token'); module.exports = { BasicAuthentication: basic.BasicAuthentication, SessionAuthentication: session.SessionAuthentication, TokenAuthentication: token.TokenAuthentication }; },{"./basic":1,"./session":3,"./token":4}],3:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var utils = require('../utils'); function trim(str) { return str.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); } function getCookie(cookieName, cookieString) { cookieString = cookieString || window.document.cookie; if (cookieString && cookieString !== '') { var cookies = cookieString.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = trim(cookies[i]); // Does this cookie string begin with the name we want? if (cookie.substring(0, cookieName.length + 1) === cookieName + '=') { return decodeURIComponent(cookie.substring(cookieName.length + 1)); } } } return null; } var SessionAuthentication = function () { function SessionAuthentication() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; _classCallCheck(this, SessionAuthentication); this.csrfToken = getCookie(options.csrfCookieName, options.cookieString); this.csrfHeaderName = options.csrfHeaderName; } _createClass(SessionAuthentication, [{ key: 'authenticate', value: function authenticate(options) { options.credentials = 'same-origin'; if (this.csrfToken && !utils.csrfSafeMethod(options.method)) { options.headers[this.csrfHeaderName] = this.csrfToken; } return options; } }]); return SessionAuthentication; }(); module.exports = { SessionAuthentication: SessionAuthentication }; },{"../utils":15}],4:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var TokenAuthentication = function () { function TokenAuthentication() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; _classCallCheck(this, TokenAuthentication); this.token = options.token; this.scheme = options.scheme || 'Bearer'; } _createClass(TokenAuthentication, [{ key: 'authenticate', value: function authenticate(options) { options.headers['Authorization'] = this.scheme + ' ' + this.token; return options; } }]); return TokenAuthentication; }(); module.exports = { TokenAuthentication: TokenAuthentication }; },{}],5:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var document = require('./document'); var codecs = require('./codecs'); var errors = require('./errors'); var transports = require('./transports'); var utils = require('./utils'); function lookupLink(node, keys) { var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = keys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var key = _step.value; if (node instanceof document.Document) { node = node.content[key]; } else { node = node[key]; } if (node === undefined) { throw new errors.LinkLookupError('Invalid link lookup: ' + JSON.stringify(keys)); } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } if (!(node instanceof document.Link)) { throw new errors.LinkLookupError('Invalid link lookup: ' + JSON.stringify(keys)); } return node; } var Client = function () { function Client() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; _classCallCheck(this, Client); var transportOptions = { auth: options.auth || null, headers: options.headers || {}, requestCallback: options.requestCallback, responseCallback: options.responseCallback }; this.decoders = options.decoders || [new codecs.CoreJSONCodec(), new codecs.JSONCodec(), new codecs.TextCodec()]; this.transports = options.transports || [new transports.HTTPTransport(transportOptions)]; } _createClass(Client, [{ key: 'action', value: function action(document, keys) { var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var link = lookupLink(document, keys); var transport = utils.determineTransport(this.transports, link.url); return transport.action(link, this.decoders, params); } }, { key: 'get', value: function get(url) { var link = new document.Link(url, 'get'); var transport = utils.determineTransport(this.transports, url); return transport.action(link, this.decoders); } }]); return Client; }(); module.exports = { Client: Client }; },{"./codecs":7,"./document":10,"./errors":11,"./transports":14,"./utils":15}],6:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var document = require('../document'); var URL = require('url-parse'); function unescapeKey(key) { if (key.match(/__(type|meta)$/)) { return key.substring(1); } return key; } function getString(obj, key) { var value = obj[key]; if (typeof value === 'string') { return value; } return ''; } function getBoolean(obj, key) { var value = obj[key]; if (typeof value === 'boolean') { return value; } return false; } function getObject(obj, key) { var value = obj[key]; if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') { return value; } return {}; } function getArray(obj, key) { var value = obj[key]; if (value instanceof Array) { return value; } return []; } function getContent(data, baseUrl) { var excluded = ['_type', '_meta']; var content = {}; for (var property in data) { if (data.hasOwnProperty(property) && !excluded.includes(property)) { var key = unescapeKey(property); var value = primitiveToNode(data[property], baseUrl); content[key] = value; } } return content; } function primitiveToNode(data, baseUrl) { var isObject = data instanceof Object && !(data instanceof Array); if (isObject && data._type === 'document') { // Document var meta = getObject(data, '_meta'); var relativeUrl = getString(meta, 'url'); var url = relativeUrl ? URL(relativeUrl, baseUrl).toString() : ''; var title = getString(meta, 'title'); var description = getString(meta, 'description'); var content = getContent(data, url); return new document.Document(url, title, description, content); } else if (isObject && data._type === 'link') { // Link var _relativeUrl = getString(data, 'url'); var _url = _relativeUrl ? URL(_relativeUrl, baseUrl).toString() : ''; var method = getString(data, 'action') || 'get'; var _title = getString(data, 'title'); var _description = getString(data, 'description'); var fieldsData = getArray(data, 'fields'); var fields = []; for (var idx = 0, len = fieldsData.length; idx < len; idx++) { var value = fieldsData[idx]; var name = getString(value, 'name'); var required = getBoolean(value, 'required'); var location = getString(value, 'location'); var fieldDescription = getString(value, 'fieldDescription'); var field = new document.Field(name, required, location, fieldDescription); fields.push(field); } return new document.Link(_url, method, 'application/json', fields, _title, _description); } else if (isObject) { // Object var _content = {}; for (var key in data) { if (data.hasOwnProperty(key)) { _content[key] = primitiveToNode(data[key], baseUrl); } } return _content; } else if (data instanceof Array) { // Object var _content2 = []; for (var _idx = 0, _len = data.length; _idx < _len; _idx++) { _content2.push(primitiveToNode(data[_idx], baseUrl)); } return _content2; } // Primitive return data; } var CoreJSONCodec = function () { function CoreJSONCodec() { _classCallCheck(this, CoreJSONCodec); this.mediaType = 'application/coreapi+json'; } _createClass(CoreJSONCodec, [{ key: 'decode', value: function decode(text) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; var data = text; if (options.preloaded === undefined || !options.preloaded) { data = JSON.parse(text); } return primitiveToNode(data, options.url); } }]); return CoreJSONCodec; }(); module.exports = { CoreJSONCodec: CoreJSONCodec }; },{"../document":10,"url-parse":19}],7:[function(require,module,exports){ 'use strict'; var corejson = require('./corejson'); var json = require('./json'); var text = require('./text'); module.exports = { CoreJSONCodec: corejson.CoreJSONCodec, JSONCodec: json.JSONCodec, TextCodec: text.TextCodec }; },{"./corejson":6,"./json":8,"./text":9}],8:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var JSONCodec = function () { function JSONCodec() { _classCallCheck(this, JSONCodec); this.mediaType = 'application/json'; } _createClass(JSONCodec, [{ key: 'decode', value: function decode(text) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return JSON.parse(text); } }]); return JSONCodec; }(); module.exports = { JSONCodec: JSONCodec }; },{}],9:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var TextCodec = function () { function TextCodec() { _classCallCheck(this, TextCodec); this.mediaType = 'text/*'; } _createClass(TextCodec, [{ key: 'decode', value: function decode(text) { var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; return text; } }]); return TextCodec; }(); module.exports = { TextCodec: TextCodec }; },{}],10:[function(require,module,exports){ 'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var Document = function Document() { var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ''; var title = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; var description = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; var content = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; _classCallCheck(this, Document); this.url = url; this.title = title; this.description = description; this.content = content; }; var Link = function Link(url, method) { var encoding = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'application/json'; var fields = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : []; var title = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ''; var description = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : ''; _classCallCheck(this, Link); if (url === undefined) { throw new Error('url argument is required'); } if (method === undefined) { throw new Error('method argument is required'); } this.url = url; this.method = method; this.encoding = encoding; this.fields = fields; this.title = title; this.description = description; }; var Field = function Field(name) { var required = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; var location = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ''; var description = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ''; _classCallCheck(this, Field); if (name === undefined) { throw new Error('name argument is required'); } this.name = name; this.required = required; this.location = location; this.description = description; }; module.exports = { Document: Document, Link: Link, Field: Field }; },{}],11:[function(require,module,exports){ 'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var ParameterError = function (_Error) { _inherits(ParameterError, _Error); function ParameterError(message) { _classCallCheck(this, ParameterError); var _this = _possibleConstructorReturn(this, (ParameterError.__proto__ || Object.getPrototypeOf(ParameterError)).call(this, message)); _this.message = message; _this.name = 'ParameterError'; return _this; } return ParameterError; }(Error); var LinkLookupError = function (_Error2) { _inherits(LinkLookupError, _Error2); function LinkLookupError(message) { _classCallCheck(this, LinkLookupError); var _this2 = _possibleConstructorReturn(this, (LinkLookupError.__proto__ || Object.getPrototypeOf(LinkLookupError)).call(this, message)); _this2.message = message; _this2.name = 'LinkLookupError'; return _this2; } return LinkLookupError; }(Error); var ErrorMessage = function (_Error3) { _inherits(ErrorMessage, _Error3); function ErrorMessage(message, content) { _classCallCheck(this, ErrorMessage); var _this3 = _possibleConstructorReturn(this, (ErrorMessage.__proto__ || Object.getPrototypeOf(ErrorMessage)).call(this, message)); _this3.message = message; _this3.content = content; _this3.name = 'ErrorMessage'; return _this3; } return ErrorMessage; }(Error); module.exports = { ParameterError: ParameterError, LinkLookupError: LinkLookupError, ErrorMessage: ErrorMessage }; },{}],12:[function(require,module,exports){ 'use strict'; var auth = require('./auth'); var client = require('./client'); var codecs = require('./codecs'); var document = require('./document'); var errors = require('./errors'); var transports = require('./transports'); var utils = require('./utils'); var coreapi = { Client: client.Client, Document: document.Document, Link: document.Link, auth: auth, codecs: codecs, errors: errors, transports: transports, utils: utils }; module.exports = coreapi; },{"./auth":2,"./client":5,"./codecs":7,"./document":10,"./errors":11,"./transports":14,"./utils":15}],13:[function(require,module,exports){ 'use strict'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var fetch = require('isomorphic-fetch'); var errors = require('../errors'); var utils = require('../utils'); var URL = require('url-parse'); var urlTemplate = require('url-template'); var parseResponse = function parseResponse(response, decoders, responseCallback) { return response.text().then(function (text) { if (responseCallback) { responseCallback(response, text); } var contentType = response.headers.get('Content-Type'); var decoder = utils.negotiateDecoder(decoders, contentType); var options = { url: response.url }; return decoder.decode(text, options); }); }; var HTTPTransport = function () { function HTTPTransport() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; _classCallCheck(this, HTTPTransport); this.schemes = ['http', 'https']; this.auth = options.auth || null; this.headers = options.headers || {}; this.fetch = options.fetch || fetch; this.FormData = options.FormData || window.FormData; this.requestCallback = options.requestCallback; this.responseCallback = options.responseCallback; } _createClass(HTTPTransport, [{ key: 'buildRequest', value: function buildRequest(link, decoders) { var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var fields = link.fields; var method = link.method.toUpperCase(); var queryParams = {}; var pathParams = {}; var formParams = {}; var fieldNames = []; var hasBody = false; for (var idx = 0, len = fields.length; idx < len; idx++) { var field = fields[idx]; // Ensure any required fields are included if (!params.hasOwnProperty(field.name)) { if (field.required) { throw new errors.ParameterError('Missing required field: "' + field.name + '"'); } else { continue; } } fieldNames.push(field.name); if (field.location === 'query') { queryParams[field.name] = params[field.name]; } else if (field.location === 'path') { pathParams[field.name] = params[field.name]; } else if (field.location === 'form') { formParams[field.name] = params[field.name]; hasBody = true; } else if (field.location === 'body') { formParams = params[field.name]; hasBody = true; } } // Check for any parameters that did not have a matching field for (var property in params) { if (params.hasOwnProperty(property) && !fieldNames.includes(property)) { throw new errors.ParameterError('Unknown parameter: "' + property + '"'); } } var requestOptions = { method: method, headers: {} }; Object.assign(requestOptions.headers, this.headers); if (hasBody) { if (link.encoding === 'application/json') { requestOptions.body = JSON.stringify(formParams); requestOptions.headers['Content-Type'] = 'application/json'; } else if (link.encoding === 'multipart/form-data') { var form = new this.FormData(); for (var paramKey in formParams) { form.append(paramKey, formParams[paramKey]); } requestOptions.body = form; } else if (link.encoding === 'application/x-www-form-urlencoded') { var formBody = []; for (var _paramKey in formParams) { var encodedKey = encodeURIComponent(_paramKey); var encodedValue = encodeURIComponent(formParams[_paramKey]); formBody.push(encodedKey + '=' + encodedValue); } formBody = formBody.join('&'); requestOptions.body = formBody; requestOptions.headers['Content-Type'] = 'application/x-www-form-urlencoded'; } } if (this.auth) { requestOptions = this.auth.authenticate(requestOptions); } var parsedUrl = urlTemplate.parse(link.url); parsedUrl = parsedUrl.expand(pathParams); parsedUrl = new URL(parsedUrl); parsedUrl.set('query', queryParams); return { url: parsedUrl.toString(), options: requestOptions }; } }, { key: 'action', value: function action(link, decoders) { var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; var responseCallback = this.responseCallback; var request = this.buildRequest(link, decoders, params); if (this.requestCallback) { this.requestCallback(request); } return this.fetch(request.url, request.options).then(function (response) { if (response.status === 204) { return; } return parseResponse(response, decoders, responseCallback).then(function (data) { if (response.ok) { return data; } else { var title = response.status + ' ' + response.statusText; var error = new errors.ErrorMessage(title, data); return Promise.reject(error); } }); }); } }]); return HTTPTransport; }(); module.exports = { HTTPTransport: HTTPTransport }; },{"../errors":11,"../utils":15,"isomorphic-fetch":16,"url-parse":19,"url-template":21}],14:[function(require,module,exports){ 'use strict'; var http = require('./http'); module.exports = { HTTPTransport: http.HTTPTransport }; },{"./http":13}],15:[function(require,module,exports){ 'use strict'; var URL = require('url-parse'); var determineTransport = function determineTransport(transports, url) { var parsedUrl = new URL(url); var scheme = parsedUrl.protocol.replace(':', ''); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = transports[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var transport = _step.value; if (transport.schemes.includes(scheme)) { return transport; } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator.return) { _iterator.return(); } } finally { if (_didIteratorError) { throw _iteratorError; } } } throw Error('Unsupported scheme in URL: ' + url); }; var negotiateDecoder = function negotiateDecoder(decoders, contentType) { if (contentType === undefined || contentType === null) { return decoders[0]; } var fullType = contentType.toLowerCase().split(';')[0].trim(); var mainType = fullType.split('/')[0] + '/*'; var wildcardType = '*/*'; var acceptableTypes = [fullType, mainType, wildcardType]; var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = decoders[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var decoder = _step2.value; if (acceptableTypes.includes(decoder.mediaType)) { return decoder; } } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2.return) { _iterator2.return(); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } throw Error('Unsupported media in Content-Type header: ' + contentType); }; var csrfSafeMethod = function csrfSafeMethod(method) { // these HTTP methods do not require CSRF protection return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method) ); }; module.exports = { determineTransport: determineTransport, negotiateDecoder: negotiateDecoder, csrfSafeMethod: csrfSafeMethod }; },{"url-parse":19}],16:[function(require,module,exports){ // the whatwg-fetch polyfill installs the fetch() function // on the global object (window or self) // // Return that as the export for use in Webpack, Browserify etc. require('whatwg-fetch'); module.exports = self.fetch.bind(self); },{"whatwg-fetch":22}],17:[function(require,module,exports){ 'use strict'; var has = Object.prototype.hasOwnProperty; /** * Simple query string parser. * * @param {String} query The query string that needs to be parsed. * @returns {Object} * @api public */ function querystring(query) { var parser = /([^=?&]+)=?([^&]*)/g , result = {} , part; // // Little nifty parsing hack, leverage the fact that RegExp.exec increments // the lastIndex property so we can continue executing this loop until we've // parsed all results. // for (; part = parser.exec(query); result[decodeURIComponent(part[1])] = decodeURIComponent(part[2]) ); return result; } /** * Transform a query string to an object. * * @param {Object} obj Object that should be transformed. * @param {String} prefix Optional prefix. * @returns {String} * @api public */ function querystringify(obj, prefix) { prefix = prefix || ''; var pairs = []; // // Optionally prefix with a '?' if needed // if ('string' !== typeof prefix) prefix = '?'; for (var key in obj) { if (has.call(obj, key)) { pairs.push(encodeURIComponent(key) +'='+ encodeURIComponent(obj[key])); } } return pairs.length ? prefix + pairs.join('&') : ''; } // // Expose the module. // exports.stringify = querystringify; exports.parse = querystring; },{}],18:[function(require,module,exports){ 'use strict'; /** * Check if we're required to add a port number. * * @see https://url.spec.whatwg.org/#default-port * @param {Number|String} port Port number we need to check * @param {String} protocol Protocol we need to check against. * @returns {Boolean} Is it a default port for the given protocol * @api private */ module.exports = function required(port, protocol) { protocol = protocol.split(':')[0]; port = +port; if (!port) return false; switch (protocol) { case 'http': case 'ws': return port !== 80; case 'https': case 'wss': return port !== 443; case 'ftp': return port !== 21; case 'gopher': return port !== 70; case 'file': return false; } return port !== 0; }; },{}],19:[function(require,module,exports){ 'use strict'; var required = require('requires-port') , lolcation = require('./lolcation') , qs = require('querystringify') , protocolre = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\S\s]*)/i; /** * These are the parse rules for the URL parser, it informs the parser * about: * * 0. The char it Needs to parse, if it's a string it should be done using * indexOf, RegExp using exec and NaN means set as current value. * 1. The property we should set when parsing this value. * 2. Indication if it's backwards or forward parsing, when set as number it's * the value of extra chars that should be split off. * 3. Inherit from location if non existing in the parser. * 4. `toLowerCase` the resulting value. */ var rules = [ ['#', 'hash'], // Extract from the back. ['?', 'query'], // Extract from the back. ['/', 'pathname'], // Extract from the back. ['@', 'auth', 1], // Extract from the front. [NaN, 'host', undefined, 1, 1], // Set left over value. [/:(\d+)$/, 'port', undefined, 1], // RegExp the back. [NaN, 'hostname', undefined, 1, 1] // Set left over. ]; /** * @typedef ProtocolExtract * @type Object * @property {String} protocol Protocol matched in the URL, in lowercase. * @property {Boolean} slashes `true` if protocol is followed by "//", else `false`. * @property {String} rest Rest of the URL that is not part of the protocol. */ /** * Extract protocol information from a URL with/without double slash ("//"). * * @param {String} address URL we want to extract from. * @return {ProtocolExtract} Extracted information. * @api private */ function extractProtocol(address) { var match = protocolre.exec(address); return { protocol: match[1] ? match[1].toLowerCase() : '', slashes: !!match[2], rest: match[3] }; } /** * Resolve a relative URL pathname against a base URL pathname. * * @param {String} relative Pathname of the relative URL. * @param {String} base Pathname of the base URL. * @return {String} Resolved pathname. * @api private */ function resolve(relative, base) { var path = (base || '/').split('/').slice(0, -1).concat(relative.split('/')) , i = path.length , last = path[i - 1] , unshift = false , up = 0; while (i--) { if (path[i] === '.') { path.splice(i, 1); } else if (path[i] === '..') { path.splice(i, 1); up++; } else if (up) { if (i === 0) unshift = true; path.splice(i, 1); up--; } } if (unshift) path.unshift(''); if (last === '.' || last === '..') path.push(''); return path.join('/'); } /** * The actual URL instance. Instead of returning an object we've opted-in to * create an actual constructor as it's much more memory efficient and * faster and it pleases my OCD. * * @constructor * @param {String} address URL we want to parse. * @param {Object|String} location Location defaults for relative paths. * @param {Boolean|Function} parser Parser for the query string. * @api public */ function URL(address, location, parser) { if (!(this instanceof URL)) { return new URL(address, location, parser); } var relative, extracted, parse, instruction, index, key , instructions = rules.slice() , type = typeof location , url = this , i = 0; // // The following if statements allows this module two have compatibility with // 2 different API: // // 1. Node.js's `url.parse` api which accepts a URL, boolean as arguments // where the boolean indicates that the query string should also be parsed. // // 2. The `URL` interface of the browser which accepts a URL, object as // arguments. The supplied object will be used as default values / fall-back // for relative paths. // if ('object' !== type && 'string' !== type) { parser = location; location = null; } if (parser && 'function' !== typeof parser) parser = qs.parse; location = lolcation(location); // // Extract protocol information before running the instructions. // extracted = extractProtocol(address || ''); relative = !extracted.protocol && !extracted.slashes; url.slashes = extracted.slashes || relative && location.slashes; url.protocol = extracted.protocol || location.protocol || ''; address = extracted.rest; // // When the authority component is absent the URL starts with a path // component. // if (!extracted.slashes) instructions[2] = [/(.*)/, 'pathname']; for (; i < instructions.length; i++) { instruction = instructions[i]; parse = instruction[0]; key = instruction[1]; if (parse !== parse) { url[key] = address; } else if ('string' === typeof parse) { if (~(index = address.indexOf(parse))) { if ('number' === typeof instruction[2]) { url[key] = address.slice(0, index); address = address.slice(index + instruction[2]); } else { url[key] = address.slice(index); address = address.slice(0, index); } } } else if (index = parse.exec(address)) { url[key] = index[1]; address = address.slice(0, index.index); } url[key] = url[key] || ( relative && instruction[3] ? location[key] || '' : '' ); // // Hostname, host and protocol should be lowercased so they can be used to // create a proper `origin`. // if (instruction[4]) url[key] = url[key].toLowerCase(); } // // Also parse the supplied query string in to an object. If we're supplied // with a custom parser as function use that instead of the default build-in // parser. // if (parser) url.query = parser(url.query); // // If the URL is relative, resolve the pathname against the base URL. // if ( relative && location.slashes && url.pathname.charAt(0) !== '/' && (url.pathname !== '' || location.pathname !== '') ) { url.pathname = resolve(url.pathname, location.pathname); } // // We should not add port numbers if they are already the default port number // for a given protocol. As the host also contains the port number we're going // override it with the hostname which contains no port number. // if (!required(url.port, url.protocol)) { url.host = url.hostname; url.port = ''; } // // Parse down the `auth` for the username and password. // url.username = url.password = ''; if (url.auth) { instruction = url.auth.split(':'); url.username = instruction[0] || ''; url.password = instruction[1] || ''; } url.origin = url.protocol && url.host && url.protocol !== 'file:' ? url.protocol +'//'+ url.host : 'null'; // // The href is just the compiled result. // url.href = url.toString(); } /** * This is convenience method for changing properties in the URL instance to * insure that they all propagate correctly. * * @param {String} part Property we need to adjust. * @param {Mixed} value The newly assigned value. * @param {Boolean|Function} fn When setting the query, it will be the function * used to parse the query. * When setting the protocol, double slash will be * removed from the final url if it is true. * @returns {URL} * @api public */ URL.prototype.set = function set(part, value, fn) { var url = this; switch (part) { case 'query': if ('string' === typeof value && value.length) { value = (fn || qs.parse)(value); } url[part] = value; break; case 'port': url[part] = value; if (!required(value, url.protocol)) { url.host = url.hostname; url[part] = ''; } else if (value) { url.host = url.hostname +':'+ value; } break; case 'hostname': url[part] = value; if (url.port) value += ':'+ url.port; url.host = value; break; case 'host': url[part] = value; if (/:\d+$/.test(value)) { value = value.split(':'); url.port = value.pop(); url.hostname = value.join(':'); } else { url.hostname = value; url.port = ''; } break; case 'protocol': url.protocol = value.toLowerCase(); url.slashes = !fn; break; case 'pathname': url.pathname = value.length && value.charAt(0) !== '/' ? '/' + value : value; break; default: url[part] = value; } for (var i = 0; i < rules.length; i++) { var ins = rules[i]; if (ins[4]) url[ins[1]] = url[ins[1]].toLowerCase(); } url.origin = url.protocol && url.host && url.protocol !== 'file:' ? url.protocol +'//'+ url.host : 'null'; url.href = url.toString(); return url; }; /** * Transform the properties back in to a valid and full URL string. * * @param {Function} stringify Optional query stringify function. * @returns {String} * @api public */ URL.prototype.toString = function toString(stringify) { if (!stringify || 'function' !== typeof stringify) stringify = qs.stringify; var query , url = this , protocol = url.protocol; if (protocol && protocol.charAt(protocol.length - 1) !== ':') protocol += ':'; var result = protocol + (url.slashes ? '//' : ''); if (url.username) { result += url.username; if (url.password) result += ':'+ url.password; result += '@'; } result += url.host + url.pathname; query = 'object' === typeof url.query ? stringify(url.query) : url.query; if (query) result += '?' !== query.charAt(0) ? '?'+ query : query; if (url.hash) result += url.hash; return result; }; // // Expose the URL parser and some additional properties that might be useful for // others or testing. // URL.extractProtocol = extractProtocol; URL.location = lolcation; URL.qs = qs; module.exports = URL; },{"./lolcation":20,"querystringify":17,"requires-port":18}],20:[function(require,module,exports){ (function (global){ 'use strict'; var slashes = /^[A-Za-z][A-Za-z0-9+-.]*:\/\//; /** * These properties should not be copied or inherited from. This is only needed * for all non blob URL's as a blob URL does not include a hash, only the * origin. * * @type {Object} * @private */ var ignore = { hash: 1, query: 1 } , URL; /** * The location object differs when your code is loaded through a normal page, * Worker or through a worker using a blob. And with the blobble begins the * trouble as the location object will contain the URL of the blob, not the * location of the page where our code is loaded in. The actual origin is * encoded in the `pathname` so we can thankfully generate a good "default" * location from it so we can generate proper relative URL's again. * * @param {Object|String} loc Optional default location object. * @returns {Object} lolcation object. * @api public */ module.exports = function lolcation(loc) { loc = loc || global.location || {}; URL = URL || require('./'); var finaldestination = {} , type = typeof loc , key; if ('blob:' === loc.protocol) { finaldestination = new URL(unescape(loc.pathname), {}); } else if ('string' === type) { finaldestination = new URL(loc, {}); for (key in ignore) delete finaldestination[key]; } else if ('object' === type) { for (key in loc) { if (key in ignore) continue; finaldestination[key] = loc[key]; } if (finaldestination.slashes === undefined) { finaldestination.slashes = slashes.test(loc.href); } } return finaldestination; }; }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{"./":19}],21:[function(require,module,exports){ (function (root, factory) { if (typeof exports === 'object') { module.exports = factory(); } else if (typeof define === 'function' && define.amd) { define([], factory); } else { root.urltemplate = factory(); } }(this, function () { /** * @constructor */ function UrlTemplate() { } /** * @private * @param {string} str * @return {string} */ UrlTemplate.prototype.encodeReserved = function (str) { return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) { if (!/%[0-9A-Fa-f]/.test(part)) { part = encodeURI(part).replace(/%5B/g, '[').replace(/%5D/g, ']'); } return part; }).join(''); }; /** * @private * @param {string} str * @return {string} */ UrlTemplate.prototype.encodeUnreserved = function (str) { return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { return '%' + c.charCodeAt(0).toString(16).toUpperCase(); }); } /** * @private * @param {string} operator * @param {string} value * @param {string} key * @return {string} */ UrlTemplate.prototype.encodeValue = function (operator, value, key) { value = (operator === '+' || operator === '#') ? this.encodeReserved(value) : this.encodeUnreserved(value); if (key) { return this.encodeUnreserved(key) + '=' + value; } else { return value; } }; /** * @private * @param {*} value * @return {boolean} */ UrlTemplate.prototype.isDefined = function (value) { return value !== undefined && value !== null; }; /** * @private * @param {string} * @return {boolean} */ UrlTemplate.prototype.isKeyOperator = function (operator) { return operator === ';' || operator === '&' || operator === '?'; }; /** * @private * @param {Object} context * @param {string} operator * @param {string} key * @param {string} modifier */ UrlTemplate.prototype.getValues = function (context, operator, key, modifier) { var value = context[key], result = []; if (this.isDefined(value) && value !== '') { if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') { value = value.toString(); if (modifier && modifier !== '*') { value = value.substring(0, parseInt(modifier, 10)); } result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); } else { if (modifier === '*') { if (Array.isArray(value)) { value.filter(this.isDefined).forEach(function (value) { result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); }, this); } else { Object.keys(value).forEach(function (k) { if (this.isDefined(value[k])) { result.push(this.encodeValue(operator, value[k], k)); } }, this); } } else { var tmp = []; if (Array.isArray(value)) { value.filter(this.isDefined).forEach(function (value) { tmp.push(this.encodeValue(operator, value)); }, this); } else { Object.keys(value).forEach(function (k) { if (this.isDefined(value[k])) { tmp.push(this.encodeUnreserved(k)); tmp.push(this.encodeValue(operator, value[k].toString())); } }, this); } if (this.isKeyOperator(operator)) { result.push(this.encodeUnreserved(key) + '=' + tmp.join(',')); } else if (tmp.length !== 0) { result.push(tmp.join(',')); } } } } else { if (operator === ';') { if (this.isDefined(value)) { result.push(this.encodeUnreserved(key)); } } else if (value === '' && (operator === '&' || operator === '?')) { result.push(this.encodeUnreserved(key) + '='); } else if (value === '') { result.push(''); } } return result; }; /** * @param {string} template * @return {function(Object):string} */ UrlTemplate.prototype.parse = function (template) { var that = this; var operators = ['+', '#', '.', '/', ';', '?', '&']; return { expand: function (context) { return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { if (expression) { var operator = null, values = []; if (operators.indexOf(expression.charAt(0)) !== -1) { operator = expression.charAt(0); expression = expression.substr(1); } expression.split(/,/g).forEach(function (variable) { var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); values.push.apply(values, that.getValues(context, operator, tmp[1], tmp[2] || tmp[3])); }); if (operator && operator !== '+') { var separator = ','; if (operator === '?') { separator = '&'; } else if (operator !== '#') { separator = operator; } return (values.length !== 0 ? operator : '') + values.join(separator); } else { return values.join(','); } } else { return that.encodeReserved(literal); } }); } }; }; return new UrlTemplate(); })); },{}],22:[function(require,module,exports){ (function(self) { 'use strict'; if (self.fetch) { return } var support = { searchParams: 'URLSearchParams' in self, iterable: 'Symbol' in self && 'iterator' in Symbol, blob: 'FileReader' in self && 'Blob' in self && (function() { try { new Blob() return true } catch(e) { return false } })(), formData: 'FormData' in self, arrayBuffer: 'ArrayBuffer' in self } if (support.arrayBuffer) { var viewClasses = [ '[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', '[object Int16Array]', '[object Uint16Array]', '[object Int32Array]', '[object Uint32Array]', '[object Float32Array]', '[object Float64Array]' ] var isDataView = function(obj) { return obj && DataView.prototype.isPrototypeOf(obj) } var isArrayBufferView = ArrayBuffer.isView || function(obj) { return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1 } } function normalizeName(name) { if (typeof name !== 'string') { name = String(name) } if (/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)) { throw new TypeError('Invalid character in header field name') } return name.toLowerCase() } function normalizeValue(value) { if (typeof value !== 'string') { value = String(value) } return value } // Build a destructive iterator for the value list function iteratorFor(items) { var iterator = { next: function() { var value = items.shift() return {done: value === undefined, value: value} } } if (support.iterable) { iterator[Symbol.iterator] = function() { return iterator } } return iterator } function Headers(headers) { this.map = {} if (headers instanceof Headers) { headers.forEach(function(value, name) { this.append(name, value) }, this) } else if (headers) { Object.getOwnPropertyNames(headers).forEach(function(name) { this.append(name, headers[name]) }, this) } } Headers.prototype.append = function(name, value) { name = normalizeName(name) value = normalizeValue(value) var oldValue = this.map[name] this.map[name] = oldValue ? oldValue+','+value : value } Headers.prototype['delete'] = function(name) { delete this.map[normalizeName(name)] } Headers.prototype.get = function(name) { name = normalizeName(name) return this.has(name) ? this.map[name] : null } Headers.prototype.has = function(name) { return this.map.hasOwnProperty(normalizeName(name)) } Headers.prototype.set = function(name, value) { this.map[normalizeName(name)] = normalizeValue(value) } Headers.prototype.forEach = function(callback, thisArg) { for (var name in this.map) { if (this.map.hasOwnProperty(name)) { callback.call(thisArg, this.map[name], name, this) } } } Headers.prototype.keys = function() { var items = [] this.forEach(function(value, name) { items.push(name) }) return iteratorFor(items) } Headers.prototype.values = function() { var items = [] this.forEach(function(value) { items.push(value) }) return iteratorFor(items) } Headers.prototype.entries = function() { var items = [] this.forEach(function(value, name) { items.push([name, value]) }) return iteratorFor(items) } if (support.iterable) { Headers.prototype[Symbol.iterator] = Headers.prototype.entries } function consumed(body) { if (body.bodyUsed) { return Promise.reject(new TypeError('Already read')) } body.bodyUsed = true } function fileReaderReady(reader) { return new Promise(function(resolve, reject) { reader.onload = function() { resolve(reader.result) } reader.onerror = function() { reject(reader.error) } }) } function readBlobAsArrayBuffer(blob) { var reader = new FileReader() var promise = fileReaderReady(reader) reader.readAsArrayBuffer(blob) return promise } function readBlobAsText(blob) { var reader = new FileReader() var promise = fileReaderReady(reader) reader.readAsText(blob) return promise } function bufferClone(buf) { if (buf.slice) { return buf.slice(0) } else { var view = new Uint8Array(buf.byteLength) view.set(new Uint8Array(buf)) return view.buffer } } function Body() { this.bodyUsed = false this._initBody = function(body) { this._bodyInit = body if (!body) { this._bodyText = '' } else if (typeof body === 'string') { this._bodyText = body } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { this._bodyBlob = body } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { this._bodyFormData = body } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { this._bodyText = body.toString() } else if (support.arrayBuffer && support.blob && isDataView(body)) { this._bodyArrayBuffer = bufferClone(body.buffer) // IE 10-11 can't handle a DataView body. this._bodyInit = new Blob([this._bodyArrayBuffer]) } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { this._bodyArrayBuffer = bufferClone(body) } else { throw new Error('unsupported BodyInit type') } if (!this.headers.get('content-type')) { if (typeof body === 'string') { this.headers.set('content-type', 'text/plain;charset=UTF-8') } else if (this._bodyBlob && this._bodyBlob.type) { this.headers.set('content-type', this._bodyBlob.type) } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8') } } } if (support.blob) { this.blob = function() { var rejected = consumed(this) if (rejected) { return rejected } if (this._bodyBlob) { return Promise.resolve(this._bodyBlob) } else if (this._bodyArrayBuffer) { return Promise.resolve(new Blob([this._bodyArrayBuffer])) } else if (this._bodyFormData) { throw new Error('could not read FormData body as blob') } else { return Promise.resolve(new Blob([this._bodyText])) } } } this.text = function() { var rejected = consumed(this) if (rejected) { return rejected } if (this._bodyBlob) { return readBlobAsText(this._bodyBlob) } else if (this._bodyArrayBuffer) { var view = new Uint8Array(this._bodyArrayBuffer) var str = String.fromCharCode.apply(null, view) return Promise.resolve(str) } else if (this._bodyFormData) { throw new Error('could not read FormData body as text') } else { return Promise.resolve(this._bodyText) } } if (support.arrayBuffer) { this.arrayBuffer = function() { if (this._bodyArrayBuffer) { return consumed(this) || Promise.resolve(this._bodyArrayBuffer) } else { return this.blob().then(readBlobAsArrayBuffer) } } } if (support.formData) { this.formData = function() { return this.text().then(decode) } } this.json = function() { return this.text().then(JSON.parse) } return this } // HTTP methods whose capitalization should be normalized var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'] function normalizeMethod(method) { var upcased = method.toUpperCase() return (methods.indexOf(upcased) > -1) ? upcased : method } function Request(input, options) { options = options || {} var body = options.body if (typeof input === 'string') { this.url = input } else { if (input.bodyUsed) { throw new TypeError('Already read') } this.url = input.url this.credentials = input.credentials if (!options.headers) { this.headers = new Headers(input.headers) } this.method = input.method this.mode = input.mode if (!body && input._bodyInit != null) { body = input._bodyInit input.bodyUsed = true } } this.credentials = options.credentials || this.credentials || 'omit' if (options.headers || !this.headers) { this.headers = new Headers(options.headers) } this.method = normalizeMethod(options.method || this.method || 'GET') this.mode = options.mode || this.mode || null this.referrer = null if ((this.method === 'GET' || this.method === 'HEAD') && body) { throw new TypeError('Body not allowed for GET or HEAD requests') } this._initBody(body) } Request.prototype.clone = function() { return new Request(this, { body: this._bodyInit }) } function decode(body) { var form = new FormData() body.trim().split('&').forEach(function(bytes) { if (bytes) { var split = bytes.split('=') var name = split.shift().replace(/\+/g, ' ') var value = split.join('=').replace(/\+/g, ' ') form.append(decodeURIComponent(name), decodeURIComponent(value)) } }) return form } function parseHeaders(rawHeaders) { var headers = new Headers() rawHeaders.split('\r\n').forEach(function(line) { var parts = line.split(':') var key = parts.shift().trim() if (key) { var value = parts.join(':').trim() headers.append(key, value) } }) return headers } Body.call(Request.prototype) function Response(bodyInit, options) { if (!options) { options = {} } this.type = 'default' this.status = 'status' in options ? options.status : 200 this.ok = this.status >= 200 && this.status < 300 this.statusText = 'statusText' in options ? options.statusText : 'OK' this.headers = new Headers(options.headers) this.url = options.url || '' this._initBody(bodyInit) } Body.call(Response.prototype) Response.prototype.clone = function() { return new Response(this._bodyInit, { status: this.status, statusText: this.statusText, headers: new Headers(this.headers), url: this.url }) } Response.error = function() { var response = new Response(null, {status: 0, statusText: ''}) response.type = 'error' return response } var redirectStatuses = [301, 302, 303, 307, 308] Response.redirect = function(url, status) { if (redirectStatuses.indexOf(status) === -1) { throw new RangeError('Invalid status code') } return new Response(null, {status: status, headers: {location: url}}) } self.Headers = Headers self.Request = Request self.Response = Response self.fetch = function(input, init) { return new Promise(function(resolve, reject) { var request = new Request(input, init) var xhr = new XMLHttpRequest() xhr.onload = function() { var options = { status: xhr.status, statusText: xhr.statusText, headers: parseHeaders(xhr.getAllResponseHeaders() || '') } options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL') var body = 'response' in xhr ? xhr.response : xhr.responseText resolve(new Response(body, options)) } xhr.onerror = function() { reject(new TypeError('Network request failed')) } xhr.ontimeout = function() { reject(new TypeError('Network request failed')) } xhr.open(request.method, request.url, true) if (request.credentials === 'include') { xhr.withCredentials = true } if ('responseType' in xhr && support.blob) { xhr.responseType = 'blob' } request.headers.forEach(function(value, name) { xhr.setRequestHeader(name, value) }) xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit) }) } self.fetch.polyfill = true })(typeof self !== 'undefined' ? self : this); },{}]},{},[12])(12) }); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9u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VzdWx0LnB1c2godGhpcy5lbmNvZGVWYWx1ZShvcGVyYXRvciwgdmFsdWVba10sIGspKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSwgdGhpcyk7XG4gICAgICAgICAgfVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHZhciB0bXAgPSBbXTtcblxuICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KHZhbHVlKSkge1xuICAgICAgICAgICAgdmFsdWUuZmlsdGVyKHRoaXMuaXNEZWZpbmVkKS5mb3JFYWNoKGZ1bmN0aW9uICh2YWx1ZSkge1xuICAgICAgICAgICAgICB0bXAucHVzaCh0aGlzLmVuY29kZVZhbHVlKG9wZXJhdG9yLCB2YWx1ZSkpO1xuICAgICAgICAgICAgfSwgdGhpcyk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIE9iamVjdC5rZXlzKHZhbHVlKS5mb3JFYWNoKGZ1bmN0aW9uIChrKSB7XG4gICAgICAgICAgICAgIGlmICh0aGlzLmlzRGVmaW5lZCh2YWx1ZVtrXSkpIHtcbiAgICAgICAgICAgICAgICB0bXAucHVzaCh0aGlzLmVuY29kZVVucmVzZXJ2ZWQoaykpO1xuICAgICAgICAgICAgICAgIHRtcC5wdXNoKHRoaXMuZW5jb2RlVmFsdWUob3BlcmF0b3IsIHZhbHVlW2tdLnRvU3RyaW5nKCkpKTtcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSwgdGhpcyk7XG4gICAgICAgICAgfVxuXG4gICAgICAgICAgaWYgKHRoaXMuaXNLZXlPcGVyYXRvcihvcGVyYXRvcikpIHtcbiAgICAgICAgICAgIHJlc3VsdC5wdXNoKHRoaXMuZW5jb2RlVW5yZXNlcnZlZChrZXkpICsgJz0nICsgdG1wLmpvaW4oJywnKSk7XG4gICAgICAgICAgfSBlbHNlIGlmICh0bXAubGVuZ3RoICE9PSAwKSB7XG4gICAgICAgICAgICByZXN1bHQucHVzaCh0bXAuam9pbignL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gICAgICAgdmFyIG9wZXJhdG9yID0gbnVsbCxcbiAgICAgICAgICAgICAgICB2YWx1ZXMgPSBbXTtcblxuICAgICAgICAgICAgaWYgKG9wZXJhdG9ycy5pbmRleE9mKGV4cHJlc3Npb24uY2hhckF0KDApKSAhPT0gLTEpIHtcbiAgICAgICAgICAgICAgb3BlcmF0b3IgPSBleHByZXNzaW9uLmNoYXJBdCgwKTtcbiAgICAgICAgICAgICAgZXhwcmVzc2lvbiA9IGV4cHJlc3Npb24uc3Vic3RyKDEpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBleHByZXNzaW9uLnNwbGl0KC8sL2cpLmZvckVhY2goZnVuY3Rpb24gKHZhcmlhYmxlKSB7XG4gICAgICAgICAgICAgIHZhciB0bXAgPSAvKFteOlxcKl0qKSg/OjooXFxkKyl8KFxcKikpPy8uZXhlYyh2YXJpYWJsZSk7XG4gICAgICAgICAgICAgIHZhbHVlcy5wdXNoLmFwcGx5KHZhbHVlcywgdGhhdC5nZXRWYWx1ZXMoY29udGV4dCwgb3BlcmF0b3IsIHRtcFsxXSwgdG1wWzJdIHx8IHRtcFszXSkpO1xuICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgIGlmIChvcGVyYXRvciAmJiBvcGVyYXRvciAhPT0gJysnKSB7XG4gICAgICAgICAgICAgIHZhciBzZXBhcmF0b3IgPSAnLCc7XG5cbiAgICAgICAgICAgICAgaWYgKG9wZXJhdG9yID09PSAnPycpIHtcbiAgICAgICAgICAgICAgICBzZXBhcmF0b3IgPSAnJic7XG4gICAgICAgICAgICAgIH0gZWxzZSBpZiAob3BlcmF0b3IgIT09ICcjJykge1xuICAgICAgICAgICAgICAgIHNlcGFyYXRvciA9IG9wZXJhdG9yO1xuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHJldHVybiAodmFsdWVzLmxlbmd0aCAhPT0gMCA/IG9wZXJhdG9yIDogJycpICsgdmFsdWVzLmpvaW4oc2VwYXJhdG9yKTtcbiA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ICAgIHhoci5vbmVycm9yID0gZnVuY3Rpb24oKSB7XG4gICAgICAgIHJlamVjdChuZXcgVHlwZUVycm9yKCdOZXR3b3JrIHJlcXVlc3QgZmFpbGVkJykpXG4gICAgICB9XG5cbiAgICAgIHhoci5vbnRpbWVvdXQgPSBmdW5jdGlvbigpIHtcbiAgICAgICAgcmVqZWN0KG5ldyBUeXBlRXJyb3IoJ05ldHdvcmsgcmVxdWVzdCBmYWlsZWQnKSlcbiAgICAgIH1cblxuICAgICAgeGhyLm9wZW4ocmVxdWVzdC5tZXRob2QsIHJlcXVlc3QudXJsLCB0cnVlKVxuXG4gICAgICBpZiAocmVxdWVzdC5jcmVkZW50aWFscyA9PT0gJ2luY2x1ZGUnKSB7XG4gICAgICAgIHhoci53aXRoQ3JlZGVudGlhbHMgPSB0cnVlXG4gICAgICB9XG5cbiAgICAgIGlmICgncmVzcG9uc2VUeXBlJyBpbiB4aHIgJiYgc3VwcG9ydC5ibG9iKSB7XG4gICAgICAgIHhoci5yZXNwb25zZVR5cGUgPSAnYmxvYidcbiAgICAgIH1cblxuICAgICAgcmVxdWVzdC5oZWFkZXJzLmZvckVhY2goZnVuY3Rpb24odmFsdWUsIG5hbWUpIHtcbiAgICAgICAgeGhyLnNldFJlcXVlc3RIZWFkZXIobmFtZSwgdmFsdWUpXG4gICAgICB9KVxuXG4gICAgICB4aHIuc2VuZCh0eXBlb2YgcmVxdWVzdC5fYm9keUluaXQgPT09ICd1bmRlZmluZWQnID8gbnVsbCA6IHJlcXVlc3QuX2JvZHlJbml0KVxuICAgIH0pXG4gIH1cbiAgc2VsZi5mZXRjaC5wb2x5ZmlsbCA9IHRydWVcbn0pKHR5cGVvZiBzZWxmICE9PSAndW5kZWZpbmVkJyA/IHNlbGYgOiB0aGlzKTtcbiJdfQ== ================================================ FILE: jet_django/static/jet_django.deps.rest_framework/js/csrf.js ================================================ function getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); // Does this cookie string begin with the name we want? if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } function csrfSafeMethod(method) { // these HTTP methods do not require CSRF protection return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method)); } function sameOrigin(url) { // test that a given url is a same-origin URL // url could be relative or scheme relative or absolute var host = document.location.host; // host + port var protocol = document.location.protocol; var sr_origin = '//' + host; var origin = protocol + sr_origin; // Allow absolute or scheme relative URLs to same origin return (url == origin || url.slice(0, origin.length + 1) == origin + '/') || (url == sr_origin || url.slice(0, sr_origin.length + 1) == sr_origin + '/') || // or any other URL that isn't scheme relative or absolute i.e relative. !(/^(\/\/|http:|https:).*/.test(url)); } var csrftoken = getCookie(window.drf.csrfCookieName); $.ajaxSetup({ beforeSend: function(xhr, settings) { if (!csrfSafeMethod(settings.type) && sameOrigin(settings.url)) { // Send the token to same-origin, relative URLs only. // Send the token only if the method warrants CSRF protection // Using the CSRFToken value acquired earlier xhr.setRequestHeader(window.drf.csrfHeaderName, csrftoken); } } }); ================================================ FILE: jet_django/static/jet_django.deps.rest_framework/js/default.js ================================================ $(document).ready(function() { // JSON highlighting. prettyPrint(); // Bootstrap tooltips. $('.js-tooltip').tooltip({ delay: 1000, container: 'body' }); // Deal with rounded tab styling after tab clicks. $('a[data-toggle="tab"]:first').on('shown', function(e) { $(e.target).parents('.tabbable').addClass('first-tab-active'); }); $('a[data-toggle="tab"]:not(:first)').on('shown', function(e) { $(e.target).parents('.tabbable').removeClass('first-tab-active'); }); $('a[data-toggle="tab"]').click(function() { document.cookie = "tabstyle=" + this.name + "; path=/"; }); // Store tab preference in cookies & display appropriate tab on load. var selectedTab = null; var selectedTabName = getCookie('tabstyle'); if (selectedTabName) { selectedTabName = selectedTabName.replace(/[^a-z-]/g, ''); } if (selectedTabName) { selectedTab = $('.form-switcher a[name=' + selectedTabName + ']'); } if (selectedTab && selectedTab.length > 0) { // Display whichever tab is selected. selectedTab.tab('show'); } else { // If no tab selected, display rightmost tab. $('.form-switcher a:first').tab('show'); } $(window).load(function() { $('#errorModal').modal('show'); }); }); ================================================ FILE: jet_django/static/jet_django.deps.rest_framework/js/prettify-min.js ================================================ var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= [],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, "");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), ["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", /^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), ["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= !k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p{% trans "Field filters" %}

    {% crispy filter.form %} ================================================ FILE: jet_django/templates/jet_django.deps.django_filters/rest_framework/form.html ================================================ {% load i18n %}

    {% trans "Field filters" %}

    {{ filter.form.as_p }}
    ================================================ FILE: jet_django/templates/jet_django.deps.django_filters/widgets/multiwidget.html ================================================ {% for widget in widget.subwidgets %}{% include widget.template_name %}{% if forloop.first %}-{% endif %}{% endfor %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/admin/detail.html ================================================ {% load jet_django_deps_rest_framework %} {% for key, value in results|items %} {% if key in details %} {% endif %} {% endfor %}
    {{ key|capfirst }}{{ value|format_value }}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/admin/dict_value.html ================================================ {% load jet_django_deps_rest_framework %} {% for k, v in value|items %} {% endfor %}
    {{ k|format_value }} {{ v|format_value }}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/admin/list.html ================================================ {% load jet_django_deps_rest_framework %} {% for column in columns%}{% endfor %} {% for row in results %} {% for key, value in row|items %} {% if key in columns %} {% endif %} {% endfor %} {% endfor %}
    {{ column|capfirst }}
    {{ value|format_value }}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/admin/list_value.html ================================================ {% load jet_django_deps_rest_framework %} {% for item in value %} {% endfor %}
    {{ forloop.counter0 }} {{ item|format_value }}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/admin/simple_list_value.html ================================================ {% load jet_django_deps_rest_framework %} {% for item in value %}{% if not forloop.first%},{% endif %} {{item|format_value}}{% endfor %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/admin.html ================================================ {% load static %} {% load i18n %} {% load jet_django_deps_rest_framework %} {% block head %} {% block meta %} {% endblock %} {% block title %}Django REST framework{% endblock %} {% block style %} {% block bootstrap_theme %} {% endblock %} {% endblock %} {% endblock %} {% block body %}
    {% block navbar %} {% endblock %}
    {% block breadcrumbs %} {% endblock %}
    {% if 'GET' in allowed_methods %}
    {% endif %} {% if post_form %} {% endif %} {% if put_form %} {% endif %} {% if delete_form %}
    {% endif %} {% if filter_form %} {% endif %}
    {% block description %} {{ description }} {% endblock %}
    {% if paginator %} {% endif %}
    {% if style == 'list' %} {% include "jet_django.deps.rest_framework/admin/list.html" %} {% else %} {% include "jet_django.deps.rest_framework/admin/detail.html" %} {% endif %}
    {% if paginator %} {% endif %}
    {% if error_form %} {% endif %} {% if filter_form %} {{ filter_form }} {% endif %} {% block script %} {% endblock %} {% endblock %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/api.html ================================================ {% extends "jet_django.deps.rest_framework/base.html" %} {# Override this template in your own templates directory to customize #} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/base.html ================================================ {% load static %} {% load i18n %} {% load jet_django_deps_rest_framework %} {% block head %} {% block meta %} {% endblock %} {% block title %}{% if name %}{{ name }} – {% endif %}Django REST framework{% endblock %} {% block style %} {% block bootstrap_theme %} {% endblock %} {% if code_style %}{% endif %} {% endblock %} {% endblock %} {% block body %}
    {% block navbar %} {% endblock %}
    {% block breadcrumbs %} {% endblock %}
    {% block content %}
    {% if 'GET' in allowed_methods %}
    {% if api_settings.URL_FORMAT_OVERRIDE %}
    GET
    {% else %} GET {% endif %}
    {% endif %} {% if options_form %}
    {% endif %} {% if delete_form %} {% endif %} {% if filter_form %} {% endif %}
    {% block description %} {{ description }} {% endblock %}
    {% if paginator %} {% endif %}
    {{ request.method }} {{ request.get_full_path }}
    HTTP {{ response.status_code }} {{ response.status_text }}{% autoescape off %}{% for key, val in response_headers|items %}
    {{ key }}: {{ val|break_long_headers|urlize_quoted_links }}{% endfor %}
    
    {{ content|urlize_quoted_links }}
    {% endautoescape %}
    {% if display_edit_forms %} {% if post_form or raw_data_post_form %}
    {% if post_form %} {% endif %}
    {% if post_form %}
    {% with form=post_form %}
    {% csrf_token %} {{ post_form }}
    {% endwith %}
    {% endif %}
    {% with form=raw_data_post_form %}
    {% include "jet_django.deps.rest_framework/raw_data_form.html" %}
    {% endwith %}
    {% endif %} {% if put_form or raw_data_put_form or raw_data_patch_form %}
    {% if put_form %} {% endif %}
    {% if put_form %}
    {{ put_form }}
    {% endif %}
    {% with form=raw_data_put_or_patch_form %}
    {% include "jet_django.deps.rest_framework/raw_data_form.html" %}
    {% if raw_data_put_form %} {% endif %} {% if raw_data_patch_form %} {% endif %}
    {% endwith %}
    {% endif %} {% endif %} {% endblock content %}
    {% if filter_form %} {{ filter_form }} {% endif %} {% block script %} {% endblock %} {% endblock %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/auth/basic.html ================================================ {% load jet_django_deps_rest_framework %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/auth/session.html ================================================ {% load jet_django_deps_rest_framework %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/auth/token.html ================================================ {% load jet_django_deps_rest_framework %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/document.html ================================================ {% load jet_django_deps_rest_framework %}

    {{ document.title }}

    {% if document.description %}

    {% render_markdown document.description %}

    {% endif %}
    {% for html in lang_intro_htmls %} {% include html %} {% endfor %}
    {% if document|data %} {% for section_key, section in document|data|items %} {% if section_key %}

    {{ section_key }}

    {% endif %} {% for link_key, link in section|schema_links|items %} {% include "jet_django.deps.rest_framework/docs/link.html" %} {% endfor %} {% endfor %} {% for link_key, link in document.links|items %} {% include "jet_django.deps.rest_framework/docs/link.html" %} {% endfor %} {% endif %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/error.html ================================================ {% load static %} Error Rendering Schema

    Error

    {{ data }}
    
    {% if debug is True %}

    Additional Information

    Note: You are seeing this message because DEBUG==True.

    Seeing this page is usually a configuration error: are your DEFAULT_AUTHENTICATION_CLASSES or DEFAULT_PERMISSION_CLASSES being applied unexpectedly?

    Your response status code is: {{ response.status_code }}

    401 Unauthorised.

    • Do you have SessionAuthentication enabled?
    • Are you logged in?

    403 Forbidden.

    • Do you have sufficient permissions to access this view?
    • Is you schema non-empty? (An empty schema will lead to a permission denied error being raised.)

    Most commonly the intended solution is to disable authentication and permissions when including the docs urls:

       url(r'^docs/', include_docs_urls(title='Your API',
                                        authentication_classes=[],
                                        permission_classes=[])),
    

    Overriding this template

    If you wish access to your docs to be authenticated you may override this template at rest_framework/docs/error.html.

    The available context is: data the error dict above, request, response and the debug flag.

    {% endif %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/index.html ================================================ {% load static %} {{ document.title }} {% if code_style %}{% endif %} {% include "jet_django.deps.rest_framework/docs/sidebar.html" %}
    {% include "jet_django.deps.rest_framework/docs/document.html" %}
    {% include "jet_django.deps.rest_framework/docs/auth/token.html" %} {% include "jet_django.deps.rest_framework/docs/auth/basic.html" %} {% include "jet_django.deps.rest_framework/docs/auth/session.html" %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/interact.html ================================================ {% load jet_django_deps_rest_framework %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/langs/javascript-intro.html ================================================ {% load jet_django_deps_rest_framework %} {% load static %}
    {% code html %}
    
    {% endcode %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/langs/javascript.html ================================================ {% load jet_django_deps_rest_framework %}
    {% code javascript %}var coreapi = window.coreapi  // Loaded by `coreapi.js`
    var schema = window.schema    // Loaded by `schema.js`
    
    // Initialize a client
    var client = new coreapi.Client()
    
    // Interact with the API endpoint
    var action = [{% if section_key %}"{{ section_key }}", {% endif %}"{{ link_key }}"]
    {% if link.fields %}var params = {
    {% for field in link.fields %}    {{ field.name }}: ...{% if not loop.last %},{% endif %}
    {% endfor %}}
    {% endif %}client.action(schema, action{% if link.fields %}, params{% endif %}).then(function(result) {
        // Return value is in 'result'
    }){% endcode %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/langs/python-intro.html ================================================ {% load jet_django_deps_rest_framework %}
    {% code bash %}# Install the Python client library
    $ pip install coreapi{% endcode %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/langs/python.html ================================================ {% load jet_django_deps_rest_framework %}
    {% code python %}import coreapi
    
    # Initialize a client & load the schema document
    client = coreapi.Client()
    schema = client.get("{{ document.url }}"{% if schema_format %}, format="{{ schema_format }}"{% endif %})
    
    # Interact with the API endpoint
    action = [{% if section_key %}"{{ section_key }}", {% endif %}"{{ link_key }}"]
    {% if link.fields %}params = {
    {% for field in link.fields %}    "{{ field.name }}": ...{% if not loop.last %},{% endif %}
    {% endfor %}}
    {% endif %}result = client.action(schema, action{% if link.fields %}, params=params{% endif %}){% endcode %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/langs/shell-intro.html ================================================ {% load jet_django_deps_rest_framework %}
    {% code bash %}# Install the command line client
    $ pip install coreapi-cli{% endcode %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/langs/shell.html ================================================ {% load jet_django_deps_rest_framework %}
    {% code bash %}# Load the schema document
    $ coreapi get {{ document.url }}{% if schema_format %} --format {{ schema_format }}{% endif %}
    
    # Interact with the API endpoint
    $ coreapi action {% if section_key %}{{ section_key }} {% endif %}{{ link_key }}{% for field in link.fields %} -p {{ field.name }}=...{% endfor %}{% endcode %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/link.html ================================================ {% load jet_django_deps_rest_framework %} {% include "jet_django.deps.rest_framework/docs/interact.html" with link=link %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/docs/sidebar.html ================================================ {% load jet_django_deps_rest_framework %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/filters/base.html ================================================ ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/filters/ordering.html ================================================ {% load jet_django_deps_rest_framework %} {% load i18n %}

    {% trans "Ordering" %}

    {% for key, label in options %} {% if key == current %} {{ label }} {% else %} {{ label }} {% endif %} {% endfor %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/filters/search.html ================================================ {% load i18n %}

    {% trans "Search" %}

    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/checkbox.html ================================================
    {% if field.label %} {% endif %}
    {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/checkbox_multiple.html ================================================ {% load jet_django_deps_rest_framework %}
    {% if field.label %} {% endif %}
    {% if style.inline %} {% for key, text in field.choices|items %} {% endfor %} {% else %} {% for key, text in field.choices|items %}
    {% endfor %} {% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/dict_field.html ================================================
    {% if field.label %} {% endif %}

    Dictionaries are not currently supported in HTML input.

    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/fieldset.html ================================================ {% load jet_django_deps_rest_framework %}
    {% if field.label %}
    {{ field.label }}
    {% endif %} {% for nested_field in field %} {% if not nested_field.read_only %} {% render_field nested_field style=style %} {% endif %} {% endfor %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/form.html ================================================ {% load jet_django_deps_rest_framework %} {% for field in form %} {% if not field.read_only %} {% render_field field style=style %} {% endif %} {% endfor %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/input.html ================================================
    {% if field.label %} {% endif %}
    {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/list_field.html ================================================
    {% if field.label %} {% endif %}

    Lists are not currently supported in HTML input.

    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/list_fieldset.html ================================================ {% load jet_django_deps_rest_framework %}
    {% if field.label %}
    {{ field.label }}
    {% endif %}

    Lists are not currently supported in HTML input.

    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/radio.html ================================================ {% load i18n %} {% load jet_django_deps_rest_framework %} {% trans "None" as none_choice %}
    {% if field.label %} {% endif %}
    {% if style.inline %} {% if field.allow_null or field.allow_blank %} {% endif %} {% for key, text in field.choices|items %} {% endfor %} {% else %} {% if field.allow_null or field.allow_blank %}
    {% endif %} {% for key, text in field.choices|items %}
    {% endfor %} {% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/select.html ================================================ {% load jet_django_deps_rest_framework %}
    {% if field.label %} {% endif %}
    {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/select_multiple.html ================================================ {% load i18n %} {% load jet_django_deps_rest_framework %} {% trans "No items to select." as no_items %}
    {% if field.label %} {% endif %}
    {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/horizontal/textarea.html ================================================
    {% if field.label %} {% endif %}
    {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/checkbox.html ================================================
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/checkbox_multiple.html ================================================ {% load jet_django_deps_rest_framework %}
    {% if field.label %} {% endif %} {% for key, text in field.choices|items %}
    {% endfor %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/dict_field.html ================================================
    {% if field.label %} {% endif %}

    Dictionaries are not currently supported in HTML input.

    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/fieldset.html ================================================ {% load jet_django_deps_rest_framework %} {% for nested_field in field %} {% if not nested_field.read_only %} {% render_field nested_field style=style %} {% endif %} {% endfor %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/form.html ================================================ {% load jet_django_deps_rest_framework %} {% for field in form %} {% if not field.read_only %} {% render_field field style=style %} {% endif %} {% endfor %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/input.html ================================================
    {% if field.label %} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/list_field.html ================================================
    {% if field.label %} {% endif %}

    Lists are not currently supported in HTML input.

    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/list_fieldset.html ================================================ Lists are not currently supported in HTML input. ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/radio.html ================================================ {% load i18n %} {% load jet_django_deps_rest_framework %} {% trans "None" as none_choice %}
    {% if field.label %} {% endif %} {% if field.allow_null or field.allow_blank %}
    {% endif %} {% for key, text in field.choices|items %}
    {% endfor %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/select.html ================================================ {% load jet_django_deps_rest_framework %}
    {% if field.label %} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/select_multiple.html ================================================ {% load i18n %} {% load jet_django_deps_rest_framework %} {% trans "No items to select." as no_items %}
    {% if field.label %} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/inline/textarea.html ================================================
    {% if field.label %} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/login.html ================================================ {% extends "jet_django.deps.rest_framework/login_base.html" %} {# Override this template in your own templates directory to customize #} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/login_base.html ================================================ {% extends "jet_django.deps.rest_framework/base.html" %} {% load jet_django_deps_rest_framework %} {% block body %}
    {% block branding %}

    Django REST framework

    {% endblock %}
    {% csrf_token %}
    {% if form.username.errors %}

    {{ form.username.errors|striptags }}

    {% endif %}
    {% if form.password.errors %}

    {{ form.password.errors|striptags }}

    {% endif %}
    {% if form.non_field_errors %} {% for error in form.non_field_errors %}
    {{ error }}
    {% endfor %} {% endif %}
    {% endblock %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/pagination/numbers.html ================================================ ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/pagination/previous_and_next.html ================================================ ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/raw_data_form.html ================================================ {% load jet_django_deps_rest_framework %} {{ form.non_field_errors }} {% for field in form %}
    {{ field.label_tag|add_class:"col-sm-2 control-label" }}
    {{ field|add_class:"form-control" }} {{ field.help_text|safe }}
    {% endfor %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/schema.js ================================================ var codec = new window.coreapi.codecs.CoreJSONCodec() var coreJSON = window.atob('{{ schema }}') window.schema = codec.decode(coreJSON) ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/checkbox.html ================================================
    {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/checkbox_multiple.html ================================================ {% load jet_django_deps_rest_framework %}
    {% if field.label %} {% endif %} {% if style.inline %}
    {% for key, text in field.choices|items %} {% endfor %}
    {% else %} {% for key, text in field.choices|items %}
    {% endfor %} {% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/dict_field.html ================================================
    {% if field.label %} {% endif %}

    Dictionaries are not currently supported in HTML input.

    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/fieldset.html ================================================ {% load jet_django_deps_rest_framework %}
    {% if field.label %} {{ field.label }} {% endif %} {% for nested_field in field %} {% if not nested_field.read_only %} {% render_field nested_field style=style %} {% endif %} {% endfor %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/form.html ================================================ {% load jet_django_deps_rest_framework %} {% for field in form %} {% if not field.read_only %} {% render_field field style=style %} {% endif %} {% endfor %} ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/input.html ================================================
    {% if field.label %} {% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/list_field.html ================================================
    {% if field.label %} {% endif %}

    Lists are not currently supported in HTML input.

    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/list_fieldset.html ================================================
    {% if field.label %} {{ field.label }} {% endif %}

    Lists are not currently supported in HTML input.

    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/radio.html ================================================ {% load i18n %} {% load jet_django_deps_rest_framework %} {% trans "None" as none_choice %}
    {% if field.label %} {% endif %} {% if style.inline %}
    {% if field.allow_null or field.allow_blank %} {% endif %} {% for key, text in field.choices|items %} {% endfor %}
    {% else %} {% if field.allow_null or field.allow_blank %}
    {% endif %} {% for key, text in field.choices|items %}
    {% endfor %} {% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/select.html ================================================ {% load jet_django_deps_rest_framework %}
    {% if field.label %} {% endif %} {% if field.errors %} {% for error in field.errors %} {{ error }} {% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/select_multiple.html ================================================ {% load i18n %} {% load jet_django_deps_rest_framework %} {% trans "No items to select." as no_items %}
    {% if field.label %} {% endif %} {% if field.errors %} {% for error in field.errors %}{{ error }}{% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templates/jet_django.deps.rest_framework/vertical/textarea.html ================================================
    {% if field.label %} {% endif %} {% if field.errors %} {% for error in field.errors %}{{ error }}{% endfor %} {% endif %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
    ================================================ FILE: jet_django/templatetags/__init__.py ================================================ ================================================ FILE: jet_django/templatetags/jet_django_deps_rest_framework.py ================================================ from __future__ import absolute_import, unicode_literals import re from collections import OrderedDict from django import template from django.template import loader from django.urls import NoReverseMatch, reverse from django.utils import six from django.utils.encoding import force_text, iri_to_uri from django.utils.html import escape, format_html, smart_urlquote from django.utils.safestring import SafeData, mark_safe from jet_django.deps.rest_framework.compat import apply_markdown, pygments_highlight from jet_django.deps.rest_framework.renderers import HTMLFormRenderer from jet_django.deps.rest_framework.utils.urls import replace_query_param register = template.Library() # Regex for adding classes to html snippets class_re = re.compile(r'(?<=class=["\'])(.*)(?=["\'])') @register.tag(name='code') def highlight_code(parser, token): code = token.split_contents()[-1] nodelist = parser.parse(('endcode',)) parser.delete_first_token() return CodeNode(code, nodelist) class CodeNode(template.Node): style = 'emacs' def __init__(self, lang, code): self.lang = lang self.nodelist = code def render(self, context): text = self.nodelist.render(context) return pygments_highlight(text, self.lang, self.style) @register.filter() def with_location(fields, location): return [ field for field in fields if field.location == location ] @register.simple_tag def form_for_link(link): import coreschema properties = OrderedDict([ (field.name, field.schema or coreschema.String()) for field in link.fields ]) required = [ field.name for field in link.fields if field.required ] schema = coreschema.Object(properties=properties, required=required) return mark_safe(coreschema.render_to_form(schema)) @register.simple_tag def render_markdown(markdown_text): if apply_markdown is None: return markdown_text return mark_safe(apply_markdown(markdown_text)) @register.simple_tag def get_pagination_html(pager): return pager.to_html() @register.simple_tag def render_form(serializer, template_pack=None): style = {'template_pack': template_pack} if template_pack else {} renderer = HTMLFormRenderer() return renderer.render(serializer.data, None, {'style': style}) @register.simple_tag def render_field(field, style): renderer = style.get('renderer', HTMLFormRenderer()) return renderer.render_field(field, style) @register.simple_tag def optional_login(request): """ Include a login snippet if REST framework's login view is in the URLconf. """ try: login_url = reverse('jet_django.deps.rest_framework:login') except NoReverseMatch: return '' snippet = "
  • Log in
  • " snippet = format_html(snippet, href=login_url, next=escape(request.path)) return mark_safe(snippet) @register.simple_tag def optional_docs_login(request): """ Include a login snippet if REST framework's login view is in the URLconf. """ try: login_url = reverse('jet_django.deps.rest_framework:login') except NoReverseMatch: return 'log in' snippet = "log in" snippet = format_html(snippet, href=login_url, next=escape(request.path)) return mark_safe(snippet) @register.simple_tag def optional_logout(request, user): """ Include a logout snippet if REST framework's logout view is in the URLconf. """ try: logout_url = reverse('jet_django.deps.rest_framework:logout') except NoReverseMatch: snippet = format_html('', user=escape(user)) return mark_safe(snippet) snippet = """""" snippet = format_html(snippet, user=escape(user), href=logout_url, next=escape(request.path)) return mark_safe(snippet) @register.simple_tag def add_query_param(request, key, val): """ Add a query parameter to the current request url, and return the new url. """ iri = request.get_full_path() uri = iri_to_uri(iri) return escape(replace_query_param(uri, key, val)) @register.filter def as_string(value): if value is None: return '' return '%s' % value @register.filter def as_list_of_strings(value): return [ '' if (item is None) else ('%s' % item) for item in value ] @register.filter def add_class(value, css_class): """ https://stackoverflow.com/questions/4124220/django-adding-css-classes-when-rendering-form-fields-in-a-template Inserts classes into template variables that contain HTML tags, useful for modifying forms without needing to change the Form objects. Usage: {{ field.label_tag|add_class:"control-label" }} In the case of REST Framework, the filter is used to add Bootstrap-specific classes to the forms. """ html = six.text_type(value) match = class_re.search(html) if match: m = re.search(r'^%s$|^%s\s|\s%s\s|\s%s$' % (css_class, css_class, css_class, css_class), match.group(1)) if not m: return mark_safe(class_re.sub(match.group(1) + " " + css_class, html)) else: return mark_safe(html.replace('>', ' class="%s">' % css_class, 1)) return value @register.filter def format_value(value): if getattr(value, 'is_hyperlink', False): name = six.text_type(value.obj) return mark_safe('%s' % (value, escape(name))) if value is None or isinstance(value, bool): return mark_safe('%s' % {True: 'true', False: 'false', None: 'null'}[value]) elif isinstance(value, list): if any([isinstance(item, (list, dict)) for item in value]): template = loader.get_template('jet_django.deps.rest_framework/admin/list_value.html') else: template = loader.get_template('jet_django.deps.rest_framework/admin/simple_list_value.html') context = {'value': value} return template.render(context) elif isinstance(value, dict): template = loader.get_template('jet_django.deps.rest_framework/admin/dict_value.html') context = {'value': value} return template.render(context) elif isinstance(value, six.string_types): if ( (value.startswith('http:') or value.startswith('https:')) and not re.search(r'\s', value) ): return mark_safe('{value}'.format(value=escape(value))) elif '@' in value and not re.search(r'\s', value): return mark_safe('{value}'.format(value=escape(value))) elif '\n' in value: return mark_safe('
    %s
    ' % escape(value)) return six.text_type(value) @register.filter def items(value): """ Simple filter to return the items of the dict. Useful when the dict may have a key 'items' which is resolved first in Django tempalte dot-notation lookup. See issue #4931 Also see: https://stackoverflow.com/questions/15416662/django-template-loop-over-dictionary-items-with-items-as-key """ return value.items() @register.filter def data(value): """ Simple filter to access `data` attribute of object, specifically coreapi.Document. As per `items` filter above, allows accessing `document.data` when Document contains Link keyed-at "data". See issue #5395 """ return value.data @register.filter def schema_links(section, sec_key=None): """ Recursively find every link in a schema, even nested. """ NESTED_FORMAT = '%s > %s' # this format is used in docs/js/api.js:normalizeKeys links = section.links if section.data: data = section.data.items() for sub_section_key, sub_section in data: new_links = schema_links(sub_section, sec_key=sub_section_key) links.update(new_links) if sec_key is not None: new_links = OrderedDict() for link_key, link in links.items(): new_key = NESTED_FORMAT % (sec_key, link_key) new_links.update({new_key: link}) return new_links return links @register.filter def add_nested_class(value): if isinstance(value, dict): return 'class=nested' if isinstance(value, list) and any([isinstance(item, (list, dict)) for item in value]): return 'class=nested' return '' # Bunch of stuff cloned from urlize TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', "']", "'}", "'"] WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'), ('"', '"'), ("'", "'")] word_split_re = re.compile(r'(\s+)') simple_url_re = re.compile(r'^https?://\[?\w', re.IGNORECASE) simple_url_2_re = re.compile(r'^www\.|^(?!http)\w[^@]+\.(com|edu|gov|int|mil|net|org)$', re.IGNORECASE) simple_email_re = re.compile(r'^\S+@\S+\.\S+$') def smart_urlquote_wrapper(matched_url): """ Simple wrapper for smart_urlquote. ValueError("Invalid IPv6 URL") can be raised here, see issue #1386 """ try: return smart_urlquote(matched_url) except ValueError: return None @register.filter def urlize_quoted_links(text, trim_url_limit=None, nofollow=True, autoescape=True): """ Converts any URLs in text into clickable links. Works on http://, https://, www. links, and also on links ending in one of the original seven gTLDs (.com, .edu, .gov, .int, .mil, .net, and .org). Links can have trailing punctuation (periods, commas, close-parens) and leading punctuation (opening parens) and it'll still do the right thing. If trim_url_limit is not None, the URLs in link text longer than this limit will truncated to trim_url_limit-3 characters and appended with an ellipsis. If nofollow is True, the URLs in link text will get a rel="nofollow" attribute. If autoescape is True, the link text and URLs will get autoescaped. """ def trim_url(x, limit=trim_url_limit): return limit is not None and (len(x) > limit and ('%s...' % x[:max(0, limit - 3)])) or x safe_input = isinstance(text, SafeData) words = word_split_re.split(force_text(text)) for i, word in enumerate(words): if '.' in word or '@' in word or ':' in word: # Deal with punctuation. lead, middle, trail = '', word, '' for punctuation in TRAILING_PUNCTUATION: if middle.endswith(punctuation): middle = middle[:-len(punctuation)] trail = punctuation + trail for opening, closing in WRAPPING_PUNCTUATION: if middle.startswith(opening): middle = middle[len(opening):] lead = lead + opening # Keep parentheses at the end only if they're balanced. if ( middle.endswith(closing) and middle.count(closing) == middle.count(opening) + 1 ): middle = middle[:-len(closing)] trail = closing + trail # Make URL we want to point to. url = None nofollow_attr = ' rel="nofollow"' if nofollow else '' if simple_url_re.match(middle): url = smart_urlquote_wrapper(middle) elif simple_url_2_re.match(middle): url = smart_urlquote_wrapper('http://%s' % middle) elif ':' not in middle and simple_email_re.match(middle): local, domain = middle.rsplit('@', 1) try: domain = domain.encode('idna').decode('ascii') except UnicodeError: continue url = 'mailto:%s@%s' % (local, domain) nofollow_attr = '' # Make link. if url: trimmed = trim_url(middle) if autoescape and not safe_input: lead, trail = escape(lead), escape(trail) url, trimmed = escape(url), escape(trimmed) middle = '%s' % (url, nofollow_attr, trimmed) words[i] = mark_safe('%s%s%s' % (lead, middle, trail)) else: if safe_input: words[i] = mark_safe(word) elif autoescape: words[i] = escape(word) elif safe_input: words[i] = mark_safe(word) elif autoescape: words[i] = escape(word) return ''.join(words) @register.filter def break_long_headers(header): """ Breaks headers longer than 160 characters (~page length) when possible (are comma separated) """ if len(header) > 160 and ',' in header: header = mark_safe('
    ' + ',
    '.join(header.split(','))) return header ================================================ FILE: jet_django/urls.py ================================================ from django.conf.urls import url from jet_django.deps.rest_framework.routers import DefaultRouter from jet_django.admin.jet import jet from jet_django.views.file_upload import FileUploadView from jet_django.views.model_description import ModelDescriptionView from jet_django.views.register import RegisterView from jet_django.views.root import RootView from jet_django.views.sql import SqlView from jet_django.views.message import MessageView app_name = 'jet_django' def init_urls(): class Router(DefaultRouter): include_root_view = False router = Router() jet.register_related_models() for model in jet.models: router.register(model.viewset_url, model.viewset) extra_urls = [ url(r'^model_descriptions/', ModelDescriptionView.as_view(), name='model-descriptions'), url(r'^register/', RegisterView.as_view(), name='register'), url(r'^sql/', SqlView.as_view(), name='sql'), url(r'^file_upload/', FileUploadView.as_view(), name='file-upload'), url(r'^messages/', MessageView.as_view(), name='message'), url(r'^$', RootView.as_view(), name='root') ] api_urls = router.urls + extra_urls return api_urls jet_urls = init_urls() urlpatterns = jet_urls ================================================ FILE: jet_django/utils/__init__.py ================================================ ================================================ FILE: jet_django/utils/backend.py ================================================ import logging import requests from jet_django import settings, VERSION from jet_django.models.token import Token logger = logging.getLogger('jet_django') def api_method_url(method): return '{}/{}'.format(settings.JET_BACKEND_API_BASE_URL, method) def get_token(): token = Token.objects.all().first() return token.token if token else None def register_token(): token = Token.objects.all().first() if token: logger.info('[JET] Token already registered') return token, False url = api_method_url('project_tokens/') headers = { 'User-Agent': 'Jet Django' } data = { 'bridge_type': 'jet_django', 'bridge_version': VERSION } r = requests.request('POST', url, headers=headers, data=data) success = 200 <= r.status_code < 300 if not success: logger.error('[JET] Register Token request error: %s %s %s', r.status_code, r.reason, r.text) return None, False result = r.json() token = Token.objects.create(token=result['token'], date_add=result['date_add']) return token, True def is_token_activated(token): url = api_method_url('project_tokens/{}/'.format(token.token)) headers = { 'User-Agent': 'Jet Django' } r = requests.request('GET', url, headers=headers) success = 200 <= r.status_code < 300 if not success: return False result = r.json() return result.get('activated') is True def reset_token(): Token.objects.all().delete() return register_token() def project_auth(token, permission=None): project_token = Token.objects.all().first() if not project_token: logger.error('[JET] Project Auth request error: not token registered') return { 'result': False } url = api_method_url('project_auth/') data = { 'project_token': project_token.token, 'token': token } headers = { 'User-Agent': 'Jet Django' } if permission: data.update(permission) r = requests.request('POST', url, data=data, headers=headers) success = 200 <= r.status_code < 300 if not success: logger.error('[JET] Project Auth request error: %s %s %s', r.status_code, r.reason, r.text) return { 'result': False } result = r.json() if result.get('access_disabled'): logger.error('[JET] Project Auth request error: access_disabled') return { 'result': False, 'warning': result.get('warning') } return { 'result': True, 'warning': result.get('warning') } ================================================ FILE: jet_django/utils/siblings.py ================================================ from django.db import connection from django.db.models.sql import Query from django.db.models.sql.datastructures import BaseTable from django.db.models.sql.compiler import SQLCompiler def get_row_number(Model, instance, join_sql, join_args, where_sql, where_args, order_by_sql): pk = Model._meta.pk.name table = Model._meta.db_table with connection.cursor() as cursor: query = ''' SELECT __inner.__inner__row FROM ( SELECT {}.{} as __inner__pk, ROW_NUMBER() OVER({}) AS __inner__row FROM {} {} {} ) AS __inner WHERE __inner.__inner__pk = %s '''.format( table, pk, order_by_sql, table, join_sql, where_sql ) args = join_args + where_args + [instance.pk] cursor.execute(query, args) row = cursor.fetchone() if not row: return return row[0] def get_row_siblings(Model, row_number, join_sql, join_args, where_sql, where_args, order_by_sql): pk = Model._meta.pk.name table = Model._meta.db_table has_prev = row_number > 1 offset = row_number - 2 if has_prev else row_number - 1 limit = 3 if has_prev else 2 with connection.cursor() as cursor: query = ''' SELECT {}.{} FROM {} {} {} {} LIMIT %s OFFSET %s '''.format( table, pk, table, join_sql, where_sql, order_by_sql ) args = join_args + where_args + [limit, offset] cursor.execute(query, args) rows = cursor.fetchall() if has_prev: next_index = 2 else: next_index = 1 if next_index >= len(rows): next_index = None if has_prev: prev_index = 0 else: prev_index = None def map_row(row): columns = (x.name for x in cursor.description) return dict(zip(columns, row)) return { 'prev': map_row(rows[prev_index]) if prev_index is not None else None, 'next': map_row(rows[next_index]) if next_index is not None else None } def create_joins(queryset, compiler): join_queries = [] join_args = [] for key, value in queryset.query.alias_map.items(): if isinstance(value, BaseTable): continue else: query, args = value.as_sql(compiler, connection) join_queries.append(query) join_args.extend(args) join_sql = ' '.join(join_queries) return join_sql, join_args def create_where(queryset, compiler): where_query, where_args = queryset.query.where.as_sql(compiler, connection) return 'WHERE {}'.format(where_query) if where_query != '' else '', where_args def create_order_by(compiler): compiler_order_by = compiler.get_order_by() if not compiler_order_by: compiler_order_by = [] ordering = [] for _, (o_sql, o_params, _) in compiler_order_by: ordering.append(o_sql) return 'ORDER BY %s' % ', '.join(ordering) def get_model_siblings(Model, instance, queryset): pk = Model._meta.pk.name ordering = queryset.query.order_by if len(ordering) == 0 and len(Model._meta.ordering): ordering = Model._meta.ordering if not any(map(lambda x: x == pk or x == '-{}'.format(pk), ordering)): ordering = list(ordering) + ['-{}'.format(pk)] queryset.query.order_by = ordering compiler = SQLCompiler(queryset.query, connection, queryset.db) compiler.as_sql() join_sql, join_args = create_joins(queryset, compiler) where_sql, where_args = create_where(queryset, compiler) order_by_sql = create_order_by(compiler) row_number = get_row_number(Model, instance, join_sql, join_args, where_sql, where_args, order_by_sql) if not row_number: return {} return get_row_siblings(Model, row_number, join_sql, join_args, where_sql, where_args, order_by_sql) ================================================ FILE: jet_django/views/__init__.py ================================================ ================================================ FILE: jet_django/views/exception_handler.py ================================================ import logging import traceback from jet_django.deps.rest_framework import status from jet_django.deps.rest_framework.views import exception_handler, set_rollback from jet_django.deps.rest_framework.response import Response logger = logging.getLogger(__name__) def jet_exception_handler(exc, context): response = exception_handler(exc, context) if not response: data = {'detail': 'Server Error'} set_rollback() response = Response(data, status=status.HTTP_500_INTERNAL_SERVER_ERROR) logger.exception('Jet view exception', exc_info=exc) traceback.print_exc() if context and 'request' in context and context['request'].method == 'OPTIONS': response.status_code = 204 response['Access-Control-Max-Age'] = '1728000' response['Content-Type'] = 'text/plain; charset=utf-8' response['Content-Length'] = 0 return response ================================================ FILE: jet_django/views/file_upload.py ================================================ from jet_django.deps.rest_framework import views from jet_django.deps.rest_framework.response import Response from jet_django.mixins.cors_api_view import CORSAPIViewMixin from jet_django.permissions import HasProjectPermissions from jet_django.serializers.file_upload import FileUploadSerializer class FileUploadView(CORSAPIViewMixin, views.APIView): authentication_classes = () permission_classes = (HasProjectPermissions,) def post(self, request, *args, **kwargs): serializer = FileUploadSerializer(data=request.data, context={'request': self.request}) serializer.is_valid(raise_exception=True) serializer.save() return Response(serializer.data) ================================================ FILE: jet_django/views/message.py ================================================ from jet_django.deps.rest_framework import views from jet_django.deps.rest_framework.response import Response from jet_django.mixins.cors_api_view import CORSAPIViewMixin from jet_django.permissions import HasProjectPermissions from jet_django.serializers.message import MessageSerializer class MessageView(CORSAPIViewMixin, views.APIView): authentication_classes = () permission_classes = (HasProjectPermissions,) def post(self, request, *args, **kwargs): serializer = MessageSerializer(data=request.data) serializer.is_valid(raise_exception=True) return Response(serializer.save()) ================================================ FILE: jet_django/views/model.py ================================================ from jet_django.deps.rest_framework import viewsets, serializers from jet_django.deps.rest_framework.decorators import list_route, detail_route from jet_django.deps.rest_framework.generics import get_object_or_404 from jet_django.deps.rest_framework.response import Response from jet_django.deps.rest_framework.serializers import ModelSerializer from jet_django.filters.model_aggregate import AggregateFilter from jet_django.filters.model_group import GroupFilter from jet_django.mixins.cors_api_view import CORSAPIViewMixin from jet_django.mixins.method_override import MethodOverrideViewMixin from jet_django.pagination import CustomPageNumberPagination from jet_django.permissions import HasProjectPermissions, ModifyNotInDemo from jet_django.serializers.reorder import reorder_serializer_factory from jet_django.serializers.reset_order import reset_order_serializer_factory from jet_django.utils.siblings import get_model_siblings class AggregateSerializer(serializers.Serializer): y_func = serializers.IntegerField() def __init__(self, *args, **kwargs): if 'y_func_serializer' in kwargs: self.fields['y_func'] = kwargs.pop('y_func_serializer') super().__init__(*args, **kwargs) class GroupSerializer(serializers.Serializer): group = serializers.CharField() y_func = serializers.IntegerField() def __init__(self, *args, **kwargs): if 'group_serializer' in kwargs: self.fields['group'] = kwargs.pop('group_serializer') if 'y_func_serializer' in kwargs: self.fields['y_func'] = kwargs.pop('y_func_serializer') super().__init__(*args, **kwargs) def model_viewset_factory(build_model, build_filter_class, build_serializer_class, build_detail_serializer_class, build_queryset): ReorderSerializer = reorder_serializer_factory(build_queryset) ResetOrderSerializer = reset_order_serializer_factory(build_queryset) class Viewset(MethodOverrideViewMixin, CORSAPIViewMixin, viewsets.ModelViewSet): model = build_model queryset = build_queryset pagination_class = CustomPageNumberPagination filter_class = build_filter_class authentication_classes = () permission_classes = (HasProjectPermissions, ModifyNotInDemo) def filter_queryset(self, queryset): queryset = super().filter_queryset(queryset) if self.action == 'list': pk = self.model._meta.pk.name ordering = queryset.query.order_by if len(ordering) == 0 and len(self.model._meta.ordering): ordering = self.model._meta.ordering if not any(map(lambda x: x == pk or x == '-{}'.format(pk) or x == '-pk', ordering)): order_by = list(ordering) + ['-pk'] queryset = queryset.order_by(*order_by) return queryset @property def required_project_permission(self): return { 'permission_type': 'model', 'permission_object': self.kwargs['model'], 'permission_actions': { 'create': 'w', 'update': 'w', 'partial_update': 'w', 'destroy': 'd', 'retrieve': 'r', 'list': 'r', 'aggregate': 'r', 'group': 'r', 'reorder': 'w', 'reset_order': 'w', 'get_siblings': 'r' }.get(self.action, 'w') } def get_serializer_class(self): if self.action == 'aggregate': return AggregateSerializer elif self.action == 'group': return GroupSerializer elif self.action == 'retrieve': return build_detail_serializer_class else: return build_serializer_class @list_route(methods=['get']) def aggregate(self, request, *args, **kwargs): queryset = self.filter_queryset(self.get_queryset()) y_func = request.GET['_y_func'].lower() y_column = request.GET.get('_y_column', 'id') y_field = self.model._meta.get_field(y_column) y_serializer_class, y_serializer_kwargs = ModelSerializer().build_standard_field(y_column, y_field) y_serializer = y_serializer_class(**y_serializer_kwargs) queryset = AggregateFilter().filter(queryset, { 'y_func': y_func, 'y_column': y_column }) serializer = self.get_serializer( queryset, y_func_serializer=y_serializer ) return Response(serializer.data) @list_route(methods=['get']) def group(self, request, *args, **kwargs): queryset = self.filter_queryset(self.get_queryset()) x_column = request.GET['_x_column'] x_lookup_name = request.GET.get('_x_lookup') y_func = request.GET['_y_func'].lower() y_column = request.GET.get('_y_column', 'id') x_field = self.model._meta.get_field(x_column) x_lookup = x_field.class_lookups.get(x_lookup_name) y_field = self.model._meta.get_field(y_column) if x_lookup: x_field = x_lookup('none').output_field x_serializer_class, x_serializer_kwargs = ModelSerializer().build_standard_field(x_column, x_field) x_serializer = x_serializer_class(**x_serializer_kwargs) y_serializer_class, y_serializer_kwargs = ModelSerializer().build_standard_field(y_column, y_field) y_serializer = y_serializer_class(**y_serializer_kwargs) queryset = GroupFilter().filter(queryset, { 'x_column': x_column, 'x_lookup': x_lookup, 'y_func': y_func, 'y_column': y_column }) serializer = self.get_serializer( queryset, many=True, group_serializer=x_serializer, y_func_serializer=y_serializer ) return Response(serializer.data) def get_serializer(self, *args, **kwargs): """ Return the serializer instance that should be used for validating and deserializing input, and for serializing output. """ serializer_class = self.get_serializer_class() kwargs['context'] = self.get_serializer_context() return serializer_class(*args, **kwargs) @list_route(methods=['post']) def reorder(self, request, *args, **kwargs): serializer = ReorderSerializer(data=request.data) serializer.is_valid(raise_exception=True) serializer.save() return Response(serializer.data) @list_route(methods=['post']) def reset_order(self, request, *args, **kwargs): serializer = ResetOrderSerializer(data=request.data) serializer.is_valid(raise_exception=True) serializer.save() return Response(serializer.data) @detail_route(methods=['get']) def get_siblings(self, request, *args, **kwargs): lookup_url_kwarg = self.lookup_url_kwarg or self.lookup_field filter_kwargs = {self.lookup_field: self.kwargs[lookup_url_kwarg]} obj = get_object_or_404(self.get_queryset(), **filter_kwargs) # May raise a permission denied self.check_object_permissions(self.request, obj) queryset = self.filter_queryset(self.get_queryset()) return Response(get_model_siblings(self.model, obj, queryset)) return Viewset ================================================ FILE: jet_django/views/model_description.py ================================================ from jet_django.deps.rest_framework import views from jet_django.deps.rest_framework.response import Response from jet_django.admin.jet import jet from jet_django.mixins.cors_api_view import CORSAPIViewMixin from jet_django.permissions import HasProjectPermissions class ModelDescriptionView(CORSAPIViewMixin, views.APIView): authentication_classes = () permission_classes = (HasProjectPermissions,) def get(self, request, *args, **kwargs): return Response(map(lambda x: x.serialize(), jet.models)) ================================================ FILE: jet_django/views/register.py ================================================ from urllib.parse import quote from django.http import HttpResponseRedirect, JsonResponse from django.views import generic from jet_django import settings from jet_django.mixins.cors_api_view import CORSAPIViewMixin from jet_django.utils.backend import register_token, is_token_activated class RegisterView(CORSAPIViewMixin, generic.RedirectView): def get(self, request, *args, **kwargs): token, created = register_token() if not token: return if is_token_activated(token): return JsonResponse({ 'message': 'Project token is already activated' }) if settings.JET_BACKEND_WEB_BASE_URL.startswith('https') and not self.request.is_secure(): web_base_url = 'http{}'.format(settings.JET_BACKEND_WEB_BASE_URL[5:]) else: web_base_url = settings.JET_BACKEND_WEB_BASE_URL url = '{}/projects/register/'.format(web_base_url) query_string = 'referrer={}'.format(quote(self.request.build_absolute_uri().encode('utf8'))) return HttpResponseRedirect('%s?%s' % (url, query_string)) ================================================ FILE: jet_django/views/root.py ================================================ from django.core.files.storage import default_storage from jet_django.deps.rest_framework import views from jet_django.deps.rest_framework.response import Response from jet_django import VERSION from jet_django.mixins.cors_api_view import CORSAPIViewMixin class RootView(CORSAPIViewMixin, views.APIView): def get(self, request, *args, **kwargs): unique_placeholder = '__FILE_PATH___' return Response({ 'version': VERSION, 'type': 'jet_django', 'media_url_template': request.build_absolute_uri(default_storage.url(unique_placeholder)).replace(unique_placeholder, '{}') }) ================================================ FILE: jet_django/views/sql.py ================================================ from jet_django.deps.rest_framework import views from jet_django.deps.rest_framework.response import Response from jet_django.mixins.cors_api_view import CORSAPIViewMixin from jet_django.permissions import HasProjectPermissions from jet_django.serializers.sql import SqlSerializer, SqlsSerializer class SqlView(CORSAPIViewMixin, views.APIView): authentication_classes = () permission_classes = (HasProjectPermissions,) def post(self, request, *args, **kwargs): serializer = SqlsSerializer(data=request.data) if 'queries' in request.data \ else SqlSerializer(data=request.data) serializer.is_valid(raise_exception=True) return Response(serializer.execute(serializer.validated_data)) ================================================ FILE: manage.py ================================================ #!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "application.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv) ================================================ FILE: setup.py ================================================ import os from setuptools import setup, find_packages def read(fname): path = os.path.join(os.path.dirname(__file__), fname) try: file = open(path, encoding='utf-8') except TypeError: file = open(path) return file.read() def get_install_requires(): install_requires = ['Django', 'requests'] try: from collections import OrderedDict except ImportError: install_requires.append('ordereddict') return install_requires setup( name='jet-django', version=__import__('jet_django').VERSION, description='', long_description=read('README.rst'), author='Denis Kildishev', author_email='hello@geex-arts.com', url='https://github.com/jet-admin/jet-django', packages=find_packages(), license='MIT', classifiers=[ ], zip_safe=False, include_package_data=True, install_requires=get_install_requires() ) ================================================ FILE: upload.sh ================================================ python setup.py sdist upload -r pypi