{ "info": { "author": "Raptus AG", "author_email": "dev@raptus.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\n============\n\nraptus.contenttemplates allows to provide templates to automate specific\ntasks. Templates are created by registering an adapter implementing the\nITemplate interface for the context the template should be available.\n\nActions\n-------\n\nAll currently available actions are located at raptus.contenttemplates.actions,\nnew actions may be created by implementing the IAction interface.\n\nActionChains\n------------\n\nActionChains are helpful if a list of actions have to be executed in the context\nof a newly created object. Let's say one wants to create a document named test-document,\nmark it private and give read access to the user jsmith and write access to jdoe.\nThe list returned by the template would look like this::\n\n [ActionChain((\n CreateContent('test-document', 'Document', {'title': 'Test Document'}),\n WorkflowTransition('hide'),\n AddLocalRole('jsmith', 'Reader'),\n AddLocalRole('jdoe', 'Editor')\n ))]\n \nActionChains respect the context returned by actions and use it to execute the\npreceding action. Actions which create new content, return the newly created\nobject as context. The ActionChain then uses this context to execute the next\naction.\n\nFieldDataRetriever\n------------------\n\nFieldDataRetrievers allow to use a field of the provided form as an attribute\nfor an action. If one would like to have the aforementioned template use a form\nproviding the title for the document and have the id generated from that field.\nThe template would have to provide the name for the form and the action list \ncould look like this::\n\n [ActionChain((\n CreateContent(FieldDataRetriever('title'), 'Document'),\n WorkflowTransition('hide'),\n AddLocalRole('jsmith', 'Reader'),\n AddLocalRole('jdoe', 'Editor')\n ))]\n\nChangelog\n=========\n\n1.0b3 (2013-12-18)\n------------------\n\n* Changed import zope.app.publisher to zope.browsermenu\n\n1.0b2 (2011-10-18)\n------------------\n\n* Removed PTS utility for Plone >= 4\n\n1.0b1 (2010-10-20)\n------------------\n\n* First public release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Raptus/raptus.contenttemplates", "keywords": "", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "raptus.contenttemplates", "package_url": "https://pypi.org/project/raptus.contenttemplates/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/raptus.contenttemplates/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/Raptus/raptus.contenttemplates" }, "release_url": "https://pypi.org/project/raptus.contenttemplates/1.0b3/", "requires_dist": null, "requires_python": null, "summary": "Provides generic interfaces to create content templates using adapters", "version": "1.0b3" }, "last_serial": 947809, "releases": { "1.0b1": [ { "comment_text": "", "digests": { "md5": "e7f55f51d729b1c2fa5c3eb6a6d6c918", "sha256": "3b305ec0824eb6e2d86f9ef7ba94a197b4177d69237f2b60f261172f5090a730" }, "downloads": -1, "filename": "raptus.contenttemplates-1.0b1.tar.gz", "has_sig": false, "md5_digest": "e7f55f51d729b1c2fa5c3eb6a6d6c918", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9489, "upload_time": "2010-10-20T16:12:19", "url": "https://files.pythonhosted.org/packages/86/5b/aabf6b4bef69d5e42e71f84ad24e036a081b5ba889e4a83a57d468a01917/raptus.contenttemplates-1.0b1.tar.gz" } ], "1.0b2": [ { "comment_text": "", "digests": { "md5": "d5bdcc7b63d96c726bd360d6e540d2ce", "sha256": "a4b5f04141279a8cd69362543a8a85bcf72535562fc531fc64ddf5f018514331" }, "downloads": -1, "filename": "raptus.contenttemplates-1.0b2.tar.gz", "has_sig": false, "md5_digest": "d5bdcc7b63d96c726bd360d6e540d2ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9632, "upload_time": "2011-10-18T11:19:17", "url": "https://files.pythonhosted.org/packages/c1/60/d33bbd1193779c6621949ee265d8d38cbcf51e70659db9879cde87bf846b/raptus.contenttemplates-1.0b2.tar.gz" } ], "1.0b3": [ { "comment_text": "", "digests": { "md5": "83aa53746386a74525ed4ef19ad6eb5e", "sha256": "3cc5d22fd9f01e8295596f70db49e203952d00723d2445776a11c9f463cbc8fa" }, "downloads": -1, "filename": "raptus.contenttemplates-1.0b3.zip", "has_sig": false, "md5_digest": "83aa53746386a74525ed4ef19ad6eb5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20222, "upload_time": "2013-12-18T14:29:16", "url": "https://files.pythonhosted.org/packages/df/bc/947e85425b6d2ab3108e04a12618f461b7ff252873115a98638e2efdc2f8/raptus.contenttemplates-1.0b3.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "83aa53746386a74525ed4ef19ad6eb5e", "sha256": "3cc5d22fd9f01e8295596f70db49e203952d00723d2445776a11c9f463cbc8fa" }, "downloads": -1, "filename": "raptus.contenttemplates-1.0b3.zip", "has_sig": false, "md5_digest": "83aa53746386a74525ed4ef19ad6eb5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20222, "upload_time": "2013-12-18T14:29:16", "url": "https://files.pythonhosted.org/packages/df/bc/947e85425b6d2ab3108e04a12618f461b7ff252873115a98638e2efdc2f8/raptus.contenttemplates-1.0b3.zip" } ] }