{ "info": { "author": "Matthew Schinckel", "author_email": "matt@schinckel.net", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "django-menus\n============\n\ndjango-menus is an app that provides some useful template helpers for\nrendering and handling menus within django projects.\n\nTo use in in your django project, it needs to be installed:\n\n::\n\n $ pip install django-menus\n\nAnd ``\"menus\"`` needs to be in your ``settings.INSTALLED_APPS``.\n\nmenu\\_item\n----------\n\nAn inclusion template tag that will create a single instance of a menu\nitem, which will only be rendered if the logged in user can access the\nreferenced view. Secondly, the currently active view will have a CSS\nclass of ``active`` in it's menu item.\n\n::\n\n {% load menu_item %}\n\n {% menu_item \"/foo/\" \"Foo\" %}\n {% menu_item \"/bar/\" \"Bar\" %}\n {% menu_item \"http://example.com\" \"Baz\" %}\n\nIf we were viewing ``/foo/``, this renders to:\n\n::\n\n Foo\n Bar\n Baz\n\nUsing the standard template. If you want, you can override the\n``menus/item.html`` template to change the display format.\n\nYou may also pass in a string like ``\"url:foo_name\"`` to the first\nargument. This will do a ``reverse('foo_name')`` call (with no args or\nkwargs) to find a matching url.\n\nIf the menu item title is ``'home'`` (case insensitive), or the url path\nis ``'/'``, then an exact match will be required to mark it as active,\notherwise a prefix match is done. This means that if you had a menu item\nas above, and were viewing the url ``/foo/bar/``, then the first\nmenu\\_item would be marked as active.\n\ntree\\_menu\n----------\n\nAn extension to\n`django-mptt `_, this is a\ntemplate that you can use to have a dynamic tree menu, where selecting\nitems with children expands them, and selecting a leaf node follows the\nlink. To use it, you'll need to have mptt installed into your project as\nwell as this package.\n\nYou use it like:\n\n::\n\n {% load mptt_tags %}\n\n {% block tree_menu %}\n {% full_tree_for_model app_label.ModelName as menu %}\n {% include \"menu/tree-menu.html\" %}\n {% endblock %}\n\nIf you want it to dynamically hide/show nested data, then you will want\nto have:\n\n::\n\n \n \n\nSomewhere in your page.\n\nThis part is currently in use in one small part of a project, and may\nchange if I start to use it more. This README is a little light on\nbecause I haven't touched this code in a long, long time.\n\nChanges\n-------\n\n1.1.2 - Create li_menu_item_disabled template tag, that will show the menu\n item, but have it as disabled if the user may not access it.\n\n1.1.1 - Pass through args and kwargs to the test function if it accepts them.\n\n1.0.9 - Allow for adding classes, and buttons as menu items.\n\n1.0.8 - Allow for absolute urls, ie, pointing to another server. We never\ntry to validate these for permission to view, it is assumed the user can.\n\n1.0.7 - Change how version number is stored. Include a new li-item.html\ntemplate, and refactor how the template is found. Check func\\_code\nexists before accessing it. Refactor some of the handling of paths.\nBetter handle quoting issues.\n\n1.0.6 - Documentation fix only.\n\n1.0.5 - Actually install all of the static media/templates.\n\n1.0.4 - Don't fail on install if README.md missing.\n\n1.0.3 - Repackaged to include README.rst [Thanks to John Bazik\njsb@cs.brown.edu]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/schinckel/django-menus/", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-menus", "package_url": "https://pypi.org/project/django-menus/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-menus/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/schinckel/django-menus/" }, "release_url": "https://pypi.org/project/django-menus/1.1.2/", "requires_dist": null, "requires_python": null, "summary": "Menu helpers for django projects", "version": "1.1.2" }, "last_serial": 790070, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "1877e81762fc23811a0f5c344815269e", "sha256": "6a251b554666263c9116610e3310b157eab6feb1df0129e79f024d98328bd313" }, "downloads": -1, "filename": "django-menus-1.0.tar.gz", "has_sig": false, "md5_digest": "1877e81762fc23811a0f5c344815269e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 681, "upload_time": "2012-01-10T05:29:41", "url": "https://files.pythonhosted.org/packages/92/8e/13bca0e8726de094dd2a1f69b0108a315fd977657b456cbd1b9cd8ff770f/django-menus-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "70aa52815469da8a1c18558bbdae8e81", "sha256": "9c25fcbe24a7ebfd2c4a63fe000b358a2645a0f50b4b0a58c5e1a409be1fc9e7" }, "downloads": -1, "filename": "django-menus-1.0.1.tar.gz", "has_sig": false, "md5_digest": "70aa52815469da8a1c18558bbdae8e81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6172, "upload_time": "2012-01-10T05:37:46", "url": "https://files.pythonhosted.org/packages/5a/47/74bdb8c23f7627f28f721f00a37496d54c3c540a3084987cd540015ec1ee/django-menus-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "f489e9cf0ef80e95d3a957e6d45175e3", "sha256": "1965499db5c9706e87b52b3bb6cf2da8330b2ed347778757fb86344eddc720cb" }, "downloads": -1, "filename": "django-menus-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f489e9cf0ef80e95d3a957e6d45175e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6351, "upload_time": "2012-01-10T05:50:56", "url": "https://files.pythonhosted.org/packages/28/44/eb67f0a9a787ec0ff6d6d0aa59d75a37861b22b45b5728f8486d55614e36/django-menus-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "3b25665228e51d2d8309c292f2b2e474", "sha256": "58d6c0d4f26624dbdb3ed87cd5caa40f26957925b672fe3dc261fe6f64f8d209" }, "downloads": -1, "filename": "django-menus-1.0.3.tar.gz", "has_sig": false, "md5_digest": "3b25665228e51d2d8309c292f2b2e474", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6488, "upload_time": "2012-01-12T01:02:07", "url": "https://files.pythonhosted.org/packages/7e/e1/f0074d5eb805ce5b5e441f6291c65bcdd3ba832a8a9ba7f0d7832b8b8261/django-menus-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "4717ed2b1d61ece7e92aebf2dfa2bcf7", "sha256": "6e3a2fe9d8474f320437858cd87cc4e5e66ef878000a64235259d41ed965707b" }, "downloads": -1, "filename": "django-menus-1.0.4.tar.gz", "has_sig": false, "md5_digest": "4717ed2b1d61ece7e92aebf2dfa2bcf7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6787, "upload_time": "2012-02-22T23:31:57", "url": "https://files.pythonhosted.org/packages/2e/12/6ee10d9d6d42809f7fba481d01096df2fa1d11cba3484ab02caf962c6f1a/django-menus-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "3b00de71f0d85e75058280c776d54bc5", "sha256": "93cc48e22873c224c55e278806066923f1589fc596aaf5b5acc2e50ab494dc50" }, "downloads": -1, "filename": "django-menus-1.0.5.tar.gz", "has_sig": false, "md5_digest": "3b00de71f0d85e75058280c776d54bc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6858, "upload_time": "2012-02-23T03:17:01", "url": "https://files.pythonhosted.org/packages/f5/40/08f68a0338c339d4a57d7dcc19bf80dffa712efb4c52249adcb56fc84412/django-menus-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "a84c302c87dba25e81463925fc30ac86", "sha256": "1183ba0c3f1387b64fa22e0b32bc0edf2dcd91d317cbfd8b5f723a9efb31dfd2" }, "downloads": -1, "filename": "django-menus-1.0.6.tar.gz", "has_sig": false, "md5_digest": "a84c302c87dba25e81463925fc30ac86", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6865, "upload_time": "2012-02-23T03:19:08", "url": "https://files.pythonhosted.org/packages/1b/e0/075b7cf1b8ea11b4c5768f9f573c853527081fdafcc4879b1687f7c24557/django-menus-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "04d56e9d1bd3515a80c708e85a478b64", "sha256": "b464cd9897de5e5f7cc3c9048e9de10778689d0511ed518093ec215cdcb3ee75" }, "downloads": -1, "filename": "django-menus-1.0.7.tar.gz", "has_sig": false, "md5_digest": "04d56e9d1bd3515a80c708e85a478b64", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7347, "upload_time": "2012-05-10T07:58:22", "url": "https://files.pythonhosted.org/packages/08/8e/702cf807ea0f5d30f088419f9d01f17b5f5cc741bbbc2cde72693ee559d7/django-menus-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "97ca2a52ea5041623cd55338b150ad63", "sha256": "32fc1da3de8438bfafc35798513bdefa1b8d5550229409d8a805ebb70f38018e" }, "downloads": -1, "filename": "django-menus-1.0.8.tar.gz", "has_sig": false, "md5_digest": "97ca2a52ea5041623cd55338b150ad63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7068, "upload_time": "2012-08-15T06:16:16", "url": "https://files.pythonhosted.org/packages/f5/3a/11c06c94d8d3c892c02f84dec4f897770734d80509d629f5bc3200c01385/django-menus-1.0.8.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "95f05992c17a5d7a8384464113637961", "sha256": "a19913b3bc5ec7f8c7f3297a149e40703ebb8219cb3dc893ea9b1fcb9290ce92" }, "downloads": -1, "filename": "django-menus-1.0.9.tar.gz", "has_sig": false, "md5_digest": "95f05992c17a5d7a8384464113637961", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7437, "upload_time": "2013-01-03T23:53:17", "url": "https://files.pythonhosted.org/packages/4c/87/3d632a0f585ce796f2aeeade7626201ca228815c53f18a8db5a5a743ad15/django-menus-1.0.9.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "2ef0970d4468ff1618b9a980dd5f73fb", "sha256": "7b4a4adcea4117ee890d877ba4b3baaeb76f0555bd23719a583c8b2282d641a4" }, "downloads": -1, "filename": "django-menus-1.1.0.tar.gz", "has_sig": false, "md5_digest": "2ef0970d4468ff1618b9a980dd5f73fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7521, "upload_time": "2013-03-12T05:59:01", "url": "https://files.pythonhosted.org/packages/0d/ac/1b99562cf73d0eef6f20c67f450fc654cde0999fda5cee33f4b2adbdd191/django-menus-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "1ce4a30bb86e4f61930b415cf0256449", "sha256": "93ca3a90e751f41bf90537f5a09eeec89e18da82055b14543c57d2379ee7c1ad" }, "downloads": -1, "filename": "django-menus-1.1.1.tar.gz", "has_sig": false, "md5_digest": "1ce4a30bb86e4f61930b415cf0256449", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7640, "upload_time": "2013-03-26T05:24:49", "url": "https://files.pythonhosted.org/packages/0f/54/5f5087b9e07da9f62469c370c312dc102af1c2419d99e2dfa1f685e641c8/django-menus-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "ceaa3eb02216886b23fd14a38dd493e5", "sha256": "a00b2375b0696b1f7ab575e9f54c28c7a9b0eb7527f17771fe36c1e9ff09bb4e" }, "downloads": -1, "filename": "django-menus-1.1.2.tar.gz", "has_sig": false, "md5_digest": "ceaa3eb02216886b23fd14a38dd493e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7820, "upload_time": "2013-06-17T05:03:11", "url": "https://files.pythonhosted.org/packages/22/1f/f80a5d7beaf0e8e07bc62f6cfba3bcbe428fea59fcb39f4b4a2e2a5cf531/django-menus-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ceaa3eb02216886b23fd14a38dd493e5", "sha256": "a00b2375b0696b1f7ab575e9f54c28c7a9b0eb7527f17771fe36c1e9ff09bb4e" }, "downloads": -1, "filename": "django-menus-1.1.2.tar.gz", "has_sig": false, "md5_digest": "ceaa3eb02216886b23fd14a38dd493e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7820, "upload_time": "2013-06-17T05:03:11", "url": "https://files.pythonhosted.org/packages/22/1f/f80a5d7beaf0e8e07bc62f6cfba3bcbe428fea59fcb39f4b4a2e2a5cf531/django-menus-1.1.2.tar.gz" } ] }