{ "info": { "author": "Jordi J. Tablada", "author_email": "hi@jordijoan.me", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "Wagtail SweetCaptcha\n================\n**Wagtail forms SweetCaptcha form field/widget integration app.**\n\nwagtailsweetcaptcha provides a an easy wayto integrate the `django-sweetcaptcha `_ field when using the Wagtail formbuilder.\n\n\nInstallation\n------------\n\n#. Install or add ``wagtailsweetcaptcha`` to your Python path.\n\n#. Add ``wagtailsweetcaptcha`` to your ``INSTALLED_APPS`` setting.\n\n#. Config django-sweetcaptcha as explained in `here `_.\n\n\nUsage\n-----\n\nField\n~~~~~\nThe quickest way to add a sweetcaptcha field to a Wagtail Form Page is to inherit from the two options provided, ``SweetCaptchaForm`` or ``SweetCaptchaEmailForm``. The first options inherits from ``AbstractForm`` while the seconds does it from ``AbstractEmailForm``. Either way your page is going to display a sweetcaptcha field at the end of the form.\n\nExample\n\n.. code-block:: python\n\n from wagtail.wagtailforms.models import AbstractFormField\n from wagtail.wagtailadmin.edit_handlers import FieldPanel, InlinePanel, MultiFieldPanel\n from wagtail.wagtailcore.fields import RichTextField\n\n from modelcluster.fields import ParentalKey\n from wagtailsweetcaptcha.models import SweetCaptchaEmailForm\n\n\n class SubmitFormField(AbstractFormField):\n page = ParentalKey('SubmitFormPage', related_name='form_fields')\n\n\n class SubmitFormPage(SweetCaptchaEmailForm):\n body = RichTextField(blank=True, help_text='Edit the content you want to see before the form.')\n thank_you_text = RichTextField(blank=True, help_text='Set the message users will see after submitting the form.')\n\n class Meta:\n verbose_name = \"Form submission page\"\n description = \"Page with the form to submit\"\n\n\n SubmitFormPage.content_panels = [\n FieldPanel('title', classname=\"full title\"),\n FieldPanel('body', classname=\"full\"),\n FieldPanel('thank_you_text', classname=\"full\"),\n InlinePanel(SubmitFormPage, 'form_fields', label=\"Form fields\"),\n MultiFieldPanel([\n FieldPanel('to_address'),\n FieldPanel('from_address'),\n FieldPanel('subject'),\n ], \"Email notification\")\n ]\n\n\nThe sweetcaptcha field can't be added from the admin UI but will appear in your frontend.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/jordij/wagtailsweetcaptcha", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "wagtailsweetcaptcha", "package_url": "https://pypi.org/project/wagtailsweetcaptcha/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wagtailsweetcaptcha/", "project_urls": { "Homepage": "http://github.com/jordij/wagtailsweetcaptcha" }, "release_url": "https://pypi.org/project/wagtailsweetcaptcha/0.1.0/", "requires_dist": [ "django-sweetcaptcha" ], "requires_python": null, "summary": "A simple sweetcaptcha field for Wagtail Form Pages.", "version": "0.1.0" }, "last_serial": 1623340, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "96f99fb469a8be71fc4385d7a354dc19", "sha256": "f1b3fb3e25ed98882468920cf24d3c3c1be12c818d3976d6d44588d56d565cf8" }, "downloads": -1, "filename": "wagtailsweetcaptcha-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "96f99fb469a8be71fc4385d7a354dc19", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5467, "upload_time": "2015-05-16T10:36:09", "url": "https://files.pythonhosted.org/packages/f3/e7/9ef7a37451540d0dd4e7ba44d82aa3b0e33d42bf3afb75d003381934c1b3/wagtailsweetcaptcha-0.0.1-py2.py3-none-any.whl" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "ed901700dd7b6ddfc6bf1853cb3c80d2", "sha256": "16e114cf05c216ebb96e6f9e44f1853f9a161a2141d10041d6d934224d6e4d9f" }, "downloads": -1, "filename": "wagtailsweetcaptcha-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ed901700dd7b6ddfc6bf1853cb3c80d2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5453, "upload_time": "2015-07-07T21:41:06", "url": "https://files.pythonhosted.org/packages/60/85/7a47f213eb6ad505195cd0d1eccf88bda497a02242d53841a697bf15d588/wagtailsweetcaptcha-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "62f763e9dd7516e857b873715121f2ec", "sha256": "32177998a906496fe6079747c6fccecd225f6c58ba9e94b7832bf5c404282c7c" }, "downloads": -1, "filename": "wagtailsweetcaptcha-0.1.0.tar.gz", "has_sig": false, "md5_digest": "62f763e9dd7516e857b873715121f2ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3103, "upload_time": "2015-07-07T21:41:10", "url": "https://files.pythonhosted.org/packages/65/b3/22377ab1903ca56e29eb4cf980b41c16d0a76f39e6caf9fd6cb8ffac9923/wagtailsweetcaptcha-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ed901700dd7b6ddfc6bf1853cb3c80d2", "sha256": "16e114cf05c216ebb96e6f9e44f1853f9a161a2141d10041d6d934224d6e4d9f" }, "downloads": -1, "filename": "wagtailsweetcaptcha-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ed901700dd7b6ddfc6bf1853cb3c80d2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5453, "upload_time": "2015-07-07T21:41:06", "url": "https://files.pythonhosted.org/packages/60/85/7a47f213eb6ad505195cd0d1eccf88bda497a02242d53841a697bf15d588/wagtailsweetcaptcha-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "62f763e9dd7516e857b873715121f2ec", "sha256": "32177998a906496fe6079747c6fccecd225f6c58ba9e94b7832bf5c404282c7c" }, "downloads": -1, "filename": "wagtailsweetcaptcha-0.1.0.tar.gz", "has_sig": false, "md5_digest": "62f763e9dd7516e857b873715121f2ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3103, "upload_time": "2015-07-07T21:41:10", "url": "https://files.pythonhosted.org/packages/65/b3/22377ab1903ca56e29eb4cf980b41c16d0a76f39e6caf9fd6cb8ffac9923/wagtailsweetcaptcha-0.1.0.tar.gz" } ] }