Activity Not Available

Commits : Listings

  Analyzed 3 months ago based on code collected 3 months ago.
Showing page 1 of 2
Commit Message Contributor Files Modified Lines Added Lines Removed Code Location Date
Add a TODO about a possible performance issue related to how we use threads. Avatar More... almost 4 years ago
Documentation minor clarification Avatar More... almost 4 years ago
Don't import JIDDecode, since we don't need it. Avatar More... almost 4 years ago
* As a client, use a delay while processing stanzas, to avoid an active loop * Manually call the onDisconnect handler after stopping the processing loop, since xmpp.py doesn't seem to call it when the client stops normally. * Fix bug: Call component.clientDisconnected() with registerer JID, not own JID. * When shutting down all the clients, iterate over a copy of self.clients, not over the dict itself, since we change it along the way. Avatar More... almost 5 years ago
ForeignClient: Correct argument order in stanzaReceived and iqReceived (thanks elghinn) Avatar More... almost 5 years ago
* Start adding multithreading by having ForeignClient inherit from threading.Thread, and performing stanza processing from the run() method. * Set self.bye to True to indicate that the client should disconnect, instead of calling cnx.disconnect() * PizzjaComponent.clientDisconnected() takes a resource group as argument * Really ignore unavailable presence from registerers' resources that didn't previously send available presence. Avatar More... almost 5 years ago
* Insert lots of debug instructions. * Correct some mistakes when calling attributes ('self.' was forgotten, etc.) * In ForeignClient: * remove useless getRegisterer() and getResource() methods. * don't use an affectation to have disconnect() call cnx.disconnect(), since xmpp.client.Client instances don't have a disconnect() method (it's pushed by xmpp.dispatcher.Dispatcher()). Use normal method def instead. * raise ConnectionError when connection or auth fails, and inform component. * In main component: * catch ConnectionError when a client fails to connect/auth (instead of letting it make it to the top and crash), and send a not-authorized error to the wannabee-controller. (closes #5) * On KeyboardInterrupt or disconnection, disconnect nicely from all clients and stop looping. * In RegistrationManager, use the right parameter style when executing SQL requests with sqlite module (pyformat instead of qmark). This closes #9. Avatar More... about 5 years ago
Small changes: * Rewrote README * In RegistrationManager, add a method that says if a given local JID is registered. * As a client, send an error "service-unavailable" if an IQ get/set is received and no controller is able to handle it. * Include an SQL file for creating the initial table/database * Add INSTALL Avatar More... about 5 years ago
* In ForeignClient, use affectations for declaring a method that just calls another one (isConnected, disconnect). * ForeignClient now stores and exposes its current presence state. * New method RegistrationManager.getAllContacts() Avatar More... about 5 years ago
Support service discovery. Fixes #3 Avatar More... about 5 years ago
* Use lambda function in client handler instead of intermediate method. * In pizzjacomponent, don't import xmpp.protocol and xmpp.client but only the needed classes and variables. * Use constants instead of magic strings 'iq', 'message', 'presence'. * Rework getMostAvailableResource(). * Don't use self.jid when constructing ComponentRoster, it's never needed. Avatar More... about 5 years ago
When forwarding an incoming IQ get/set, don't send it to all resources of the group, but rather send it to 1 resource in the group. Currently, the one (or one of them) with a highest priority is selected. Avatar More... about 5 years ago
* Remove unused variable 'controllers' from ForeignClient. * Have ForeignClient.send() return the id of the sent stanza. * Remember which resource sent an outgoing IQs set/get, and forward the incoming result/error to that resource only. * Introduce new dict indexed by id, local jid * in clientSend(), add the mapping * in forwardStanzaIn(), retrieve and remove it Avatar More... about 5 years ago
Remove unused 'resource' attribute from account in sample conf file, now that the resource is decided dynamically. Avatar More... about 5 years ago
Display proper error message in case of connection/auth problem to main server Avatar More... about 5 years ago
Really add missing import from elghinn's feedback (and another similar one) Avatar More... about 5 years ago
Integrate feedback from elghinn: * Minor code cleanup: * Replace foo.has_key(bar) occurrences with bar in foo * Remove unused import and method. * Split long lines. * Added missing import Avatar More... about 5 years ago
* ForeignClient with resource Foo is not controlled by all the resources of the corresponding contact, only those matching Foo/something. * Make PizzjaComponent.clients indexed by the local jid AND the resource group. * We don't care about local contacts going online/offline, but about local resource groups appearing and disappearing. * Resources in ComponentRoster.priorities[jid] are grouped by resource group (now 3-dim array). Update methods in ComponentRoster accordingly. * Now forwardStanzaIn can fetch the list of resources from the resource group contained in the stanza (in original 'to'). * Rename contactOnline() and contactOffline() to newClient() and removeClient() * Get rid of unused ComponentRoster.getPriority() * Add method ForeignClient.getResources() (needed by clientSend() to reflect presence to the right resource group) * Remove obsolete methods from ForeignClient: addController(), delController(), getControllers(). The information is now kept in ComponentRoster since it's linked to the available resources. * Update clientSend() accordingly. Avatar More... about 5 years ago
Send "not-acceptable" instead of "registration-required" when we receive a stanza from someone who didn't send available information (it could be someone already registered) Avatar More... about 5 years ago
* Add method forwardStanzaIn, that rewrites incoming (foreign->local) stanzas. * Rename forward_stanza to forwardStanzaOut Avatar More... about 5 years ago
 
 
 

Creative Commons License Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.