Changeset 68 for protocols

Show
Ignore:
Timestamp:
03/28/07 08:04:06 (22 months ago)
Author:
ploum
Message:

Launchpad protocol is now more robust when dealing with comment form
This fix #76

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • protocols/protocol_launchpadstaging_web.py

    r64 r68  
    296296                response = br.submit() 
    297297                return br 
     298                 
     299        def __isform_comment(self,htmlform) : 
     300                if htmlform.action.find("+addcomment") != -1 : 
     301                        return True 
     302                else : 
     303                        return False 
    298304 
    299305        def postComment(self,bugnbr,title,comment) : 
     
    301307                br = self.__login() 
    302308                br.open(urlcom) 
    303                 br.select_form(nr=2) 
     309                br.select_form(predicate=self.__isform_comment) 
    304310                # TODO : set the title 
    305311                br["field.comment"]= comment