{ "info": { "author": "Benjamin Wohlwend", "author_email": "benjamin.wohlwend@divio.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML", "Topic :: Utilities" ], "description": "==================\ndjango-signedforms\n==================\n\nA small library that provides a form class that signs a configurable set of\nhidden fields using ``django.core.signing``.\n\nThe most common use case for such a form is when the view that handles the post\ndiffers from the view that sets up the form, but you need to pass some\ninformation from one view to the other, without evil hackers tampering with your\nprecious data.\n\nUsage\n=====\n\nSubclass SignedForm, and define which fields should be signed::\n\n from signedforms.forms import SignedForm\n\n class MyForm(SignedForm):\n signed_fields = ['redirect_url',]\n\n redirect_url = forms.CharField(required=False, widget=forms.HiddenInput)\n\nIn the form that sets up the view, provide the data to be signed in the\n``initial`` dictionary::\n\n my_form = MyForm(initial={'redirect_url': self.request.path_info})\n\nand in the view that handles the posted form::\n\n def form_valid(self, form):\n # do some work\n return HttpResponseRedirect(form.cleaned_data['redirect_url'])\n\n.. note::\n\n If the user tampered with the hidden data, the form will not validate.\n\n.. warning::\n\n Only fields that contain JSON-serializable data can be signed. This includes\n all fields that are represented as text in the database, but not datetimes\n and other more \"complex\" types.", "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/piquadrat/django-signedforms", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "django-signedforms", "package_url": "https://pypi.org/project/django-signedforms/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-signedforms/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/piquadrat/django-signedforms" }, "release_url": "https://pypi.org/project/django-signedforms/0.2/", "requires_dist": null, "requires_python": null, "summary": "A signed Django form", "version": "0.2" }, "last_serial": 728488, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "2d888a795464260b3844be4ae2d274b3", "sha256": "68f8d36058d9031c1c2f9ae2fe305b7d3f65fcc01cf807701bd2f17a3ae8188f" }, "downloads": -1, "filename": "django-signedforms-0.1.tar.gz", "has_sig": false, "md5_digest": "2d888a795464260b3844be4ae2d274b3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3903, "upload_time": "2013-03-27T15:10:55", "url": "https://files.pythonhosted.org/packages/8e/8b/779486722f1872b9947931c23066aaa5275dbcdf9562a85d213bede6a665/django-signedforms-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "7b46610813e4281551a7347af091d7fe", "sha256": "8a54511a8dd80fbf65f7d147ee042d6d30e2a225688d78478fc821d56c61f00b" }, "downloads": -1, "filename": "django-signedforms-0.2.tar.gz", "has_sig": false, "md5_digest": "7b46610813e4281551a7347af091d7fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3974, "upload_time": "2013-05-13T11:51:15", "url": "https://files.pythonhosted.org/packages/fd/7c/ab7e420ed3f7865c1eb23034fecdc4a84828f0e337ec65fd60effaa37c41/django-signedforms-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7b46610813e4281551a7347af091d7fe", "sha256": "8a54511a8dd80fbf65f7d147ee042d6d30e2a225688d78478fc821d56c61f00b" }, "downloads": -1, "filename": "django-signedforms-0.2.tar.gz", "has_sig": false, "md5_digest": "7b46610813e4281551a7347af091d7fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3974, "upload_time": "2013-05-13T11:51:15", "url": "https://files.pythonhosted.org/packages/fd/7c/ab7e420ed3f7865c1eb23034fecdc4a84828f0e337ec65fd60effaa37c41/django-signedforms-0.2.tar.gz" } ] }