{ "info": { "author": "Matous Hora, Radim Novotny - DMS4U", "author_email": "info@dms4u.cz", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python" ], "description": "Introduction\n============\n\narchetypes.gridfield adds support for data grids which are not inline editable.\nRows are addable/editable using overlay window.\n\nPlease note, current version requires branch of plone.app.jquerytools which is\nincluded in the example buildout.\n\nAdditionally, gridfield widget is displayed on the base_view form only (field\nis not visible on the object edit form!!). This is not a bug but a feature.\n\nUsage\n=====\n\nInstall as usuall. After that you can add additional field to you content type::\n\n from archetypes.gridfield import GridField\n ...\n\n GridField('field_name',\n row_interface = IProjectRow\n )\n \n ...\n\nIProjectRow is a zope Interface which defines the data for one row. \nThe addform and editform are generated from this one::\n\n class IProjectRow(Interface):\n title = schema.TextLine(title=u'Project name', required=True)\n kind = schema.Choice(title=u'Project type',\n vocabulary=\"project.projectTypesVocabulary\")\n start_date = schema.Date(title=u'Start date', required=True)\n end_date = schema.Date(title=u'End date', required=False)\n \nYou may define custom add/edit forms and update widgets::\n\n from archetypes.gridfield.forms import AddForm, EditForm\n from collective.z3cform.datetimewidget import DateFieldWidget\n \n class ProjectAddForm(AddForm):\n def __init__(self, context, request):\n super(ProjectAddForm, self).__init__(context, request)\n self.fields['start_date'].widgetFactory = DateFieldWidget\n self.fields['end_date'].widgetFactory = DateFieldWidget\n\n class ProjectEditForm(EditForm):\n def __init__(self, context, request):\n super(ProjectEditForm, self).__init__(context, request)\n self.fields['start_date'].widgetFactory = DateFieldWidget\n self.fields['end_date'].widgetFactory = DateFieldWidget\n\nSince AddForm/EditForm is redefined, we must specify the forms in the field\ndefinition::\n\n GridField('projects',\n row_interface = IProjectRow,\n add_form = ProjectAddForm,\n edit_form = ProjectEditForm,\n widget = GridWidget(label=\"Projects\")\n )\n\nExample\n=======\n\nIf you want to test archetypes.gridfield in separate buildout, checkout full\npackage from SVN and use example.cfg buildout configuration::\n\n svn co http://svn.plone.org/svn/archetypes/MoreFieldsAndWidgets/archetypes.gridfield/trunk gridfield\n cd gridfield\n python2.4 bootstrap.py\n bin/buildout -c example.cfg\n bin/instance fg\n \nFinally visit base_view template of any object, eg. frontpage:\n\n http://127.0.0.1:8080/portal/front-page/base_view\n \nUsage in custom buildout\n========================\n\nPlease note, package is still in the development. Requires branch of\nplone.app.jquerytools and some custom version pins. Everything is set-up in\nexample buildout so copy the requirements from it.\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://pypi.python.org/pypi/archetypes.gridfield", "keywords": "datagrid archetypes plone jquery overlay", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "archetypes.gridfield", "package_url": "https://pypi.org/project/archetypes.gridfield/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/archetypes.gridfield/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/archetypes.gridfield" }, "release_url": "https://pypi.org/project/archetypes.gridfield/0.1a1/", "requires_dist": null, "requires_python": null, "summary": "Datagrid for Archetypes content, rows based on z3c.form", "version": "0.1a1" }, "last_serial": 786382, "releases": { "0.1a1": [ { "comment_text": "", "digests": { "md5": "9f7ac43ca58606a9c1bc886c974c3ee0", "sha256": "29263eefc91ba0aa9219a1f5e1134147add02beb458316de3439f7151c436007" }, "downloads": -1, "filename": "archetypes.gridfield-0.1a1.zip", "has_sig": false, "md5_digest": "9f7ac43ca58606a9c1bc886c974c3ee0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31574, "upload_time": "2010-03-18T14:23:43", "url": "https://files.pythonhosted.org/packages/f9/9b/32dde5e4b964a4de87e1b77d52afebcaec99b55aaef2120cadeedc7c870d/archetypes.gridfield-0.1a1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9f7ac43ca58606a9c1bc886c974c3ee0", "sha256": "29263eefc91ba0aa9219a1f5e1134147add02beb458316de3439f7151c436007" }, "downloads": -1, "filename": "archetypes.gridfield-0.1a1.zip", "has_sig": false, "md5_digest": "9f7ac43ca58606a9c1bc886c974c3ee0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 31574, "upload_time": "2010-03-18T14:23:43", "url": "https://files.pythonhosted.org/packages/f9/9b/32dde5e4b964a4de87e1b77d52afebcaec99b55aaef2120cadeedc7c870d/archetypes.gridfield-0.1a1.zip" } ] }