summaryrefslogtreecommitdiff
path: root/src/leap/common/events
AgeCommit message (Collapse)Author
2015-10-07[bug] consider STANDALONE for the pathsIvan Alejandro
Since we need to write a file we have to consider whether we are running in 'standalone' mode or not to use the right path prefix. - Related: #7512
2015-09-16[refactor] move checking flag to main moduleKali Kaneko
2015-09-16[tests] Make txclient honor flags.EVENTS_ENABLEDFolker Bernitt
- Breaks tests in dependent repos like soledad otherwise, because server.key could not be found
2015-09-15[feat] expose async events in apiKali Kaneko
to make simpler the import of the tx client - Related: #7274
2015-07-29[bug] register and unregister controlled by flagVictor Shyba
Since register and unregister cant be used without full zmq initialization, it should make sense to also check flag for them.
2015-07-29[refactor] Extract flags check to callerVictor Shyba
Checking was done inside of emit method. Doing on emit function at a module level makes it cleaner with less lines inside of check.
2015-07-28[bug] Consider events flag when ensuring clientVictor Shyba
Change EventsClientThread behavior so it won't start anymore if the events flag is set to False
2015-07-21[feature] add global flag for disabling the events frameworkKali Kaneko
this will be used to allow the unittests to disable the events framework. this way, emit() will become a passthrough. note that, until now, the basetest class is making use of the threaded version of the client, which launches a zmq tornado-based ioloop. this is wrong, and will have to be addressed in a future commit. we'll have to make use of the global EVENTS_ENABLED flag in the txclient version when those changes are made. Related: #7259 Relases: 0.4.2
2015-07-20[bug] do not add a port string to non-tcp addressesKali Kaneko
this, together with the events server registration, was breaking the events signalling on the client whenever it used ipc:// sockets.
2015-07-20[refactor] remove use of reactor in threaded version of events clientKali Kaneko
the idea is that we'll be able to use the threaded version of the client, which makes use of the tornado ioloop, in a non-twisted module, like the main graphical client probably will be in the near future.
2015-06-26[bug] run callback from thread in events clientdrebs
2015-06-26[bug] allow passing ':0' as port in events addressdrebs
2015-06-11[bug] remove extraneous data from events logsdrebs
The emission of an event was being logged twice, and the second time was logging the pickled content of the event. This pickled content contained line breaks and other things that caused strange output on the client log. This commit removes the second loggin of the event pickled content. Closes #7130.
2015-06-03[bug] allow ipc socket typesKali Kaneko
previous regex wasn't capturing addresses of type ipc://<path> Closes: #7089
2015-05-28[bug] use dict keys to iterateVictor Shyba
We ran into a RuntimeError yesterday on this line, the callback can modify this dict and make the iteration raise an error. Using keys method to iterate is safer. See http://stackoverflow.com/questions/11941817/python-runtimeerror-dictionary-changed-size-during-iteration-how-to-avoid-th/11941855#11941855
2015-05-27[feat] refactor events to use ZMQdrebs
Before this commit, protobuf and protobuf.socketrpc were used to serialize and transmit messages between events clients. This change implements a simpler ZMQ client/server events mechanism that uses ZMQ sockets for transmitting messages from clients to server and to redistribute such messages to subscribed clients. Closes: #6359
2014-07-04Update documentation about events/protoRuben Pollan
2014-05-02Add soledad sync status signals (#5517).drebs
2014-03-18Add Soledad invalid auth token event (#5191).drebs
2013-09-09Fix events exception raising when ensuring server. Closes #3515.drebs
2013-09-03change verbosity level in loggingKali Kaneko
2013-09-03cosmetic changes to importsKali Kaneko
2013-09-03Fix Exception useKali Kaneko
2013-08-19Add IMAP_UNREAD_MAIL eventTomás Touceda
2013-08-16add new events for imap and keymanagerKali Kaneko
2013-08-15Add events for SMTP signaling.drebs
2013-08-15Force protobuf version to >=2.4.1.drebs
* Also, generate events_pb2.py file using 2.4.1.
2013-08-14Make ensure_server asyncTomás Touceda
2013-07-25Fix events doc about reqcbk signature. Closes #3261drebs
2013-07-24Add doc and tests about events sync/async behaviour.drebs
* Also fix docstrings identation so sphynx doesn't complain.
2013-07-24Trying to init events server raises when given port is not free.drebs
* Also fix and improve some tests.
2013-07-24Refactor events so components become clients.drebs
2013-06-13Add possibility of unregistering in events mechanism.drebs
2013-05-28Merge remote-tracking branch 'kali/bug/allow-absolute-paths2' into developTomás Touceda
2013-05-29change docstring comments to use sphinx styleKali Kaneko
2013-05-23make more compact debug info by truncating stringsKali Kaneko
2013-05-16Fix pep8 style.drebs
2013-04-11Add compiled protoKali Kaneko
bumped version
2013-04-11Add option to compile servicesKali Kaneko
(needed from 2.4.0 onwards, since it defaults to false)
2013-04-11add RAISE_WINDOW eventKali Kaneko
2013-04-11add debug info about server portKali Kaneko
2013-04-11fix deprecation warnings; add debug infoKali Kaneko
2013-04-08Add missing import for socket and forward signal()s paramteresTomas Touceda
2013-04-01Add README and changes file for events mechanism.drebs
2013-04-01Add tests for events mechanism.drebs
2013-03-31Add events module with basic API.drebs
2013-03-31Add support for components in events mechanism.drebs
2013-03-31Add a server for events mechanism.drebs
2013-03-31Add protobuf definition for events messages and services.drebs