Ejemplo n.º 1
0
 def __init__(self):
     self.upload = accountsmanager.get_service('sugargdrive')
     self._shared_journal_entry = None
     self._journal = None
     self._model = None
     self._alert = None
     self._listview = None
     self._volume_button = None
Ejemplo n.º 2
0
 def __init__(self):
     self.upload = accountsmanager.get_service('sugargdrive')
     self._shared_journal_entry = None
     self._journal = None
     self._model = None
     self._alert = None
     self._listview = None
     self._volume_button = None
Ejemplo n.º 3
0
 def __collect_cb(self):
     harvest = accountsmanager.get_service('harvest').Harvest()
     if harvest.is_not_enabled():
         return
     try:
         harvest.collect()
     except Exception:
         pass
Ejemplo n.º 4
0
    def __init__(self):
        self.gmoksaya = accountsmanager.get_service('gmoksaya')
        self._client = GConf.Client.get_default()
        self._shared_journal_entry = None

        self.gmoksaya.settings.credentials['username'] = \
            self._client.get_string(self.USERNAME)
        self.gmoksaya.settings.credentials['api_key'] = \
            self._client.get_string(self.API_KEY)

        self.project_name = None
        # Fetch latest project
        public_id = self.get_public_id()
        if public_id:
            project = self.gmoksaya.Project()
            project.connect('completed', self._project_list_cb)
            project.connect('failed', self._project_failed_cb)
            project.list(public_id)
Ejemplo n.º 5
0
 def __init__(self):
     self.facebook = accountsmanager.get_service('facebook')
     self._client = GConf.Client.get_default()
     self.facebook.FbAccount.set_access_token(self._access_token())
     self._shared_journal_entry = None
Ejemplo n.º 6
0
 def __init__(self):
     self.gpaste = accountsmanager.get_service('gpaste')
     self._shared_journal_entry = None
Ejemplo n.º 7
0
 def __init__(self):
     self.upload = accountsmanager.get_service('sugardropbox')
     self._shared_journal_entry = None
Ejemplo n.º 8
0
 def test_get_service(self):
     account = accountsmanager.get_service('mock')
     self.assertIsNotNone(account)
Ejemplo n.º 9
0
 def __init__(self):
     self._service = accountsmanager.get_service('harvest')
Ejemplo n.º 10
0
 def __init__(self):
     self.gdrive = accountsmanager.get_service('gdrive')
     self._client = GConf.Client.get_default()
     self._shared_journal_entry = None