~ubuntu-branches/ubuntu/trusty/telepathy-python/trusty

« back to all changes in this revision

Viewing changes to src/server/handle.py

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2010-11-21 19:49:38 UTC
  • mfrom: (1.4.1 upstream) (11.1.6 sid)
  • mto: (11.1.7 sid)
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: james.westby@ubuntu.com-20101121194938-ulhgwjq1vnwofzsa
Tags: 0.15.18-1
* New upstream release.
* Bump Standards-Version to 3.9.1
* Switch to dpkg-source 3.0 (quilt) format

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# telepathy-python - Base classes defining the interfaces of the Telepathy framework
2
2
#
3
 
# Copyright (C) 2005,2006 Collabora Limited
 
3
# Copyright (C) 2005,2006,2009,2010 Collabora Limited
4
4
# Copyright (C) 2005,2006 Nokia Corporation
5
5
#
6
6
# This library is free software; you can redistribute it and/or
17
17
# License along with this library; if not, write to the Free Software
18
18
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 
 
20
from telepathy.constants import HANDLE_TYPE_NONE
 
21
 
20
22
class Handle(object):
21
23
    def __init__(self, id, handle_type, name):
22
24
        self._id = id
43
45
 
44
46
    def __ne__(self, other):
45
47
        return not self.__eq__(other)
 
48
 
 
49
class NoneHandle(Handle):
 
50
    def __init__(self):
 
51
        Handle.__init__(self, 0, HANDLE_TYPE_NONE, '')