/usr/share/pyshared/Ice_Identity_ice.py is in python-zeroc-ice 3.4.2-8.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | # **********************************************************************
#
# Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
#
# **********************************************************************
#
# Ice version 3.4.2
#
# <auto-generated>
#
# Generated from file `Identity.ice'
#
# Warning: do not edit this file.
#
# </auto-generated>
#
import Ice, IcePy, __builtin__
# Start of module Ice
_M_Ice = Ice.openModule('Ice')
__name__ = 'Ice'
if not _M_Ice.__dict__.has_key('Identity'):
_M_Ice.Identity = Ice.createTempClass()
class Identity(object):
'''The identity of an Ice object. In a proxy, an empty Identity#name denotes a nil
proxy. An identity with an empty Identity#name and a non-empty Identity#category
is illegal. You cannot add a servant with an empty name to the Active Servant Map.'''
def __init__(self, name='', category=''):
self.name = name
self.category = category
def __hash__(self):
_h = 0
_h = 5 * _h + __builtin__.hash(self.name)
_h = 5 * _h + __builtin__.hash(self.category)
return _h % 0x7fffffff
def __lt__(self, other):
if isinstance(other, _M_Ice.Identity):
return self.name < other.name or self.category < other.category
elif other == None:
return False
return NotImplemented
def __le__(self, other):
if isinstance(other, _M_Ice.Identity):
return self.name <= other.name or self.category <= other.category
elif other == None:
return False
return NotImplemented
def __eq__(self, other):
if isinstance(other, _M_Ice.Identity):
return self.name == other.name and self.category == other.category
elif other == None:
return False
return NotImplemented
def __ne__(self, other):
if isinstance(other, _M_Ice.Identity):
return self.name != other.name or self.category != other.category
elif other == None:
return True
return NotImplemented
def __gt__(self, other):
if isinstance(other, _M_Ice.Identity):
return self.name > other.name or self.category > other.category
elif other == None:
return False
return NotImplemented
def __ge__(self, other):
if isinstance(other, _M_Ice.Identity):
return self.name >= other.name or self.category >= other.category
elif other == None:
return False
return NotImplemented
def __str__(self):
return IcePy.stringify(self, _M_Ice._t_Identity)
__repr__ = __str__
_M_Ice._t_Identity = IcePy.defineStruct('::Ice::Identity', Identity, (), (
('name', (), IcePy._t_string),
('category', (), IcePy._t_string)
))
_M_Ice.Identity = Identity
del Identity
if not _M_Ice.__dict__.has_key('_t_ObjectDict'):
_M_Ice._t_ObjectDict = IcePy.defineDictionary('::Ice::ObjectDict', (), _M_Ice._t_Identity, IcePy._t_Object)
if not _M_Ice.__dict__.has_key('_t_IdentitySeq'):
_M_Ice._t_IdentitySeq = IcePy.defineSequence('::Ice::IdentitySeq', (), _M_Ice._t_Identity)
# End of module Ice
|