{ "info": { "author": "Nathan Van Gheem", "author_email": "vangheem@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python" ], "description": "Introduction\n============\nThis package allows you to define a set of views, schemas, and templates that \ncan be used as templates for a view on a Plone site.\n\nSo basically, it just allows an easy mechanism to provide extra, reusable \ntemplates that have settings attached to them. Each template that you fill\nin the settings for, can then be referenced from another template view\non the site elsewhere.\n\n\nBasic example\n-------------\n\nDefine your settings::\n\n>>> class ICustomSettings(Interface):\n>>> setting_one = schema.TextLine(title=u'Setting One')\n>>> setting_two = schema.Text(title=u'Setting Two', default=u'')\n\nDefine a template view utility::\n\n>>> from wildcard.templatedviews.browser import BaseViewUtility\n>>> from plone.app.form.widgets.wysiwygwidget import WYSIWYGWidget\n>>> class CustomTemplateViewUtility(BaseViewUtility):\n>>> settings = ICustomSettings\n>>> _for = None\n>>> title = u'Custom Template'\n>>> description = u'a custom template settings.'\n>>> custom_widgets = (\n>>> ('setting_one', WYSIWYGWidget),\n>>> )\n\n\nAnd wire it up with zcml::\n\n>>> >> for=\"*\"\n>>> name=\"custom-template\"\n>>> class=\"wildcard.templatedviews.browser.BaseView\"\n>>> template=\"templates/custom-template.pt\"\n>>> permission=\"zope2.View\"\n>>> />\n>>> \n>>> >> for=\"*\"\n>>> provides=\".ICustomSettings\"\n>>> factory=\"wildcard.templatedviews.settings.TemplateViewSettings\"\n>>> />\n\nThen in your `custom-template.pt`, you can use the settings like this::\n\n>>> >> xmlns:tal=\"http://xml.zope.org/namespaces/tal\"\n>>> xmlns:metal=\"http://xml.zope.org/namespaces/metal\"\n>>> xmlns:i18n=\"http://xml.zope.org/namespaces/i18n\"\n>>> lang=\"en\"\n>>> metal:use-macro=\"here/main_template/macros/master\"\n>>> i18n:domain=\"plone\">\n>>> \n>>>\n>>> \n>>> \n>>>

\n>>>

\n>>> \n>>> \n>>> \n>>> \n\nYou'll also need to add the 'templated-view' view to the list of available\nviews on the content type you'd like to use this for.\n\nNow to use it after you've installed it, select \"templated-view\" from the\ndisplay drop down, then use the \"Select Template\" and \"Template Settings\"\nto customize your templated view.\n\nCheck out the source for more examples on how to use it.\n\n\n\nChangelog\n=========\n\n1.0b4 (2012-08-27)\n------------------\n\n- fix use of transform\n\n\n1.0b3 (2012-08-09)\n------------------\n\n- plone 4.1 compat\n\n- transform uids\n\n\n1.0b2 (2011-10-25)\n------------------\n\n- if traversing to object doesn't work, try\n looking it up in the redirect storage\n\n1.0b1 (2011-04-13)\n------------------\n\n- provide save events for settings and selected template\n\n- allow ordering of fields\n\n\n1.0a2 (2010-04-10)\n------------------\n\n- fix issue when no utilty can be found\n\n- add more utility methods to view\n\n\n1.0a1 (2011-03-20)\n------------------\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://svn.plone.org/svn/collective/", "keywords": "plone template views settings", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "wildcard.templatedviews", "package_url": "https://pypi.org/project/wildcard.templatedviews/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wildcard.templatedviews/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://svn.plone.org/svn/collective/" }, "release_url": "https://pypi.org/project/wildcard.templatedviews/1.0b4/", "requires_dist": null, "requires_python": null, "summary": "Provide templated views with schema settings associated with them.", "version": "1.0b4" }, "last_serial": 2803691, "releases": { "1.0a1": [ { "comment_text": "", "digests": { "md5": "44a65069c5189f23d35a05b80f15d081", "sha256": "08939a2cc07f156e657325b6bab56d15350342c81f38ec8afef82eb53a234459" }, "downloads": -1, "filename": "wildcard.templatedviews-1.0a1.zip", "has_sig": false, "md5_digest": "44a65069c5189f23d35a05b80f15d081", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25224, "upload_time": "2011-03-20T23:58:21", "url": "https://files.pythonhosted.org/packages/e1/a0/b88b69bb854c592ca8a63a120fa5d89efebe62a06348e48f8a945489bc4e/wildcard.templatedviews-1.0a1.zip" } ], "1.0a2": [ { "comment_text": "", "digests": { "md5": "fa66498a972b815e3f1eb0c5da326786", "sha256": "2ead4adffdbba9f6f65d8362008f249c151560d92f038bfaad27a34249e85d90" }, "downloads": -1, "filename": "wildcard.templatedviews-1.0a2.zip", "has_sig": false, "md5_digest": "fa66498a972b815e3f1eb0c5da326786", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25931, "upload_time": "2011-04-11T06:58:27", "url": "https://files.pythonhosted.org/packages/a0/fa/6848d9682baf80a774ec43f8f26a64aea529e8e97027ef13547bf9ca108c/wildcard.templatedviews-1.0a2.zip" } ], "1.0b1": [ { "comment_text": "", "digests": { "md5": "edfd5cb056bdfb9b90a45eb0a9e0f160", "sha256": "62578aff84140892defea330079eadae4b3631fedbe0d80d32878be0b0f69a0c" }, "downloads": -1, "filename": "wildcard.templatedviews-1.0b1.zip", "has_sig": false, "md5_digest": "edfd5cb056bdfb9b90a45eb0a9e0f160", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26748, "upload_time": "2011-04-13T21:32:36", "url": "https://files.pythonhosted.org/packages/d1/01/8c8a22b79eb19a2cfcea321094616def4ebfdb5fe4d28c47e71e24243248/wildcard.templatedviews-1.0b1.zip" } ], "1.0b2": [ { "comment_text": "", "digests": { "md5": "8a0afae38189b88b5899d50606e9bd58", "sha256": "182d24ba9d9e5eec0334b23c70d4ce8d408dc079724ec03d909336cd4c662a7e" }, "downloads": -1, "filename": "wildcard.templatedviews-1.0b2.zip", "has_sig": false, "md5_digest": "8a0afae38189b88b5899d50606e9bd58", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 26987, "upload_time": "2011-10-25T16:11:53", "url": "https://files.pythonhosted.org/packages/3b/9f/7bec2ee259b0dc60ce44a8a1dfa50b324c6acae3ee0bfb031a2942ad6de0/wildcard.templatedviews-1.0b2.zip" } ], "1.0b3": [ { "comment_text": "", "digests": { "md5": "5105e313ae442bc6a515ced898ad028a", "sha256": "eb506b1999eb12eedfaaa1f0ad5044236db734f8908dd1449294d4105b3ce578" }, "downloads": -1, "filename": "wildcard.templatedviews-1.0b3.zip", "has_sig": false, "md5_digest": "5105e313ae442bc6a515ced898ad028a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27376, "upload_time": "2012-08-09T15:29:59", "url": "https://files.pythonhosted.org/packages/0f/9d/e6f1ec2648fd337d171aaeda5a700e0b041bd7eb5badacbdad106e55d29f/wildcard.templatedviews-1.0b3.zip" } ], "1.0b4": [ { "comment_text": "", "digests": { "md5": "4f0b7421280a11c2a6edcf86fad34bd8", "sha256": "75856aa828eaf56f340e7f1cafff2119e9315cd56d09a04a2d8f1dadea165b70" }, "downloads": -1, "filename": "wildcard.templatedviews-1.0b4.zip", "has_sig": false, "md5_digest": "4f0b7421280a11c2a6edcf86fad34bd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27458, "upload_time": "2012-08-27T13:26:51", "url": "https://files.pythonhosted.org/packages/21/05/dc3f6ac7292dca96a80b2f0fc5448a2d57e56f5cc3bac858a191553ba60e/wildcard.templatedviews-1.0b4.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4f0b7421280a11c2a6edcf86fad34bd8", "sha256": "75856aa828eaf56f340e7f1cafff2119e9315cd56d09a04a2d8f1dadea165b70" }, "downloads": -1, "filename": "wildcard.templatedviews-1.0b4.zip", "has_sig": false, "md5_digest": "4f0b7421280a11c2a6edcf86fad34bd8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27458, "upload_time": "2012-08-27T13:26:51", "url": "https://files.pythonhosted.org/packages/21/05/dc3f6ac7292dca96a80b2f0fc5448a2d57e56f5cc3bac858a191553ba60e/wildcard.templatedviews-1.0b4.zip" } ] }