{ "info": { "author": "Saxo Publish", "author_email": "publish@saxo.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Intended Audience :: Developers", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "django-thema\n============\n\nA `Django`_ application that provides `EDItEUR Thema categories`_. It supplies translation to all languages EDItEUR supports, so if you are using Django's internationalization in your project, you will also get translation.\n\n.. _Django: https://www.djangoproject.com/\n.. _EDItEUR Thema Categories: http://www.editeur.org/151/Thema/\n\nRequirements\n------------\n\nThis application requires:\n\n- django\n- mock\n- polib\n- xlrd\n\nInstallation\n------------\n\nInstall the application from Pypi:\n\n`$ pip install django-thema`\n\nAdd the application to your Django project:\n\n::\n\n INSTALLED_APPS = [\n ...\n 'thema',\n ...\n ]\n\n\nMigrate the application\n\n::\n\n $ ./manage.py migrate thema\n\nYou should populate the model with the data in EDItEUR database, for this use the command `populate_thema_categories`\n\n::\n\n $ ./manage.py populate_thema_categories\n\n\nAlso, please make sure the tests passed smoothly\n\n::\n\n $ ./manage.py test thema\n\n\nIf any test fails, then you could end up with missing data in your database or malfunction of the application.\n\n\nHow it works\n------------\n\ndjango-thema offers a model ThemaCategory, each instance is a Thema category.\n\n.. code:: python\n\n ...\n >>> from thema.models import ThemaCategory\n >>> thema_aba = ThemaCategory.objects.get(code='ABA')\n >>> thema_aba.header\n 'Theory of art'\n ...\n\nGetting translation:\n\n.. code:: python\n\n ...\n >>> from django.utils.translation import activate\n >>> activate('es')\n >>> thema_aba.local_header\n 'Teor\u00eda del arte'\n >>> activate('da')\n >>> thema_aba.local_header\n 'Kunstteori'\n ...\n\nNote: the translation will work only if you have enabled `Django's internationalization`_ in your project.\n\n.. _Django's internationalization: https://docs.djangoproject.com/en/1.10/topics/i18n/\n\nGetting the parent category:\n\n.. code:: python\n\n ...\n >>> thema_aba.parent\n \n ...\n\nSupported languages\n-------------------\n\nThe application supports the languages covered by EDItEUR:\n\n- Arabic\n- Danish\n- English\n- Spanish\n- French\n- German\n- Hungarian\n- Italian\n- Japanese\n- Lithuanian\n- Norwegian\n- Polish\n- Portuguese\n- Swedish\n- Turkish\n\nWe don't do any translation, we just use the data provided by EDItEUR, so if you find a missing translation or a translation error, please `contact EDItEUR directly`_.\n\n.. _contact EDItEUR directly: http://www.editeur.org/42/Contact/\n\nAuthors\n-------\n\n- Dannier Trinchet Almaguer\n- Mikkel Munch Mortensen\n- Vladir Antonio Parrado\n- S\u00f8ren Howe Gersager\n- Tobias Ley\n\nMaintenance\n-----------\nTo submit bugs, feature requests, submit patches, please use `the official repository`_.\n\n.. _the official repository: https://saxo.githost.io/publish/django-thema/\n\nCopyright and licensing information\n-----------------------------------\nBSD License 2.0, 3-clause license.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://saxo.githost.io/publish/django-thema", "keywords": "django", "license": "BSD License 2.0", "maintainer": "", "maintainer_email": "", "name": "django-thema", "package_url": "https://pypi.org/project/django-thema/", "platform": "", "project_url": "https://pypi.org/project/django-thema/", "project_urls": { "Homepage": "https://saxo.githost.io/publish/django-thema" }, "release_url": "https://pypi.org/project/django-thema/1.2.8/", "requires_dist": null, "requires_python": "", "summary": "Application that provides EDItEUR Thema categories, and translations for the headers.", "version": "1.2.8" }, "last_serial": 3671688, "releases": { "1.2": [ { "comment_text": "", "digests": { "md5": "72ff1628bc437399f6899dddf7ab04b6", "sha256": "ebf08e305de730b281ce414ae9eb683d8a79367b30a9eb30ec6adc9a3db68c4f" }, "downloads": -1, "filename": "django-thema-1.2.tar.gz", "has_sig": false, "md5_digest": "72ff1628bc437399f6899dddf7ab04b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14640896, "upload_time": "2017-05-09T18:11:56", "url": "https://files.pythonhosted.org/packages/85/ec/badba17bc9e85003076856b76661bec1dd186cd6afae84fa0e3cdcdff200/django-thema-1.2.tar.gz" } ], "1.2.8": [ { "comment_text": "", "digests": { "md5": "69090f8a7e261eb0335d15b244e03593", "sha256": "8618b80f84b8a538255b9bb907810f81a85c2c43eb7d47c723c06b49ae5a4b59" }, "downloads": -1, "filename": "django-thema-1.2.8.tar.gz", "has_sig": false, "md5_digest": "69090f8a7e261eb0335d15b244e03593", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20765813, "upload_time": "2018-03-15T08:42:35", "url": "https://files.pythonhosted.org/packages/0a/f5/9b11dcac804ce2ad62a59057b8cba06d68a5b9da14a55791f79f84ba933c/django-thema-1.2.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "69090f8a7e261eb0335d15b244e03593", "sha256": "8618b80f84b8a538255b9bb907810f81a85c2c43eb7d47c723c06b49ae5a4b59" }, "downloads": -1, "filename": "django-thema-1.2.8.tar.gz", "has_sig": false, "md5_digest": "69090f8a7e261eb0335d15b244e03593", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20765813, "upload_time": "2018-03-15T08:42:35", "url": "https://files.pythonhosted.org/packages/0a/f5/9b11dcac804ce2ad62a59057b8cba06d68a5b9da14a55791f79f84ba933c/django-thema-1.2.8.tar.gz" } ] }