Changeset 146

Show
Ignore:
Timestamp:
Sun Feb 11 10:25:02 2007
Author:
manatlan
Message:

- correct a trouble in a recent change from google in the connection
stuff

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/plugins/multiexport/libs/pycasaweb.py

    r140 r146  
    18 18 Changelog  
    19 19  
      20   V0.4.1 (07-02-11):  
      21         - change in connection (the "=" stuff) in "location"  
      22  
    20 23   V0.4 (06-08-26):  
    21 24         - connection works for recent google account now !  
     
    195 198             raise PycasaWebException("Your picasaweb account is not open, you must log in on picasaweb")  
    196 199  
      200         # 11/02/2007 : add this line to make good "=" always  
      201         location = location.replace("\u003d","=")  
      202  
    197 203         #~ # Process the redirect to Valid authent  
    198 204         request = mkRequest(location)  
     
    209 215  
    210 216  
      217  
    211 218         # Parse XML of "picasa urls" and store the needed ones  
    212 219         root=parseString(xml).documentElement  
     
    230 237     def __init__(self, user,password):  
    231 238         """ Create a PycasaWeb instance for the account user/password """  
    232           try:  
    233               self.__gc=GoogleConnection(user,password)  
    234           except Exception,m:  
    235               raise PycasaWebException(m)  
      239         #~ try:  
      240             #~ self.__gc=GoogleConnection(user,password)  
      241         #~ except Exception,m:  
      242             #~ raise PycasaWebException(m)  
      243         self.__gc=GoogleConnection(user,password)  
    236 244  
    237 245     def getAlbums(self):  
     
    386 394  
    387 395 if __name__=="__main__":  
    388       picasa = PycasaWeb("manatlan@gmail.com","XXXX")  
      396     picasa = PycasaWeb("manatlan@gmail.com","xxxx")  
    388 396  
    389 397     album=picasa.createAlbum("TEST")