Changeset 2810 in products


Ignore:
Timestamp:
Sep 14, 2010 9:29:01 AM (14 years ago)
Author:
mylan
Message:

#195: replace example.pt with default plone.app.form's formlib form.

Location:
quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha/example.py

    r2807 r2810  
    77 
    88from quintagroup.formlib.captcha import Captcha 
    9        
     9 
    1010# Define CaptchaFormlibForm form schema 
    1111 
     
    3030 
    3131class CaptchaFormlibForm(EditForm): 
    32     template = ViewPageTemplateFile("example.pt") 
    3332    form_fields = FormFields(ICaptchaFormlibFormSchema) 
  • quintagroup.formlib.captcha/trunk/quintagroup/formlib/captcha/tests/tests.zcml

    r2803 r2810  
    66     for="*" 
    77     factory="quintagroup.formlib.captcha.example.CaptchaFormlibFormAdapter" /> 
     8 
     9  <!-- register plone.app.form.default_named_template_adapter 
     10       for our form to use default plone's formlib form       --> 
     11  <adapter 
     12      for="quintagroup.formlib.captcha.example.CaptchaFormlibForm" 
     13      factory="plone.app.form.default_named_template_adapter" 
     14      name="default" 
     15      provides="zope.formlib.namedtemplate.INamedTemplate" 
     16      /> 
    817 
    918  <browser:page 
Note: See TracChangeset for help on using the changeset viewer.