Remove every old-style class.
This commit is contained in:
parent
27b3592e16
commit
88074cd284
44 changed files with 56 additions and 56 deletions
|
|
@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
from window import Window
|
||||
import os,pdb
|
||||
|
||||
class BoxSizer:
|
||||
class BoxSizer(object):
|
||||
"""This class manage the position of the window like boxes."""
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import os
|
|||
import pdb
|
||||
|
||||
|
||||
class Window():
|
||||
class Window(object):
|
||||
def __init__(self, parent, height, width, y, x, border=False, title="", code="utf-8"):
|
||||
self.__border=border
|
||||
self.__title=title
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ except ImportError, e:
|
|||
|
||||
|
||||
|
||||
class JP():
|
||||
class JP(object):
|
||||
def __init__(self):
|
||||
try:
|
||||
self.bridge=DBusBridgeFrontend()
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
import dbus
|
||||
|
||||
class Notify:
|
||||
class Notify(object):
|
||||
"""Used to send notification and detect if we have focus"""
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ from sat.tools.jid import JID
|
|||
|
||||
|
||||
|
||||
class QuickCardGame():
|
||||
class QuickCardGame(object):
|
||||
|
||||
def __init__(self, parent, referee, players, player_nick):
|
||||
self._autoplay = None #XXX: use 0 to activate fake play, None else
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ from sat.tools.jid import JID
|
|||
from sat_frontends.quick_frontend.quick_utils import unescapePrivate
|
||||
|
||||
|
||||
class QuickChat():
|
||||
class QuickChat(object):
|
||||
|
||||
def __init__(self, target, host, type='one2one'):
|
||||
self.target = target
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
from logging import debug
|
||||
|
||||
|
||||
class QuickContactList():
|
||||
class QuickContactList(object):
|
||||
"""This class manage the visual representation of contacts"""
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ from sat.tools.jid import JID
|
|||
import pdb
|
||||
|
||||
|
||||
class QuickContactManagement():
|
||||
class QuickContactManagement(object):
|
||||
"""This helper class manage the contacts and ease the use of nicknames and shortcuts"""
|
||||
### FIXME: is SàT a better place for all this stuff ??? ###
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
|
||||
|
||||
class QuickGatewaysManager():
|
||||
class QuickGatewaysManager(object):
|
||||
|
||||
|
||||
def __init__(self, host, gateways, title=_("Gateways manager"), server=None):
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ CARD_HEIGHT = 136
|
|||
WIDTH = 800
|
||||
HEIGHT = 600
|
||||
|
||||
class GraphicElement():
|
||||
class GraphicElement(object):
|
||||
"""This class is used to represent a card, graphically and logically"""
|
||||
|
||||
def __init__(self, file, x=0, y=0, zindex=10, transparent=True):
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ class ParseError(Exception):
|
|||
#Used when the signature parsing is going wrong (invalid signature ?)
|
||||
pass
|
||||
|
||||
class Constructor:
|
||||
class Constructor(object):
|
||||
|
||||
def __init__(self, bridge_template, options):
|
||||
self.bridge_template = bridge_template
|
||||
|
|
@ -561,7 +561,7 @@ class DbusXmlConstructor(Constructor):
|
|||
class ConstructorError(Exception):
|
||||
pass
|
||||
|
||||
class ConstructorFactory:
|
||||
class ConstructorFactory(object):
|
||||
def create(self, bridge_template, options):
|
||||
if options.protocole=='dbus':
|
||||
return DbusConstructor(bridge_template, options)
|
||||
|
|
@ -572,7 +572,7 @@ class ConstructorFactory:
|
|||
|
||||
raise ConstructorError('Unknown constructor type')
|
||||
|
||||
class BridgeConstructor:
|
||||
class BridgeConstructor(object):
|
||||
def __init__(self):
|
||||
self.options = None
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ SAVEFILE_PARAM_XML="/param" #xml parameters template
|
|||
SAVEFILE_DATABASE="/sat.db"
|
||||
|
||||
|
||||
class Params():
|
||||
class Params(object):
|
||||
"""This class manage parameters with xml"""
|
||||
### TODO: add desciption in params
|
||||
|
||||
|
|
@ -528,7 +528,7 @@ class Params():
|
|||
self.host.bridge.paramUpdate(name, value, category, profile)
|
||||
self.storage.setIndParam(category, name, value, profile)
|
||||
|
||||
class Memory:
|
||||
class Memory(object):
|
||||
"""This class manage all persistent informations"""
|
||||
|
||||
def __init__(self, host):
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ from logging import debug, info, warning, error
|
|||
class MemoryNotInitializedError(Exception):
|
||||
pass
|
||||
|
||||
class PersistentDict:
|
||||
class PersistentDict(object):
|
||||
"""A dictionary which save persistently each value assigned
|
||||
/!\ be careful, each assignment means a database write
|
||||
/!\ Memory must be initialised before loading/setting value with instances of this class"""
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ import os.path
|
|||
import time
|
||||
import cPickle as pickle
|
||||
|
||||
class SqliteStorage():
|
||||
class SqliteStorage(object):
|
||||
"""This class manage storage with Sqlite database"""
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ PLUGIN_INFO = {
|
|||
|
||||
AGENT = 'Salut à Toi XMPP/CS Plugin'
|
||||
|
||||
class CS_Plugin():
|
||||
class CS_Plugin(object):
|
||||
|
||||
params = """
|
||||
<params>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ PLUGIN_INFO = {
|
|||
"description": _("""Implementation of parrot mode (repeat messages between 2 entities)""")
|
||||
}
|
||||
|
||||
class Exp_Parrot():
|
||||
class Exp_Parrot(object):
|
||||
"""Parrot mode plugin: repeat messages from one entity or MUC room to another one"""
|
||||
#XXX: This plugin can be potentially dangerous if we don't trust entities linked
|
||||
# this is specially true if we have other triggers.
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ PLUGIN_INFO = {
|
|||
"description": _("""Implementation of SI Pipe Transfer""")
|
||||
}
|
||||
|
||||
class Exp_Pipe():
|
||||
class Exp_Pipe(object):
|
||||
"""This is a modified version of XEP-0096 to work with named pipes instead of files"""
|
||||
|
||||
def __init__(self, host):
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ class ProsodyRegisterProtocol(protocol.ProcessProtocol):
|
|||
self.deferred.errback("INTERNAL")
|
||||
|
||||
|
||||
class MiscAccount():
|
||||
class MiscAccount(object):
|
||||
"""Account plugin: create a SàT + Prosody account, used by Libervia"""
|
||||
#XXX: This plugin is a Q&D one used for the demo. Something more generic (and not
|
||||
# only focused on Prosody) is planed
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class BadAccessListError(Exception):
|
|||
class UnknownType(Exception):
|
||||
pass
|
||||
|
||||
class GroupBlog():
|
||||
class GroupBlog(object):
|
||||
"""This class use a SàT PubSub Service to manage access on microblog"""
|
||||
|
||||
def __init__(self, host):
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ PLUGIN_INFO = {
|
|||
"description": _("""Create an Imap server that you can use to read your "normal" type messages""")
|
||||
}
|
||||
|
||||
class IMAP_server():
|
||||
class IMAP_server(object):
|
||||
#TODO: connect profile on mailbox request, once password is accepted
|
||||
|
||||
params = """
|
||||
|
|
@ -75,7 +75,7 @@ class IMAP_server():
|
|||
self.server_factory = ImapServerFactory(self.host)
|
||||
reactor.listenTCP(port, self.server_factory)
|
||||
|
||||
class Message():
|
||||
class Message(object):
|
||||
implements(imap4.IMessage)
|
||||
|
||||
def __init__(self, uid, flags, mess_fp):
|
||||
|
|
@ -151,7 +151,7 @@ class Message():
|
|||
return TypeError
|
||||
|
||||
|
||||
class SatMailbox:
|
||||
class SatMailbox(object):
|
||||
implements(imap4.IMailbox)
|
||||
|
||||
def __init__(self,host,name,profile):
|
||||
|
|
@ -389,7 +389,7 @@ class ImapSatAccount(imap4.MemoryAccount):
|
|||
return SatMailbox(self.host,name,self.profile)
|
||||
|
||||
|
||||
class ImapRealm:
|
||||
class ImapRealm(object):
|
||||
implements(portal.IRealm)
|
||||
|
||||
def __init__(self,host):
|
||||
|
|
@ -402,7 +402,7 @@ class ImapRealm:
|
|||
raise NotImplementedError
|
||||
return imap4.IAccount, ImapSatAccount(self.host,profile), lambda:None
|
||||
|
||||
class SatProfileCredentialChecker:
|
||||
class SatProfileCredentialChecker(object):
|
||||
"""
|
||||
This credential checker check against SàT's profile and associated jabber's password
|
||||
Check if the profile exists, and if the password is OK
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue