Changeset 2542 in products for quintagroup.captcha.core/trunk
- Timestamp:
- Jun 16, 2010 3:26:04 PM (14 years ago)
- Location:
- quintagroup.captcha.core/trunk/quintagroup/captcha/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.captcha.core/trunk/quintagroup/captcha/core/skins/captcha_core/captcha_widget.pt
r2034 r2542 3 3 i18n:domain="quintagroup.captcha.core" 4 4 tal:define="Iterator python:modules['Products.CMFPlone'].IndexIterator; 5 tabindex python:Iterator(mainSlot=False)"> 5 tabindex python:Iterator(mainSlot=False); 6 portal_url here/plone_portal_state/portal_url"> 6 7 <div class="field" 7 8 tal:define="hk here/getCaptcha; 8 9 error errors/key|nothing" 9 tal:attributes="class python: test(error, 'field error', 'field')">10 tal:attributes="class python:error and 'field error' or 'field'"> 10 11 <input type="hidden" 11 12 name="hashkey" -
quintagroup.captcha.core/trunk/quintagroup/captcha/core/tests/testStatic.py
r1984 r2542 45 45 self.assertTrue(index >= 1 and index <= CAPTCHAS_COUNT) 46 46 # encrypted key must be equals to title of the image 47 key = getWord( index-1 ) 47 key = getWord( index-1 ) 48 48 img = getattr(self.portal, '%s.jpg' % index) 49 49 self.assertTrue(encrypt1(key) == img.title) … … 62 62 self.assertTrue(obj_html == img_html, "Image get by getCaptchaImage script " \ 63 63 "is differ from image get by index (after parsing decrypted key)") 64 64 65 65 66 66 class TestStaticValidator(ptc.PloneTestCase): -
quintagroup.captcha.core/trunk/quintagroup/captcha/core/tests/testWidget.py
r2019 r2542 79 79 self.assert_(NOT_VALID.search(response)) 80 80 81 def testCaptchaWidget(self): 82 # captcha core related issue, described in 83 # in http://plone.org/products/plone-comments/issues/5 84 resp = self.publish(self.portal.absolute_url(1)+"/captcha_widget") 85 self.assertEqual(resp.status / 100, 2) 81 86 82 87 def test_suite():
Note: See TracChangeset
for help on using the changeset viewer.