Changeset 1273
- Timestamp:
- 09/17/08 09:52:41
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneCaptchas/branches/plone-3.1/Extensions/Install.py
r1210 r1273 96 96 out.write(' Layer %s was already installed into skin %s.\n' % (layer,skin)) 97 97 if modified: 98 path = string.join( path, ', ' )98 path = string.join( path, ',' ) 99 99 skinstool.addSkinSelection( skin, path ) 100 100 qPloneCaptchas/branches/plone-3.1/skins/captchas_discussion/3.1/discussion_reply_form.cpt
r1210 r1273 157 157 </div> 158 158 159 <div tal:condition="nocall:here/captcha_widget|nothing" 160 tal:omit-tag=""> 161 <div metal:use-macro="here/captcha_widget/macros/captcha" /> 162 </div> 163 159 164 <div class="formControls"> 160 165 qPloneCaptchas/branches/plone-3.1/tests/testCaptchaWidget.py
r945 r1273 21 21 self.addProduct('qPloneCaptchas') 22 22 self.portal.invokeFactory('Document', 'index_html') 23 self.portal['index_html'].allow _discussion = True23 self.portal['index_html'].allowDiscussion(True) 24 24 self.absolute_url = self.portal['index_html'].absolute_url_path() 25 25 … … 36 36 path = '%s/discussion_reply_form'%self.absolute_url 37 37 resp1 = self.publish(path, self.basic_auth, request_method='GET').getBody() 38 patt = re.compile(' <img\s+src="%s(/getCaptchaImage/[0-9a-fA-F]+)"'%self.portal.absolute_url())38 patt = re.compile('\s+src="%s(/getCaptchaImage/[0-9a-fA-F]+)"'%self.portal.absolute_url()) 39 39 match_obj = patt.search(resp1) 40 40 img_url = match_obj.group(1)
