{ "info": { "author": "Guillaume Pousseo", "author_email": "guillaumepousseo@revsquare.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": ".. image:: https://badge.fury.io/py/mojo-navigation.svg\n :target: http://badge.fury.io/py/mojo-navigation\n :alt: PyPI version\n :height: 18px\n\n.. image:: https://travis-ci.org/django-mojo/mojo-navigation.svg?branch=master\n :target: https://travis-ci.org/django-mojo/mojo-navigation\n :alt: build-status\n :height: 18px\n\n.. image:: https://coveralls.io/repos/django-mojo/mojo-navigation/badge.svg?branch=master&service=github'\n :target: https://coveralls.io/r/django-mojo/mojo-navigation\n :alt: coverage\n :height: 18px\n\n\n###############\nMOJO NAVIGATION\n###############\n\nThis Django app manages navigations trees with simple features. It is highly inspired by django-treenav and django-sitetree. It offers a lighter version to allow easy customisation.\n\nThe trees structure is using mptt. Each item offer various options to generate the url, restrict access given user status and permissions, classes and behaviours.\n\n\nChangelist view:\n\n.. image:: https://box.everhelper.me/attachment/342272/1VqyhRX5tQTX7AFhZZpY6HdPzrPh3QmW/341506-7MaquApmPbU02vSZ/screen.png\n :height: 400px\n :width: 800 px\n\nAdd view:\n\n.. image:: https://box.everhelper.me/attachment/342274/1VqyhRX5tQTX7AFhZZpY6HdPzrPh3QmW/341506-JJ7ps4S6TNfi1DI6/screen.png\n :height: 400px\n :width: 800 px\n\nInstall\n=======\n\nIt is strongly recommanded to install this theme from GIT with PIP onto you project virtualenv.\n\nFrom PyPi\n\n.. code-block:: shell-session\n\n pip install mojo-navigation\n\nFrom Github\n\n.. code-block:: shell-session\n\n https://github.com/django-mojo/mojo-navigation#egg=mojo-navigation\n\nsetup\n=====\n\nThis application works with django mptt module in order to display the trees. It is highly recommended to add it in the INSTALLED_APPS.\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'django_mptt'\n ...\n )\n\nIf you want to use the default model and admin, also install the module itself.\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'mojo.navigation'\n ...\n )\n\nThen install your model with\n\n.. code-block:: shell\n\n python manage.py syncdb\n\nIn case you are using South, you can alternatively do:\n\n.. code-block:: shell\n\n python manage.py migrate mojo.navigation\n\nManagers\n========\n\nThere are 2 main managers to help sortting and filtering the menu items.\n\nTree\n----\n\nYou can get all items of a specific tree by passing its slug in the *for_tree* manager, for exemple:\n\n.. code-block:: python\n\n tree_items = Item.objects.for_slug('slug_exemple')\n\nUser\n----\n\nAs we are using permissions for items. You can filter items for a specific user to retrieve all the items he has access to by passing its object in the *for_user* manager, for exemple:\n\n.. code-block:: python\n\n tree_items = Item.objects.for_user(request.user)\n\n\nUtils\n=====\n\n\nlevel\n-----\n\nYou can limit the number of tree levels of trees. For exemple, some menus can be one or two levels only. In such case its useless to allow the the user to add more. \n\nIn order to limit the number of levels you need to create a custom admin class inheriting from *mojo.navigation.admin.ItemAdmin* and add a *level_limit* attribute with the desired value. \n\nFor exemple, this will limit the tree to two levels:\n\n.. code-block:: python\n\n from mojo.navigation.admin import ItemAdmin\n\n class CustomItemAdmin(ItemAdmin):\n level_limit = 1\n\n\n\n************\nContribution\n************\n\n\nPlease feel free to contribute. Any help and advices are much appreciated.\n\n\n*****\nLINKS\n*****\n\nGithub:\n https://github.com/django-mojo/mojo-navigation\n\nPypi:\n https://pypi.python.org/pypi/mojo-navigation", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.revsquare.com", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "mojo-navigation", "package_url": "https://pypi.org/project/mojo-navigation/", "platform": "OS Independent", "project_url": "https://pypi.org/project/mojo-navigation/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.revsquare.com" }, "release_url": "https://pypi.org/project/mojo-navigation/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "Django app managing simple navigation.", "version": "0.0.3" }, "last_serial": 1846169, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f2030d902980dccb747fcd357f4830dd", "sha256": "2ed7b4013db2ca3a229f200f3e6d70118cf1089c5f8b927dcb76c7a1b8a623f1" }, "downloads": -1, "filename": "mojo-navigation-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f2030d902980dccb747fcd357f4830dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9345, "upload_time": "2015-12-03T15:05:33", "url": "https://files.pythonhosted.org/packages/f6/5c/5f870eaad015c1cf5331948317ade8149ce399c1bc72220153feb2cb9679/mojo-navigation-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4157c32ec52ce7ecd792d04de4398423", "sha256": "6ba3a586fc5c6ad785b49d4c377fc31328a21d341bddf2a6dbf949c29a9b2fdf" }, "downloads": -1, "filename": "mojo-navigation-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4157c32ec52ce7ecd792d04de4398423", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9587, "upload_time": "2015-12-04T08:21:44", "url": "https://files.pythonhosted.org/packages/f9/7f/fee522e3a9920e03834ad40502944ec1d1c7323e65fcd68ae945c5381d54/mojo-navigation-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "3f59dab8d50fff044aa0ab89565dca14", "sha256": "d27ce64447d3da0ed467b3e98e39761c2e2de3697db9164143217666449a2a33" }, "downloads": -1, "filename": "mojo-navigation-0.0.3.tar.gz", "has_sig": false, "md5_digest": "3f59dab8d50fff044aa0ab89565dca14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9598, "upload_time": "2015-12-04T08:40:23", "url": "https://files.pythonhosted.org/packages/9b/c1/4ddefb731454ed8567f0766ffeceed5e805f1ad85f775144eff446e4b99a/mojo-navigation-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3f59dab8d50fff044aa0ab89565dca14", "sha256": "d27ce64447d3da0ed467b3e98e39761c2e2de3697db9164143217666449a2a33" }, "downloads": -1, "filename": "mojo-navigation-0.0.3.tar.gz", "has_sig": false, "md5_digest": "3f59dab8d50fff044aa0ab89565dca14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9598, "upload_time": "2015-12-04T08:40:23", "url": "https://files.pythonhosted.org/packages/9b/c1/4ddefb731454ed8567f0766ffeceed5e805f1ad85f775144eff446e4b99a/mojo-navigation-0.0.3.tar.gz" } ] }