{ "info": { "author": "Sylvain Viollon", "author_email": "thefunny@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Zope3", "Intended Audience :: Developers", "Programming Language :: Python", "Programming Language :: Zope", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "====================\nzeam.form.autofields\n====================\n\n``zeam.form.autofields`` is able to collect fields definition for your\nform. This enable you to create forms with a plugable list of fields.\n\n.. contents::\n\nExample\n=======\n\nYou need first to define a group of fields. This will be just an\ninterface::\n\n >>> from zope.interface import Interface\n\n >>> class IReplyFields(Interface):\n ... pass\n\nNow you can define groups of fields::\n\n >>> from zeam.form import base, autofields\n\n >>> class ReplyInformation(autofields.AutoFields):\n ... autofields.group(IReplyFields)\n ... autofields.order(0)\n ... fields = base.Fields(base.Field('Comment'))\n\n >>> class ReplyBlogInformation(autofields.AutoFields):\n ... autofields.group(IReplyFields)\n ... autofields.order(10)\n ... fields = base.Fields(base.Field('Blog URL'))\n\nAnd you will be able to use those fields on your form somewhere else::\n\n >>> class ReplyForm(base.Form):\n ... fields = autofields.FieldsCollector(IReplyFields)\n\nAPI\n===\n\nIn addition to its API, ``zeam.form.autofields`` export the one of\n``zeam.form.base``.\n\nClasses\n-------\n\n``AutoFields``\n Base classes used to define a group of Fields to be included in a form.\n\nDirectives\n----------\n\n``group``\n Directive used on ``AutoFields`` which select for which group you\n whish to provide the fields for. A group is just a plain zope\n interface, that will be given as parameter to the\n ``FieldsCollector``.\n\n``view``\n Directive used on ``AutoFields`` that will let you specify for\n which Form (or view) you whish to provide the fields for. This\n directive is not required, and default to ``IBrowserView``.\n\n``order``\n Optional directive which let decide in wich order the fields will\n included at the end.\n\nProperties\n----------\n\n``FieldsCollector``\n Property used to collect form Fields for you.\n\n\nChangelog\n=========\n\n1.0.1 (2012/05/02)\n------------------\n\n* Update to use the latest version of ``grokcore.component``.\n\n1.0 (2011/11/08)\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://pypi.python.org/pypi/zeam.form.autofields", "keywords": "zeam form fields collect", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "zeam.form.autofields", "package_url": "https://pypi.org/project/zeam.form.autofields/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zeam.form.autofields/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/zeam.form.autofields" }, "release_url": "https://pypi.org/project/zeam.form.autofields/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Automatically collect fields for a Zeam Form.", "version": "1.0.1" }, "last_serial": 2973075, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "4d010bfdfabfc9f30783370b63f68129", "sha256": "e8e02241b8182f6d3bfbecb0ce1e3922cecc42997781f0468d172d498e373569" }, "downloads": -1, "filename": "zeam.form.autofields-1.0.tar.gz", "has_sig": false, "md5_digest": "4d010bfdfabfc9f30783370b63f68129", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5570, "upload_time": "2011-11-08T15:49:36", "url": "https://files.pythonhosted.org/packages/c8/5b/e9919fc35c9fcb375a9ee35a49bd7611f06fe6ef6eac800ae120914d95ab/zeam.form.autofields-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b7244d33466eb6f2ba782c3c34667b10", "sha256": "52a82ec762aabb98ad1eaa428523ba91f5c39305852ab1de27ceea4fa0074bd2" }, "downloads": -1, "filename": "zeam.form.autofields-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b7244d33466eb6f2ba782c3c34667b10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5562, "upload_time": "2012-05-02T14:12:53", "url": "https://files.pythonhosted.org/packages/96/f2/3480e2f48f6efec25b75b6ac41532225edfd2e86ec6e603835b6b9e856da/zeam.form.autofields-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b7244d33466eb6f2ba782c3c34667b10", "sha256": "52a82ec762aabb98ad1eaa428523ba91f5c39305852ab1de27ceea4fa0074bd2" }, "downloads": -1, "filename": "zeam.form.autofields-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b7244d33466eb6f2ba782c3c34667b10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5562, "upload_time": "2012-05-02T14:12:53", "url": "https://files.pythonhosted.org/packages/96/f2/3480e2f48f6efec25b75b6ac41532225edfd2e86ec6e603835b6b9e856da/zeam.form.autofields-1.0.1.tar.gz" } ] }