{ "info": { "author": "Praekelt Foundation", "author_email": "dev@praekelt.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Jmbo Generic\n============\n\nJmbo generic behavior/templates app.\n\n.. contents:: Contents\n :depth: 5\n\nInstallation\n------------\n\n#. Install or add ``jmbo-generic`` to your Python path.\n\n#. Install ``django-preferences`` as described `here `_.\n\n#. Add ``generic`` to your ``INSTALLED_APPS`` setting.\n\n#. Add ``generic`` URL include to your project's ``urls.py`` file::\n\n (r'^', include('generic.urls')),\n\n#. ``jmbo-generic`` includes a number of template sets allowing you to deliver lightweight(``zero``), mobile(``basic``) or desktop/touch(``full``) specific output. Specifying which template set to use is simply a matter of specifying a ``TEMPLATE_TYPE`` setting, and adding ``generic.loaders.TypeLoader`` to the ``TEMPLATE_LOADERS`` setting. For example to use the ``basic`` template set update your settings as follows::\n \n TEMPLATE_TYPE = \"basic\"\n\n TEMPLATE_LOADERS = (\n 'generic.loaders.TypeLoader',\n ...other template loader classes...\n )\n\n This causes templates to be loaded from a path prefixed with whatever value was specified as the ``TEMPLATE_TYPE`` setting. For example in this case a template specified as ``generic/home.html`` would actually be loaded from ``basic/generic/home.html``.\n\n .. note:: \n \n You have to add ``TypeLoader`` as the first loader for it to resolve templates correctly.\n\n#. ``jmbo-generic`` includes static media resources which you need to configure as described in `Django`s managing static files documentation `_.\n\nModels\n------\n\n.. _generic.models.Link:\n\ngeneric.models.Link\n*******************\n\nUsed in conjunction with `{% menu %}`_ and `{% navbar %}`_ to provide an admin configurable navbar and menu.\n\nFields\n~~~~~~\n \n.. _generic.models.Link.title:\n \ntitle\n+++++\nA short descriptive title for link.\n\n.. _generic.models.Link.view_name:\n \nview_name\n+++++++++\nView name to which this link will redirect. This takes precedence over `category`_ and `url`_ fields.\n \n \n.. _generic.models.Link.category:\n \ncategory\n++++++++\nCategory to which this link will redirect. This takes precedence over `url`_ field.\n\n.. _generic.models.Link.url:\n \nurl\n+++\nURL to which this menu link will redirect. Only used if `view_name`_ is not specified.\n\n.. _generic.models.Link.methods:\n\nMethods & Properties\n~~~~~~~~~~~~~~~~~~~~\n\n.. _generic.models.Link.get_absolute_url:\n \nget_absolute_url(self)\n++++++++++++++++++++++\nReturns URL to which link should redirect based on a `reversed `_ view name as specified in `view_name`_ field or category view for category specified in `category`_ field or otherwise an explicitly provided URL as specified in `url`_ field.\n\n.. _generic.models.Link.is_active:\n\nis_active(self, request)\n++++++++++++++++++++++++\nDetermines whether or not the link can be consider active based on the request path. ``True`` if the request path can be resolved to the same view name as is contained in `view_name`_ field. Otherwise ``True`` if request path starts with URL as resolved for category contained in `category`_ field. Otherwise ``True`` if request path starts with URL as contained in `url`_ field.\n\n.. _generic.models.LinkPosition:\n\ngeneric.models.LinkPosition\n***************************\n\nUsed to determine position/order of elements in `{% menu %}`_ and `{% navbar %}`_ inclusion tags.\n\n.. _generic.models.LinkPosition.Fields:\n\nFields\n~~~~~~\n\n.. _generic.models.LinkPosition.position:\n \nposition\n++++++++\nSpecifies position/order of link in `{% menu %}`_ and `{% navbar %}`_ inclusion tags.\n\n.. _generic_inclusion_tags:\n\nInclusion Tags\n--------------\n\ngeneric.templatetags.generic_inclusion_tags\n*******************************************\n\nProvides generic inclusion tags like `{% menu %}`_ and `{% navbar %}`_. Load these tags by including ``{% load generic_inclusion_tags %}`` in your templates.\n\n.. _generic_inclusion_tags.menu:\n\n{% menu %}\n~~~~~~~~~~\n\nRenders a navigation menu normally used as part of footer navigation element. Utilizes `generic.models.Link`_ objects configurable via `Menu Preferences in admin `_ to provide a flexible menu navigation system. Elements are ordered using `position`_ values as specified on `generic.models.LinkPosition`_ objects via admin. You can customize the resulting HTML by overriding the ``generic/inclusion_tags/menu.html`` template file. The template receives an ``object_list`` context variable, which is a collection of ordered `generic.models.Link`_ elements to display.\n\n.. _generic_inclusion_tags.navbar:\n\n{% navbar %}\n~~~~~~~~~~~~\n\nRenders a navigation bar normally used as part of main navigation element positioned at top of pages. Utilizes `generic.models.Link`_ objects configurable via `Navbar Preferences in admin `_ to provide a flexible navbar system. Elements are ordered using `position`_ values as specified on `generic.models.LinkPosition`_ objects via admin. You can customize the resulting HTML by overriding the ``generic/inclusion_tags/navbar.html`` template file. The template receives ``object_list`` and ``active_link`` context variables. ``object_list`` is a collection of ordered `generic.models.Link`_ elements to display and ``active_link`` is an `generic.models.Link`_ object determined to be active for the requested path.\n\nAuthors\n=======\n\nPraekelt Foundation\n-------------------\n\n* Shaun Sephton\n* Hedley Roos\n\nChangelog\n=========\n\n0.0.2 (2011-09-27)\n------------------\n#. Detail view.\n#. Element preferences.\n\n0.0.1 (2011-09-21)\n------------------\n#. Initial release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/praekelt/jmbo-generic", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "jmbo-generic", "package_url": "https://pypi.org/project/jmbo-generic/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/jmbo-generic/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/praekelt/jmbo-generic" }, "release_url": "https://pypi.org/project/jmbo-generic/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Jmbo generic behaviour/templates app.", "version": "0.0.2" }, "last_serial": 4624032, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0794a5403c10d924e2c4d7a2702c2cf5", "sha256": "e36a41b3906dec88faf7eab5f7496e13b79df17d4167c8306b3a44f3dee58ea7" }, "downloads": -1, "filename": "jmbo_generic-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "0794a5403c10d924e2c4d7a2702c2cf5", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 254723, "upload_time": "2011-09-22T09:30:57", "url": "https://files.pythonhosted.org/packages/82/6a/9ef512604883b1c79427a736922781e05be0772b91596d1c28e7b1c3a1ef/jmbo_generic-0.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "6549c33bc66cb5e0e75f9889b8c6b9b5", "sha256": "74d084208733072e6e03d4c180036eb1a81674a8b0410af1d0d3f7c8fc55608a" }, "downloads": -1, "filename": "jmbo-generic-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6549c33bc66cb5e0e75f9889b8c6b9b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 241995, "upload_time": "2011-09-22T09:31:03", "url": "https://files.pythonhosted.org/packages/99/16/8a0d9e7658b93016bc7152fa79d2b5470a716088fffb6a89c716de13da59/jmbo-generic-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "ea7f5f9380ac4537ee742560ad927624", "sha256": "8e0bdf8aebae019ccd0cedd7bec0685ad5246b508c0dfe52ebf04fe386b3caa9" }, "downloads": -1, "filename": "jmbo_generic-0.0.2-py2.6.egg", "has_sig": false, "md5_digest": "ea7f5f9380ac4537ee742560ad927624", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 279231, "upload_time": "2011-09-27T15:42:30", "url": "https://files.pythonhosted.org/packages/b1/85/be0f85c2cb02fb2c5217272469e249ec0c4c5a316fe93609184dc08e6713/jmbo_generic-0.0.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "9fc498c2e64faf41b6b61a3e6812eeb5", "sha256": "42e8f8b0399b3a41ed418a4a6b57a7a3dcaa7d128790a8e9889e495ef6640f03" }, "downloads": -1, "filename": "jmbo_generic-0.0.2-py2.7.egg", "has_sig": false, "md5_digest": "9fc498c2e64faf41b6b61a3e6812eeb5", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 279129, "upload_time": "2011-09-27T15:42:10", "url": "https://files.pythonhosted.org/packages/5e/84/c0e7cd29947a7d55a193cc555103e89587a3ab5cc671ff120d7e29bb34ed/jmbo_generic-0.0.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "710ea6da412948760d6a898882894fdd", "sha256": "48a3dc0ed2b0fd3023097216cfb87a47c5d1f4b12ef1fdf8d07bf118929c52ea" }, "downloads": -1, "filename": "jmbo-generic-0.0.2.tar.gz", "has_sig": false, "md5_digest": "710ea6da412948760d6a898882894fdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 250037, "upload_time": "2011-09-27T15:42:16", "url": "https://files.pythonhosted.org/packages/a1/ae/0c96b72bb1f026cb76e252e299a7fb06393659a4a808f49c7b21d0a7e9da/jmbo-generic-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ea7f5f9380ac4537ee742560ad927624", "sha256": "8e0bdf8aebae019ccd0cedd7bec0685ad5246b508c0dfe52ebf04fe386b3caa9" }, "downloads": -1, "filename": "jmbo_generic-0.0.2-py2.6.egg", "has_sig": false, "md5_digest": "ea7f5f9380ac4537ee742560ad927624", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 279231, "upload_time": "2011-09-27T15:42:30", "url": "https://files.pythonhosted.org/packages/b1/85/be0f85c2cb02fb2c5217272469e249ec0c4c5a316fe93609184dc08e6713/jmbo_generic-0.0.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "9fc498c2e64faf41b6b61a3e6812eeb5", "sha256": "42e8f8b0399b3a41ed418a4a6b57a7a3dcaa7d128790a8e9889e495ef6640f03" }, "downloads": -1, "filename": "jmbo_generic-0.0.2-py2.7.egg", "has_sig": false, "md5_digest": "9fc498c2e64faf41b6b61a3e6812eeb5", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 279129, "upload_time": "2011-09-27T15:42:10", "url": "https://files.pythonhosted.org/packages/5e/84/c0e7cd29947a7d55a193cc555103e89587a3ab5cc671ff120d7e29bb34ed/jmbo_generic-0.0.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "710ea6da412948760d6a898882894fdd", "sha256": "48a3dc0ed2b0fd3023097216cfb87a47c5d1f4b12ef1fdf8d07bf118929c52ea" }, "downloads": -1, "filename": "jmbo-generic-0.0.2.tar.gz", "has_sig": false, "md5_digest": "710ea6da412948760d6a898882894fdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 250037, "upload_time": "2011-09-27T15:42:16", "url": "https://files.pythonhosted.org/packages/a1/ae/0c96b72bb1f026cb76e252e299a7fb06393659a4a808f49c7b21d0a7e9da/jmbo-generic-0.0.2.tar.gz" } ] }