{ "info": { "author": "Marco Fucci", "author_email": "info@marcofucci.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "=============================\n feincms-bounds\n =============================\n \n .. image:: https://travis-ci.org/marcofucci/feincms-bounds.png?branch=master\n :target: https://travis-ci.org/marcofucci/feincms-bounds\n \n \n FeinCMS add-on which adds extra admin Page validation:\n \n - Unique templates: templates that can be used only once (e.g. home page)\n - First-Level-Only templates: templates that can be used in the first level - of navigation only (e.g. home page)\n - No-Children templates: templates that can't have subpages (e.g. home page)\n - Level of Navigation: max levels of navigation allowed\n \n \n Quickstart\n ----------\n \n Install feincms-bounds::\n \n pip install feincms-bounds\n \n \n Add feincms-bounds to your ``settings.INSTALLED_APPS``::\n \n \tINSTALLED_APPS = (\n \t\t...\n \t 'feincms_bounds',\n \t ...\n \t)\n \n When registering a FeinCMS template, use ``feincms_bounds.models.Template``\n and specify whether it's unique, first-level only or can't have subpages.\n \n In ``models.py``::\n \n \tfrom feincms.module.page.models import Page\n \n \tfrom feincms_bounds.models import Template\n \n \n \tPage.register_templates(\n \t Template(\n \t key='internalpage',\n \t title='Internal Page',\n \t path='pages/internal.html',\n \t regions=(\n \t ('main', 'Main Content'),\n \t ('sidebar', 'Sidebar'),\n \t )\n \t ), Template(\n \t key='homepage',\n \t title='Home Page',\n \t path='pages/home_page.html',\n \t regions=(\n \t ('main', 'Main Content'),\n \t ),\n \n \t # new kwargs introduced by feincms-bounds\n \t unique=True,\n \t first_level_only=True,\n \t no_children=True\n \t )\n \t)\n \n \n Finally, use ``feincms_bounds.admin.PageAdmin`` when registering the Page\n (you need to unregister the feinCMS default one first).\n \n In ``admin.py``::\n \n \tfrom django.contrib import admin\n \n \tfrom feincms.module.page.models import Page\n \n \tfrom feincms_bounds.admin import PageAdmin\n \n \n \t# We have to unregister it, and then reregister\n \tadmin.site.unregister(Page)\n \tadmin.site.register(Page, PageAdmin)\n \n \n Optionally, you can specify a max level of navigation using ``settings.FEINCMS_NAVIGATION_LEVEL``.\n \n Done! You can now take advantage of the extra admin Page validation provided by\n feincms-bounds.\n \n \n Example\n -------\n \n * Sample project: https://github.com/marcofucci/feincms_extended\n * Original Blog: http://www.marcofucci.com/tumblelog/19/may/2010/customizing-feincms-part-1/\n \n \n \n \n History\n -------\n \n 0.1.0 (2013-10-07)\n ++++++++++++++++++\n \n * Version 0.1.0", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/marcofucci/feincms-bounds", "keywords": "feincms", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "feincms-bounds", "package_url": "https://pypi.org/project/feincms-bounds/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/feincms-bounds/", "project_urls": { "Homepage": "https://github.com/marcofucci/feincms-bounds" }, "release_url": "https://pypi.org/project/feincms-bounds/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "FeinCMS add-on which adds extra admin Page validation", "version": "0.1.0" }, "last_serial": 883270, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "faafc90152e6b53eac44dc3972787a93", "sha256": "151280a64d1146f50c1e991c1199636af07838576e010bb87ceceaaf4bc3ba13" }, "downloads": -1, "filename": "feincms-bounds-0.1.0.tar.gz", "has_sig": false, "md5_digest": "faafc90152e6b53eac44dc3972787a93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7705, "upload_time": "2013-10-07T16:14:28", "url": "https://files.pythonhosted.org/packages/ae/49/196262d9be8361fd5c5aa470ac803190582da1674409c71e5d80d4a3a889/feincms-bounds-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "faafc90152e6b53eac44dc3972787a93", "sha256": "151280a64d1146f50c1e991c1199636af07838576e010bb87ceceaaf4bc3ba13" }, "downloads": -1, "filename": "feincms-bounds-0.1.0.tar.gz", "has_sig": false, "md5_digest": "faafc90152e6b53eac44dc3972787a93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7705, "upload_time": "2013-10-07T16:14:28", "url": "https://files.pythonhosted.org/packages/ae/49/196262d9be8361fd5c5aa470ac803190582da1674409c71e5d80d4a3a889/feincms-bounds-0.1.0.tar.gz" } ] }