{ "info": { "author": "Matous Hora", "author_email": "matous.hora@dms4u.cz", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python" ], "description": "collective.z3cform.filewidget\n=============================\n\nThis package provides a simple widget for file upload and edit. It is registered for zope.schema.interfaces.IBytes. The original file widget allows only upload and thus it is usable only with z3c.form.AddForm.\n\nIt can be used together with archetypes' FileField, however the z3c.form's applyChanges cannot handle filename and content_type properly, so please note that you have to tweak it yourself.\n\nThe aim was to override the default behavior without creating a new field as plone.namedfile does.\n\nUsage\n=====\nAdd the package into you buildout's egg section or your package's setup.py and rerun buildout.\n\nIn your form reassign the widget::\n\n\tfrom collective.z3cform.filewidget import FileFieldWidget\n\n\tclass YourForm(form.EditForm):\n\t fields = field.Fields(IYourForm)\n\t fields['file'].widgetFactory[INPUT_MODE] = FileFieldWidget\n\n\nThe value returned from the widget (convertor) is either raw data of the uploaded file or a collective.z3cform.filewidget.NOCHANGE indicating that the file has not been changed.\n\nThe filename and headers are stored within the widget instance itself::\n\n\tfilename = self.widgets['file'].filename\n\theaders = self.widgets['file'].headers\n\n\nChangelog\n=========\n\n0.1 (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/collective.z3cform.filewidget", "keywords": "z3cform file widget plone", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "collective.z3cform.filewidget", "package_url": "https://pypi.org/project/collective.z3cform.filewidget/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.z3cform.filewidget/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/collective.z3cform.filewidget" }, "release_url": "https://pypi.org/project/collective.z3cform.filewidget/0.1/", "requires_dist": null, "requires_python": null, "summary": "Simple editable filewidget for z3c forms", "version": "0.1" }, "last_serial": 788289, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "973fc8d965aab125202ae2abd3528792", "sha256": "3608b1fa20b2737f4238cea77273e5cc39309ad4ea2cbf1dc249cdfb24f6fb83" }, "downloads": -1, "filename": "collective.z3cform.filewidget-0.1.zip", "has_sig": false, "md5_digest": "973fc8d965aab125202ae2abd3528792", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20892, "upload_time": "2010-01-31T18:44:44", "url": "https://files.pythonhosted.org/packages/31/4a/6c356bfc6c5dca231f7d4e6329d286d7c672d5f926a3d1703a3d7398e378/collective.z3cform.filewidget-0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "973fc8d965aab125202ae2abd3528792", "sha256": "3608b1fa20b2737f4238cea77273e5cc39309ad4ea2cbf1dc249cdfb24f6fb83" }, "downloads": -1, "filename": "collective.z3cform.filewidget-0.1.zip", "has_sig": false, "md5_digest": "973fc8d965aab125202ae2abd3528792", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 20892, "upload_time": "2010-01-31T18:44:44", "url": "https://files.pythonhosted.org/packages/31/4a/6c356bfc6c5dca231f7d4e6329d286d7c672d5f926a3d1703a3d7398e378/collective.z3cform.filewidget-0.1.zip" } ] }