changeset a607fd83d68d in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=a607fd83d68d
description: don't remove keepalive and xmpp ping timeouts when we get an expected stanza.
diffstat:
src/common/xmpp/dispatcher_nb.py | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diffs (14 lines):
diff -r c5b2c627725b -r a607fd83d68d src/common/xmpp/dispatcher_nb.py
--- a/src/common/xmpp/dispatcher_nb.py Thu Feb 25 15:33:27 2010 +0100
+++ b/src/common/xmpp/dispatcher_nb.py Thu Feb 25 22:56:38 2010 +0100
@@ -462,10 +462,6 @@
# we have released dispatcher, so self._owner has no methods
if not res:
return
- if 'remove_timeout' in self._owner.__dict__:
- # When we receive data after we started disconnecting, Transport may
- # already be plugged out
- self._owner.remove_timeout()
for (_id, _iq) in self._expected.items():
if _iq is None:
# If the expected Stanza would have arrived, ProcessNonBlocking
changeset c5b2c627725b in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=c5b2c627725b
description: check session and system bus before supposing dbus is working. Fixes #5628
diffstat:
src/common/dbus_support.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r 990b71a444fc -r c5b2c627725b src/common/dbus_support.py
--- a/src/common/dbus_support.py Wed Feb 24 21:32:35 2010 +0100
+++ b/src/common/dbus_support.py Thu Feb 25 15:33:27 2010 +0100
@@ -42,6 +42,7 @@
else:
try:
# test if dbus-x11 is installed
+ bus = dbus.SystemBus()
bus = dbus.SessionBus()
supported = True # does user have D-Bus bindings?
except dbus.DBusException:
@@ -49,6 +50,12 @@
if not os.name == 'nt': # only say that to non Windows users
print _('D-Bus does not run correctly on this machine')
print _('D-Bus capabilities of Gajim cannot be used')
+ except exceptions.SystemBusNotPresent:
+ print _('D-Bus does not run correctly on this machine: system bus not '
+ 'present')
+ except exceptions.SessionBusNotPresent:
+ print _('D-Bus does not run correctly on this machine: session bus not '
+ 'present')
class SystemBus:
'''A Singleton for the DBus SystemBus'''
changeset a7c8b26ef978 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=a7c8b26ef978
description: Added /gpg command and re-arranged commands scope
diffstat:
src/command_system/implementation/standard.py | 31 +++++++++++++++++++-------
1 files changed, 22 insertions(+), 9 deletions(-)
diffs (58 lines):
diff -r 656eed196fa8 -r a7c8b26ef978 src/command_system/implementation/standard.py
--- a/src/command_system/implementation/standard.py Thu Mar 18 08:32:47 2010 +0200
+++ b/src/command_system/implementation/standard.py Thu Mar 18 10:45:56 2010 +0200
@@ -157,13 +157,18 @@
for connection in gajim.connections.itervalues():
connection.change_status('online', message)
-class StandardChatCommands(CommandContainer):
+class StandardCommonChatCommands(CommandContainer):
"""
- This command container contains standard command which are unique to
- a chat.
+ This command container contans standard commands, which are common
+ to a chat and a private chat only.
"""
- HOSTS = (ChatCommands,)
+ HOSTS = (ChatCommands, PrivateChatCommands)
+
+ @command
+ @documentation(_("Toggle the GPG encryption"))
+ def gpg(self):
+ self._toggle_gpg()
@command
@documentation(_("Send a ping to the contact"))
@@ -209,18 +214,26 @@
state = self._video_button.get_active()
self._video_button.set_active(not state)
+class StandardChatCommands(CommandContainer):
+ """
+ This command container contains standard commands which are unique
+ to a chat.
+ """
+
+ HOSTS = (ChatCommands,)
+
class StandardPrivateChatCommands(CommandContainer):
"""
- This command container contains standard command which are unique to
- a private chat.
+ This command container contains standard commands which are unique
+ to a private chat.
"""
HOSTS = (PrivateChatCommands,)
-class StandardGroupchatCommands(CommandContainer):
+class StandardGroupChatCommands(CommandContainer):
"""
- This command container contains standard command which are unique to
- a group chat.
+ This command container contains standard commands which are unique
+ to a group chat.
"""
HOSTS = (GroupChatCommands,)
changeset 656eed196fa8 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=656eed196fa8
description: Missed some copyrights, updating
diffstat:
src/command_system/__init__.py | 2 +-
src/command_system/dispatching.py | 2 +-
src/command_system/errors.py | 2 +-
src/command_system/framework.py | 2 +-
src/command_system/mapping.py | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 82611d8a9256 -r 656eed196fa8 src/command_system/__init__.py
--- a/src/command_system/__init__.py Thu Mar 18 08:29:44 2010 +0200
+++ b/src/command_system/__init__.py Thu Mar 18 08:32:47 2010 +0200
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 Alexander Cherniuk <ts33kr(a)gmail.com>
+# Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr(a)gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -r 82611d8a9256 -r 656eed196fa8 src/command_system/dispatching.py
--- a/src/command_system/dispatching.py Thu Mar 18 08:29:44 2010 +0200
+++ b/src/command_system/dispatching.py Thu Mar 18 08:32:47 2010 +0200
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 Alexander Cherniuk <ts33kr(a)gmail.com>
+# Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr(a)gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -r 82611d8a9256 -r 656eed196fa8 src/command_system/errors.py
--- a/src/command_system/errors.py Thu Mar 18 08:29:44 2010 +0200
+++ b/src/command_system/errors.py Thu Mar 18 08:32:47 2010 +0200
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 Alexander Cherniuk <ts33kr(a)gmail.com>
+# Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr(a)gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -r 82611d8a9256 -r 656eed196fa8 src/command_system/framework.py
--- a/src/command_system/framework.py Thu Mar 18 08:29:44 2010 +0200
+++ b/src/command_system/framework.py Thu Mar 18 08:32:47 2010 +0200
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 Alexander Cherniuk <ts33kr(a)gmail.com>
+# Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr(a)gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -r 82611d8a9256 -r 656eed196fa8 src/command_system/mapping.py
--- a/src/command_system/mapping.py Thu Mar 18 08:29:44 2010 +0200
+++ b/src/command_system/mapping.py Thu Mar 18 08:32:47 2010 +0200
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 Alexander Cherniuk <ts33kr(a)gmail.com>
+# Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr(a)gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
changeset 82611d8a9256 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=82611d8a9256
description: Updated copyright date in the command system
diffstat:
src/command_system/implementation/__init__.py | 2 +-
src/command_system/implementation/custom.py | 2 +-
src/command_system/implementation/hosts.py | 2 +-
src/command_system/implementation/middleware.py | 2 +-
src/command_system/implementation/standard.py | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 204ec09ebdc1 -r 82611d8a9256 src/command_system/implementation/__init__.py
--- a/src/command_system/implementation/__init__.py Thu Mar 18 08:17:48 2010 +0200
+++ b/src/command_system/implementation/__init__.py Thu Mar 18 08:29:44 2010 +0200
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 Alexander Cherniuk <ts33kr(a)gmail.com>
+# Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr(a)gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -r 204ec09ebdc1 -r 82611d8a9256 src/command_system/implementation/custom.py
--- a/src/command_system/implementation/custom.py Thu Mar 18 08:17:48 2010 +0200
+++ b/src/command_system/implementation/custom.py Thu Mar 18 08:29:44 2010 +0200
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 Alexander Cherniuk <ts33kr(a)gmail.com>
+# Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr(a)gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -r 204ec09ebdc1 -r 82611d8a9256 src/command_system/implementation/hosts.py
--- a/src/command_system/implementation/hosts.py Thu Mar 18 08:17:48 2010 +0200
+++ b/src/command_system/implementation/hosts.py Thu Mar 18 08:29:44 2010 +0200
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 Alexander Cherniuk <ts33kr(a)gmail.com>
+# Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr(a)gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -r 204ec09ebdc1 -r 82611d8a9256 src/command_system/implementation/middleware.py
--- a/src/command_system/implementation/middleware.py Thu Mar 18 08:17:48 2010 +0200
+++ b/src/command_system/implementation/middleware.py Thu Mar 18 08:29:44 2010 +0200
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 Alexander Cherniuk <ts33kr(a)gmail.com>
+# Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr(a)gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff -r 204ec09ebdc1 -r 82611d8a9256 src/command_system/implementation/standard.py
--- a/src/command_system/implementation/standard.py Thu Mar 18 08:17:48 2010 +0200
+++ b/src/command_system/implementation/standard.py Thu Mar 18 08:29:44 2010 +0200
@@ -1,4 +1,4 @@
-# Copyright (C) 2009 Alexander Cherniuk <ts33kr(a)gmail.com>
+# Copyright (C) 2009-2010 Alexander Cherniuk <ts33kr(a)gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by