summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2014-07-08 14:18:53 -0300
committerTomás Touceda <chiiph@leap.se>2014-07-08 14:18:53 -0300
commit279fa11b6f49aabc2269dbd2316e2186d1373cbe (patch)
tree3574eb16e9c0a22aa48cb78dab4c3414234ef868 /src/leap
parent5e29c85bae24784f4826b1ae735d2627a0e1d97f (diff)
parent679de33b95ba88af5fa1a50e29cef39d59ec2d70 (diff)
Merge remote-tracking branch 'refs/remotes/meskio/doc' into develop
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/common/events/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/leap/common/events/__init__.py b/src/leap/common/events/__init__.py
index 6eaf3d4..0cc6573 100644
--- a/src/leap/common/events/__init__.py
+++ b/src/leap/common/events/__init__.py
@@ -27,14 +27,14 @@ To register a callback to be executed when a specific event is signaled, use
leap.common.events.register():
>>> from leap.common.events import register
->>> from leap.common.events.proto import CLIENT_UID
->>> register(CLIENT_UID, lambda req: do_something(req))
+>>> from leap.common.events import events_pb2 as proto
+>>> register(proto.CLIENT_UID, lambda req: do_something(req))
To signal an event, use leap.common.events.signal():
>>> from leap.common.events import signal
->>> from leap.common.events.proto import CLIENT_UID
->>> signal(CLIENT_UID)
+>>> from leap.common.events import events_pb2 as proto
+>>> signal(proto.CLIENT_UID)
NOTE ABOUT SYNC/ASYNC REQUESTS: