{ "info": { "author": "Michael Davis", "author_email": "m.r.davis@cranfield.ac.uk", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python" ], "description": "Introduction\n============\n\ncollective.wfform gives a developer the ability to present a z3c.form \nduring a workflow transition.\n\nTo implement this for a transition in a particular workflow, \nchange the transition url from:\n\n%(content_url)s/content_status_modify?workflow_action=submit\n\nto:\n\n%(content_url)s/workflow_transition_form?workflow_action=submit\n\nThis will give you a jQuery popup form with a comments field. \nTo add your own fields, add a method to your content type which \nreturns a z3c schema based on the transition.\n\n security.declareProtected(permissions.ModifyPortalContent, 'getSchemaForTransition')\n def getSchemaForTransition(self, transition):\n \"\"\"Return a fieldset depending on the transition\"\"\"\n if transition == 'my_transition':\n return IMyTransitionForm\n\nIMyTransitionForm should be a standard interface class with a zope3 schema.\n\nTo process the data from the form, add another method onto your class to manage this.\n\n security.declareProtected(permissions.ModifyPortalContent, 'processTransitionForm')\n def processTransitionForm(self, data):\n \"\"\"Return a fieldset depending on the transition\"\"\"\n if data.has_key('my_field'):\n self.setMyField(data['my_field'])\n\n\ncollective.wfform Installation\n------------------------------\n\nTo install collective.wfform into the global Python environment (or a workingenv),\nusing a traditional Zope 2 instance, you can do this:\n\n* When you're reading this you have probably already run \n ``easy_install collective.wfform``. Find out how to install setuptools\n (and EasyInstall) here:\n http://peak.telecommunity.com/DevCenter/EasyInstall\n\n* If you are using Zope 2.9 (not 2.10), get `pythonproducts`_ and install it \n via::\n\n python setup.py install --home /path/to/instance\n\ninto your Zope instance.\n\n* Create a file called ``collective.wfform-configure.zcml`` in the\n ``/path/to/instance/etc/package-includes`` directory. The file\n should only contain this::\n\n \n\n.. _pythonproducts: http://plone.org/products/pythonproducts\n\n\nAlternatively, if you are using zc.buildout and the plone.recipe.zope2instance\nrecipe to manage your project, you can do this:\n\n* Add ``collective.wfform`` to the list of eggs to install, e.g.:\n\n [buildout]\n ...\n eggs =\n ...\n collective.wfform\n \n* Tell the plone.recipe.zope2instance recipe to install a ZCML slug:\n\n [instance]\n recipe = plone.recipe.zope2instance\n ...\n zcml =\n collective.wfform\n \n* Re-run buildout, e.g. with:\n\n $ ./bin/buildout\n \nYou can skip the ZCML slug if you are going to explicitly include the package\nfrom another package's configure.zcml file.\n\nChangelog\n=========\n\n1.0dev (unreleased)\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": "", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "collective.wfform", "package_url": "https://pypi.org/project/collective.wfform/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.wfform/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://svn.plone.org/svn/collective/" }, "release_url": "https://pypi.org/project/collective.wfform/1.0-a1/", "requires_dist": null, "requires_python": null, "summary": "UNKNOWN", "version": "1.0-a1" }, "last_serial": 738582, "releases": { "1.0-a1": [ { "comment_text": "", "digests": { "md5": "d1019c9660d796c297581e730c7e51da", "sha256": "e9d0615e6c23be301bddafc88d430c06a573317e9481f9698992b1207a76b7bd" }, "downloads": -1, "filename": "collective.wfform-1.0-a1.zip", "has_sig": false, "md5_digest": "d1019c9660d796c297581e730c7e51da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24170, "upload_time": "2012-05-01T00:03:02", "url": "https://files.pythonhosted.org/packages/ec/27/30ad00f30a5c724f0778e5562b386bb7c0d10855cb25269924985c13fe88/collective.wfform-1.0-a1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d1019c9660d796c297581e730c7e51da", "sha256": "e9d0615e6c23be301bddafc88d430c06a573317e9481f9698992b1207a76b7bd" }, "downloads": -1, "filename": "collective.wfform-1.0-a1.zip", "has_sig": false, "md5_digest": "d1019c9660d796c297581e730c7e51da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24170, "upload_time": "2012-05-01T00:03:02", "url": "https://files.pythonhosted.org/packages/ec/27/30ad00f30a5c724f0778e5562b386bb7c0d10855cb25269924985c13fe88/collective.wfform-1.0-a1.zip" } ] }