Changeset 1219
- Timestamp:
- 08/29/08 12:02:17
- Files:
-
- qPloneCaptchas/tags/1.3.2/Extensions/Install.py (modified) (2 diffs)
- qPloneCaptchas/tags/1.3.2/tests/testCaptchaWidget.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qPloneCaptchas/tags/1.3.2/Extensions/Install.py
r1114 r1219 37 37 mtool = getToolByName(self, 'portal_migration') 38 38 plone_version = mtool.getFileSystemVersion() 39 40 39 if plone_version.startswith('2.1'): 41 40 plone_version = '2.1.2' … … 95 94 out.write(' Layer %s was already installed into skin %s.\n' % (layer,skin)) 96 95 if modified: 97 path = string.join( path, ', ' )96 path = string.join( path, ',' ) 98 97 skinstool.addSkinSelection( skin, path ) 99 98 qPloneCaptchas/tags/1.3.2/tests/testCaptchaWidget.py
r945 r1219 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)
