~ralsina/ubuntuone-control-panel/opt-parsing

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/gui/qt/folders.py

  • Committer: Tarmac
  • Author(s): Natalia B. Bidart
  • Date: 2012-02-08 16:34:09 UTC
  • mfrom: (255.2.10 use-webclient)
  • Revision ID: tarmac-20120208163409-2rkfpahrubzzpyxj
 - Replaced custom webclient with the one from ubuntu-sso-client
   (LP: #926311).
- Removed the dependency on qt4reactor for Linux implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
 
 
3
 
# Authors: Alejandro J. Cura <alecu@canonical.com>
4
2
#
5
 
# Copyright 2011 Canonical Ltd.
 
3
# Copyright 2011-2012 Canonical Ltd.
6
4
#
7
5
# This program is free software: you can redistribute it and/or modify it
8
6
# under the terms of the GNU General Public License version 3, as published
85
83
    def on_folder_created(self, new_folder):
86
84
        """Reload folder info after folder creation."""
87
85
        self.is_processing = True
88
 
        # hack to ensure that syncdaemon updates the folder list.
89
 
        # pylint: disable=W0404, E1101
90
 
        from twisted.internet import reactor
91
 
        reactor.callLater(2, self.load)
 
86
        self.load()
92
87
 
93
88
    # pylint: disable=E0202
94
89
    @defer.inlineCallbacks