- Timestamp:
- 03/25/07 07:55:27 (22 months ago)
- Files:
-
- 1 modified
-
protocols/protocol_launchpadstaging_web.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
protocols/protocol_launchpadstaging_web.py
r51 r58 8 8 from BeautifulSoup import BeautifulSoup 9 9 # You have to change this if you have another storage 10 from auth_ dummyimport user10 from auth_file import user 11 11 12 12 baseurl = "https://staging.launchpad.net/" … … 14 14 15 15 class protocol: 16 17 #constructor, common to all protocol file 18 def __init__(self,user) : 19 #the user object contains login and password 20 self.user = user 21 self.user.set_bts(self.btsName()) 16 22 17 23 # LAUNCHPAD protocol using the web : suboptimal … … 267 273 # return a mechanize Browser object 268 274 def __login(self): 269 me=user()270 275 urllog="%s+login" %baseurl 271 276 br = Browser() … … 273 278 br.open(urllog) 274 279 br.select_form(name="login") 275 br["loginpage_email"]= me.login()276 br["loginpage_password"]= me.password()280 br["loginpage_email"]=self.user.login() 281 br["loginpage_password"]=self.user.password() 277 282 response = br.submit() 278 283 return br
