~facundo/magicicada-client/changes-for-xenial

« back to all changes in this revision

Viewing changes to ubuntuone/platform/filesystem_notifications/monitor/darwin/fsevents_daemon.py

  • Committer: Magicicada Bot
  • Author(s): Natalia
  • Date: 2016-05-30 15:43:30 UTC
  • mfrom: (1418.1.21 no-sso-client)
  • Revision ID: magicicada_bot-20160530154330-b4his4s3wlucu7zv
[r=facundo] - Decouple client code from ubuntu-sso-client code. Copied and made an initial cleanup on the networkstate, utils and keyring modules.
- Removed completely dependencies with oauthlibs.
- Moved tests/ folder to inside ubuntuone/ proper folders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
from twisted.internet import defer, endpoints, reactor
37
37
 
38
 
from ubuntu_sso.utils.tcpactivation import (
39
 
    ActivationConfig,
40
 
    ActivationInstance,
41
 
    AlreadyStartedError,
42
 
)
43
 
 
44
38
from ubuntuone import logger
45
39
from ubuntuone import fseventsd
46
40
from ubuntuone.platform.filesystem_notifications.notify_processor import (
58
52
    IN_MOVED_TO,
59
53
    IN_MODIFY,
60
54
)
 
55
from ubuntuone.utils.tcpactivation import (
 
56
    ActivationConfig,
 
57
    ActivationInstance,
 
58
    AlreadyStartedError,
 
59
)
61
60
 
62
61
TRACE = logger.TRACE
63
62
 
113
112
 
114
113
 
115
114
def get_activation_config():
116
 
    """Get the configuration to activate the sso service."""
 
115
    """Get the configuration to activate the service."""
117
116
    description = DescriptionFactory()
118
117
    return ActivationConfig(None, None, description)
119
118
 
140
139
class PyInotifyEventsFactory(fseventsd.FsEventsFactory):
141
140
    """Factory that process events and converts them in pyinotify ones."""
142
141
 
143
 
    def __init__(
144
 
            self, processor, ignored_events=DARWIN_IGNORED_ACTIONS):
 
142
    def __init__(self, processor, ignored_events=DARWIN_IGNORED_ACTIONS):
145
143
        """Create a new instance."""
146
144
        # old style class
147
145
        fseventsd.FsEventsFactory.__init__(self)