Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > Plone Extensions

    collective.z3cform.norobots 1.4.2.2

    Download button

    Downloads: 220  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Sylvain Boureliou | More programs
    GPL / FREE
    May 9th, 2013, 23:05 GMT [view history]
    ROOT / Internet / Plone Extensions

     Read user reviews (0)  Refer to a friend  Subscribe

    collective.z3cform.norobots description

    Human readable captcha for z3cform

    collective.z3cform.norobots is Plone extension provides a "human" captcha widget based on a list of questions/answers.

    This captcha can be used as a plone.app.discussiom captcha plugin.

    The widget is based on z3c.form.TextWidget.

    collective.z3cform.norobots provides a "human" captcha widget based on a list of questions/answers.

    This captcha can be used as a plone.app.discussiom captcha plugin.

    The widget is based on z3c.form.TextWidget.

    Installation

    Just a simple easy_install collective.z3cform.norobots is enough.

    Alternatively, buildout users can install collective.z3cform.norobots as part of a specific project's buildout, by having a buildout configuration such as:

    [buildout]
    ...
    eggs =
     collective.z3cform.norobots
    ...
    [instance]
    ...
    zcml =
     collective.z3cform.norobots


    In portal_setup, apply the profile collective.z3cform.norobots:default.

    Add a new question

    In the Plone Property Sheet "norobots_properties" (portal_properties/norobots_properties), add a new property:

    Name: The question id (ex: "question4")
    Value: your_question::the_answer (ex: "What is 10 + 12 ?::22")
    Type: string


    Usage:

    You can use this widget setting the "widgetFactory" property of a form field:

    from zope import interface, schema
    from z3c.form import interfaces, form, field, button, validator
    from plone.app.z3cform.layout import wrap_form

    from collective.z3cform.norobots.i18n import MessageFactory as _
    from collective.z3cform.norobots.widget import NorobotsFieldWidget
    from collective.z3cform.norobots.validator import NorobotsValidator

    class INorobotsForm(interface.Interface):
     norobots = schema.TextLine(title=_(u'Are you a human ?'),
     description=_(u'In order to avoid spam, please answer the question below.'),
     required=True)

    class NorobotsForm(form.Form):
     fields = field.Fields(INorobotsForm)
     fields['norobots'].widgetFactory = NorobotsFieldWidget

    # wrap the form with plone.app.z3cform's Form wrapper
    NorobotsFormView = wrap_form(NorobotsForm)

    # Register Norobots validator for the correponding field in the IContactInfo interface
    validator.WidgetValidatorDiscriminators(NorobotsValidator, field=INorobotsForm['norobots'])


    for more information see contact_info.py in the plone_forms directory in the package.


    Product's homepage

    Requirements:

    · Plone CMS
    · Python
    · plone.app.z3cform

    What's New in This Release: [ read full changelog ]

    · Added Italian translation [keul]

      


    TAGS:

    captcha widget | readable captcha | z3cform | captcha | widget

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM