/bin/ScriptEngines/PythonScript/mumble/MurmurControl/Murmur_ice.py
Python | 3747 lines | 3722 code | 8 blank | 17 comment | 52 complexity | 65c89fd1d630fc1b3bbb33fb26afb381 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- # **********************************************************************
- #
- # Copyright (c) 2003-2010 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.1
- # <auto-generated>
- #
- # Generated from file `Murmur.ice'
- #
- # Warning: do not edit this file.
- #
- # </auto-generated>
- import Ice, IcePy, __builtin__
- # Start of module Murmur
- _M_Murmur = Ice.openModule('Murmur')
- __name__ = 'Murmur'
- _M_Murmur.__doc__ = '''Information and control of the murmur server. Each server has
- one [Meta] interface that controls global information, and
- each virtual server has a [Server] interface.'''
- if not _M_Murmur.__dict__.has_key('_t_NetAddress'):
- _M_Murmur._t_NetAddress = IcePy.defineSequence('::Murmur::NetAddress', ('python:seq:tuple',), IcePy._t_byte)
- if not _M_Murmur.__dict__.has_key('User'):
- _M_Murmur.User = Ice.createTempClass()
- class User(object):
- '''A connected user.'''
- def __init__(self, session=0, userid=0, mute=False, deaf=False, suppress=False, selfMute=False, selfDeaf=False, channel=0, name='', onlinesecs=0, bytespersec=0, version=0, release='', os='', osversion='', identity='', context='', comment='', address=None, tcponly=False, idlesecs=0):
- self.session = session
- self.userid = userid
- self.mute = mute
- self.deaf = deaf
- self.suppress = suppress
- self.selfMute = selfMute
- self.selfDeaf = selfDeaf
- self.channel = channel
- self.name = name
- self.onlinesecs = onlinesecs
- self.bytespersec = bytespersec
- self.version = version
- self.release = release
- self.os = os
- self.osversion = osversion
- self.identity = identity
- self.context = context
- self.comment = comment
- self.address = address
- self.tcponly = tcponly
- self.idlesecs = idlesecs
- def __hash__(self):
- _h = 0
- _h = 5 * _h + __builtin__.hash(self.session)
- _h = 5 * _h + __builtin__.hash(self.userid)
- _h = 5 * _h + __builtin__.hash(self.mute)
- _h = 5 * _h + __builtin__.hash(self.deaf)
- _h = 5 * _h + __builtin__.hash(self.suppress)
- _h = 5 * _h + __builtin__.hash(self.selfMute)
- _h = 5 * _h + __builtin__.hash(self.selfDeaf)
- _h = 5 * _h + __builtin__.hash(self.channel)
- _h = 5 * _h + __builtin__.hash(self.name)
- _h = 5 * _h + __builtin__.hash(self.onlinesecs)
- _h = 5 * _h + __builtin__.hash(self.bytespersec)
- _h = 5 * _h + __builtin__.hash(self.version)
- _h = 5 * _h + __builtin__.hash(self.release)
- _h = 5 * _h + __builtin__.hash(self.os)
- _h = 5 * _h + __builtin__.hash(self.osversion)
- _h = 5 * _h + __builtin__.hash(self.identity)
- _h = 5 * _h + __builtin__.hash(self.context)
- _h = 5 * _h + __builtin__.hash(self.comment)
- if self.address:
- for _i0 in self.address:
- _h = 5 * _h + __builtin__.hash(_i0)
- _h = 5 * _h + __builtin__.hash(self.tcponly)
- _h = 5 * _h + __builtin__.hash(self.idlesecs)
- return _h % 0x7fffffff
- def __lt__(self, other):
- if isinstance(other, _M_Murmur.User):
- return self.session < other.session or self.userid < other.userid or self.mute < other.mute or self.deaf < other.deaf or self.suppress < other.suppress or self.selfMute < other.selfMute or self.selfDeaf < other.selfDeaf or self.channel < other.channel or self.name < other.name or self.onlinesecs < other.onlinesecs or self.bytespersec < other.bytespersec or self.version < other.version or self.release < other.release or self.os < other.os or self.osversion < other.osversion or self.identity < other.identity or self.context < other.context or self.comment < other.comment or self.address < other.address or self.tcponly < other.tcponly or self.idlesecs < other.idlesecs
- elif other == None:
- return False
- return NotImplemented
- def __le__(self, other):
- if isinstance(other, _M_Murmur.User):
- return self.session <= other.session or self.userid <= other.userid or self.mute <= other.mute or self.deaf <= other.deaf or self.suppress <= other.suppress or self.selfMute <= other.selfMute or self.selfDeaf <= other.selfDeaf or self.channel <= other.channel or self.name <= other.name or self.onlinesecs <= other.onlinesecs or self.bytespersec <= other.bytespersec or self.version <= other.version or self.release <= other.release or self.os <= other.os or self.osversion <= other.osversion or self.identity <= other.identity or self.context <= other.context or self.comment <= other.comment or self.address <= other.address or self.tcponly <= other.tcponly or self.idlesecs <= other.idlesecs
- elif other == None:
- return False
- return NotImplemented
- def __eq__(self, other):
- if isinstance(other, _M_Murmur.User):
- return self.session == other.session and self.userid == other.userid and self.mute == other.mute and self.deaf == other.deaf and self.suppress == other.suppress and self.selfMute == other.selfMute and self.selfDeaf == other.selfDeaf and self.channel == other.channel and self.name == other.name and self.onlinesecs == other.onlinesecs and self.bytespersec == other.bytespersec and self.version == other.version and self.release == other.release and self.os == other.os and self.osversion == other.osversion and self.identity == other.identity and self.context == other.context and self.comment == other.comment and self.address == other.address and self.tcponly == other.tcponly and self.idlesecs == other.idlesecs
- elif other == None:
- return False
- return NotImplemented
- def __ne__(self, other):
- if isinstance(other, _M_Murmur.User):
- return self.session != other.session or self.userid != other.userid or self.mute != other.mute or self.deaf != other.deaf or self.suppress != other.suppress or self.selfMute != other.selfMute or self.selfDeaf != other.selfDeaf or self.channel != other.channel or self.name != other.name or self.onlinesecs != other.onlinesecs or self.bytespersec != other.bytespersec or self.version != other.version or self.release != other.release or self.os != other.os or self.osversion != other.osversion or self.identity != other.identity or self.context != other.context or self.comment != other.comment or self.address != other.address or self.tcponly != other.tcponly or self.idlesecs != other.idlesecs
- elif other == None:
- return True
- return NotImplemented
- def __gt__(self, other):
- if isinstance(other, _M_Murmur.User):
- return self.session > other.session or self.userid > other.userid or self.mute > other.mute or self.deaf > other.deaf or self.suppress > other.suppress or self.selfMute > other.selfMute or self.selfDeaf > other.selfDeaf or self.channel > other.channel or self.name > other.name or self.onlinesecs > other.onlinesecs or self.bytespersec > other.bytespersec or self.version > other.version or self.release > other.release or self.os > other.os or self.osversion > other.osversion or self.identity > other.identity or self.context > other.context or self.comment > other.comment or self.address > other.address or self.tcponly > other.tcponly or self.idlesecs > other.idlesecs
- elif other == None:
- return False
- return NotImplemented
- def __ge__(self, other):
- if isinstance(other, _M_Murmur.User):
- return self.session >= other.session or self.userid >= other.userid or self.mute >= other.mute or self.deaf >= other.deaf or self.suppress >= other.suppress or self.selfMute >= other.selfMute or self.selfDeaf >= other.selfDeaf or self.channel >= other.channel or self.name >= other.name or self.onlinesecs >= other.onlinesecs or self.bytespersec >= other.bytespersec or self.version >= other.version or self.release >= other.release or self.os >= other.os or self.osversion >= other.osversion or self.identity >= other.identity or self.context >= other.context or self.comment >= other.comment or self.address >= other.address or self.tcponly >= other.tcponly or self.idlesecs >= other.idlesecs
- elif other == None:
- return False
- return NotImplemented
- def __str__(self):
- return IcePy.stringify(self, _M_Murmur._t_User)
- __repr__ = __str__
- _M_Murmur._t_User = IcePy.defineStruct('::Murmur::User', User, (), (
- ('session', (), IcePy._t_int),
- ('userid', (), IcePy._t_int),
- ('mute', (), IcePy._t_bool),
- ('deaf', (), IcePy._t_bool),
- ('suppress', (), IcePy._t_bool),
- ('selfMute', (), IcePy._t_bool),
- ('selfDeaf', (), IcePy._t_bool),
- ('channel', (), IcePy._t_int),
- ('name', (), IcePy._t_string),
- ('onlinesecs', (), IcePy._t_int),
- ('bytespersec', (), IcePy._t_int),
- ('version', (), IcePy._t_int),
- ('release', (), IcePy._t_string),
- ('os', (), IcePy._t_string),
- ('osversion', (), IcePy._t_string),
- ('identity', (), IcePy._t_string),
- ('context', (), IcePy._t_string),
- ('comment', (), IcePy._t_string),
- ('address', (), _M_Murmur._t_NetAddress),
- ('tcponly', (), IcePy._t_bool),
- ('idlesecs', (), IcePy._t_int)
- ))
- _M_Murmur.User = User
- del User
- if not _M_Murmur.__dict__.has_key('_t_IntList'):
- _M_Murmur._t_IntList = IcePy.defineSequence('::Murmur::IntList', (), IcePy._t_int)
- if not _M_Murmur.__dict__.has_key('Channel'):
- _M_Murmur.Channel = Ice.createTempClass()
- class Channel(object):
- '''A channel.'''
- def __init__(self, id=0, name='', parent=0, links=None, description='', temporary=False, position=0):
- self.id = id
- self.name = name
- self.parent = parent
- self.links = links
- self.description = description
- self.temporary = temporary
- self.position = position
- def __hash__(self):
- _h = 0
- _h = 5 * _h + __builtin__.hash(self.id)
- _h = 5 * _h + __builtin__.hash(self.name)
- _h = 5 * _h + __builtin__.hash(self.parent)
- if self.links:
- for _i0 in self.links:
- _h = 5 * _h + __builtin__.hash(_i0)
- _h = 5 * _h + __builtin__.hash(self.description)
- _h = 5 * _h + __builtin__.hash(self.temporary)
- _h = 5 * _h + __builtin__.hash(self.position)
- return _h % 0x7fffffff
- def __lt__(self, other):
- if isinstance(other, _M_Murmur.Channel):
- return self.id < other.id or self.name < other.name or self.parent < other.parent or self.links < other.links or self.description < other.description or self.temporary < other.temporary or self.position < other.position
- elif other == None:
- return False
- return NotImplemented
- def __le__(self, other):
- if isinstance(other, _M_Murmur.Channel):
- return self.id <= other.id or self.name <= other.name or self.parent <= other.parent or self.links <= other.links or self.description <= other.description or self.temporary <= other.temporary or self.position <= other.position
- elif other == None:
- return False
- return NotImplemented
- def __eq__(self, other):
- if isinstance(other, _M_Murmur.Channel):
- return self.id == other.id and self.name == other.name and self.parent == other.parent and self.links == other.links and self.description == other.description and self.temporary == other.temporary and self.position == other.position
- elif other == None:
- return False
- return NotImplemented
- def __ne__(self, other):
- if isinstance(other, _M_Murmur.Channel):
- return self.id != other.id or self.name != other.name or self.parent != other.parent or self.links != other.links or self.description != other.description or self.temporary != other.temporary or self.position != other.position
- elif other == None:
- return True
- return NotImplemented
- def __gt__(self, other):
- if isinstance(other, _M_Murmur.Channel):
- return self.id > other.id or self.name > other.name or self.parent > other.parent or self.links > other.links or self.description > other.description or self.temporary > other.temporary or self.position > other.position
- elif other == None:
- return False
- return NotImplemented
- def __ge__(self, other):
- if isinstance(other, _M_Murmur.Channel):
- return self.id >= other.id or self.name >= other.name or self.parent >= other.parent or self.links >= other.links or self.description >= other.description or self.temporary >= other.temporary or self.position >= other.position
- elif other == None:
- return False
- return NotImplemented
- def __str__(self):
- return IcePy.stringify(self, _M_Murmur._t_Channel)
- __repr__ = __str__
- _M_Murmur._t_Channel = IcePy.defineStruct('::Murmur::Channel', Channel, (), (
- ('id', (), IcePy._t_int),
- ('name', (), IcePy._t_string),
- ('parent', (), IcePy._t_int),
- ('links', (), _M_Murmur._t_IntList),
- ('description', (), IcePy._t_string),
- ('temporary', (), IcePy._t_bool),
- ('position', (), IcePy._t_int)
- ))
- _M_Murmur.Channel = Channel
- del Channel
- if not _M_Murmur.__dict__.has_key('Group'):
- _M_Murmur.Group = Ice.createTempClass()
- class Group(object):
- '''A group. Groups are defined per channel, and can inherit members from parent channels.'''
- def __init__(self, name='', inherited=False, inherit=False, inheritable=False, add=None, remove=None, members=None):
- self.name = name
- self.inherited = inherited
- self.inherit = inherit
- self.inheritable = inheritable
- self.add = add
- self.remove = remove
- self.members = members
- def __hash__(self):
- _h = 0
- _h = 5 * _h + __builtin__.hash(self.name)
- _h = 5 * _h + __builtin__.hash(self.inherited)
- _h = 5 * _h + __builtin__.hash(self.inherit)
- _h = 5 * _h + __builtin__.hash(self.inheritable)
- if self.add:
- for _i0 in self.add:
- _h = 5 * _h + __builtin__.hash(_i0)
- if self.remove:
- for _i1 in self.remove:
- _h = 5 * _h + __builtin__.hash(_i1)
- if self.members:
- for _i2 in self.members:
- _h = 5 * _h + __builtin__.hash(_i2)
- return _h % 0x7fffffff
- def __lt__(self, other):
- if isinstance(other, _M_Murmur.Group):
- return self.name < other.name or self.inherited < other.inherited or self.inherit < other.inherit or self.inheritable < other.inheritable or self.add < other.add or self.remove < other.remove or self.members < other.members
- elif other == None:
- return False
- return NotImplemented
- def __le__(self, other):
- if isinstance(other, _M_Murmur.Group):
- return self.name <= other.name or self.inherited <= other.inherited or self.inherit <= other.inherit or self.inheritable <= other.inheritable or self.add <= other.add or self.remove <= other.remove or self.members <= other.members
- elif other == None:
- return False
- return NotImplemented
- def __eq__(self, other):
- if isinstance(other, _M_Murmur.Group):
- return self.name == other.name and self.inherited == other.inherited and self.inherit == other.inherit and self.inheritable == other.inheritable and self.add == other.add and self.remove == other.remove and self.members == other.members
- elif other == None:
- return False
- return NotImplemented
- def __ne__(self, other):
- if isinstance(other, _M_Murmur.Group):
- return self.name != other.name or self.inherited != other.inherited or self.inherit != other.inherit or self.inheritable != other.inheritable or self.add != other.add or self.remove != other.remove or self.members != other.members
- elif other == None:
- return True
- return NotImplemented
- def __gt__(self, other):
- if isinstance(other, _M_Murmur.Group):
- return self.name > other.name or self.inherited > other.inherited or self.inherit > other.inherit or self.inheritable > other.inheritable or self.add > other.add or self.remove > other.remove or self.members > other.members
- elif other == None:
- return False
- return NotImplemented
- def __ge__(self, other):
- if isinstance(other, _M_Murmur.Group):
- return self.name >= other.name or self.inherited >= other.inherited or self.inherit >= other.inherit or self.inheritable >= other.inheritable or self.add >= other.add or self.remove >= other.remove or self.members >= other.members
- elif other == None:
- return False
- return NotImplemented
- def __str__(self):
- return IcePy.stringify(self, _M_Murmur._t_Group)
- __repr__ = __str__
- _M_Murmur._t_Group = IcePy.defineStruct('::Murmur::Group', Group, (), (
- ('name', (), IcePy._t_string),
- ('inherited', (), IcePy._t_bool),
- ('inherit', (), IcePy._t_bool),
- ('inheritable', (), IcePy._t_bool),
- ('add', (), _M_Murmur._t_IntList),
- ('remove', (), _M_Murmur._t_IntList),
- ('members', (), _M_Murmur._t_IntList)
- ))
- _M_Murmur.Group = Group
- del Group
- _M_Murmur.PermissionWrite = 1
- _M_Murmur.PermissionTraverse = 2
- _M_Murmur.PermissionEnter = 4
- _M_Murmur.PermissionSpeak = 8
- _M_Murmur.PermissionWhisper = 256
- _M_Murmur.PermissionMuteDeafen = 16
- _M_Murmur.PermissionMove = 32
- _M_Murmur.PermissionMakeChannel = 64
- _M_Murmur.PermissionMakeTempChannel = 1024
- _M_Murmur.PermissionLinkChannel = 128
- _M_Murmur.PermissionTextMessage = 512
- _M_Murmur.PermissionKick = 65536
- _M_Murmur.PermissionBan = 131072
- _M_Murmur.PermissionRegister = 262144
- _M_Murmur.PermissionRegisterSelf = 524288
- if not _M_Murmur.__dict__.has_key('ACL'):
- _M_Murmur.ACL = Ice.createTempClass()
- class ACL(object):
- '''Access Control List for a channel. ACLs are defined per channel, and can be inherited from parent channels.'''
- def __init__(self, applyHere=False, applySubs=False, inherited=False, userid=0, group='', allow=0, deny=0):
- self.applyHere = applyHere
- self.applySubs = applySubs
- self.inherited = inherited
- self.userid = userid
- self.group = group
- self.allow = allow
- self.deny = deny
- def __hash__(self):
- _h = 0
- _h = 5 * _h + __builtin__.hash(self.applyHere)
- _h = 5 * _h + __builtin__.hash(self.applySubs)
- _h = 5 * _h + __builtin__.hash(self.inherited)
- _h = 5 * _h + __builtin__.hash(self.userid)
- _h = 5 * _h + __builtin__.hash(self.group)
- _h = 5 * _h + __builtin__.hash(self.allow)
- _h = 5 * _h + __builtin__.hash(self.deny)
- return _h % 0x7fffffff
- def __lt__(self, other):
- if isinstance(other, _M_Murmur.ACL):
- return self.applyHere < other.applyHere or self.applySubs < other.applySubs or self.inherited < other.inherited or self.userid < other.userid or self.group < other.group or self.allow < other.allow or self.deny < other.deny
- elif other == None:
- return False
- return NotImplemented
- def __le__(self, other):
- if isinstance(other, _M_Murmur.ACL):
- return self.applyHere <= other.applyHere or self.applySubs <= other.applySubs or self.inherited <= other.inherited or self.userid <= other.userid or self.group <= other.group or self.allow <= other.allow or self.deny <= other.deny
- elif other == None:
- return False
- return NotImplemented
- def __eq__(self, other):
- if isinstance(other, _M_Murmur.ACL):
- return self.applyHere == other.applyHere and self.applySubs == other.applySubs and self.inherited == other.inherited and self.userid == other.userid and self.group == other.group and self.allow == other.allow and self.deny == other.deny
- elif other == None:
- return False
- return NotImplemented
- def __ne__(self, other):
- if isinstance(other, _M_Murmur.ACL):
- return self.applyHere != other.applyHere or self.applySubs != other.applySubs or self.inherited != other.inherited or self.userid != other.userid or self.group != other.group or self.allow != other.allow or self.deny != other.deny
- elif other == None:
- return True
- return NotImplemented
- def __gt__(self, other):
- if isinstance(other, _M_Murmur.ACL):
- return self.applyHere > other.applyHere or self.applySubs > other.applySubs or self.inherited > other.inherited or self.userid > other.userid or self.group > other.group or self.allow > other.allow or self.deny > other.deny
- elif other == None:
- return False
- return NotImplemented
- def __ge__(self, other):
- if isinstance(other, _M_Murmur.ACL):
- return self.applyHere >= other.applyHere or self.applySubs >= other.applySubs or self.inherited >= other.inherited or self.userid >= other.userid or self.group >= other.group or self.allow >= other.allow or self.deny >= other.deny
- elif other == None:
- return False
- return NotImplemented
- def __str__(self):
- return IcePy.stringify(self, _M_Murmur._t_ACL)
- __repr__ = __str__
- _M_Murmur._t_ACL = IcePy.defineStruct('::Murmur::ACL', ACL, (), (
- ('applyHere', (), IcePy._t_bool),
- ('applySubs', (), IcePy._t_bool),
- ('inherited', (), IcePy._t_bool),
- ('userid', (), IcePy._t_int),
- ('group', (), IcePy._t_string),
- ('allow', (), IcePy._t_int),
- ('deny', (), IcePy._t_int)
- ))
- _M_Murmur.ACL = ACL
- del ACL
- if not _M_Murmur.__dict__.has_key('Ban'):
- _M_Murmur.Ban = Ice.createTempClass()
- class Ban(object):
- '''A single ip mask for a ban.'''
- def __init__(self, address=None, bits=0, name='', hash='', reason='', start=0, duration=0):
- self.address = address
- self.bits = bits
- self.name = name
- self.hash = hash
- self.reason = reason
- self.start = start
- self.duration = duration
- def __hash__(self):
- _h = 0
- if self.address:
- for _i0 in self.address:
- _h = 5 * _h + __builtin__.hash(_i0)
- _h = 5 * _h + __builtin__.hash(self.bits)
- _h = 5 * _h + __builtin__.hash(self.name)
- _h = 5 * _h + __builtin__.hash(self.hash)
- _h = 5 * _h + __builtin__.hash(self.reason)
- _h = 5 * _h + __builtin__.hash(self.start)
- _h = 5 * _h + __builtin__.hash(self.duration)
- return _h % 0x7fffffff
- def __lt__(self, other):
- if isinstance(other, _M_Murmur.Ban):
- return self.address < other.address or self.bits < other.bits or self.name < other.name or self.hash < other.hash or self.reason < other.reason or self.start < other.start or self.duration < other.duration
- elif other == None:
- return False
- return NotImplemented
- def __le__(self, other):
- if isinstance(other, _M_Murmur.Ban):
- return self.address <= other.address or self.bits <= other.bits or self.name <= other.name or self.hash <= other.hash or self.reason <= other.reason or self.start <= other.start or self.duration <= other.duration
- elif other == None:
- return False
- return NotImplemented
- def __eq__(self, other):
- if isinstance(other, _M_Murmur.Ban):
- return self.address == other.address and self.bits == other.bits and self.name == other.name and self.hash == other.hash and self.reason == other.reason and self.start == other.start and self.duration == other.duration
- elif other == None:
- return False
- return NotImplemented
- def __ne__(self, other):
- if isinstance(other, _M_Murmur.Ban):
- return self.address != other.address or self.bits != other.bits or self.name != other.name or self.hash != other.hash or self.reason != other.reason or self.start != other.start or self.duration != other.duration
- elif other == None:
- return True
- return NotImplemented
- def __gt__(self, other):
- if isinstance(other, _M_Murmur.Ban):
- return self.address > other.address or self.bits > other.bits or self.name > other.name or self.hash > other.hash or self.reason > other.reason or self.start > other.start or self.duration > other.duration
- elif other == None:
- return False
- return NotImplemented
- def __ge__(self, other):
- if isinstance(other, _M_Murmur.Ban):
- return self.address >= other.address or self.bits >= other.bits or self.name >= other.name or self.hash >= other.hash or self.reason >= other.reason or self.start >= other.start or self.duration >= other.duration
- elif other == None:
- return False
- return NotImplemented
- def __str__(self):
- return IcePy.stringify(self, _M_Murmur._t_Ban)
- __repr__ = __str__
- _M_Murmur._t_Ban = IcePy.defineStruct('::Murmur::Ban', Ban, (), (
- ('address', (), _M_Murmur._t_NetAddress),
- ('bits', (), IcePy._t_int),
- ('name', (), IcePy._t_string),
- ('hash', (), IcePy._t_string),
- ('reason', (), IcePy._t_string),
- ('start', (), IcePy._t_long),
- ('duration', (), IcePy._t_int)
- ))
- _M_Murmur.Ban = Ban
- del Ban
- if not _M_Murmur.__dict__.has_key('LogEntry'):
- _M_Murmur.LogEntry = Ice.createTempClass()
- class LogEntry(object):
- '''A entry in the log.'''
- def __init__(self, timestamp=0, txt=''):
- self.timestamp = timestamp
- self.txt = txt
- def __hash__(self):
- _h = 0
- _h = 5 * _h + __builtin__.hash(self.timestamp)
- _h = 5 * _h + __builtin__.hash(self.txt)
- return _h % 0x7fffffff
- def __lt__(self, other):
- if isinstance(other, _M_Murmur.LogEntry):
- return self.timestamp < other.timestamp or self.txt < other.txt
- elif other == None:
- return False
- return NotImplemented
- def __le__(self, other):
- if isinstance(other, _M_Murmur.LogEntry):
- return self.timestamp <= other.timestamp or self.txt <= other.txt
- elif other == None:
- return False
- return NotImplemented
- def __eq__(self, other):
- if isinstance(other, _M_Murmur.LogEntry):
- return self.timestamp == other.timestamp and self.txt == other.txt
- elif other == None:
- return False
- return NotImplemented
- def __ne__(self, other):
- if isinstance(other, _M_Murmur.LogEntry):
- return self.timestamp != other.timestamp or self.txt != other.txt
- elif other == None:
- return True
- return NotImplemented
- def __gt__(self, other):
- if isinstance(other, _M_Murmur.LogEntry):
- return self.timestamp > other.timestamp or self.txt > other.txt
- elif other == None:
- return False
- return NotImplemented
- def __ge__(self, other):
- if isinstance(other, _M_Murmur.LogEntry):
- return self.timestamp >= other.timestamp or self.txt >= other.txt
- elif other == None:
- return False
- return NotImplemented
- def __str__(self):
- return IcePy.stringify(self, _M_Murmur._t_LogEntry)
- __repr__ = __str__
- _M_Murmur._t_LogEntry = IcePy.defineStruct('::Murmur::LogEntry', LogEntry, (), (
- ('timestamp', (), IcePy._t_int),
- ('txt', (), IcePy._t_string)
- ))
- _M_Murmur.LogEntry = LogEntry
- del LogEntry
- if not _M_Murmur.__dict__.has_key('Tree'):
- _M_Murmur._t_Tree = IcePy.declareClass('::Murmur::Tree')
- _M_Murmur._t_TreePrx = IcePy.declareProxy('::Murmur::Tree')
- if not _M_Murmur.__dict__.has_key('_t_TreeList'):
- _M_Murmur._t_TreeList = IcePy.defineSequence('::Murmur::TreeList', (), _M_Murmur._t_Tree)
- if not _M_Murmur.__dict__.has_key('ChannelInfo'):
- _M_Murmur.ChannelInfo = Ice.createTempClass()
- class ChannelInfo(object):
- def __init__(self, val):
- assert(val >= 0 and val < 2)
- self.value = val
- def __str__(self):
- return self._names[self.value]
- __repr__ = __str__
- def __hash__(self):
- return self.value
- def __lt__(self, other):
- if isinstance(other, _M_Murmur.ChannelInfo):
- return self.value < other.value;
- elif other == None:
- return False
- return NotImplemented
- def __le__(self, other):
- if isinstance(other, _M_Murmur.ChannelInfo):
- return self.value <= other.value;
- elif other == None:
- return False
- return NotImplemented
- def __eq__(self, other):
- if isinstance(other, _M_Murmur.ChannelInfo):
- return self.value == other.value;
- elif other == None:
- return False
- return NotImplemented
- def __ne__(self, other):
- if isinstance(other, _M_Murmur.ChannelInfo):
- return self.value != other.value;
- elif other == None:
- return False
- return NotImplemented
- def __gt__(self, other):
- if isinstance(other, _M_Murmur.ChannelInfo):
- return self.value > other.value;
- elif other == None:
- return False
- return NotImplemented
- def __ge__(self, other):
- if isinstance(other, _M_Murmur.ChannelInfo):
- return self.value >= other.value;
- elif other == None:
- return False
- return NotImplemented
- _names = ('ChannelDescription', 'ChannelPosition')
- ChannelInfo.ChannelDescription = ChannelInfo(0)
- ChannelInfo.ChannelPosition = ChannelInfo(1)
- _M_Murmur._t_ChannelInfo = IcePy.defineEnum('::Murmur::ChannelInfo', ChannelInfo, (), (ChannelInfo.ChannelDescription, ChannelInfo.ChannelPosition))
- _M_Murmur.ChannelInfo = ChannelInfo
- del ChannelInfo
- if not _M_Murmur.__dict__.has_key('UserInfo'):
- _M_Murmur.UserInfo = Ice.createTempClass()
- class UserInfo(object):
- def __init__(self, val):
- assert(val >= 0 and val < 5)
- self.value = val
- def __str__(self):
- return self._names[self.value]
- __repr__ = __str__
- def __hash__(self):
- return self.value
- def __lt__(self, other):
- if isinstance(other, _M_Murmur.UserInfo):
- return self.value < other.value;
- elif other == None:
- return False
- return NotImplemented
- def __le__(self, other):
- if isinstance(other, _M_Murmur.UserInfo):
- return self.value <= other.value;
- elif other == None:
- return False
- return NotImplemented
- def __eq__(self, other):
- if isinstance(other, _M_Murmur.UserInfo):
- return self.value == other.value;
- elif other == None:
- return False
- return NotImplemented
- def __ne__(self, other):
- if isinstance(other, _M_Murmur.UserInfo):
- return self.value != other.value;
- elif other == None:
- return False
- return NotImplemented
- def __gt__(self, other):
- if isinstance(other, _M_Murmur.UserInfo):
- return self.value > other.value;
- elif other == None:
- return False
- return NotImplemented
- def __ge__(self, other):
- if isinstance(other, _M_Murmur.UserInfo):
- return self.value >= other.value;
- elif other == None:
- return False
- return NotImplemented
- _names = ('UserName', 'UserEmail', 'UserComment', 'UserHash', 'UserPassword')
- UserInfo.UserName = UserInfo(0)
- UserInfo.UserEmail = UserInfo(1)
- UserInfo.UserComment = UserInfo(2)
- UserInfo.UserHash = UserInfo(3)
- UserInfo.UserPassword = UserInfo(4)
- _M_Murmur._t_UserInfo = IcePy.defineEnum('::Murmur::UserInfo', UserInfo, (), (UserInfo.UserName, UserInfo.UserEmail, UserInfo.UserComment, UserInfo.UserHash, UserInfo.UserPassword))
- _M_Murmur.UserInfo = UserInfo
- del UserInfo
- if not _M_Murmur.__dict__.has_key('_t_UserMap'):
- _M_Murmur._t_UserMap = IcePy.defineDictionary('::Murmur::UserMap', (), IcePy._t_int, _M_Murmur._t_User)
- if not _M_Murmur.__dict__.has_key('_t_ChannelMap'):
- _M_Murmur._t_ChannelMap = IcePy.defineDictionary('::Murmur::ChannelMap', (), IcePy._t_int, _M_Murmur._t_Channel)
- if not _M_Murmur.__dict__.has_key('_t_ChannelList'):
- _M_Murmur._t_ChannelList = IcePy.defineSequence('::Murmur::ChannelList', (), _M_Murmur._t_Channel)
- if not _M_Murmur.__dict__.has_key('_t_UserList'):
- _M_Murmur._t_UserList = IcePy.defineSequence('::Murmur::UserList', (), _M_Murmur._t_User)
- if not _M_Murmur.__dict__.has_key('_t_GroupList'):
- _M_Murmur._t_GroupList = IcePy.defineSequence('::Murmur::GroupList', (), _M_Murmur._t_Group)
- if not _M_Murmur.__dict__.has_key('_t_ACLList'):
- _M_Murmur._t_ACLList = IcePy.defineSequence('::Murmur::ACLList', (), _M_Murmur._t_ACL)
- if not _M_Murmur.__dict__.has_key('_t_LogList'):
- _M_Murmur._t_LogList = IcePy.defineSequence('::Murmur::LogList', (), _M_Murmur._t_LogEntry)
- if not _M_Murmur.__dict__.has_key('_t_BanList'):
- _M_Murmur._t_BanList = IcePy.defineSequence('::Murmur::BanList', (), _M_Murmur._t_Ban)
- if not _M_Murmur.__dict__.has_key('_t_IdList'):
- _M_Murmur._t_IdList = IcePy.defineSequence('::Murmur::IdList', (), IcePy._t_int)
- if not _M_Murmur.__dict__.has_key('_t_NameList'):
- _M_Murmur._t_NameList = IcePy.defineSequence('::Murmur::NameList', (), IcePy._t_string)
- if not _M_Murmur.__dict__.has_key('_t_NameMap'):
- _M_Murmur._t_NameMap = IcePy.defineDictionary('::Murmur::NameMap', (), IcePy._t_int, IcePy._t_string)
- if not _M_Murmur.__dict__.has_key('_t_IdMap'):
- _M_Murmur._t_IdMap = IcePy.defineDictionary('::Murmur::IdMap', (), IcePy._t_string, IcePy._t_int)
- if not _M_Murmur.__dict__.has_key('_t_Texture'):
- _M_Murmur._t_Texture = IcePy.defineSequence('::Murmur::Texture', (), IcePy._t_byte)
- if not _M_Murmur.__dict__.has_key('_t_ConfigMap'):
- _M_Murmur._t_ConfigMap = IcePy.defineDictionary('::Murmur::ConfigMap', (), IcePy._t_string, IcePy._t_string)
- if not _M_Murmur.__dict__.has_key('_t_GroupNameList'):
- _M_Murmur._t_GroupNameList = IcePy.defineSequence('::Murmur::GroupNameList', (), IcePy._t_string)
- if not _M_Murmur.__dict__.has_key('_t_CertificateDer'):
- _M_Murmur._t_CertificateDer = IcePy.defineSequence('::Murmur::CertificateDer', (), IcePy._t_byte)
- if not _M_Murmur.__dict__.has_key('_t_CertificateList'):
- _M_Murmur._t_CertificateList = IcePy.defineSequence('::Murmur::CertificateList', (), _M_Murmur._t_CertificateDer)
- if not _M_Murmur.__dict__.has_key('_t_UserInfoMap'):
- _M_Murmur._t_UserInfoMap = IcePy.defineDictionary('::Murmur::UserInfoMap', (), _M_Murmur._t_UserInfo, IcePy._t_string)
- if not _M_Murmur.__dict__.has_key('Tree'):
- _M_Murmur.Tree = Ice.createTempClass()
- class Tree(Ice.Object):
- '''User and subchannel state. Read-only.'''
- def __init__(self, c=Ice._struct_marker, children=None, users=None):
- if c is Ice._struct_marker:
- self.c = _M_Murmur.Channel()
- else:
- self.c = c
- self.children = children
- self.users = users
- def ice_ids(self, current=None):
- return ('::Ice::Object', '::Murmur::Tree')
- def ice_id(self, current=None):
- return '::Murmur::Tree'
- def ice_staticId():
- return '::Murmur::Tree'
- ice_staticId = staticmethod(ice_staticId)
- def __str__(self):
- return IcePy.stringify(self, _M_Murmur._t_Tree)
- __repr__ = __str__
- _M_Murmur.TreePrx = Ice.createTempClass()
- class TreePrx(Ice.ObjectPrx):
- def checkedCast(proxy, facetOrCtx=None, _ctx=None):
- return _M_Murmur.TreePrx.ice_checkedCast(proxy, '::Murmur::Tree', facetOrCtx, _ctx)
- checkedCast = staticmethod(checkedCast)
- def uncheckedCast(proxy, facet=None):
- return _M_Murmur.TreePrx.ice_uncheckedCast(proxy, facet)
- uncheckedCast = staticmethod(uncheckedCast)
- _M_Murmur._t_TreePrx = IcePy.defineProxy('::Murmur::Tree', TreePrx)
- _M_Murmur._t_Tree = IcePy.defineClass('::Murmur::Tree', Tree, (), False, None, (), (
- ('c', (), _M_Murmur._t_Channel),
- ('children', (), _M_Murmur._t_TreeList),
- ('users', (), _M_Murmur._t_UserList)
- ))
- Tree._ice_type = _M_Murmur._t_Tree
- _M_Murmur.Tree = Tree
- del Tree
- _M_Murmur.TreePrx = TreePrx
- del TreePrx
- if not _M_Murmur.__dict__.has_key('MurmurException'):
- _M_Murmur.MurmurException = Ice.createTempClass()
- class MurmurException(Ice.UserException):
- def __init__(self):
- pass
- def __str__(self):
- return IcePy.stringifyException(self)
- __repr__ = __str__
- _ice_name = 'Murmur::MurmurException'
- _M_Murmur._t_MurmurException = IcePy.defineException('::Murmur::MurmurException', MurmurException, (), None, ())
- MurmurException._ice_type = _M_Murmur._t_MurmurException
- _M_Murmur.MurmurException = MurmurException
- del MurmurException
- if not _M_Murmur.__dict__.has_key('InvalidSessionException'):
- _M_Murmur.InvalidSessionException = Ice.createTempClass()
- class InvalidSessionException(_M_Murmur.MurmurException):
- '''This is thrown when you specify an invalid session. This may happen if the user has disconnected since your last call to [Server::getUsers]. See [User::session]'''
- def __init__(self):
- _M_Murmur.MurmurException.__init__(self)
- def __str__(self):
- return IcePy.stringifyException(self)
- __repr__ = __str__
- _ice_name = 'Murmur::InvalidSessionException'
- _M_Murmur._t_InvalidSessionException = IcePy.defineException('::Murmur::InvalidSessionException', InvalidSessionException, (), _M_Murmur._t_MurmurException, ())
- InvalidSessionException._ice_type = _M_Murmur._t_InvalidSessionException
- _M_Murmur.InvalidSessionException = InvalidSessionException
- del InvalidSessionException
- if not _M_Murmur.__dict__.has_key('InvalidChannelException'):
- _M_Murmur.InvalidChannelException = Ice.createTempClass()
- class InvalidChannelException(_M_Murmur.MurmurException):
- '''This is thrown when you specify an invalid channel id. This may happen if the channel was removed by another provess. It can also be thrown if you try to add an invalid channel.'''
- def __init__(self):
- _M_Murmur.MurmurException.__init__(self)
- def __str__(self):
- return IcePy.stringifyException(self)
- __repr__ = __str__
- _ice_name = 'Murmur::InvalidChannelException'
- _M_Murmur._t_InvalidChannelException = IcePy.defineException('::Murmur::InvalidChannelException', InvalidChannelException, (), _M_Murmur._t_MurmurException, ())
- InvalidChannelException._ice_type = _M_Murmur._t_InvalidChannelException
- _M_Murmur.InvalidChannelException = InvalidChannelException
- del InvalidChannelException
- if not _M_Murmur.__dict__.has_key('InvalidServerException'):
- _M_Murmur.InvalidServerException = Ice.createTempClass()
- class InvalidServerException(_M_Murmur.MurmurException):
- '''This is thrown when you try to do an operation on a server that does not exist. This may happen if someone has removed the server.'''
- def __init__(self):
- _M_Murmur.MurmurException.__init__(self)
- def __str__(self):
- return IcePy.stringifyException(self)
- __repr__ = __str__
- _ice_name = 'Murmur::InvalidServerException'
- _M_Murmur._t_InvalidServerException = IcePy.defineException('::Murmur::InvalidServerException', InvalidServerException, (), _M_Murmur._t_MurmurException, ())
- InvalidServerException._ice_type = _M_Murmur._t_InvalidServerException
- _M_Murmur.InvalidServerException = InvalidServerException
- del InvalidServerException
- if not _M_Murmur.__dict__.has_key('ServerBootedException'):
- _M_Murmur.ServerBootedException = Ice.createTempClass()
- class ServerBootedException(_M_Murmur.MurmurException):
- '''This happens if you try to fetch user or channel state on a stopped server, if you try to stop an already stopped server or start an already started server.'''
- def __init__(self):
- _M_Murmur.MurmurException.__init__(self)
- def __str__(self):
- return IcePy.stringifyException(self)
- __repr__ = __str__
- _ice_name = 'Murmur::ServerBootedException'
- _M_Murmur._t_ServerBootedException = IcePy.defineException('::Murmur::ServerBootedException', ServerBootedException, (), _M_Murmur._t_MurmurException, ())
- ServerBootedException._ice_type = _M_Murmur._t_ServerBootedException
- _M_Murmur.ServerBootedException = ServerBootedException
- del ServerBootedException
- if not _M_Murmur.__dict__.has_key('ServerFailureException'):
- _M_Murmur.ServerFailureException = Ice.createTempClass()
- class ServerFailureException(_M_Murmur.MurmurException):
- '''This is thrown if [Server::start] fails, and should generally be the cause for some concern.'''
- def __init__(self):
- _M_Murmur.MurmurException.__init__(self)
- def __str__(self):
- return IcePy.stringifyException(self)
- __repr__ = __str__
- _ice_name = 'Murmur::ServerFailureException'
- _M_Murmur._t_ServerFailureException = IcePy.defineException('::Murmur::ServerFailureException', ServerFailureException, (), _M_Murmur._t_MurmurException, ())
- ServerFailureException._ice_type = _M_Murmur._t_ServerFailureException
- _M_Murmur.ServerFailureException = ServerFailureException
- del ServerFailureException
- if not _M_Murmur.__dict__.has_key('InvalidUserException'):
- _M_Murmur.InvalidUserException = Ice.createTempClass()
- class InvalidUserException(_M_Murmur.MurmurException):
- '''This is thrown when you specify an invalid userid.'''
- def __init__(self):
- _M_Murmur.MurmurException.__init__(self)
- def __str__(self):
- return IcePy.stringifyException(self)
- __repr__ = __str__
- _ice_name = 'Murmur::InvalidUserException'
- _M_Murmur._t_InvalidUserException = IcePy.defineException('::Murmur::InvalidUserException', InvalidUserException, (), _M_Murmur._t_MurmurException, ())
- InvalidUserException._ice_type = _M_Murmur._t_InvalidUserException
- _M_Murmur.InvalidUserException = InvalidUserException
- del InvalidUserException
- if not _M_Murmur.__dict__.has_key('InvalidTextureException'):
- _M_Murmur.InvalidTextureException = Ice.createTempClass()
- class InvalidTextureException(_M_Murmur.MurmurException):
- '''This is thrown when you try to set an invalid texture.'''
- def __init__(self):
- _M_Murmur.MurmurException.__init__(self)
- def __str__(self):
- return IcePy.stringifyException(self)
- __repr__ = __str__
- _ice_name = 'Murmur::InvalidTextureException'
- _M_Murmur._t_InvalidTextureException = IcePy.defineException('::Murmur::InvalidTextureException', InvalidTextureException, (), _M_Murmur._t_MurmurException, ())
- InvalidTextureException._ice_type = _M_Murmur._t_InvalidTextureException
- _M_Murmur.InvalidTextureException = InvalidTextureException
- del InvalidTextureException
- if not _M_Murmur.__dict__.has_key('InvalidCallbackException'):
- _M_Murmur.InvalidCallbackException = Ice.createTempClass()
- class InvalidCallbackException(_M_Murmur.MurmurException):
- '''This is thrown when you supply an invalid callback.'''
- def __init__(self):
- _M_Murmur.MurmurException.__init__(self)
- def __str__(self):
- return IcePy.stringifyException(self)
- __repr__ = __str__
- _ice_name = 'Murmur::InvalidCallbackException'
- _M_Murmur._t_InvalidCallbackException = IcePy.defineException('::Murmur::InvalidCallbackException', InvalidCallbackException, (), _M_Murmur._t_MurmurException, ())
- InvalidCallbackException._ice_type = _M_Murmur._t_InvalidCallbackException
- _M_Murmur.InvalidCallbackException = InvalidCallbackException
- del InvalidCallbackException
- if not _M_Murmur.__dict__.has_key('InvalidSecretException'):
- _M_Murmur.InvalidSecretException = Ice.createTempClass()
- class InvalidSecretException(_M_Murmur.MurmurException):
- '''This is thrown when you supply the wrong secret in the calling context.'''
- def __init__(self):
- _M_Murmur.MurmurException.__init__(self)
- def __str__(self):
- return IcePy.stringifyException(self)
- __repr__ = __str__
- _ice_name = 'Murmur::InvalidSecretException'
- _M_Murmur._t_InvalidSecretException = IcePy.defineException('::Murmur::InvalidSecretException', InvalidSecretException, (), _M_Murmur._t_MurmurException, ())
- InvalidSecretException._ice_type = _M_Murmur._t_InvalidSecretException
- _M_Murmur.InvalidSecretException = InvalidSecretException
- del InvalidSecretException
- if not _M_Murmur.__dict__.has_key('ServerCallback'):
- _M_Murmur.ServerCallback = Ice.createTempClass()
- class ServerCallback(Ice.Object):
- '''Callback interface for servers. You can supply an implementation of this to receive notification
- messages from the server.
- If an added callback ever throws an exception or goes away, it will be automatically removed.
- Please note that all callbacks are done asynchronously; murmur does not wait for the callback to
- complete before continuing processing.
- Note that callbacks are removed when a server is stopped, so you should have a callback for
- [MetaCallback::started] which calls [Server::addCallback].'''
- def __init__(self):
- if __builtin__.type(self) == _M_Murmur.ServerCallback:
- raise RuntimeError('Murmur.ServerCallback is an abstract class')
- def ice_ids(self, current=None):
- return ('::Ice::Object', '::Murmur::ServerCallback')
- def ice_id(self, current=None):
- return '::Murmur::ServerCallback'
- def ice_staticId():
- return '::Murmur::ServerCallback'
- ice_staticId = staticmethod(ice_staticId)
- def userConnected(self, state, current=None):
- '''Called when a user connects to the server.
- Arguments:
- state State of connected user.'''
- pass
- def userDisconnected(self, state, current=None):
- '''Called when a user disconnects from the server. The user has already been removed, so you can no longer use methods like [Server::getState]
- to retrieve the user's state.
- Arguments:
- state State of disconnected user.'''
- pass
- def userStateChanged(self, state, current=None):
- '''Called when a user state changes. This is called if the user moves, is renamed, is muted, deafened etc.
- Arguments:
- state New state of user.'''
- pass
- def channelCreated(self, state, current=None):
- '''Called when a new channel is created.
- Arguments:
- state State of new channel.'''
- pass
- def channelRemoved(self, state, current=None):
- '''Called when a channel is removed. The channel has already been removed, you can no longer use methods like [Server::getChannelState]
- Arguments:
- state State of removed channel.'''
- pass
- def channelStateChanged(self, state, current=None):
- '''Called when a new channel state changes. This is called if the channel is moved, renamed or if new links are added.
- Arguments:
- state New state of channel.'''
- pass
- def __str__(self):
- return IcePy.stringify(self, _M_Murmur._t_ServerCallback)
- __repr…
Large files files are truncated, but you can click here to view the full file