Changeset 1218

Show
Ignore:
Timestamp:
08/29/08 11:55:50
Author:
liebster
Message:

Fixed tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneCaptchas/tags/1.3.3/Extensions/Install.py

    r1210 r1218  
    9696                out.write('  Layer %s was already installed into skin %s.\n' % (layer,skin)) 
    9797        if modified: 
    98             path = string.join( path, ', ' ) 
     98            path = string.join( path, ',' ) 
    9999            skinstool.addSkinSelection( skin, path ) 
    100100 
  • qPloneCaptchas/tags/1.3.3/skins/captchas_discussion/3.1/discussion_reply_form.cpt

    r1210 r1218  
    157157            </div> 
    158158 
     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 
    159164            <div class="formControls"> 
    160165 
  • qPloneCaptchas/tags/1.3.3/tests/testCaptchaWidget.py

    r945 r1218  
    2121        self.addProduct('qPloneCaptchas') 
    2222        self.portal.invokeFactory('Document', 'index_html') 
    23         self.portal['index_html'].allow_discussion = True 
     23        self.portal['index_html'].allowDiscussion(True) 
    2424        self.absolute_url = self.portal['index_html'].absolute_url_path() 
    2525 
     
    3636        path = '%s/discussion_reply_form'%self.absolute_url 
    3737        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()) 
    3939        match_obj = patt.search(resp1) 
    4040        img_url = match_obj.group(1)