示例#1
0
    def __init__(self):
        Singleton.__init__(self)
        Client.__init__(self)

        self.prefs = PluginPrefs("jamendo")
        self.username = self.get_preference("username", "")
        self.password = self.get_preference("password", "")
示例#2
0
    def __init__(self):
        Singleton.__init__(self)
        #TODO: really check if GPS is available
        self.gps_available = False

        self.lat = None
        self.long = None
        self.radius = 10
        self.callback_location_updated = None
        self.remote_object = None
示例#3
0
    def __init__(self):
        Singleton.__init__(self)
        self.gd_client = gdata.photos.service.PhotosService()
        self.gd_client.email = ''
        self.gd_client.password = ''
        self.gd_client.source = 'Picasa plugin for Canola'
        self.logged = False
        self.login_error = ''
        self._user = ''
        self._password = ''
        self.albums =''
        self.thumbs_path = ''
        self.outside_terra = False;

        #used to save the list of current downloading thumbs to avoid multiple
        #downloads for the same file
        self.thumbs_in_progress = {};

        try:
            self.prefs = PluginPrefs("picasa")
        except:
            print "running outside canola"
            self.outside_terra = True;
示例#4
0
 def __init__(self):
     Singleton.__init__(self)
     Client.__init__(self)
     self.twitpic_client = TwitPicClient()