diff --git a/.gitignore b/.gitignore index 1dbc687..f9961de 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,5 @@ target/ #Ipython Notebook .ipynb_checkpoints +.venv +*~ diff --git a/requirements.txt b/requirements.txt index 71bfc6b..0c6f6f3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -prometheus-client==0.0.13 -zeroc-ice==3.6.2.1 +prometheus-client==0.19.0 +zeroc-ice==3.7.10 diff --git a/src/Murmur/__init__.py b/src/Murmur/__init__.py new file mode 100644 index 0000000..69892ce --- /dev/null +++ b/src/Murmur/__init__.py @@ -0,0 +1,10 @@ +# Generated by slice2py - DO NOT EDIT! +# + +import Ice +Ice.updateModule("Murmur") + +# Modules: +import Murmur_ice + +# Submodules: diff --git a/src/Murmur_ice.py b/src/Murmur_ice.py index 3c4d7ca..9a807a4 100644 --- a/src/Murmur_ice.py +++ b/src/Murmur_ice.py @@ -1,13 +1,9 @@ -# ********************************************************************** +# -*- coding: utf-8 -*- # -# Copyright (c) 2003-2013 ZeroC, Inc. All rights reserved. +# Copyright (c) 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.5.1 +# Ice version 3.7.10 # # # @@ -18,8 +14,9 @@ # # +from sys import version_info as _version_info_ import Ice, IcePy -import Ice_SliceChecksumDict_ice +import Ice.SliceChecksumDict_ice # Included module Ice _M_Ice = Ice.openModule('Ice') @@ -34,7 +31,35 @@ if '_t_NetAddress' not in _M_Murmur.__dict__: if 'User' not in _M_Murmur.__dict__: _M_Murmur.User = Ice.createTempClass() class User(object): - '''A connected user.''' + """ + A connected user. + Members: + session -- Session ID. This identifies the connection to the server. + userid -- User ID. -1 if the user is anonymous. + mute -- Is user muted by the server? + deaf -- Is user deafened by the server? If true, this implies mute. + suppress -- Is the user suppressed by the server? This means the user is not muted, but does not have speech privileges in the current channel. + prioritySpeaker -- Is the user a priority speaker? + selfMute -- Is the user self-muted? + selfDeaf -- Is the user self-deafened? If true, this implies mute. + recording -- Is the User recording? (This flag is read-only and cannot be changed using setState().) + channel -- Channel ID the user is in. Matches Channel.id. + name -- The name of the user. + onlinesecs -- Seconds user has been online. + bytespersec -- Average transmission rate in bytes per second over the last few seconds. + version -- Client version. Major version in upper 16 bits, followed by 8 bits of minor version and 8 bits of patchlevel. Version 1.2.3 = 0x010203. + release -- Client release. For official releases, this equals the version. For snapshots and git compiles, this will be something else. + os -- Client OS. + osversion -- Client OS Version. + identity -- Plugin Identity. This will be the user's unique ID inside the current game. + context -- Plugin context. This is a binary blob identifying the game and team the user is on. + comment -- User comment. Shown as tooltip for this user. + address -- Client address. + tcponly -- TCP only. True until UDP connectivity is established. + idlesecs -- Idle time. This is how many seconds it is since the user last spoke. Other activity is not counted. + udpPing -- UDP Ping Average. This is the average ping for the user via UDP over the duration of the connection. + tcpPing -- TCP Ping Average. This is the average ping for the user via TCP over the duration of the connection. + """ def __init__(self, session=0, userid=0, mute=False, deaf=False, suppress=False, prioritySpeaker=False, selfMute=False, selfDeaf=False, recording=False, channel=0, name='', onlinesecs=0, bytespersec=0, version=0, release='', os='', osversion='', identity='', context='', comment='', address=None, tcponly=False, idlesecs=0, udpPing=0.0, tcpPing=0.0): self.session = session self.userid = userid @@ -165,7 +190,14 @@ if '_t_IntList' not in _M_Murmur.__dict__: if 'TextMessage' not in _M_Murmur.__dict__: _M_Murmur.TextMessage = Ice.createTempClass() class TextMessage(object): - '''A text message between users.''' + """ + A text message between users. + Members: + sessions -- Sessions (connected users) who were sent this message. + channels -- Channels who were sent this message. + trees -- Trees of channels who were sent this message. + text -- The contents of the message. + """ def __init__(self, sessions=None, channels=None, trees=None, text=''): self.sessions = sessions self.channels = channels @@ -286,7 +318,17 @@ if 'TextMessage' not in _M_Murmur.__dict__: if 'Channel' not in _M_Murmur.__dict__: _M_Murmur.Channel = Ice.createTempClass() class Channel(object): - '''A channel.''' + """ + A channel. + Members: + id -- Channel ID. This is unique per channel, and the root channel is always id 0. + name -- Name of the channel. There can not be two channels with the same parent that has the same name. + parent -- ID of parent channel, or -1 if this is the root channel. + links -- List of id of linked channels. + description -- Description of channel. Shown as tooltip for this channel. + temporary -- Channel is temporary, and will be removed when the last user leaves it. + position -- Position of the channel which is used in Client for sorting. + """ def __init__(self, id=0, name='', parent=0, links=None, description='', temporary=False, position=0): self.id = id self.name = name @@ -436,7 +478,17 @@ if 'Channel' not in _M_Murmur.__dict__: if 'Group' not in _M_Murmur.__dict__: _M_Murmur.Group = Ice.createTempClass() class Group(object): - '''A group. Groups are defined per channel, and can inherit members from parent channels.''' + """ + A group. Groups are defined per channel, and can inherit members from parent channels. + Members: + name -- Group name + inherited -- Is this group inherited from a parent channel? Read-only. + inherit -- Does this group inherit members from parent channels? + inheritable -- Can subchannels inherit members from this group? + add -- List of users to add to the group. + remove -- List of inherited users to remove from the group. + members -- Current members of the group, including inherited members. Read-only. + """ def __init__(self, name='', inherited=False, inherit=False, inheritable=False, add=None, remove=None, members=None): self.name = name self.inherited = inherited @@ -620,7 +672,17 @@ _M_Murmur.PermissionRegisterSelf = 524288 if 'ACL' not in _M_Murmur.__dict__: _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.''' + """ + Access Control List for a channel. ACLs are defined per channel, and can be inherited from parent channels. + Members: + applyHere -- Does the ACL apply to this channel? + applySubs -- Does the ACL apply to subchannels? + inherited -- Is this ACL inherited from a parent channel? Read-only. + userid -- ID of user this ACL applies to. -1 if using a group name. + group -- Group this ACL applies to. Blank if using userid. + allow -- Binary mask of privileges to allow. + deny -- Binary mask of privileges to deny. + """ def __init__(self, applyHere=False, applySubs=False, inherited=False, userid=0, group='', allow=0, deny=0): self.applyHere = applyHere self.applySubs = applySubs @@ -768,7 +830,17 @@ if 'ACL' not in _M_Murmur.__dict__: if 'Ban' not in _M_Murmur.__dict__: _M_Murmur.Ban = Ice.createTempClass() class Ban(object): - '''A single ip mask for a ban.''' + """ + A single ip mask for a ban. + Members: + address -- Address to ban. + bits -- Number of bits in ban to apply. + name -- Username associated with ban. + hash -- Hash of banned user. + reason -- Reason for ban. + start -- Date ban was applied in unix time format. + duration -- Duration of ban. + """ def __init__(self, address=None, bits=0, name='', hash='', reason='', start=0, duration=0): self.address = address self.bits = bits @@ -918,7 +990,12 @@ if 'Ban' not in _M_Murmur.__dict__: if 'LogEntry' not in _M_Murmur.__dict__: _M_Murmur.LogEntry = Ice.createTempClass() class LogEntry(object): - '''A entry in the log.''' + """ + A entry in the log. + Members: + timestamp -- Timestamp in UNIX time_t + txt -- The log message. + """ def __init__(self, timestamp=0, txt=''): self.timestamp = timestamp self.txt = txt @@ -1009,8 +1086,7 @@ if 'LogEntry' not in _M_Murmur.__dict__: del LogEntry if 'Tree' not in _M_Murmur.__dict__: - _M_Murmur._t_Tree = IcePy.declareClass('::Murmur::Tree') - _M_Murmur._t_TreePrx = IcePy.declareProxy('::Murmur::Tree') + _M_Murmur._t_Tree = IcePy.declareValue('::Murmur::Tree') if '_t_TreeList' not in _M_Murmur.__dict__: _M_Murmur._t_TreeList = IcePy.defineSequence('::Murmur::TreeList', (), _M_Murmur._t_Tree) @@ -1119,8 +1195,14 @@ if '_t_UserInfoMap' not in _M_Murmur.__dict__: if 'Tree' not in _M_Murmur.__dict__: _M_Murmur.Tree = Ice.createTempClass() - class Tree(Ice.Object): - '''User and subchannel state. Read-only.''' + class Tree(Ice.Value): + """ + User and subchannel state. Read-only. + Members: + c -- Channel definition of current channel. + children -- List of subchannels. + users -- Users in this channel. + """ def __init__(self, c=Ice._struct_marker, children=None, users=None): if c is Ice._struct_marker: self.c = _M_Murmur.Channel() @@ -1129,35 +1211,19 @@ if 'Tree' not in _M_Murmur.__dict__: self.children = children self.users = users - def ice_ids(self, current=None): - return ('::Ice::Object', '::Murmur::Tree') - - def ice_id(self, current=None): + def ice_id(self): return '::Murmur::Tree' + @staticmethod 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, -1, (), False, False, None, (), ( + _M_Murmur._t_Tree = IcePy.defineValue('::Murmur::Tree', Tree, -1, (), False, False, None, ( ('c', (), _M_Murmur._t_Channel, False, 0), ('children', (), _M_Murmur._t_TreeList, False, 0), ('users', (), _M_Murmur._t_UserList, False, 0) @@ -1167,9 +1233,6 @@ if 'Tree' not in _M_Murmur.__dict__: _M_Murmur.Tree = Tree del Tree - _M_Murmur.TreePrx = TreePrx - del TreePrx - if 'MurmurException' not in _M_Murmur.__dict__: _M_Murmur.MurmurException = Ice.createTempClass() class MurmurException(Ice.UserException): @@ -1181,7 +1244,7 @@ if 'MurmurException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::MurmurException' + _ice_id = '::Murmur::MurmurException' _M_Murmur._t_MurmurException = IcePy.defineException('::Murmur::MurmurException', MurmurException, (), False, None, ()) MurmurException._ice_type = _M_Murmur._t_MurmurException @@ -1192,7 +1255,9 @@ if 'MurmurException' not in _M_Murmur.__dict__: if 'InvalidSessionException' not in _M_Murmur.__dict__: _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''' + """ + 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) @@ -1201,7 +1266,7 @@ if 'InvalidSessionException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::InvalidSessionException' + _ice_id = '::Murmur::InvalidSessionException' _M_Murmur._t_InvalidSessionException = IcePy.defineException('::Murmur::InvalidSessionException', InvalidSessionException, (), False, _M_Murmur._t_MurmurException, ()) InvalidSessionException._ice_type = _M_Murmur._t_InvalidSessionException @@ -1212,7 +1277,9 @@ if 'InvalidSessionException' not in _M_Murmur.__dict__: if 'InvalidChannelException' not in _M_Murmur.__dict__: _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.''' + """ + 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) @@ -1221,7 +1288,7 @@ if 'InvalidChannelException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::InvalidChannelException' + _ice_id = '::Murmur::InvalidChannelException' _M_Murmur._t_InvalidChannelException = IcePy.defineException('::Murmur::InvalidChannelException', InvalidChannelException, (), False, _M_Murmur._t_MurmurException, ()) InvalidChannelException._ice_type = _M_Murmur._t_InvalidChannelException @@ -1232,7 +1299,9 @@ if 'InvalidChannelException' not in _M_Murmur.__dict__: if 'InvalidServerException' not in _M_Murmur.__dict__: _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.''' + """ + 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) @@ -1241,7 +1310,7 @@ if 'InvalidServerException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::InvalidServerException' + _ice_id = '::Murmur::InvalidServerException' _M_Murmur._t_InvalidServerException = IcePy.defineException('::Murmur::InvalidServerException', InvalidServerException, (), False, _M_Murmur._t_MurmurException, ()) InvalidServerException._ice_type = _M_Murmur._t_InvalidServerException @@ -1252,7 +1321,9 @@ if 'InvalidServerException' not in _M_Murmur.__dict__: if 'ServerBootedException' not in _M_Murmur.__dict__: _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.''' + """ + 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) @@ -1261,7 +1332,7 @@ if 'ServerBootedException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::ServerBootedException' + _ice_id = '::Murmur::ServerBootedException' _M_Murmur._t_ServerBootedException = IcePy.defineException('::Murmur::ServerBootedException', ServerBootedException, (), False, _M_Murmur._t_MurmurException, ()) ServerBootedException._ice_type = _M_Murmur._t_ServerBootedException @@ -1272,7 +1343,9 @@ if 'ServerBootedException' not in _M_Murmur.__dict__: if 'ServerFailureException' not in _M_Murmur.__dict__: _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.''' + """ + This is thrown if Server.start fails, and should generally be the cause for some concern. + """ def __init__(self): _M_Murmur.MurmurException.__init__(self) @@ -1281,7 +1354,7 @@ if 'ServerFailureException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::ServerFailureException' + _ice_id = '::Murmur::ServerFailureException' _M_Murmur._t_ServerFailureException = IcePy.defineException('::Murmur::ServerFailureException', ServerFailureException, (), False, _M_Murmur._t_MurmurException, ()) ServerFailureException._ice_type = _M_Murmur._t_ServerFailureException @@ -1292,7 +1365,9 @@ if 'ServerFailureException' not in _M_Murmur.__dict__: if 'InvalidUserException' not in _M_Murmur.__dict__: _M_Murmur.InvalidUserException = Ice.createTempClass() class InvalidUserException(_M_Murmur.MurmurException): - '''This is thrown when you specify an invalid userid.''' + """ + This is thrown when you specify an invalid userid. + """ def __init__(self): _M_Murmur.MurmurException.__init__(self) @@ -1301,7 +1376,7 @@ if 'InvalidUserException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::InvalidUserException' + _ice_id = '::Murmur::InvalidUserException' _M_Murmur._t_InvalidUserException = IcePy.defineException('::Murmur::InvalidUserException', InvalidUserException, (), False, _M_Murmur._t_MurmurException, ()) InvalidUserException._ice_type = _M_Murmur._t_InvalidUserException @@ -1312,7 +1387,9 @@ if 'InvalidUserException' not in _M_Murmur.__dict__: if 'InvalidTextureException' not in _M_Murmur.__dict__: _M_Murmur.InvalidTextureException = Ice.createTempClass() class InvalidTextureException(_M_Murmur.MurmurException): - '''This is thrown when you try to set an invalid texture.''' + """ + This is thrown when you try to set an invalid texture. + """ def __init__(self): _M_Murmur.MurmurException.__init__(self) @@ -1321,7 +1398,7 @@ if 'InvalidTextureException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::InvalidTextureException' + _ice_id = '::Murmur::InvalidTextureException' _M_Murmur._t_InvalidTextureException = IcePy.defineException('::Murmur::InvalidTextureException', InvalidTextureException, (), False, _M_Murmur._t_MurmurException, ()) InvalidTextureException._ice_type = _M_Murmur._t_InvalidTextureException @@ -1332,7 +1409,9 @@ if 'InvalidTextureException' not in _M_Murmur.__dict__: if 'InvalidCallbackException' not in _M_Murmur.__dict__: _M_Murmur.InvalidCallbackException = Ice.createTempClass() class InvalidCallbackException(_M_Murmur.MurmurException): - '''This is thrown when you supply an invalid callback.''' + """ + This is thrown when you supply an invalid callback. + """ def __init__(self): _M_Murmur.MurmurException.__init__(self) @@ -1341,7 +1420,7 @@ if 'InvalidCallbackException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::InvalidCallbackException' + _ice_id = '::Murmur::InvalidCallbackException' _M_Murmur._t_InvalidCallbackException = IcePy.defineException('::Murmur::InvalidCallbackException', InvalidCallbackException, (), False, _M_Murmur._t_MurmurException, ()) InvalidCallbackException._ice_type = _M_Murmur._t_InvalidCallbackException @@ -1352,7 +1431,9 @@ if 'InvalidCallbackException' not in _M_Murmur.__dict__: if 'InvalidSecretException' not in _M_Murmur.__dict__: _M_Murmur.InvalidSecretException = Ice.createTempClass() class InvalidSecretException(_M_Murmur.MurmurException): - '''This is thrown when you supply the wrong secret in the calling context.''' + """ + This is thrown when you supply the wrong secret in the calling context. + """ def __init__(self): _M_Murmur.MurmurException.__init__(self) @@ -1361,7 +1442,7 @@ if 'InvalidSecretException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::InvalidSecretException' + _ice_id = '::Murmur::InvalidSecretException' _M_Murmur._t_InvalidSecretException = IcePy.defineException('::Murmur::InvalidSecretException', InvalidSecretException, (), False, _M_Murmur._t_MurmurException, ()) InvalidSecretException._ice_type = _M_Murmur._t_InvalidSecretException @@ -1372,7 +1453,9 @@ if 'InvalidSecretException' not in _M_Murmur.__dict__: if 'NestingLimitException' not in _M_Murmur.__dict__: _M_Murmur.NestingLimitException = Ice.createTempClass() class NestingLimitException(_M_Murmur.MurmurException): - '''This is thrown when the channel operation would excede the channel nesting limit''' + """ + This is thrown when the channel operation would excede the channel nesting limit + """ def __init__(self): _M_Murmur.MurmurException.__init__(self) @@ -1381,7 +1464,7 @@ if 'NestingLimitException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::NestingLimitException' + _ice_id = '::Murmur::NestingLimitException' _M_Murmur._t_NestingLimitException = IcePy.defineException('::Murmur::NestingLimitException', NestingLimitException, (), False, _M_Murmur._t_MurmurException, ()) NestingLimitException._ice_type = _M_Murmur._t_NestingLimitException @@ -1392,7 +1475,9 @@ if 'NestingLimitException' not in _M_Murmur.__dict__: if 'WriteOnlyException' not in _M_Murmur.__dict__: _M_Murmur.WriteOnlyException = Ice.createTempClass() class WriteOnlyException(_M_Murmur.MurmurException): - '''This is thrown when you ask the server to disclose something that should be secret.''' + """ + This is thrown when you ask the server to disclose something that should be secret. + """ def __init__(self): _M_Murmur.MurmurException.__init__(self) @@ -1401,7 +1486,7 @@ if 'WriteOnlyException' not in _M_Murmur.__dict__: __repr__ = __str__ - _ice_name = 'Murmur::WriteOnlyException' + _ice_id = '::Murmur::WriteOnlyException' _M_Murmur._t_WriteOnlyException = IcePy.defineException('::Murmur::WriteOnlyException', WriteOnlyException, (), False, _M_Murmur._t_MurmurException, ()) WriteOnlyException._ice_type = _M_Murmur._t_WriteOnlyException @@ -1409,19 +1494,318 @@ if 'WriteOnlyException' not in _M_Murmur.__dict__: _M_Murmur.WriteOnlyException = WriteOnlyException del WriteOnlyException -if 'ServerCallback' not in _M_Murmur.__dict__: +_M_Murmur._t_ServerCallback = IcePy.defineValue('::Murmur::ServerCallback', Ice.Value, -1, (), False, True, None, ()) + +if 'ServerCallbackPrx' not in _M_Murmur.__dict__: + _M_Murmur.ServerCallbackPrx = Ice.createTempClass() + class ServerCallbackPrx(Ice.ObjectPrx): + + """ + Called when a user connects to the server. + Arguments: + state -- State of connected user. + context -- The request context for the invocation. + """ + def userConnected(self, state, context=None): + return _M_Murmur.ServerCallback._op_userConnected.invoke(self, ((state, ), context)) + + """ + Called when a user connects to the server. + Arguments: + state -- State of connected user. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def userConnectedAsync(self, state, context=None): + return _M_Murmur.ServerCallback._op_userConnected.invokeAsync(self, ((state, ), context)) + + """ + Called when a user connects to the server. + Arguments: + state -- State of connected user. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_userConnected(self, state, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerCallback._op_userConnected.begin(self, ((state, ), _response, _ex, _sent, context)) + + """ + Called when a user connects to the server. + Arguments: + state -- State of connected user. + """ + def end_userConnected(self, _r): + return _M_Murmur.ServerCallback._op_userConnected.end(self, _r) + + """ + 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. + context -- The request context for the invocation. + """ + def userDisconnected(self, state, context=None): + return _M_Murmur.ServerCallback._op_userDisconnected.invoke(self, ((state, ), context)) + + """ + 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. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def userDisconnectedAsync(self, state, context=None): + return _M_Murmur.ServerCallback._op_userDisconnected.invokeAsync(self, ((state, ), context)) + + """ + 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. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_userDisconnected(self, state, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerCallback._op_userDisconnected.begin(self, ((state, ), _response, _ex, _sent, context)) + + """ + 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. + """ + def end_userDisconnected(self, _r): + return _M_Murmur.ServerCallback._op_userDisconnected.end(self, _r) + + """ + 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. + context -- The request context for the invocation. + """ + def userStateChanged(self, state, context=None): + return _M_Murmur.ServerCallback._op_userStateChanged.invoke(self, ((state, ), context)) + + """ + 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. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def userStateChangedAsync(self, state, context=None): + return _M_Murmur.ServerCallback._op_userStateChanged.invokeAsync(self, ((state, ), context)) + + """ + 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. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_userStateChanged(self, state, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerCallback._op_userStateChanged.begin(self, ((state, ), _response, _ex, _sent, context)) + + """ + 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. + """ + def end_userStateChanged(self, _r): + return _M_Murmur.ServerCallback._op_userStateChanged.end(self, _r) + + """ + Called when user writes a text message + Arguments: + state -- the User sending the message + message -- the TextMessage the user has sent + context -- The request context for the invocation. + """ + def userTextMessage(self, state, message, context=None): + return _M_Murmur.ServerCallback._op_userTextMessage.invoke(self, ((state, message), context)) + + """ + Called when user writes a text message + Arguments: + state -- the User sending the message + message -- the TextMessage the user has sent + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def userTextMessageAsync(self, state, message, context=None): + return _M_Murmur.ServerCallback._op_userTextMessage.invokeAsync(self, ((state, message), context)) + + """ + Called when user writes a text message + Arguments: + state -- the User sending the message + message -- the TextMessage the user has sent + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_userTextMessage(self, state, message, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerCallback._op_userTextMessage.begin(self, ((state, message), _response, _ex, _sent, context)) + + """ + Called when user writes a text message + Arguments: + state -- the User sending the message + message -- the TextMessage the user has sent + """ + def end_userTextMessage(self, _r): + return _M_Murmur.ServerCallback._op_userTextMessage.end(self, _r) + + """ + Called when a new channel is created. + Arguments: + state -- State of new channel. + context -- The request context for the invocation. + """ + def channelCreated(self, state, context=None): + return _M_Murmur.ServerCallback._op_channelCreated.invoke(self, ((state, ), context)) + + """ + Called when a new channel is created. + Arguments: + state -- State of new channel. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def channelCreatedAsync(self, state, context=None): + return _M_Murmur.ServerCallback._op_channelCreated.invokeAsync(self, ((state, ), context)) + + """ + Called when a new channel is created. + Arguments: + state -- State of new channel. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_channelCreated(self, state, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerCallback._op_channelCreated.begin(self, ((state, ), _response, _ex, _sent, context)) + + """ + Called when a new channel is created. + Arguments: + state -- State of new channel. + """ + def end_channelCreated(self, _r): + return _M_Murmur.ServerCallback._op_channelCreated.end(self, _r) + + """ + 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. + context -- The request context for the invocation. + """ + def channelRemoved(self, state, context=None): + return _M_Murmur.ServerCallback._op_channelRemoved.invoke(self, ((state, ), context)) + + """ + 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. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def channelRemovedAsync(self, state, context=None): + return _M_Murmur.ServerCallback._op_channelRemoved.invokeAsync(self, ((state, ), context)) + + """ + 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. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_channelRemoved(self, state, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerCallback._op_channelRemoved.begin(self, ((state, ), _response, _ex, _sent, context)) + + """ + 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. + """ + def end_channelRemoved(self, _r): + return _M_Murmur.ServerCallback._op_channelRemoved.end(self, _r) + + """ + 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. + context -- The request context for the invocation. + """ + def channelStateChanged(self, state, context=None): + return _M_Murmur.ServerCallback._op_channelStateChanged.invoke(self, ((state, ), context)) + + """ + 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. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def channelStateChangedAsync(self, state, context=None): + return _M_Murmur.ServerCallback._op_channelStateChanged.invokeAsync(self, ((state, ), context)) + + """ + 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. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_channelStateChanged(self, state, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerCallback._op_channelStateChanged.begin(self, ((state, ), _response, _ex, _sent, context)) + + """ + 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. + """ + def end_channelStateChanged(self, _r): + return _M_Murmur.ServerCallback._op_channelStateChanged.end(self, _r) + + @staticmethod + def checkedCast(proxy, facetOrContext=None, context=None): + return _M_Murmur.ServerCallbackPrx.ice_checkedCast(proxy, '::Murmur::ServerCallback', facetOrContext, context) + + @staticmethod + def uncheckedCast(proxy, facet=None): + return _M_Murmur.ServerCallbackPrx.ice_uncheckedCast(proxy, facet) + + @staticmethod + def ice_staticId(): + return '::Murmur::ServerCallback' + _M_Murmur._t_ServerCallbackPrx = IcePy.defineProxy('::Murmur::ServerCallback', ServerCallbackPrx) + + _M_Murmur.ServerCallbackPrx = ServerCallbackPrx + del ServerCallbackPrx + _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 Ice.getType(self) == _M_Murmur.ServerCallback: - raise RuntimeError('Murmur.ServerCallback is an abstract class') def ice_ids(self, current=None): return ('::Ice::Object', '::Murmur::ServerCallback') @@ -1429,206 +1813,89 @@ MetaCallback.started which calls Server.addCallback.''' def ice_id(self, current=None): return '::Murmur::ServerCallback' + @staticmethod 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 + """ + Called when a user connects to the server. + Arguments: + state -- State of connected user. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'userConnected' not implemented") 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 + """ + 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. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'userDisconnected' not implemented") 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 + """ + 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. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'userStateChanged' not implemented") def userTextMessage(self, state, message, current=None): - '''Called when user writes a text message -Arguments: - state the User sending the message - message the TextMessage the user has sent''' - pass + """ + Called when user writes a text message + Arguments: + state -- the User sending the message + message -- the TextMessage the user has sent + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'userTextMessage' not implemented") def channelCreated(self, state, current=None): - '''Called when a new channel is created. -Arguments: - state State of new channel.''' - pass + """ + Called when a new channel is created. + Arguments: + state -- State of new channel. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'channelCreated' not implemented") 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 + """ + 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. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'channelRemoved' not implemented") 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 + """ + 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. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'channelStateChanged' not implemented") def __str__(self): - return IcePy.stringify(self, _M_Murmur._t_ServerCallback) + return IcePy.stringify(self, _M_Murmur._t_ServerCallbackDisp) __repr__ = __str__ - _M_Murmur.ServerCallbackPrx = Ice.createTempClass() - class ServerCallbackPrx(Ice.ObjectPrx): - - '''Called when a user connects to the server. -Arguments: - state State of connected user.''' - def userConnected(self, state, _ctx=None): - return _M_Murmur.ServerCallback._op_userConnected.invoke(self, ((state, ), _ctx)) - - '''Called when a user connects to the server. -Arguments: - state State of connected user.''' - def begin_userConnected(self, state, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerCallback._op_userConnected.begin(self, ((state, ), _response, _ex, _sent, _ctx)) - - '''Called when a user connects to the server. -Arguments: - state State of connected user.''' - def end_userConnected(self, _r): - return _M_Murmur.ServerCallback._op_userConnected.end(self, _r) - - '''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.''' - def userDisconnected(self, state, _ctx=None): - return _M_Murmur.ServerCallback._op_userDisconnected.invoke(self, ((state, ), _ctx)) - - '''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.''' - def begin_userDisconnected(self, state, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerCallback._op_userDisconnected.begin(self, ((state, ), _response, _ex, _sent, _ctx)) - - '''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.''' - def end_userDisconnected(self, _r): - return _M_Murmur.ServerCallback._op_userDisconnected.end(self, _r) - - '''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.''' - def userStateChanged(self, state, _ctx=None): - return _M_Murmur.ServerCallback._op_userStateChanged.invoke(self, ((state, ), _ctx)) - - '''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.''' - def begin_userStateChanged(self, state, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerCallback._op_userStateChanged.begin(self, ((state, ), _response, _ex, _sent, _ctx)) - - '''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.''' - def end_userStateChanged(self, _r): - return _M_Murmur.ServerCallback._op_userStateChanged.end(self, _r) - - '''Called when user writes a text message -Arguments: - state the User sending the message - message the TextMessage the user has sent''' - def userTextMessage(self, state, message, _ctx=None): - return _M_Murmur.ServerCallback._op_userTextMessage.invoke(self, ((state, message), _ctx)) - - '''Called when user writes a text message -Arguments: - state the User sending the message - message the TextMessage the user has sent''' - def begin_userTextMessage(self, state, message, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerCallback._op_userTextMessage.begin(self, ((state, message), _response, _ex, _sent, _ctx)) - - '''Called when user writes a text message -Arguments: - state the User sending the message - message the TextMessage the user has sent''' - def end_userTextMessage(self, _r): - return _M_Murmur.ServerCallback._op_userTextMessage.end(self, _r) - - '''Called when a new channel is created. -Arguments: - state State of new channel.''' - def channelCreated(self, state, _ctx=None): - return _M_Murmur.ServerCallback._op_channelCreated.invoke(self, ((state, ), _ctx)) - - '''Called when a new channel is created. -Arguments: - state State of new channel.''' - def begin_channelCreated(self, state, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerCallback._op_channelCreated.begin(self, ((state, ), _response, _ex, _sent, _ctx)) - - '''Called when a new channel is created. -Arguments: - state State of new channel.''' - def end_channelCreated(self, _r): - return _M_Murmur.ServerCallback._op_channelCreated.end(self, _r) - - '''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.''' - def channelRemoved(self, state, _ctx=None): - return _M_Murmur.ServerCallback._op_channelRemoved.invoke(self, ((state, ), _ctx)) - - '''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.''' - def begin_channelRemoved(self, state, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerCallback._op_channelRemoved.begin(self, ((state, ), _response, _ex, _sent, _ctx)) - - '''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.''' - def end_channelRemoved(self, _r): - return _M_Murmur.ServerCallback._op_channelRemoved.end(self, _r) - - '''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.''' - def channelStateChanged(self, state, _ctx=None): - return _M_Murmur.ServerCallback._op_channelStateChanged.invoke(self, ((state, ), _ctx)) - - '''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.''' - def begin_channelStateChanged(self, state, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerCallback._op_channelStateChanged.begin(self, ((state, ), _response, _ex, _sent, _ctx)) - - '''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.''' - def end_channelStateChanged(self, _r): - return _M_Murmur.ServerCallback._op_channelStateChanged.end(self, _r) - - def checkedCast(proxy, facetOrCtx=None, _ctx=None): - return _M_Murmur.ServerCallbackPrx.ice_checkedCast(proxy, '::Murmur::ServerCallback', facetOrCtx, _ctx) - checkedCast = staticmethod(checkedCast) - - def uncheckedCast(proxy, facet=None): - return _M_Murmur.ServerCallbackPrx.ice_uncheckedCast(proxy, facet) - uncheckedCast = staticmethod(uncheckedCast) - - _M_Murmur._t_ServerCallbackPrx = IcePy.defineProxy('::Murmur::ServerCallback', ServerCallbackPrx) - - _M_Murmur._t_ServerCallback = IcePy.defineClass('::Murmur::ServerCallback', ServerCallback, -1, (), True, False, None, (), ()) - ServerCallback._ice_type = _M_Murmur._t_ServerCallback + _M_Murmur._t_ServerCallbackDisp = IcePy.defineClass('::Murmur::ServerCallback', ServerCallback, (), None, ()) + ServerCallback._ice_type = _M_Murmur._t_ServerCallbackDisp ServerCallback._op_userConnected = IcePy.Operation('userConnected', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, False, None, (), (((), _M_Murmur._t_User, False, 0),), (), None, ()) ServerCallback._op_userDisconnected = IcePy.Operation('userDisconnected', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, False, None, (), (((), _M_Murmur._t_User, False, 0),), (), None, ()) @@ -1641,25 +1908,88 @@ Arguments: _M_Murmur.ServerCallback = ServerCallback del ServerCallback - _M_Murmur.ServerCallbackPrx = ServerCallbackPrx - del ServerCallbackPrx - _M_Murmur.ContextServer = 1 _M_Murmur.ContextChannel = 2 _M_Murmur.ContextUser = 4 -if 'ServerContextCallback' not in _M_Murmur.__dict__: +_M_Murmur._t_ServerContextCallback = IcePy.defineValue('::Murmur::ServerContextCallback', Ice.Value, -1, (), False, True, None, ()) + +if 'ServerContextCallbackPrx' not in _M_Murmur.__dict__: + _M_Murmur.ServerContextCallbackPrx = Ice.createTempClass() + class ServerContextCallbackPrx(Ice.ObjectPrx): + + """ + Called when a context action is performed. + Arguments: + action -- Action to be performed. + usr -- User which initiated the action. + session -- If nonzero, session of target user. + channelid -- If not -1, id of target channel. + context -- The request context for the invocation. + """ + def contextAction(self, action, usr, session, channelid, context=None): + return _M_Murmur.ServerContextCallback._op_contextAction.invoke(self, ((action, usr, session, channelid), context)) + + """ + Called when a context action is performed. + Arguments: + action -- Action to be performed. + usr -- User which initiated the action. + session -- If nonzero, session of target user. + channelid -- If not -1, id of target channel. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def contextActionAsync(self, action, usr, session, channelid, context=None): + return _M_Murmur.ServerContextCallback._op_contextAction.invokeAsync(self, ((action, usr, session, channelid), context)) + + """ + Called when a context action is performed. + Arguments: + action -- Action to be performed. + usr -- User which initiated the action. + session -- If nonzero, session of target user. + channelid -- If not -1, id of target channel. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_contextAction(self, action, usr, session, channelid, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerContextCallback._op_contextAction.begin(self, ((action, usr, session, channelid), _response, _ex, _sent, context)) + + """ + Called when a context action is performed. + Arguments: + action -- Action to be performed. + usr -- User which initiated the action. + session -- If nonzero, session of target user. + channelid -- If not -1, id of target channel. + """ + def end_contextAction(self, _r): + return _M_Murmur.ServerContextCallback._op_contextAction.end(self, _r) + + @staticmethod + def checkedCast(proxy, facetOrContext=None, context=None): + return _M_Murmur.ServerContextCallbackPrx.ice_checkedCast(proxy, '::Murmur::ServerContextCallback', facetOrContext, context) + + @staticmethod + def uncheckedCast(proxy, facet=None): + return _M_Murmur.ServerContextCallbackPrx.ice_uncheckedCast(proxy, facet) + + @staticmethod + def ice_staticId(): + return '::Murmur::ServerContextCallback' + _M_Murmur._t_ServerContextCallbackPrx = IcePy.defineProxy('::Murmur::ServerContextCallback', ServerContextCallbackPrx) + + _M_Murmur.ServerContextCallbackPrx = ServerContextCallbackPrx + del ServerContextCallbackPrx + _M_Murmur.ServerContextCallback = Ice.createTempClass() class ServerContextCallback(Ice.Object): - '''Callback interface for context actions. You need to supply one of these for Server.addContext. -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.''' - def __init__(self): - if Ice.getType(self) == _M_Murmur.ServerContextCallback: - raise RuntimeError('Murmur.ServerContextCallback is an abstract class') def ice_ids(self, current=None): return ('::Ice::Object', '::Murmur::ServerContextCallback') @@ -1667,87 +1997,340 @@ complete before continuing processing.''' def ice_id(self, current=None): return '::Murmur::ServerContextCallback' + @staticmethod def ice_staticId(): return '::Murmur::ServerContextCallback' - ice_staticId = staticmethod(ice_staticId) def contextAction(self, action, usr, session, channelid, current=None): - '''Called when a context action is performed. -Arguments: - action Action to be performed. - usr User which initiated the action. - session If nonzero, session of target user. - channelid If not -1, id of target channel.''' - pass + """ + Called when a context action is performed. + Arguments: + action -- Action to be performed. + usr -- User which initiated the action. + session -- If nonzero, session of target user. + channelid -- If not -1, id of target channel. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'contextAction' not implemented") def __str__(self): - return IcePy.stringify(self, _M_Murmur._t_ServerContextCallback) + return IcePy.stringify(self, _M_Murmur._t_ServerContextCallbackDisp) __repr__ = __str__ - _M_Murmur.ServerContextCallbackPrx = Ice.createTempClass() - class ServerContextCallbackPrx(Ice.ObjectPrx): - - '''Called when a context action is performed. -Arguments: - action Action to be performed. - usr User which initiated the action. - session If nonzero, session of target user. - channelid If not -1, id of target channel.''' - def contextAction(self, action, usr, session, channelid, _ctx=None): - return _M_Murmur.ServerContextCallback._op_contextAction.invoke(self, ((action, usr, session, channelid), _ctx)) - - '''Called when a context action is performed. -Arguments: - action Action to be performed. - usr User which initiated the action. - session If nonzero, session of target user. - channelid If not -1, id of target channel.''' - def begin_contextAction(self, action, usr, session, channelid, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerContextCallback._op_contextAction.begin(self, ((action, usr, session, channelid), _response, _ex, _sent, _ctx)) - - '''Called when a context action is performed. -Arguments: - action Action to be performed. - usr User which initiated the action. - session If nonzero, session of target user. - channelid If not -1, id of target channel.''' - def end_contextAction(self, _r): - return _M_Murmur.ServerContextCallback._op_contextAction.end(self, _r) - - def checkedCast(proxy, facetOrCtx=None, _ctx=None): - return _M_Murmur.ServerContextCallbackPrx.ice_checkedCast(proxy, '::Murmur::ServerContextCallback', facetOrCtx, _ctx) - checkedCast = staticmethod(checkedCast) - - def uncheckedCast(proxy, facet=None): - return _M_Murmur.ServerContextCallbackPrx.ice_uncheckedCast(proxy, facet) - uncheckedCast = staticmethod(uncheckedCast) - - _M_Murmur._t_ServerContextCallbackPrx = IcePy.defineProxy('::Murmur::ServerContextCallback', ServerContextCallbackPrx) - - _M_Murmur._t_ServerContextCallback = IcePy.defineClass('::Murmur::ServerContextCallback', ServerContextCallback, -1, (), True, False, None, (), ()) - ServerContextCallback._ice_type = _M_Murmur._t_ServerContextCallback + _M_Murmur._t_ServerContextCallbackDisp = IcePy.defineClass('::Murmur::ServerContextCallback', ServerContextCallback, (), None, ()) + ServerContextCallback._ice_type = _M_Murmur._t_ServerContextCallbackDisp ServerContextCallback._op_contextAction = IcePy.Operation('contextAction', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, False, None, (), (((), IcePy._t_string, False, 0), ((), _M_Murmur._t_User, False, 0), ((), IcePy._t_int, False, 0), ((), IcePy._t_int, False, 0)), (), None, ()) _M_Murmur.ServerContextCallback = ServerContextCallback del ServerContextCallback - _M_Murmur.ServerContextCallbackPrx = ServerContextCallbackPrx - del ServerContextCallbackPrx +_M_Murmur._t_ServerAuthenticator = IcePy.defineValue('::Murmur::ServerAuthenticator', Ice.Value, -1, (), False, True, None, ()) + +if 'ServerAuthenticatorPrx' not in _M_Murmur.__dict__: + _M_Murmur.ServerAuthenticatorPrx = Ice.createTempClass() + class ServerAuthenticatorPrx(Ice.ObjectPrx): + + """ + Called to authenticate a user. If you do not know the username in question, always return -2 from this + method to fall through to normal database authentication. + Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving + the username and id so it cannot be used for normal database authentication. + The data in the certificate (name, email addresses etc), as well as the list of signing certificates, + should only be trusted if certstrong is true. + Internally, Murmur treats usernames as case-insensitive. It is recommended + that authenticators do the same. Murmur checks if a username is in use when + a user connects. If the connecting user is registered, the other username is + kicked. If the connecting user is not registered, the connecting user is not + allowed to join the server. + Arguments: + name -- Username to authenticate. + pw -- Password to authenticate with. + certificates -- List of der encoded certificates the user connected with. + certhash -- Hash of user certificate, as used by murmur internally when matching. + certstrong -- True if certificate was valid and signed by a trusted CA. + context -- The request context for the invocation. + Returns a tuple containing the following: + _retval -- UserID of authenticated user, -1 for authentication failures, -2 for unknown user (fallthrough), -3 for authentication failures where the data could (temporarily) not be verified. + newname -- Set this to change the username from the supplied one. + groups -- List of groups on the root channel that the user will be added to for the duration of the connection. + """ + def authenticate(self, name, pw, certificates, certhash, certstrong, context=None): + return _M_Murmur.ServerAuthenticator._op_authenticate.invoke(self, ((name, pw, certificates, certhash, certstrong), context)) + + """ + Called to authenticate a user. If you do not know the username in question, always return -2 from this + method to fall through to normal database authentication. + Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving + the username and id so it cannot be used for normal database authentication. + The data in the certificate (name, email addresses etc), as well as the list of signing certificates, + should only be trusted if certstrong is true. + Internally, Murmur treats usernames as case-insensitive. It is recommended + that authenticators do the same. Murmur checks if a username is in use when + a user connects. If the connecting user is registered, the other username is + kicked. If the connecting user is not registered, the connecting user is not + allowed to join the server. + Arguments: + name -- Username to authenticate. + pw -- Password to authenticate with. + certificates -- List of der encoded certificates the user connected with. + certhash -- Hash of user certificate, as used by murmur internally when matching. + certstrong -- True if certificate was valid and signed by a trusted CA. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def authenticateAsync(self, name, pw, certificates, certhash, certstrong, context=None): + return _M_Murmur.ServerAuthenticator._op_authenticate.invokeAsync(self, ((name, pw, certificates, certhash, certstrong), context)) + + """ + Called to authenticate a user. If you do not know the username in question, always return -2 from this + method to fall through to normal database authentication. + Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving + the username and id so it cannot be used for normal database authentication. + The data in the certificate (name, email addresses etc), as well as the list of signing certificates, + should only be trusted if certstrong is true. + Internally, Murmur treats usernames as case-insensitive. It is recommended + that authenticators do the same. Murmur checks if a username is in use when + a user connects. If the connecting user is registered, the other username is + kicked. If the connecting user is not registered, the connecting user is not + allowed to join the server. + Arguments: + name -- Username to authenticate. + pw -- Password to authenticate with. + certificates -- List of der encoded certificates the user connected with. + certhash -- Hash of user certificate, as used by murmur internally when matching. + certstrong -- True if certificate was valid and signed by a trusted CA. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_authenticate(self, name, pw, certificates, certhash, certstrong, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerAuthenticator._op_authenticate.begin(self, ((name, pw, certificates, certhash, certstrong), _response, _ex, _sent, context)) + + """ + Called to authenticate a user. If you do not know the username in question, always return -2 from this + method to fall through to normal database authentication. + Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving + the username and id so it cannot be used for normal database authentication. + The data in the certificate (name, email addresses etc), as well as the list of signing certificates, + should only be trusted if certstrong is true. + Internally, Murmur treats usernames as case-insensitive. It is recommended + that authenticators do the same. Murmur checks if a username is in use when + a user connects. If the connecting user is registered, the other username is + kicked. If the connecting user is not registered, the connecting user is not + allowed to join the server. + Arguments: + name -- Username to authenticate. + pw -- Password to authenticate with. + certificates -- List of der encoded certificates the user connected with. + certhash -- Hash of user certificate, as used by murmur internally when matching. + certstrong -- True if certificate was valid and signed by a trusted CA. + Returns a tuple containing the following: + _retval -- UserID of authenticated user, -1 for authentication failures, -2 for unknown user (fallthrough), -3 for authentication failures where the data could (temporarily) not be verified. + newname -- Set this to change the username from the supplied one. + groups -- List of groups on the root channel that the user will be added to for the duration of the connection. + """ + def end_authenticate(self, _r): + return _M_Murmur.ServerAuthenticator._op_authenticate.end(self, _r) + + """ + Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you + want murmur to take care of this information itself, simply return false to fall through. + Arguments: + id -- User id. + context -- The request context for the invocation. + Returns a tuple containing the following: + _retval -- true if information is present, false to fall through. + info -- Information about user. This needs to include at least "name". + """ + def getInfo(self, id, context=None): + return _M_Murmur.ServerAuthenticator._op_getInfo.invoke(self, ((id, ), context)) + + """ + Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you + want murmur to take care of this information itself, simply return false to fall through. + Arguments: + id -- User id. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getInfoAsync(self, id, context=None): + return _M_Murmur.ServerAuthenticator._op_getInfo.invokeAsync(self, ((id, ), context)) + + """ + Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you + want murmur to take care of this information itself, simply return false to fall through. + Arguments: + id -- User id. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getInfo(self, id, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerAuthenticator._op_getInfo.begin(self, ((id, ), _response, _ex, _sent, context)) + + """ + Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you + want murmur to take care of this information itself, simply return false to fall through. + Arguments: + id -- User id. + Returns a tuple containing the following: + _retval -- true if information is present, false to fall through. + info -- Information about user. This needs to include at least "name". + """ + def end_getInfo(self, _r): + return _M_Murmur.ServerAuthenticator._op_getInfo.end(self, _r) + + """ + Map a name to a user id. + Arguments: + name -- Username to map. + context -- The request context for the invocation. + Returns: User id or -2 for unknown name. + """ + def nameToId(self, name, context=None): + return _M_Murmur.ServerAuthenticator._op_nameToId.invoke(self, ((name, ), context)) + + """ + Map a name to a user id. + Arguments: + name -- Username to map. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def nameToIdAsync(self, name, context=None): + return _M_Murmur.ServerAuthenticator._op_nameToId.invokeAsync(self, ((name, ), context)) + + """ + Map a name to a user id. + Arguments: + name -- Username to map. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_nameToId(self, name, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerAuthenticator._op_nameToId.begin(self, ((name, ), _response, _ex, _sent, context)) + + """ + Map a name to a user id. + Arguments: + name -- Username to map. + Returns: User id or -2 for unknown name. + """ + def end_nameToId(self, _r): + return _M_Murmur.ServerAuthenticator._op_nameToId.end(self, _r) + + """ + Map a user id to a username. + Arguments: + id -- User id to map. + context -- The request context for the invocation. + Returns: Name of user or empty string for unknown id. + """ + def idToName(self, id, context=None): + return _M_Murmur.ServerAuthenticator._op_idToName.invoke(self, ((id, ), context)) + + """ + Map a user id to a username. + Arguments: + id -- User id to map. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def idToNameAsync(self, id, context=None): + return _M_Murmur.ServerAuthenticator._op_idToName.invokeAsync(self, ((id, ), context)) + + """ + Map a user id to a username. + Arguments: + id -- User id to map. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_idToName(self, id, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerAuthenticator._op_idToName.begin(self, ((id, ), _response, _ex, _sent, context)) + + """ + Map a user id to a username. + Arguments: + id -- User id to map. + Returns: Name of user or empty string for unknown id. + """ + def end_idToName(self, _r): + return _M_Murmur.ServerAuthenticator._op_idToName.end(self, _r) + + """ + Map a user to a custom Texture. + Arguments: + id -- User id to map. + context -- The request context for the invocation. + Returns: User texture or an empty texture for unknwon users or users without textures. + """ + def idToTexture(self, id, context=None): + return _M_Murmur.ServerAuthenticator._op_idToTexture.invoke(self, ((id, ), context)) + + """ + Map a user to a custom Texture. + Arguments: + id -- User id to map. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def idToTextureAsync(self, id, context=None): + return _M_Murmur.ServerAuthenticator._op_idToTexture.invokeAsync(self, ((id, ), context)) + + """ + Map a user to a custom Texture. + Arguments: + id -- User id to map. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_idToTexture(self, id, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerAuthenticator._op_idToTexture.begin(self, ((id, ), _response, _ex, _sent, context)) + + """ + Map a user to a custom Texture. + Arguments: + id -- User id to map. + Returns: User texture or an empty texture for unknwon users or users without textures. + """ + def end_idToTexture(self, _r): + return _M_Murmur.ServerAuthenticator._op_idToTexture.end(self, _r) + + @staticmethod + def checkedCast(proxy, facetOrContext=None, context=None): + return _M_Murmur.ServerAuthenticatorPrx.ice_checkedCast(proxy, '::Murmur::ServerAuthenticator', facetOrContext, context) + + @staticmethod + def uncheckedCast(proxy, facet=None): + return _M_Murmur.ServerAuthenticatorPrx.ice_uncheckedCast(proxy, facet) + + @staticmethod + def ice_staticId(): + return '::Murmur::ServerAuthenticator' + _M_Murmur._t_ServerAuthenticatorPrx = IcePy.defineProxy('::Murmur::ServerAuthenticator', ServerAuthenticatorPrx) + + _M_Murmur.ServerAuthenticatorPrx = ServerAuthenticatorPrx + del ServerAuthenticatorPrx -if 'ServerAuthenticator' not in _M_Murmur.__dict__: _M_Murmur.ServerAuthenticator = Ice.createTempClass() class ServerAuthenticator(Ice.Object): - '''Callback interface for server authentication. You need to supply one of these for Server.setAuthenticator. -If an added callback ever throws an exception or goes away, it will be automatically removed. -Please note that unlike ServerCallback and ServerContextCallback, these methods are called -synchronously. If the response lags, the entire murmur server will lag. -Also note that, as the method calls are synchronous, making a call to Server or Meta will -deadlock the server.''' - def __init__(self): - if Ice.getType(self) == _M_Murmur.ServerAuthenticator: - raise RuntimeError('Murmur.ServerAuthenticator is an abstract class') def ice_ids(self, current=None): return ('::Ice::Object', '::Murmur::ServerAuthenticator') @@ -1755,274 +2338,82 @@ deadlock the server.''' def ice_id(self, current=None): return '::Murmur::ServerAuthenticator' + @staticmethod def ice_staticId(): return '::Murmur::ServerAuthenticator' - ice_staticId = staticmethod(ice_staticId) def authenticate(self, name, pw, certificates, certhash, certstrong, current=None): - '''Called to authenticate a user. If you do not know the username in question, always return -2 from this -method to fall through to normal database authentication. -Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving -the username and id so it cannot be used for normal database authentication. -The data in the certificate (name, email addresses etc), as well as the list of signing certificates, -should only be trusted if certstrong is true. - -Internally, Murmur treats usernames as case-insensitive. It is recommended -that authenticators do the same. Murmur checks if a username is in use when -a user connects. If the connecting user is registered, the other username is -kicked. If the connecting user is not registered, the connecting user is not -allowed to join the server. - -Arguments: - name Username to authenticate. - pw Password to authenticate with. - certificates List of der encoded certificates the user connected with. - certhash Hash of user certificate, as used by murmur internally when matching. - certstrong True if certificate was valid and signed by a trusted CA. - newname Set this to change the username from the supplied one. - groups List of groups on the root channel that the user will be added to for the duration of the connection. -Returns: - UserID of authenticated user, -1 for authentication failures, -2 for unknown user (fallthrough), --3 for authentication failures where the data could (temporarily) not be verified.''' - pass + """ + Called to authenticate a user. If you do not know the username in question, always return -2 from this + method to fall through to normal database authentication. + Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving + the username and id so it cannot be used for normal database authentication. + The data in the certificate (name, email addresses etc), as well as the list of signing certificates, + should only be trusted if certstrong is true. + Internally, Murmur treats usernames as case-insensitive. It is recommended + that authenticators do the same. Murmur checks if a username is in use when + a user connects. If the connecting user is registered, the other username is + kicked. If the connecting user is not registered, the connecting user is not + allowed to join the server. + Arguments: + name -- Username to authenticate. + pw -- Password to authenticate with. + certificates -- List of der encoded certificates the user connected with. + certhash -- Hash of user certificate, as used by murmur internally when matching. + certstrong -- True if certificate was valid and signed by a trusted CA. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'authenticate' not implemented") def getInfo(self, id, current=None): - '''Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you -want murmur to take care of this information itself, simply return false to fall through. -Arguments: - id User id. - info Information about user. This needs to include at least "name". -Returns: - true if information is present, false to fall through.''' - pass + """ + Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you + want murmur to take care of this information itself, simply return false to fall through. + Arguments: + id -- User id. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getInfo' not implemented") def nameToId(self, name, current=None): - '''Map a name to a user id. -Arguments: - name Username to map. -Returns: - User id or -2 for unknown name.''' - pass + """ + Map a name to a user id. + Arguments: + name -- Username to map. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'nameToId' not implemented") def idToName(self, id, current=None): - '''Map a user id to a username. -Arguments: - id User id to map. -Returns: - Name of user or empty string for unknown id.''' - pass + """ + Map a user id to a username. + Arguments: + id -- User id to map. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'idToName' not implemented") def idToTexture(self, id, current=None): - '''Map a user to a custom Texture. -Arguments: - id User id to map. -Returns: - User texture or an empty texture for unknwon users or users without textures.''' - pass + """ + Map a user to a custom Texture. + Arguments: + id -- User id to map. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'idToTexture' not implemented") def __str__(self): - return IcePy.stringify(self, _M_Murmur._t_ServerAuthenticator) + return IcePy.stringify(self, _M_Murmur._t_ServerAuthenticatorDisp) __repr__ = __str__ - _M_Murmur.ServerAuthenticatorPrx = Ice.createTempClass() - class ServerAuthenticatorPrx(Ice.ObjectPrx): - - '''Called to authenticate a user. If you do not know the username in question, always return -2 from this -method to fall through to normal database authentication. -Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving -the username and id so it cannot be used for normal database authentication. -The data in the certificate (name, email addresses etc), as well as the list of signing certificates, -should only be trusted if certstrong is true. - -Internally, Murmur treats usernames as case-insensitive. It is recommended -that authenticators do the same. Murmur checks if a username is in use when -a user connects. If the connecting user is registered, the other username is -kicked. If the connecting user is not registered, the connecting user is not -allowed to join the server. - -Arguments: - name Username to authenticate. - pw Password to authenticate with. - certificates List of der encoded certificates the user connected with. - certhash Hash of user certificate, as used by murmur internally when matching. - certstrong True if certificate was valid and signed by a trusted CA. - newname Set this to change the username from the supplied one. - groups List of groups on the root channel that the user will be added to for the duration of the connection. -Returns: - UserID of authenticated user, -1 for authentication failures, -2 for unknown user (fallthrough), --3 for authentication failures where the data could (temporarily) not be verified.''' - def authenticate(self, name, pw, certificates, certhash, certstrong, _ctx=None): - return _M_Murmur.ServerAuthenticator._op_authenticate.invoke(self, ((name, pw, certificates, certhash, certstrong), _ctx)) - - '''Called to authenticate a user. If you do not know the username in question, always return -2 from this -method to fall through to normal database authentication. -Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving -the username and id so it cannot be used for normal database authentication. -The data in the certificate (name, email addresses etc), as well as the list of signing certificates, -should only be trusted if certstrong is true. - -Internally, Murmur treats usernames as case-insensitive. It is recommended -that authenticators do the same. Murmur checks if a username is in use when -a user connects. If the connecting user is registered, the other username is -kicked. If the connecting user is not registered, the connecting user is not -allowed to join the server. - -Arguments: - name Username to authenticate. - pw Password to authenticate with. - certificates List of der encoded certificates the user connected with. - certhash Hash of user certificate, as used by murmur internally when matching. - certstrong True if certificate was valid and signed by a trusted CA. - newname Set this to change the username from the supplied one. - groups List of groups on the root channel that the user will be added to for the duration of the connection. -Returns: - UserID of authenticated user, -1 for authentication failures, -2 for unknown user (fallthrough), --3 for authentication failures where the data could (temporarily) not be verified.''' - def begin_authenticate(self, name, pw, certificates, certhash, certstrong, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerAuthenticator._op_authenticate.begin(self, ((name, pw, certificates, certhash, certstrong), _response, _ex, _sent, _ctx)) - - '''Called to authenticate a user. If you do not know the username in question, always return -2 from this -method to fall through to normal database authentication. -Note that if authentication succeeds, murmur will create a record of the user in it's database, reserving -the username and id so it cannot be used for normal database authentication. -The data in the certificate (name, email addresses etc), as well as the list of signing certificates, -should only be trusted if certstrong is true. - -Internally, Murmur treats usernames as case-insensitive. It is recommended -that authenticators do the same. Murmur checks if a username is in use when -a user connects. If the connecting user is registered, the other username is -kicked. If the connecting user is not registered, the connecting user is not -allowed to join the server. - -Arguments: - name Username to authenticate. - pw Password to authenticate with. - certificates List of der encoded certificates the user connected with. - certhash Hash of user certificate, as used by murmur internally when matching. - certstrong True if certificate was valid and signed by a trusted CA. - newname Set this to change the username from the supplied one. - groups List of groups on the root channel that the user will be added to for the duration of the connection. -Returns: - UserID of authenticated user, -1 for authentication failures, -2 for unknown user (fallthrough), --3 for authentication failures where the data could (temporarily) not be verified.''' - def end_authenticate(self, _r): - return _M_Murmur.ServerAuthenticator._op_authenticate.end(self, _r) - - '''Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you -want murmur to take care of this information itself, simply return false to fall through. -Arguments: - id User id. - info Information about user. This needs to include at least "name". -Returns: - true if information is present, false to fall through.''' - def getInfo(self, id, _ctx=None): - return _M_Murmur.ServerAuthenticator._op_getInfo.invoke(self, ((id, ), _ctx)) - - '''Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you -want murmur to take care of this information itself, simply return false to fall through. -Arguments: - id User id. - info Information about user. This needs to include at least "name". -Returns: - true if information is present, false to fall through.''' - def begin_getInfo(self, id, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerAuthenticator._op_getInfo.begin(self, ((id, ), _response, _ex, _sent, _ctx)) - - '''Fetch information about a user. This is used to retrieve information like email address, keyhash etc. If you -want murmur to take care of this information itself, simply return false to fall through. -Arguments: - id User id. - info Information about user. This needs to include at least "name". -Returns: - true if information is present, false to fall through.''' - def end_getInfo(self, _r): - return _M_Murmur.ServerAuthenticator._op_getInfo.end(self, _r) - - '''Map a name to a user id. -Arguments: - name Username to map. -Returns: - User id or -2 for unknown name.''' - def nameToId(self, name, _ctx=None): - return _M_Murmur.ServerAuthenticator._op_nameToId.invoke(self, ((name, ), _ctx)) - - '''Map a name to a user id. -Arguments: - name Username to map. -Returns: - User id or -2 for unknown name.''' - def begin_nameToId(self, name, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerAuthenticator._op_nameToId.begin(self, ((name, ), _response, _ex, _sent, _ctx)) - - '''Map a name to a user id. -Arguments: - name Username to map. -Returns: - User id or -2 for unknown name.''' - def end_nameToId(self, _r): - return _M_Murmur.ServerAuthenticator._op_nameToId.end(self, _r) - - '''Map a user id to a username. -Arguments: - id User id to map. -Returns: - Name of user or empty string for unknown id.''' - def idToName(self, id, _ctx=None): - return _M_Murmur.ServerAuthenticator._op_idToName.invoke(self, ((id, ), _ctx)) - - '''Map a user id to a username. -Arguments: - id User id to map. -Returns: - Name of user or empty string for unknown id.''' - def begin_idToName(self, id, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerAuthenticator._op_idToName.begin(self, ((id, ), _response, _ex, _sent, _ctx)) - - '''Map a user id to a username. -Arguments: - id User id to map. -Returns: - Name of user or empty string for unknown id.''' - def end_idToName(self, _r): - return _M_Murmur.ServerAuthenticator._op_idToName.end(self, _r) - - '''Map a user to a custom Texture. -Arguments: - id User id to map. -Returns: - User texture or an empty texture for unknwon users or users without textures.''' - def idToTexture(self, id, _ctx=None): - return _M_Murmur.ServerAuthenticator._op_idToTexture.invoke(self, ((id, ), _ctx)) - - '''Map a user to a custom Texture. -Arguments: - id User id to map. -Returns: - User texture or an empty texture for unknwon users or users without textures.''' - def begin_idToTexture(self, id, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerAuthenticator._op_idToTexture.begin(self, ((id, ), _response, _ex, _sent, _ctx)) - - '''Map a user to a custom Texture. -Arguments: - id User id to map. -Returns: - User texture or an empty texture for unknwon users or users without textures.''' - def end_idToTexture(self, _r): - return _M_Murmur.ServerAuthenticator._op_idToTexture.end(self, _r) - - def checkedCast(proxy, facetOrCtx=None, _ctx=None): - return _M_Murmur.ServerAuthenticatorPrx.ice_checkedCast(proxy, '::Murmur::ServerAuthenticator', facetOrCtx, _ctx) - checkedCast = staticmethod(checkedCast) - - def uncheckedCast(proxy, facet=None): - return _M_Murmur.ServerAuthenticatorPrx.ice_uncheckedCast(proxy, facet) - uncheckedCast = staticmethod(uncheckedCast) - - _M_Murmur._t_ServerAuthenticatorPrx = IcePy.defineProxy('::Murmur::ServerAuthenticator', ServerAuthenticatorPrx) - - _M_Murmur._t_ServerAuthenticator = IcePy.defineClass('::Murmur::ServerAuthenticator', ServerAuthenticator, -1, (), True, False, None, (), ()) - ServerAuthenticator._ice_type = _M_Murmur._t_ServerAuthenticator + _M_Murmur._t_ServerAuthenticatorDisp = IcePy.defineClass('::Murmur::ServerAuthenticator', ServerAuthenticator, (), None, ()) + ServerAuthenticator._ice_type = _M_Murmur._t_ServerAuthenticatorDisp ServerAuthenticator._op_authenticate = IcePy.Operation('authenticate', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, False, None, (), (((), IcePy._t_string, False, 0), ((), IcePy._t_string, False, 0), ((), _M_Murmur._t_CertificateList, False, 0), ((), IcePy._t_string, False, 0), ((), IcePy._t_bool, False, 0)), (((), IcePy._t_string, False, 0), ((), _M_Murmur._t_GroupNameList, False, 0)), ((), IcePy._t_int, False, 0), ()) ServerAuthenticator._op_getInfo = IcePy.Operation('getInfo', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, False, None, (), (((), IcePy._t_int, False, 0),), (((), _M_Murmur._t_UserInfoMap, False, 0),), ((), IcePy._t_bool, False, 0), ()) @@ -2033,21 +2424,248 @@ Returns: _M_Murmur.ServerAuthenticator = ServerAuthenticator del ServerAuthenticator - _M_Murmur.ServerAuthenticatorPrx = ServerAuthenticatorPrx - del ServerAuthenticatorPrx +_M_Murmur._t_ServerUpdatingAuthenticator = IcePy.defineValue('::Murmur::ServerUpdatingAuthenticator', Ice.Value, -1, (), False, True, None, ()) + +if 'ServerUpdatingAuthenticatorPrx' not in _M_Murmur.__dict__: + _M_Murmur.ServerUpdatingAuthenticatorPrx = Ice.createTempClass() + class ServerUpdatingAuthenticatorPrx(_M_Murmur.ServerAuthenticatorPrx): + + """ + Register a new user. + Arguments: + info -- Information about user to register. + context -- The request context for the invocation. + Returns: User id of new user, -1 for registration failure, or -2 to fall through. + """ + def registerUser(self, info, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_registerUser.invoke(self, ((info, ), context)) + + """ + Register a new user. + Arguments: + info -- Information about user to register. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def registerUserAsync(self, info, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_registerUser.invokeAsync(self, ((info, ), context)) + + """ + Register a new user. + Arguments: + info -- Information about user to register. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_registerUser(self, info, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_registerUser.begin(self, ((info, ), _response, _ex, _sent, context)) + + """ + Register a new user. + Arguments: + info -- Information about user to register. + Returns: User id of new user, -1 for registration failure, or -2 to fall through. + """ + def end_registerUser(self, _r): + return _M_Murmur.ServerUpdatingAuthenticator._op_registerUser.end(self, _r) + + """ + Unregister a user. + Arguments: + id -- Userid to unregister. + context -- The request context for the invocation. + Returns: 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through. + """ + def unregisterUser(self, id, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_unregisterUser.invoke(self, ((id, ), context)) + + """ + Unregister a user. + Arguments: + id -- Userid to unregister. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def unregisterUserAsync(self, id, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_unregisterUser.invokeAsync(self, ((id, ), context)) + + """ + Unregister a user. + Arguments: + id -- Userid to unregister. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_unregisterUser(self, id, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_unregisterUser.begin(self, ((id, ), _response, _ex, _sent, context)) + + """ + Unregister a user. + Arguments: + id -- Userid to unregister. + Returns: 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through. + """ + def end_unregisterUser(self, _r): + return _M_Murmur.ServerUpdatingAuthenticator._op_unregisterUser.end(self, _r) + + """ + Get a list of registered users matching filter. + Arguments: + filter -- Substring usernames must contain. If empty, return all registered users. + context -- The request context for the invocation. + Returns: List of matching registered users. + """ + def getRegisteredUsers(self, filter, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_getRegisteredUsers.invoke(self, ((filter, ), context)) + + """ + Get a list of registered users matching filter. + Arguments: + filter -- Substring usernames must contain. If empty, return all registered users. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getRegisteredUsersAsync(self, filter, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_getRegisteredUsers.invokeAsync(self, ((filter, ), context)) + + """ + Get a list of registered users matching filter. + Arguments: + filter -- Substring usernames must contain. If empty, return all registered users. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getRegisteredUsers(self, filter, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_getRegisteredUsers.begin(self, ((filter, ), _response, _ex, _sent, context)) + + """ + Get a list of registered users matching filter. + Arguments: + filter -- Substring usernames must contain. If empty, return all registered users. + Returns: List of matching registered users. + """ + def end_getRegisteredUsers(self, _r): + return _M_Murmur.ServerUpdatingAuthenticator._op_getRegisteredUsers.end(self, _r) + + """ + Set additional information for user registration. + Arguments: + id -- Userid of registered user. + info -- Information to set about user. This should be merged with existing information. + context -- The request context for the invocation. + Returns: 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. + """ + def setInfo(self, id, info, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_setInfo.invoke(self, ((id, info), context)) + + """ + Set additional information for user registration. + Arguments: + id -- Userid of registered user. + info -- Information to set about user. This should be merged with existing information. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def setInfoAsync(self, id, info, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_setInfo.invokeAsync(self, ((id, info), context)) + + """ + Set additional information for user registration. + Arguments: + id -- Userid of registered user. + info -- Information to set about user. This should be merged with existing information. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_setInfo(self, id, info, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_setInfo.begin(self, ((id, info), _response, _ex, _sent, context)) + + """ + Set additional information for user registration. + Arguments: + id -- Userid of registered user. + info -- Information to set about user. This should be merged with existing information. + Returns: 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. + """ + def end_setInfo(self, _r): + return _M_Murmur.ServerUpdatingAuthenticator._op_setInfo.end(self, _r) + + """ + Set texture (now called avatar) of user registration. + Arguments: + id -- registrationId of registered user. + tex -- New texture. + context -- The request context for the invocation. + Returns: 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. + """ + def setTexture(self, id, tex, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_setTexture.invoke(self, ((id, tex), context)) + + """ + Set texture (now called avatar) of user registration. + Arguments: + id -- registrationId of registered user. + tex -- New texture. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def setTextureAsync(self, id, tex, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_setTexture.invokeAsync(self, ((id, tex), context)) + + """ + Set texture (now called avatar) of user registration. + Arguments: + id -- registrationId of registered user. + tex -- New texture. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_setTexture(self, id, tex, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.ServerUpdatingAuthenticator._op_setTexture.begin(self, ((id, tex), _response, _ex, _sent, context)) + + """ + Set texture (now called avatar) of user registration. + Arguments: + id -- registrationId of registered user. + tex -- New texture. + Returns: 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. + """ + def end_setTexture(self, _r): + return _M_Murmur.ServerUpdatingAuthenticator._op_setTexture.end(self, _r) + + @staticmethod + def checkedCast(proxy, facetOrContext=None, context=None): + return _M_Murmur.ServerUpdatingAuthenticatorPrx.ice_checkedCast(proxy, '::Murmur::ServerUpdatingAuthenticator', facetOrContext, context) + + @staticmethod + def uncheckedCast(proxy, facet=None): + return _M_Murmur.ServerUpdatingAuthenticatorPrx.ice_uncheckedCast(proxy, facet) + + @staticmethod + def ice_staticId(): + return '::Murmur::ServerUpdatingAuthenticator' + _M_Murmur._t_ServerUpdatingAuthenticatorPrx = IcePy.defineProxy('::Murmur::ServerUpdatingAuthenticator', ServerUpdatingAuthenticatorPrx) + + _M_Murmur.ServerUpdatingAuthenticatorPrx = ServerUpdatingAuthenticatorPrx + del ServerUpdatingAuthenticatorPrx -if 'ServerUpdatingAuthenticator' not in _M_Murmur.__dict__: _M_Murmur.ServerUpdatingAuthenticator = Ice.createTempClass() class ServerUpdatingAuthenticator(_M_Murmur.ServerAuthenticator): - '''Callback interface for server authentication and registration. This allows you to support both authentication -and account updating. -You do not need to implement this if all you want is authentication, you only need this if other scripts -connected to the same server calls e.g. Server.setTexture. -Almost all of these methods support fall through, meaning murmur should continue the operation against its -own database.''' - def __init__(self): - if Ice.getType(self) == _M_Murmur.ServerUpdatingAuthenticator: - raise RuntimeError('Murmur.ServerUpdatingAuthenticator is an abstract class') def ice_ids(self, current=None): return ('::Ice::Object', '::Murmur::ServerAuthenticator', '::Murmur::ServerUpdatingAuthenticator') @@ -2055,198 +2673,69 @@ own database.''' def ice_id(self, current=None): return '::Murmur::ServerUpdatingAuthenticator' + @staticmethod def ice_staticId(): return '::Murmur::ServerUpdatingAuthenticator' - ice_staticId = staticmethod(ice_staticId) def registerUser(self, info, current=None): - '''Register a new user. -Arguments: - info Information about user to register. -Returns: - User id of new user, -1 for registration failure, or -2 to fall through.''' - pass + """ + Register a new user. + Arguments: + info -- Information about user to register. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'registerUser' not implemented") def unregisterUser(self, id, current=None): - '''Unregister a user. -Arguments: - id Userid to unregister. -Returns: - 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through.''' - pass + """ + Unregister a user. + Arguments: + id -- Userid to unregister. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'unregisterUser' not implemented") def getRegisteredUsers(self, filter, current=None): - '''Get a list of registered users matching filter. -Arguments: - filter Substring usernames must contain. If empty, return all registered users. -Returns: - List of matching registered users.''' - pass + """ + Get a list of registered users matching filter. + Arguments: + filter -- Substring usernames must contain. If empty, return all registered users. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getRegisteredUsers' not implemented") def setInfo(self, id, info, current=None): - '''Set additional information for user registration. -Arguments: - id Userid of registered user. - info Information to set about user. This should be merged with existing information. -Returns: - 1 for successfull update, 0 for unsuccessfull update, -1 to fall through.''' - pass + """ + Set additional information for user registration. + Arguments: + id -- Userid of registered user. + info -- Information to set about user. This should be merged with existing information. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'setInfo' not implemented") def setTexture(self, id, tex, current=None): - '''Set texture (now called avatar) of user registration. -Arguments: - id registrationId of registered user. - tex New texture. -Returns: - 1 for successfull update, 0 for unsuccessfull update, -1 to fall through.''' - pass + """ + Set texture (now called avatar) of user registration. + Arguments: + id -- registrationId of registered user. + tex -- New texture. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'setTexture' not implemented") def __str__(self): - return IcePy.stringify(self, _M_Murmur._t_ServerUpdatingAuthenticator) + return IcePy.stringify(self, _M_Murmur._t_ServerUpdatingAuthenticatorDisp) __repr__ = __str__ - _M_Murmur.ServerUpdatingAuthenticatorPrx = Ice.createTempClass() - class ServerUpdatingAuthenticatorPrx(_M_Murmur.ServerAuthenticatorPrx): - - '''Register a new user. -Arguments: - info Information about user to register. -Returns: - User id of new user, -1 for registration failure, or -2 to fall through.''' - def registerUser(self, info, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticator._op_registerUser.invoke(self, ((info, ), _ctx)) - - '''Register a new user. -Arguments: - info Information about user to register. -Returns: - User id of new user, -1 for registration failure, or -2 to fall through.''' - def begin_registerUser(self, info, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticator._op_registerUser.begin(self, ((info, ), _response, _ex, _sent, _ctx)) - - '''Register a new user. -Arguments: - info Information about user to register. -Returns: - User id of new user, -1 for registration failure, or -2 to fall through.''' - def end_registerUser(self, _r): - return _M_Murmur.ServerUpdatingAuthenticator._op_registerUser.end(self, _r) - - '''Unregister a user. -Arguments: - id Userid to unregister. -Returns: - 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through.''' - def unregisterUser(self, id, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticator._op_unregisterUser.invoke(self, ((id, ), _ctx)) - - '''Unregister a user. -Arguments: - id Userid to unregister. -Returns: - 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through.''' - def begin_unregisterUser(self, id, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticator._op_unregisterUser.begin(self, ((id, ), _response, _ex, _sent, _ctx)) - - '''Unregister a user. -Arguments: - id Userid to unregister. -Returns: - 1 for successfull unregistration, 0 for unsuccessfull unregistration, -1 to fall through.''' - def end_unregisterUser(self, _r): - return _M_Murmur.ServerUpdatingAuthenticator._op_unregisterUser.end(self, _r) - - '''Get a list of registered users matching filter. -Arguments: - filter Substring usernames must contain. If empty, return all registered users. -Returns: - List of matching registered users.''' - def getRegisteredUsers(self, filter, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticator._op_getRegisteredUsers.invoke(self, ((filter, ), _ctx)) - - '''Get a list of registered users matching filter. -Arguments: - filter Substring usernames must contain. If empty, return all registered users. -Returns: - List of matching registered users.''' - def begin_getRegisteredUsers(self, filter, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticator._op_getRegisteredUsers.begin(self, ((filter, ), _response, _ex, _sent, _ctx)) - - '''Get a list of registered users matching filter. -Arguments: - filter Substring usernames must contain. If empty, return all registered users. -Returns: - List of matching registered users.''' - def end_getRegisteredUsers(self, _r): - return _M_Murmur.ServerUpdatingAuthenticator._op_getRegisteredUsers.end(self, _r) - - '''Set additional information for user registration. -Arguments: - id Userid of registered user. - info Information to set about user. This should be merged with existing information. -Returns: - 1 for successfull update, 0 for unsuccessfull update, -1 to fall through.''' - def setInfo(self, id, info, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticator._op_setInfo.invoke(self, ((id, info), _ctx)) - - '''Set additional information for user registration. -Arguments: - id Userid of registered user. - info Information to set about user. This should be merged with existing information. -Returns: - 1 for successfull update, 0 for unsuccessfull update, -1 to fall through.''' - def begin_setInfo(self, id, info, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticator._op_setInfo.begin(self, ((id, info), _response, _ex, _sent, _ctx)) - - '''Set additional information for user registration. -Arguments: - id Userid of registered user. - info Information to set about user. This should be merged with existing information. -Returns: - 1 for successfull update, 0 for unsuccessfull update, -1 to fall through.''' - def end_setInfo(self, _r): - return _M_Murmur.ServerUpdatingAuthenticator._op_setInfo.end(self, _r) - - '''Set texture (now called avatar) of user registration. -Arguments: - id registrationId of registered user. - tex New texture. -Returns: - 1 for successfull update, 0 for unsuccessfull update, -1 to fall through.''' - def setTexture(self, id, tex, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticator._op_setTexture.invoke(self, ((id, tex), _ctx)) - - '''Set texture (now called avatar) of user registration. -Arguments: - id registrationId of registered user. - tex New texture. -Returns: - 1 for successfull update, 0 for unsuccessfull update, -1 to fall through.''' - def begin_setTexture(self, id, tex, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticator._op_setTexture.begin(self, ((id, tex), _response, _ex, _sent, _ctx)) - - '''Set texture (now called avatar) of user registration. -Arguments: - id registrationId of registered user. - tex New texture. -Returns: - 1 for successfull update, 0 for unsuccessfull update, -1 to fall through.''' - def end_setTexture(self, _r): - return _M_Murmur.ServerUpdatingAuthenticator._op_setTexture.end(self, _r) - - def checkedCast(proxy, facetOrCtx=None, _ctx=None): - return _M_Murmur.ServerUpdatingAuthenticatorPrx.ice_checkedCast(proxy, '::Murmur::ServerUpdatingAuthenticator', facetOrCtx, _ctx) - checkedCast = staticmethod(checkedCast) - - def uncheckedCast(proxy, facet=None): - return _M_Murmur.ServerUpdatingAuthenticatorPrx.ice_uncheckedCast(proxy, facet) - uncheckedCast = staticmethod(uncheckedCast) - - _M_Murmur._t_ServerUpdatingAuthenticatorPrx = IcePy.defineProxy('::Murmur::ServerUpdatingAuthenticator', ServerUpdatingAuthenticatorPrx) - - _M_Murmur._t_ServerUpdatingAuthenticator = IcePy.defineClass('::Murmur::ServerUpdatingAuthenticator', ServerUpdatingAuthenticator, -1, (), True, False, None, (_M_Murmur._t_ServerAuthenticator,), ()) - ServerUpdatingAuthenticator._ice_type = _M_Murmur._t_ServerUpdatingAuthenticator + _M_Murmur._t_ServerUpdatingAuthenticatorDisp = IcePy.defineClass('::Murmur::ServerUpdatingAuthenticator', ServerUpdatingAuthenticator, (), None, (_M_Murmur._t_ServerAuthenticatorDisp,)) + ServerUpdatingAuthenticator._ice_type = _M_Murmur._t_ServerUpdatingAuthenticatorDisp ServerUpdatingAuthenticator._op_registerUser = IcePy.Operation('registerUser', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_Murmur._t_UserInfoMap, False, 0),), (), ((), IcePy._t_int, False, 0), ()) ServerUpdatingAuthenticator._op_unregisterUser = IcePy.Operation('unregisterUser', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), IcePy._t_int, False, 0),), (), ((), IcePy._t_int, False, 0), ()) @@ -2257,18 +2746,2132 @@ Returns: _M_Murmur.ServerUpdatingAuthenticator = ServerUpdatingAuthenticator del ServerUpdatingAuthenticator - _M_Murmur.ServerUpdatingAuthenticatorPrx = ServerUpdatingAuthenticatorPrx - del ServerUpdatingAuthenticatorPrx +_M_Murmur._t_Server = IcePy.defineValue('::Murmur::Server', Ice.Value, -1, (), False, True, None, ()) + +if 'ServerPrx' not in _M_Murmur.__dict__: + _M_Murmur.ServerPrx = Ice.createTempClass() + class ServerPrx(Ice.ObjectPrx): + + """ + Shows if the server currently running (accepting users). + Arguments: + context -- The request context for the invocation. + Returns: Run-state of server. + """ + def isRunning(self, context=None): + return _M_Murmur.Server._op_isRunning.invoke(self, ((), context)) + + """ + Shows if the server currently running (accepting users). + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def isRunningAsync(self, context=None): + return _M_Murmur.Server._op_isRunning.invokeAsync(self, ((), context)) + + """ + Shows if the server currently running (accepting users). + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_isRunning(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_isRunning.begin(self, ((), _response, _ex, _sent, context)) + + """ + Shows if the server currently running (accepting users). + Arguments: + Returns: Run-state of server. + """ + def end_isRunning(self, _r): + return _M_Murmur.Server._op_isRunning.end(self, _r) + + """ + Start server. + Arguments: + context -- The request context for the invocation. + """ + def start(self, context=None): + return _M_Murmur.Server._op_start.invoke(self, ((), context)) + + """ + Start server. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def startAsync(self, context=None): + return _M_Murmur.Server._op_start.invokeAsync(self, ((), context)) + + """ + Start server. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_start(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_start.begin(self, ((), _response, _ex, _sent, context)) + + """ + Start server. + Arguments: + """ + def end_start(self, _r): + return _M_Murmur.Server._op_start.end(self, _r) + + """ + Stop server. + Note: Server will be restarted on Murmur restart unless explicitly disabled + with setConf("boot", false) + Arguments: + context -- The request context for the invocation. + """ + def stop(self, context=None): + return _M_Murmur.Server._op_stop.invoke(self, ((), context)) + + """ + Stop server. + Note: Server will be restarted on Murmur restart unless explicitly disabled + with setConf("boot", false) + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def stopAsync(self, context=None): + return _M_Murmur.Server._op_stop.invokeAsync(self, ((), context)) + + """ + Stop server. + Note: Server will be restarted on Murmur restart unless explicitly disabled + with setConf("boot", false) + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_stop(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_stop.begin(self, ((), _response, _ex, _sent, context)) + + """ + Stop server. + Note: Server will be restarted on Murmur restart unless explicitly disabled + with setConf("boot", false) + Arguments: + """ + def end_stop(self, _r): + return _M_Murmur.Server._op_stop.end(self, _r) + + """ + Delete server and all it's configuration. + Arguments: + context -- The request context for the invocation. + """ + def delete(self, context=None): + return _M_Murmur.Server._op_delete.invoke(self, ((), context)) + + """ + Delete server and all it's configuration. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def deleteAsync(self, context=None): + return _M_Murmur.Server._op_delete.invokeAsync(self, ((), context)) + + """ + Delete server and all it's configuration. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_delete(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_delete.begin(self, ((), _response, _ex, _sent, context)) + + """ + Delete server and all it's configuration. + Arguments: + """ + def end_delete(self, _r): + return _M_Murmur.Server._op_delete.end(self, _r) + + """ + Fetch the server id. + Arguments: + context -- The request context for the invocation. + Returns: Unique server id. + """ + def id(self, context=None): + return _M_Murmur.Server._op_id.invoke(self, ((), context)) + + """ + Fetch the server id. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def idAsync(self, context=None): + return _M_Murmur.Server._op_id.invokeAsync(self, ((), context)) + + """ + Fetch the server id. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_id(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_id.begin(self, ((), _response, _ex, _sent, context)) + + """ + Fetch the server id. + Arguments: + Returns: Unique server id. + """ + def end_id(self, _r): + return _M_Murmur.Server._op_id.end(self, _r) + + """ + Add a callback. The callback will receive notifications about changes to users and channels. + Arguments: + cb -- Callback interface which will receive notifications. + context -- The request context for the invocation. + """ + def addCallback(self, cb, context=None): + return _M_Murmur.Server._op_addCallback.invoke(self, ((cb, ), context)) + + """ + Add a callback. The callback will receive notifications about changes to users and channels. + Arguments: + cb -- Callback interface which will receive notifications. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def addCallbackAsync(self, cb, context=None): + return _M_Murmur.Server._op_addCallback.invokeAsync(self, ((cb, ), context)) + + """ + Add a callback. The callback will receive notifications about changes to users and channels. + Arguments: + cb -- Callback interface which will receive notifications. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_addCallback(self, cb, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_addCallback.begin(self, ((cb, ), _response, _ex, _sent, context)) + + """ + Add a callback. The callback will receive notifications about changes to users and channels. + Arguments: + cb -- Callback interface which will receive notifications. + """ + def end_addCallback(self, _r): + return _M_Murmur.Server._op_addCallback.end(self, _r) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. + context -- The request context for the invocation. + """ + def removeCallback(self, cb, context=None): + return _M_Murmur.Server._op_removeCallback.invoke(self, ((cb, ), context)) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def removeCallbackAsync(self, cb, context=None): + return _M_Murmur.Server._op_removeCallback.invokeAsync(self, ((cb, ), context)) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_removeCallback(self, cb, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_removeCallback.begin(self, ((cb, ), _response, _ex, _sent, context)) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. + """ + def end_removeCallback(self, _r): + return _M_Murmur.Server._op_removeCallback.end(self, _r) + + """ + Set external authenticator. If set, all authentications from clients are forwarded to this + proxy. + Arguments: + auth -- Authenticator object to perform subsequent authentications. + context -- The request context for the invocation. + """ + def setAuthenticator(self, auth, context=None): + return _M_Murmur.Server._op_setAuthenticator.invoke(self, ((auth, ), context)) + + """ + Set external authenticator. If set, all authentications from clients are forwarded to this + proxy. + Arguments: + auth -- Authenticator object to perform subsequent authentications. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def setAuthenticatorAsync(self, auth, context=None): + return _M_Murmur.Server._op_setAuthenticator.invokeAsync(self, ((auth, ), context)) + + """ + Set external authenticator. If set, all authentications from clients are forwarded to this + proxy. + Arguments: + auth -- Authenticator object to perform subsequent authentications. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_setAuthenticator(self, auth, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_setAuthenticator.begin(self, ((auth, ), _response, _ex, _sent, context)) + + """ + Set external authenticator. If set, all authentications from clients are forwarded to this + proxy. + Arguments: + auth -- Authenticator object to perform subsequent authentications. + """ + def end_setAuthenticator(self, _r): + return _M_Murmur.Server._op_setAuthenticator.end(self, _r) + + """ + Retrieve configuration item. + Arguments: + key -- Configuration key. + context -- The request context for the invocation. + Returns: Configuration value. If this is empty, see Meta.getDefaultConf + """ + def getConf(self, key, context=None): + return _M_Murmur.Server._op_getConf.invoke(self, ((key, ), context)) + + """ + Retrieve configuration item. + Arguments: + key -- Configuration key. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getConfAsync(self, key, context=None): + return _M_Murmur.Server._op_getConf.invokeAsync(self, ((key, ), context)) + + """ + Retrieve configuration item. + Arguments: + key -- Configuration key. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getConf(self, key, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getConf.begin(self, ((key, ), _response, _ex, _sent, context)) + + """ + Retrieve configuration item. + Arguments: + key -- Configuration key. + Returns: Configuration value. If this is empty, see Meta.getDefaultConf + """ + def end_getConf(self, _r): + return _M_Murmur.Server._op_getConf.end(self, _r) + + """ + Retrieve all configuration items. + Arguments: + context -- The request context for the invocation. + Returns: All configured values. If a value isn't set here, the value from Meta.getDefaultConf is used. + """ + def getAllConf(self, context=None): + return _M_Murmur.Server._op_getAllConf.invoke(self, ((), context)) + + """ + Retrieve all configuration items. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getAllConfAsync(self, context=None): + return _M_Murmur.Server._op_getAllConf.invokeAsync(self, ((), context)) + + """ + Retrieve all configuration items. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getAllConf(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getAllConf.begin(self, ((), _response, _ex, _sent, context)) + + """ + Retrieve all configuration items. + Arguments: + Returns: All configured values. If a value isn't set here, the value from Meta.getDefaultConf is used. + """ + def end_getAllConf(self, _r): + return _M_Murmur.Server._op_getAllConf.end(self, _r) + + """ + Set a configuration item. + Arguments: + key -- Configuration key. + value -- Configuration value. + context -- The request context for the invocation. + """ + def setConf(self, key, value, context=None): + return _M_Murmur.Server._op_setConf.invoke(self, ((key, value), context)) + + """ + Set a configuration item. + Arguments: + key -- Configuration key. + value -- Configuration value. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def setConfAsync(self, key, value, context=None): + return _M_Murmur.Server._op_setConf.invokeAsync(self, ((key, value), context)) + + """ + Set a configuration item. + Arguments: + key -- Configuration key. + value -- Configuration value. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_setConf(self, key, value, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_setConf.begin(self, ((key, value), _response, _ex, _sent, context)) + + """ + Set a configuration item. + Arguments: + key -- Configuration key. + value -- Configuration value. + """ + def end_setConf(self, _r): + return _M_Murmur.Server._op_setConf.end(self, _r) + + """ + Set superuser password. This is just a convenience for using updateRegistration on user id 0. + Arguments: + pw -- Password. + context -- The request context for the invocation. + """ + def setSuperuserPassword(self, pw, context=None): + return _M_Murmur.Server._op_setSuperuserPassword.invoke(self, ((pw, ), context)) + + """ + Set superuser password. This is just a convenience for using updateRegistration on user id 0. + Arguments: + pw -- Password. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def setSuperuserPasswordAsync(self, pw, context=None): + return _M_Murmur.Server._op_setSuperuserPassword.invokeAsync(self, ((pw, ), context)) + + """ + Set superuser password. This is just a convenience for using updateRegistration on user id 0. + Arguments: + pw -- Password. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_setSuperuserPassword(self, pw, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_setSuperuserPassword.begin(self, ((pw, ), _response, _ex, _sent, context)) + + """ + Set superuser password. This is just a convenience for using updateRegistration on user id 0. + Arguments: + pw -- Password. + """ + def end_setSuperuserPassword(self, _r): + return _M_Murmur.Server._op_setSuperuserPassword.end(self, _r) + + """ + Fetch log entries. + Arguments: + first -- Lowest numbered entry to fetch. 0 is the most recent item. + last -- Last entry to fetch. + context -- The request context for the invocation. + Returns: List of log entries. + """ + def getLog(self, first, last, context=None): + return _M_Murmur.Server._op_getLog.invoke(self, ((first, last), context)) + + """ + Fetch log entries. + Arguments: + first -- Lowest numbered entry to fetch. 0 is the most recent item. + last -- Last entry to fetch. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getLogAsync(self, first, last, context=None): + return _M_Murmur.Server._op_getLog.invokeAsync(self, ((first, last), context)) + + """ + Fetch log entries. + Arguments: + first -- Lowest numbered entry to fetch. 0 is the most recent item. + last -- Last entry to fetch. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getLog(self, first, last, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getLog.begin(self, ((first, last), _response, _ex, _sent, context)) + + """ + Fetch log entries. + Arguments: + first -- Lowest numbered entry to fetch. 0 is the most recent item. + last -- Last entry to fetch. + Returns: List of log entries. + """ + def end_getLog(self, _r): + return _M_Murmur.Server._op_getLog.end(self, _r) + + """ + Fetch length of log + Arguments: + context -- The request context for the invocation. + Returns: Number of entries in log + """ + def getLogLen(self, context=None): + return _M_Murmur.Server._op_getLogLen.invoke(self, ((), context)) + + """ + Fetch length of log + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getLogLenAsync(self, context=None): + return _M_Murmur.Server._op_getLogLen.invokeAsync(self, ((), context)) + + """ + Fetch length of log + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getLogLen(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getLogLen.begin(self, ((), _response, _ex, _sent, context)) + + """ + Fetch length of log + Arguments: + Returns: Number of entries in log + """ + def end_getLogLen(self, _r): + return _M_Murmur.Server._op_getLogLen.end(self, _r) + + """ + Fetch all users. This returns all currently connected users on the server. + Arguments: + context -- The request context for the invocation. + Returns: List of connected users. + """ + def getUsers(self, context=None): + return _M_Murmur.Server._op_getUsers.invoke(self, ((), context)) + + """ + Fetch all users. This returns all currently connected users on the server. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getUsersAsync(self, context=None): + return _M_Murmur.Server._op_getUsers.invokeAsync(self, ((), context)) + + """ + Fetch all users. This returns all currently connected users on the server. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getUsers(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getUsers.begin(self, ((), _response, _ex, _sent, context)) + + """ + Fetch all users. This returns all currently connected users on the server. + Arguments: + Returns: List of connected users. + """ + def end_getUsers(self, _r): + return _M_Murmur.Server._op_getUsers.end(self, _r) + + """ + Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. + Arguments: + context -- The request context for the invocation. + Returns: List of defined channels. + """ + def getChannels(self, context=None): + return _M_Murmur.Server._op_getChannels.invoke(self, ((), context)) + + """ + Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getChannelsAsync(self, context=None): + return _M_Murmur.Server._op_getChannels.invokeAsync(self, ((), context)) + + """ + Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getChannels(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getChannels.begin(self, ((), _response, _ex, _sent, context)) + + """ + Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. + Arguments: + Returns: List of defined channels. + """ + def end_getChannels(self, _r): + return _M_Murmur.Server._op_getChannels.end(self, _r) + + """ + Fetch certificate of user. This returns the complete certificate chain of a user. + Arguments: + session -- Connection ID of user. See User.session. + context -- The request context for the invocation. + Returns: Certificate list of user. + """ + def getCertificateList(self, session, context=None): + return _M_Murmur.Server._op_getCertificateList.invoke(self, ((session, ), context)) + + """ + Fetch certificate of user. This returns the complete certificate chain of a user. + Arguments: + session -- Connection ID of user. See User.session. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getCertificateListAsync(self, session, context=None): + return _M_Murmur.Server._op_getCertificateList.invokeAsync(self, ((session, ), context)) + + """ + Fetch certificate of user. This returns the complete certificate chain of a user. + Arguments: + session -- Connection ID of user. See User.session. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getCertificateList(self, session, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getCertificateList.begin(self, ((session, ), _response, _ex, _sent, context)) + + """ + Fetch certificate of user. This returns the complete certificate chain of a user. + Arguments: + session -- Connection ID of user. See User.session. + Returns: Certificate list of user. + """ + def end_getCertificateList(self, _r): + return _M_Murmur.Server._op_getCertificateList.end(self, _r) + + """ + Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server + as a tree. This is primarily used for viewing the state of the server on a webpage. + Arguments: + context -- The request context for the invocation. + Returns: Recursive tree of all channels and connected users. + """ + def getTree(self, context=None): + return _M_Murmur.Server._op_getTree.invoke(self, ((), context)) + + """ + Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server + as a tree. This is primarily used for viewing the state of the server on a webpage. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getTreeAsync(self, context=None): + return _M_Murmur.Server._op_getTree.invokeAsync(self, ((), context)) + + """ + Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server + as a tree. This is primarily used for viewing the state of the server on a webpage. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getTree(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getTree.begin(self, ((), _response, _ex, _sent, context)) + + """ + Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server + as a tree. This is primarily used for viewing the state of the server on a webpage. + Arguments: + Returns: Recursive tree of all channels and connected users. + """ + def end_getTree(self, _r): + return _M_Murmur.Server._op_getTree.end(self, _r) + + """ + Fetch all current IP bans on the server. + Arguments: + context -- The request context for the invocation. + Returns: List of bans. + """ + def getBans(self, context=None): + return _M_Murmur.Server._op_getBans.invoke(self, ((), context)) + + """ + Fetch all current IP bans on the server. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getBansAsync(self, context=None): + return _M_Murmur.Server._op_getBans.invokeAsync(self, ((), context)) + + """ + Fetch all current IP bans on the server. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getBans(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getBans.begin(self, ((), _response, _ex, _sent, context)) + + """ + Fetch all current IP bans on the server. + Arguments: + Returns: List of bans. + """ + def end_getBans(self, _r): + return _M_Murmur.Server._op_getBans.end(self, _r) + + """ + Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call getBans and then + append to the returned list before calling this method. + Arguments: + bans -- List of bans. + context -- The request context for the invocation. + """ + def setBans(self, bans, context=None): + return _M_Murmur.Server._op_setBans.invoke(self, ((bans, ), context)) + + """ + Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call getBans and then + append to the returned list before calling this method. + Arguments: + bans -- List of bans. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def setBansAsync(self, bans, context=None): + return _M_Murmur.Server._op_setBans.invokeAsync(self, ((bans, ), context)) + + """ + Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call getBans and then + append to the returned list before calling this method. + Arguments: + bans -- List of bans. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_setBans(self, bans, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_setBans.begin(self, ((bans, ), _response, _ex, _sent, context)) + + """ + Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call getBans and then + append to the returned list before calling this method. + Arguments: + bans -- List of bans. + """ + def end_setBans(self, _r): + return _M_Murmur.Server._op_setBans.end(self, _r) + + """ + Kick a user. The user is not banned, and is free to rejoin the server. + Arguments: + session -- Connection ID of user. See User.session. + reason -- Text message to show when user is kicked. + context -- The request context for the invocation. + """ + def kickUser(self, session, reason, context=None): + return _M_Murmur.Server._op_kickUser.invoke(self, ((session, reason), context)) + + """ + Kick a user. The user is not banned, and is free to rejoin the server. + Arguments: + session -- Connection ID of user. See User.session. + reason -- Text message to show when user is kicked. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def kickUserAsync(self, session, reason, context=None): + return _M_Murmur.Server._op_kickUser.invokeAsync(self, ((session, reason), context)) + + """ + Kick a user. The user is not banned, and is free to rejoin the server. + Arguments: + session -- Connection ID of user. See User.session. + reason -- Text message to show when user is kicked. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_kickUser(self, session, reason, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_kickUser.begin(self, ((session, reason), _response, _ex, _sent, context)) + + """ + Kick a user. The user is not banned, and is free to rejoin the server. + Arguments: + session -- Connection ID of user. See User.session. + reason -- Text message to show when user is kicked. + """ + def end_kickUser(self, _r): + return _M_Murmur.Server._op_kickUser.end(self, _r) + + """ + Get state of a single connected user. + Arguments: + session -- Connection ID of user. See User.session. + context -- The request context for the invocation. + Returns: State of connected user. + """ + def getState(self, session, context=None): + return _M_Murmur.Server._op_getState.invoke(self, ((session, ), context)) + + """ + Get state of a single connected user. + Arguments: + session -- Connection ID of user. See User.session. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getStateAsync(self, session, context=None): + return _M_Murmur.Server._op_getState.invokeAsync(self, ((session, ), context)) + + """ + Get state of a single connected user. + Arguments: + session -- Connection ID of user. See User.session. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getState(self, session, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getState.begin(self, ((session, ), _response, _ex, _sent, context)) + + """ + Get state of a single connected user. + Arguments: + session -- Connection ID of user. See User.session. + Returns: State of connected user. + """ + def end_getState(self, _r): + return _M_Murmur.Server._op_getState.end(self, _r) + + """ + Set user state. You can use this to move, mute and deafen users. + Arguments: + state -- User state to set. + context -- The request context for the invocation. + """ + def setState(self, state, context=None): + return _M_Murmur.Server._op_setState.invoke(self, ((state, ), context)) + + """ + Set user state. You can use this to move, mute and deafen users. + Arguments: + state -- User state to set. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def setStateAsync(self, state, context=None): + return _M_Murmur.Server._op_setState.invokeAsync(self, ((state, ), context)) + + """ + Set user state. You can use this to move, mute and deafen users. + Arguments: + state -- User state to set. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_setState(self, state, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_setState.begin(self, ((state, ), _response, _ex, _sent, context)) + + """ + Set user state. You can use this to move, mute and deafen users. + Arguments: + state -- User state to set. + """ + def end_setState(self, _r): + return _M_Murmur.Server._op_setState.end(self, _r) + + """ + Send text message to a single user. + Arguments: + session -- Connection ID of user. See User.session. + text -- Message to send. + context -- The request context for the invocation. + """ + def sendMessage(self, session, text, context=None): + return _M_Murmur.Server._op_sendMessage.invoke(self, ((session, text), context)) + + """ + Send text message to a single user. + Arguments: + session -- Connection ID of user. See User.session. + text -- Message to send. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def sendMessageAsync(self, session, text, context=None): + return _M_Murmur.Server._op_sendMessage.invokeAsync(self, ((session, text), context)) + + """ + Send text message to a single user. + Arguments: + session -- Connection ID of user. See User.session. + text -- Message to send. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_sendMessage(self, session, text, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_sendMessage.begin(self, ((session, text), _response, _ex, _sent, context)) + + """ + Send text message to a single user. + Arguments: + session -- Connection ID of user. See User.session. + text -- Message to send. + """ + def end_sendMessage(self, _r): + return _M_Murmur.Server._op_sendMessage.end(self, _r) + + """ + Check if user is permitted to perform action. + Arguments: + session -- Connection ID of user. See User.session. + channelid -- ID of Channel. See Channel.id. + perm -- Permission bits to check. + context -- The request context for the invocation. + Returns: true if any of the permissions in perm were set for the user. + """ + def hasPermission(self, session, channelid, perm, context=None): + return _M_Murmur.Server._op_hasPermission.invoke(self, ((session, channelid, perm), context)) + + """ + Check if user is permitted to perform action. + Arguments: + session -- Connection ID of user. See User.session. + channelid -- ID of Channel. See Channel.id. + perm -- Permission bits to check. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def hasPermissionAsync(self, session, channelid, perm, context=None): + return _M_Murmur.Server._op_hasPermission.invokeAsync(self, ((session, channelid, perm), context)) + + """ + Check if user is permitted to perform action. + Arguments: + session -- Connection ID of user. See User.session. + channelid -- ID of Channel. See Channel.id. + perm -- Permission bits to check. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_hasPermission(self, session, channelid, perm, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_hasPermission.begin(self, ((session, channelid, perm), _response, _ex, _sent, context)) + + """ + Check if user is permitted to perform action. + Arguments: + session -- Connection ID of user. See User.session. + channelid -- ID of Channel. See Channel.id. + perm -- Permission bits to check. + Returns: true if any of the permissions in perm were set for the user. + """ + def end_hasPermission(self, _r): + return _M_Murmur.Server._op_hasPermission.end(self, _r) + + """ + Return users effective permissions + Arguments: + session -- Connection ID of user. See User.session. + channelid -- ID of Channel. See Channel.id. + context -- The request context for the invocation. + Returns: bitfield of allowed actions + """ + def effectivePermissions(self, session, channelid, context=None): + return _M_Murmur.Server._op_effectivePermissions.invoke(self, ((session, channelid), context)) + + """ + Return users effective permissions + Arguments: + session -- Connection ID of user. See User.session. + channelid -- ID of Channel. See Channel.id. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def effectivePermissionsAsync(self, session, channelid, context=None): + return _M_Murmur.Server._op_effectivePermissions.invokeAsync(self, ((session, channelid), context)) + + """ + Return users effective permissions + Arguments: + session -- Connection ID of user. See User.session. + channelid -- ID of Channel. See Channel.id. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_effectivePermissions(self, session, channelid, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_effectivePermissions.begin(self, ((session, channelid), _response, _ex, _sent, context)) + + """ + Return users effective permissions + Arguments: + session -- Connection ID of user. See User.session. + channelid -- ID of Channel. See Channel.id. + Returns: bitfield of allowed actions + """ + def end_effectivePermissions(self, _r): + return _M_Murmur.Server._op_effectivePermissions.end(self, _r) + + """ + Add a context callback. This is done per user, and will add a context menu action for the user. + Arguments: + session -- Session of user which should receive context entry. + action -- Action string, a unique name to associate with the action. + text -- Name of action shown to user. + cb -- Callback interface which will receive notifications. + ctx -- Context this should be used in. Needs to be one or a combination of ContextServer, ContextChannel and ContextUser. + context -- The request context for the invocation. + """ + def addContextCallback(self, session, action, text, cb, ctx, context=None): + return _M_Murmur.Server._op_addContextCallback.invoke(self, ((session, action, text, cb, ctx), context)) + + """ + Add a context callback. This is done per user, and will add a context menu action for the user. + Arguments: + session -- Session of user which should receive context entry. + action -- Action string, a unique name to associate with the action. + text -- Name of action shown to user. + cb -- Callback interface which will receive notifications. + ctx -- Context this should be used in. Needs to be one or a combination of ContextServer, ContextChannel and ContextUser. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def addContextCallbackAsync(self, session, action, text, cb, ctx, context=None): + return _M_Murmur.Server._op_addContextCallback.invokeAsync(self, ((session, action, text, cb, ctx), context)) + + """ + Add a context callback. This is done per user, and will add a context menu action for the user. + Arguments: + session -- Session of user which should receive context entry. + action -- Action string, a unique name to associate with the action. + text -- Name of action shown to user. + cb -- Callback interface which will receive notifications. + ctx -- Context this should be used in. Needs to be one or a combination of ContextServer, ContextChannel and ContextUser. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_addContextCallback(self, session, action, text, cb, ctx, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_addContextCallback.begin(self, ((session, action, text, cb, ctx), _response, _ex, _sent, context)) + + """ + Add a context callback. This is done per user, and will add a context menu action for the user. + Arguments: + session -- Session of user which should receive context entry. + action -- Action string, a unique name to associate with the action. + text -- Name of action shown to user. + cb -- Callback interface which will receive notifications. + ctx -- Context this should be used in. Needs to be one or a combination of ContextServer, ContextChannel and ContextUser. + """ + def end_addContextCallback(self, _r): + return _M_Murmur.Server._op_addContextCallback.end(self, _r) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. This callback will be removed from all from all users. + context -- The request context for the invocation. + """ + def removeContextCallback(self, cb, context=None): + return _M_Murmur.Server._op_removeContextCallback.invoke(self, ((cb, ), context)) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. This callback will be removed from all from all users. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def removeContextCallbackAsync(self, cb, context=None): + return _M_Murmur.Server._op_removeContextCallback.invokeAsync(self, ((cb, ), context)) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. This callback will be removed from all from all users. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_removeContextCallback(self, cb, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_removeContextCallback.begin(self, ((cb, ), _response, _ex, _sent, context)) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. This callback will be removed from all from all users. + """ + def end_removeContextCallback(self, _r): + return _M_Murmur.Server._op_removeContextCallback.end(self, _r) + + """ + Get state of single channel. + Arguments: + channelid -- ID of Channel. See Channel.id. + context -- The request context for the invocation. + Returns: State of channel. + """ + def getChannelState(self, channelid, context=None): + return _M_Murmur.Server._op_getChannelState.invoke(self, ((channelid, ), context)) + + """ + Get state of single channel. + Arguments: + channelid -- ID of Channel. See Channel.id. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getChannelStateAsync(self, channelid, context=None): + return _M_Murmur.Server._op_getChannelState.invokeAsync(self, ((channelid, ), context)) + + """ + Get state of single channel. + Arguments: + channelid -- ID of Channel. See Channel.id. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getChannelState(self, channelid, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getChannelState.begin(self, ((channelid, ), _response, _ex, _sent, context)) + + """ + Get state of single channel. + Arguments: + channelid -- ID of Channel. See Channel.id. + Returns: State of channel. + """ + def end_getChannelState(self, _r): + return _M_Murmur.Server._op_getChannelState.end(self, _r) + + """ + Set state of a single channel. You can use this to move or relink channels. + Arguments: + state -- Channel state to set. + context -- The request context for the invocation. + """ + def setChannelState(self, state, context=None): + return _M_Murmur.Server._op_setChannelState.invoke(self, ((state, ), context)) + + """ + Set state of a single channel. You can use this to move or relink channels. + Arguments: + state -- Channel state to set. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def setChannelStateAsync(self, state, context=None): + return _M_Murmur.Server._op_setChannelState.invokeAsync(self, ((state, ), context)) + + """ + Set state of a single channel. You can use this to move or relink channels. + Arguments: + state -- Channel state to set. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_setChannelState(self, state, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_setChannelState.begin(self, ((state, ), _response, _ex, _sent, context)) + + """ + Set state of a single channel. You can use this to move or relink channels. + Arguments: + state -- Channel state to set. + """ + def end_setChannelState(self, _r): + return _M_Murmur.Server._op_setChannelState.end(self, _r) + + """ + Remove a channel and all its subchannels. + Arguments: + channelid -- ID of Channel. See Channel.id. + context -- The request context for the invocation. + """ + def removeChannel(self, channelid, context=None): + return _M_Murmur.Server._op_removeChannel.invoke(self, ((channelid, ), context)) + + """ + Remove a channel and all its subchannels. + Arguments: + channelid -- ID of Channel. See Channel.id. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def removeChannelAsync(self, channelid, context=None): + return _M_Murmur.Server._op_removeChannel.invokeAsync(self, ((channelid, ), context)) + + """ + Remove a channel and all its subchannels. + Arguments: + channelid -- ID of Channel. See Channel.id. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_removeChannel(self, channelid, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_removeChannel.begin(self, ((channelid, ), _response, _ex, _sent, context)) + + """ + Remove a channel and all its subchannels. + Arguments: + channelid -- ID of Channel. See Channel.id. + """ + def end_removeChannel(self, _r): + return _M_Murmur.Server._op_removeChannel.end(self, _r) + + """ + Add a new channel. + Arguments: + name -- Name of new channel. + parent -- Channel ID of parent channel. See Channel.id. + context -- The request context for the invocation. + Returns: ID of newly created channel. + """ + def addChannel(self, name, parent, context=None): + return _M_Murmur.Server._op_addChannel.invoke(self, ((name, parent), context)) + + """ + Add a new channel. + Arguments: + name -- Name of new channel. + parent -- Channel ID of parent channel. See Channel.id. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def addChannelAsync(self, name, parent, context=None): + return _M_Murmur.Server._op_addChannel.invokeAsync(self, ((name, parent), context)) + + """ + Add a new channel. + Arguments: + name -- Name of new channel. + parent -- Channel ID of parent channel. See Channel.id. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_addChannel(self, name, parent, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_addChannel.begin(self, ((name, parent), _response, _ex, _sent, context)) + + """ + Add a new channel. + Arguments: + name -- Name of new channel. + parent -- Channel ID of parent channel. See Channel.id. + Returns: ID of newly created channel. + """ + def end_addChannel(self, _r): + return _M_Murmur.Server._op_addChannel.end(self, _r) + + """ + Send text message to channel or a tree of channels. + Arguments: + channelid -- Channel ID of channel to send to. See Channel.id. + tree -- If true, the message will be sent to the channel and all its subchannels. + text -- Message to send. + context -- The request context for the invocation. + """ + def sendMessageChannel(self, channelid, tree, text, context=None): + return _M_Murmur.Server._op_sendMessageChannel.invoke(self, ((channelid, tree, text), context)) + + """ + Send text message to channel or a tree of channels. + Arguments: + channelid -- Channel ID of channel to send to. See Channel.id. + tree -- If true, the message will be sent to the channel and all its subchannels. + text -- Message to send. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def sendMessageChannelAsync(self, channelid, tree, text, context=None): + return _M_Murmur.Server._op_sendMessageChannel.invokeAsync(self, ((channelid, tree, text), context)) + + """ + Send text message to channel or a tree of channels. + Arguments: + channelid -- Channel ID of channel to send to. See Channel.id. + tree -- If true, the message will be sent to the channel and all its subchannels. + text -- Message to send. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_sendMessageChannel(self, channelid, tree, text, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_sendMessageChannel.begin(self, ((channelid, tree, text), _response, _ex, _sent, context)) + + """ + Send text message to channel or a tree of channels. + Arguments: + channelid -- Channel ID of channel to send to. See Channel.id. + tree -- If true, the message will be sent to the channel and all its subchannels. + text -- Message to send. + """ + def end_sendMessageChannel(self, _r): + return _M_Murmur.Server._op_sendMessageChannel.end(self, _r) + + """ + Retrieve ACLs and Groups on a channel. + Arguments: + channelid -- Channel ID of channel to fetch from. See Channel.id. + context -- The request context for the invocation. + Returns a tuple containing the following: + acls -- List of ACLs on the channel. This will include inherited ACLs. + groups -- List of groups on the channel. This will include inherited groups. + inherit -- Does this channel inherit ACLs from the parent channel? + """ + def getACL(self, channelid, context=None): + return _M_Murmur.Server._op_getACL.invoke(self, ((channelid, ), context)) + + """ + Retrieve ACLs and Groups on a channel. + Arguments: + channelid -- Channel ID of channel to fetch from. See Channel.id. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getACLAsync(self, channelid, context=None): + return _M_Murmur.Server._op_getACL.invokeAsync(self, ((channelid, ), context)) + + """ + Retrieve ACLs and Groups on a channel. + Arguments: + channelid -- Channel ID of channel to fetch from. See Channel.id. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getACL(self, channelid, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getACL.begin(self, ((channelid, ), _response, _ex, _sent, context)) + + """ + Retrieve ACLs and Groups on a channel. + Arguments: + channelid -- Channel ID of channel to fetch from. See Channel.id. + Returns a tuple containing the following: + acls -- List of ACLs on the channel. This will include inherited ACLs. + groups -- List of groups on the channel. This will include inherited groups. + inherit -- Does this channel inherit ACLs from the parent channel? + """ + def end_getACL(self, _r): + return _M_Murmur.Server._op_getACL.end(self, _r) + + """ + Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. + Arguments: + channelid -- Channel ID of channel to fetch from. See Channel.id. + acls -- List of ACLs on the channel. + groups -- List of groups on the channel. + inherit -- Should this channel inherit ACLs from the parent channel? + context -- The request context for the invocation. + """ + def setACL(self, channelid, acls, groups, inherit, context=None): + return _M_Murmur.Server._op_setACL.invoke(self, ((channelid, acls, groups, inherit), context)) + + """ + Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. + Arguments: + channelid -- Channel ID of channel to fetch from. See Channel.id. + acls -- List of ACLs on the channel. + groups -- List of groups on the channel. + inherit -- Should this channel inherit ACLs from the parent channel? + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def setACLAsync(self, channelid, acls, groups, inherit, context=None): + return _M_Murmur.Server._op_setACL.invokeAsync(self, ((channelid, acls, groups, inherit), context)) + + """ + Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. + Arguments: + channelid -- Channel ID of channel to fetch from. See Channel.id. + acls -- List of ACLs on the channel. + groups -- List of groups on the channel. + inherit -- Should this channel inherit ACLs from the parent channel? + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_setACL(self, channelid, acls, groups, inherit, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_setACL.begin(self, ((channelid, acls, groups, inherit), _response, _ex, _sent, context)) + + """ + Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. + Arguments: + channelid -- Channel ID of channel to fetch from. See Channel.id. + acls -- List of ACLs on the channel. + groups -- List of groups on the channel. + inherit -- Should this channel inherit ACLs from the parent channel? + """ + def end_setACL(self, _r): + return _M_Murmur.Server._op_setACL.end(self, _r) + + """ + Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. + Arguments: + channelid -- Channel ID of channel to add to. See Channel.id. + session -- Connection ID of user. See User.session. + group -- Group name to add to. + context -- The request context for the invocation. + """ + def addUserToGroup(self, channelid, session, group, context=None): + return _M_Murmur.Server._op_addUserToGroup.invoke(self, ((channelid, session, group), context)) + + """ + Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. + Arguments: + channelid -- Channel ID of channel to add to. See Channel.id. + session -- Connection ID of user. See User.session. + group -- Group name to add to. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def addUserToGroupAsync(self, channelid, session, group, context=None): + return _M_Murmur.Server._op_addUserToGroup.invokeAsync(self, ((channelid, session, group), context)) + + """ + Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. + Arguments: + channelid -- Channel ID of channel to add to. See Channel.id. + session -- Connection ID of user. See User.session. + group -- Group name to add to. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_addUserToGroup(self, channelid, session, group, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_addUserToGroup.begin(self, ((channelid, session, group), _response, _ex, _sent, context)) + + """ + Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. + Arguments: + channelid -- Channel ID of channel to add to. See Channel.id. + session -- Connection ID of user. See User.session. + group -- Group name to add to. + """ + def end_addUserToGroup(self, _r): + return _M_Murmur.Server._op_addUserToGroup.end(self, _r) + + """ + Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. + Arguments: + channelid -- Channel ID of channel to add to. See Channel.id. + session -- Connection ID of user. See User.session. + group -- Group name to remove from. + context -- The request context for the invocation. + """ + def removeUserFromGroup(self, channelid, session, group, context=None): + return _M_Murmur.Server._op_removeUserFromGroup.invoke(self, ((channelid, session, group), context)) + + """ + Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. + Arguments: + channelid -- Channel ID of channel to add to. See Channel.id. + session -- Connection ID of user. See User.session. + group -- Group name to remove from. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def removeUserFromGroupAsync(self, channelid, session, group, context=None): + return _M_Murmur.Server._op_removeUserFromGroup.invokeAsync(self, ((channelid, session, group), context)) + + """ + Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. + Arguments: + channelid -- Channel ID of channel to add to. See Channel.id. + session -- Connection ID of user. See User.session. + group -- Group name to remove from. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_removeUserFromGroup(self, channelid, session, group, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_removeUserFromGroup.begin(self, ((channelid, session, group), _response, _ex, _sent, context)) + + """ + Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. + Arguments: + channelid -- Channel ID of channel to add to. See Channel.id. + session -- Connection ID of user. See User.session. + group -- Group name to remove from. + """ + def end_removeUserFromGroup(self, _r): + return _M_Murmur.Server._op_removeUserFromGroup.end(self, _r) + + """ + Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". + To remove a redirect pass an empty target string. This is intended for context groups. + Arguments: + session -- Connection ID of user. See User.session. + source -- Group name to redirect from. + target -- Group name to redirect to. + context -- The request context for the invocation. + """ + def redirectWhisperGroup(self, session, source, target, context=None): + return _M_Murmur.Server._op_redirectWhisperGroup.invoke(self, ((session, source, target), context)) + + """ + Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". + To remove a redirect pass an empty target string. This is intended for context groups. + Arguments: + session -- Connection ID of user. See User.session. + source -- Group name to redirect from. + target -- Group name to redirect to. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def redirectWhisperGroupAsync(self, session, source, target, context=None): + return _M_Murmur.Server._op_redirectWhisperGroup.invokeAsync(self, ((session, source, target), context)) + + """ + Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". + To remove a redirect pass an empty target string. This is intended for context groups. + Arguments: + session -- Connection ID of user. See User.session. + source -- Group name to redirect from. + target -- Group name to redirect to. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_redirectWhisperGroup(self, session, source, target, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_redirectWhisperGroup.begin(self, ((session, source, target), _response, _ex, _sent, context)) + + """ + Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". + To remove a redirect pass an empty target string. This is intended for context groups. + Arguments: + session -- Connection ID of user. See User.session. + source -- Group name to redirect from. + target -- Group name to redirect to. + """ + def end_redirectWhisperGroup(self, _r): + return _M_Murmur.Server._op_redirectWhisperGroup.end(self, _r) + + """ + Map a list of User.userid to a matching name. + Arguments: + ids -- + context -- The request context for the invocation. + Returns: Matching list of names, with an empty string representing invalid or unknown ids. + """ + def getUserNames(self, ids, context=None): + return _M_Murmur.Server._op_getUserNames.invoke(self, ((ids, ), context)) + + """ + Map a list of User.userid to a matching name. + Arguments: + ids -- + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getUserNamesAsync(self, ids, context=None): + return _M_Murmur.Server._op_getUserNames.invokeAsync(self, ((ids, ), context)) + + """ + Map a list of User.userid to a matching name. + Arguments: + ids -- + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getUserNames(self, ids, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getUserNames.begin(self, ((ids, ), _response, _ex, _sent, context)) + + """ + Map a list of User.userid to a matching name. + Arguments: + ids -- + Returns: Matching list of names, with an empty string representing invalid or unknown ids. + """ + def end_getUserNames(self, _r): + return _M_Murmur.Server._op_getUserNames.end(self, _r) + + """ + Map a list of user names to a matching id. + @reuturn List of matching ids, with -1 representing invalid or unknown user names. + Arguments: + names -- + context -- The request context for the invocation. + """ + def getUserIds(self, names, context=None): + return _M_Murmur.Server._op_getUserIds.invoke(self, ((names, ), context)) + + """ + Map a list of user names to a matching id. + @reuturn List of matching ids, with -1 representing invalid or unknown user names. + Arguments: + names -- + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getUserIdsAsync(self, names, context=None): + return _M_Murmur.Server._op_getUserIds.invokeAsync(self, ((names, ), context)) + + """ + Map a list of user names to a matching id. + @reuturn List of matching ids, with -1 representing invalid or unknown user names. + Arguments: + names -- + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getUserIds(self, names, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getUserIds.begin(self, ((names, ), _response, _ex, _sent, context)) + + """ + Map a list of user names to a matching id. + @reuturn List of matching ids, with -1 representing invalid or unknown user names. + Arguments: + names -- + """ + def end_getUserIds(self, _r): + return _M_Murmur.Server._op_getUserIds.end(self, _r) + + """ + Register a new user. + Arguments: + info -- Information about new user. Must include at least "name". + context -- The request context for the invocation. + Returns: The ID of the user. See RegisteredUser.userid. + """ + def registerUser(self, info, context=None): + return _M_Murmur.Server._op_registerUser.invoke(self, ((info, ), context)) + + """ + Register a new user. + Arguments: + info -- Information about new user. Must include at least "name". + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def registerUserAsync(self, info, context=None): + return _M_Murmur.Server._op_registerUser.invokeAsync(self, ((info, ), context)) + + """ + Register a new user. + Arguments: + info -- Information about new user. Must include at least "name". + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_registerUser(self, info, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_registerUser.begin(self, ((info, ), _response, _ex, _sent, context)) + + """ + Register a new user. + Arguments: + info -- Information about new user. Must include at least "name". + Returns: The ID of the user. See RegisteredUser.userid. + """ + def end_registerUser(self, _r): + return _M_Murmur.Server._op_registerUser.end(self, _r) + + """ + Remove a user registration. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + context -- The request context for the invocation. + """ + def unregisterUser(self, userid, context=None): + return _M_Murmur.Server._op_unregisterUser.invoke(self, ((userid, ), context)) + + """ + Remove a user registration. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def unregisterUserAsync(self, userid, context=None): + return _M_Murmur.Server._op_unregisterUser.invokeAsync(self, ((userid, ), context)) + + """ + Remove a user registration. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_unregisterUser(self, userid, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_unregisterUser.begin(self, ((userid, ), _response, _ex, _sent, context)) + + """ + Remove a user registration. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + """ + def end_unregisterUser(self, _r): + return _M_Murmur.Server._op_unregisterUser.end(self, _r) + + """ + Update the registration for a user. You can use this to set the email or password of a user, + and can also use it to change the user's name. + Arguments: + userid -- + info -- + context -- The request context for the invocation. + """ + def updateRegistration(self, userid, info, context=None): + return _M_Murmur.Server._op_updateRegistration.invoke(self, ((userid, info), context)) + + """ + Update the registration for a user. You can use this to set the email or password of a user, + and can also use it to change the user's name. + Arguments: + userid -- + info -- + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def updateRegistrationAsync(self, userid, info, context=None): + return _M_Murmur.Server._op_updateRegistration.invokeAsync(self, ((userid, info), context)) + + """ + Update the registration for a user. You can use this to set the email or password of a user, + and can also use it to change the user's name. + Arguments: + userid -- + info -- + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_updateRegistration(self, userid, info, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_updateRegistration.begin(self, ((userid, info), _response, _ex, _sent, context)) + + """ + Update the registration for a user. You can use this to set the email or password of a user, + and can also use it to change the user's name. + Arguments: + userid -- + info -- + """ + def end_updateRegistration(self, _r): + return _M_Murmur.Server._op_updateRegistration.end(self, _r) + + """ + Fetch registration for a single user. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + context -- The request context for the invocation. + Returns: Registration record. + """ + def getRegistration(self, userid, context=None): + return _M_Murmur.Server._op_getRegistration.invoke(self, ((userid, ), context)) + + """ + Fetch registration for a single user. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getRegistrationAsync(self, userid, context=None): + return _M_Murmur.Server._op_getRegistration.invokeAsync(self, ((userid, ), context)) + + """ + Fetch registration for a single user. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getRegistration(self, userid, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getRegistration.begin(self, ((userid, ), _response, _ex, _sent, context)) + + """ + Fetch registration for a single user. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + Returns: Registration record. + """ + def end_getRegistration(self, _r): + return _M_Murmur.Server._op_getRegistration.end(self, _r) + + """ + Fetch a group of registered users. + Arguments: + filter -- Substring of user name. If blank, will retrieve all registered users. + context -- The request context for the invocation. + Returns: List of registration records. + """ + def getRegisteredUsers(self, filter, context=None): + return _M_Murmur.Server._op_getRegisteredUsers.invoke(self, ((filter, ), context)) + + """ + Fetch a group of registered users. + Arguments: + filter -- Substring of user name. If blank, will retrieve all registered users. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getRegisteredUsersAsync(self, filter, context=None): + return _M_Murmur.Server._op_getRegisteredUsers.invokeAsync(self, ((filter, ), context)) + + """ + Fetch a group of registered users. + Arguments: + filter -- Substring of user name. If blank, will retrieve all registered users. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getRegisteredUsers(self, filter, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getRegisteredUsers.begin(self, ((filter, ), _response, _ex, _sent, context)) + + """ + Fetch a group of registered users. + Arguments: + filter -- Substring of user name. If blank, will retrieve all registered users. + Returns: List of registration records. + """ + def end_getRegisteredUsers(self, _r): + return _M_Murmur.Server._op_getRegisteredUsers.end(self, _r) + + """ + Verify the password of a user. You can use this to verify a user's credentials. + Arguments: + name -- User name. See RegisteredUser.name. + pw -- User password. + context -- The request context for the invocation. + Returns: User ID of registered user (See RegisteredUser.userid), -1 for failed authentication or -2 for unknown usernames. + """ + def verifyPassword(self, name, pw, context=None): + return _M_Murmur.Server._op_verifyPassword.invoke(self, ((name, pw), context)) + + """ + Verify the password of a user. You can use this to verify a user's credentials. + Arguments: + name -- User name. See RegisteredUser.name. + pw -- User password. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def verifyPasswordAsync(self, name, pw, context=None): + return _M_Murmur.Server._op_verifyPassword.invokeAsync(self, ((name, pw), context)) + + """ + Verify the password of a user. You can use this to verify a user's credentials. + Arguments: + name -- User name. See RegisteredUser.name. + pw -- User password. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_verifyPassword(self, name, pw, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_verifyPassword.begin(self, ((name, pw), _response, _ex, _sent, context)) + + """ + Verify the password of a user. You can use this to verify a user's credentials. + Arguments: + name -- User name. See RegisteredUser.name. + pw -- User password. + Returns: User ID of registered user (See RegisteredUser.userid), -1 for failed authentication or -2 for unknown usernames. + """ + def end_verifyPassword(self, _r): + return _M_Murmur.Server._op_verifyPassword.end(self, _r) + + """ + Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + context -- The request context for the invocation. + Returns: Custom texture associated with user or an empty texture. + """ + def getTexture(self, userid, context=None): + return _M_Murmur.Server._op_getTexture.invoke(self, ((userid, ), context)) + + """ + Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getTextureAsync(self, userid, context=None): + return _M_Murmur.Server._op_getTexture.invokeAsync(self, ((userid, ), context)) + + """ + Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getTexture(self, userid, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getTexture.begin(self, ((userid, ), _response, _ex, _sent, context)) + + """ + Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + Returns: Custom texture associated with user or an empty texture. + """ + def end_getTexture(self, _r): + return _M_Murmur.Server._op_getTexture.end(self, _r) + + """ + Set a user texture (now called avatar). + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + tex -- Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture. + context -- The request context for the invocation. + """ + def setTexture(self, userid, tex, context=None): + return _M_Murmur.Server._op_setTexture.invoke(self, ((userid, tex), context)) + + """ + Set a user texture (now called avatar). + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + tex -- Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def setTextureAsync(self, userid, tex, context=None): + return _M_Murmur.Server._op_setTexture.invokeAsync(self, ((userid, tex), context)) + + """ + Set a user texture (now called avatar). + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + tex -- Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_setTexture(self, userid, tex, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_setTexture.begin(self, ((userid, tex), _response, _ex, _sent, context)) + + """ + Set a user texture (now called avatar). + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + tex -- Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture. + """ + def end_setTexture(self, _r): + return _M_Murmur.Server._op_setTexture.end(self, _r) + + """ + Get virtual server uptime. + Arguments: + context -- The request context for the invocation. + Returns: Uptime of the virtual server in seconds + """ + def getUptime(self, context=None): + return _M_Murmur.Server._op_getUptime.invoke(self, ((), context)) + + """ + Get virtual server uptime. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getUptimeAsync(self, context=None): + return _M_Murmur.Server._op_getUptime.invokeAsync(self, ((), context)) + + """ + Get virtual server uptime. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getUptime(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Server._op_getUptime.begin(self, ((), _response, _ex, _sent, context)) + + """ + Get virtual server uptime. + Arguments: + Returns: Uptime of the virtual server in seconds + """ + def end_getUptime(self, _r): + return _M_Murmur.Server._op_getUptime.end(self, _r) + + @staticmethod + def checkedCast(proxy, facetOrContext=None, context=None): + return _M_Murmur.ServerPrx.ice_checkedCast(proxy, '::Murmur::Server', facetOrContext, context) + + @staticmethod + def uncheckedCast(proxy, facet=None): + return _M_Murmur.ServerPrx.ice_uncheckedCast(proxy, facet) + + @staticmethod + def ice_staticId(): + return '::Murmur::Server' + _M_Murmur._t_ServerPrx = IcePy.defineProxy('::Murmur::Server', ServerPrx) + + _M_Murmur.ServerPrx = ServerPrx + del ServerPrx -if 'Server' not in _M_Murmur.__dict__: _M_Murmur.Server = Ice.createTempClass() class Server(Ice.Object): - '''Per-server interface. This includes all methods for configuring and altering -the state of a single virtual server. You can retrieve a pointer to this interface -from one of the methods in Meta.''' - def __init__(self): - if Ice.getType(self) == _M_Murmur.Server: - raise RuntimeError('Murmur.Server is an abstract class') def ice_ids(self, current=None): return ('::Ice::Object', '::Murmur::Server') @@ -2276,1466 +4879,529 @@ from one of the methods in Meta.''' def ice_id(self, current=None): return '::Murmur::Server' + @staticmethod def ice_staticId(): return '::Murmur::Server' - ice_staticId = staticmethod(ice_staticId) - def isRunning_async(self, _cb, current=None): - '''Shows if the server currently running (accepting users). + def isRunning(self, current=None): + """ + Shows if the server currently running (accepting users). + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'isRunning' not implemented") -Returns: - Run-state of server.''' - pass + def start(self, current=None): + """ + Start server. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'start' not implemented") - def start_async(self, _cb, current=None): - '''Start server.''' - pass + def stop(self, current=None): + """ + Stop server. + Note: Server will be restarted on Murmur restart unless explicitly disabled + with setConf("boot", false) + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'stop' not implemented") - def stop_async(self, _cb, current=None): - '''Stop server. -Note: Server will be restarted on Murmur restart unless explicitly disabled -with setConf("boot", false)''' - pass + def delete(self, current=None): + """ + Delete server and all it's configuration. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'delete' not implemented") - def delete_async(self, _cb, current=None): - '''Delete server and all it's configuration.''' - pass + def id(self, current=None): + """ + Fetch the server id. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'id' not implemented") - def id_async(self, _cb, current=None): - '''Fetch the server id. + def addCallback(self, cb, current=None): + """ + Add a callback. The callback will receive notifications about changes to users and channels. + Arguments: + cb -- Callback interface which will receive notifications. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'addCallback' not implemented") -Returns: - Unique server id.''' - pass + def removeCallback(self, cb, current=None): + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'removeCallback' not implemented") - def addCallback_async(self, _cb, cb, current=None): - '''Add a callback. The callback will receive notifications about changes to users and channels. + def setAuthenticator(self, auth, current=None): + """ + Set external authenticator. If set, all authentications from clients are forwarded to this + proxy. + Arguments: + auth -- Authenticator object to perform subsequent authentications. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'setAuthenticator' not implemented") -Arguments: - cb Callback interface which will receive notifications.''' - pass + def getConf(self, key, current=None): + """ + Retrieve configuration item. + Arguments: + key -- Configuration key. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getConf' not implemented") - def removeCallback_async(self, _cb, cb, current=None): - '''Remove a callback. + def getAllConf(self, current=None): + """ + Retrieve all configuration items. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getAllConf' not implemented") -Arguments: - cb Callback interface to be removed.''' - pass + def setConf(self, key, value, current=None): + """ + Set a configuration item. + Arguments: + key -- Configuration key. + value -- Configuration value. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'setConf' not implemented") - def setAuthenticator_async(self, _cb, auth, current=None): - '''Set external authenticator. If set, all authentications from clients are forwarded to this -proxy. + def setSuperuserPassword(self, pw, current=None): + """ + Set superuser password. This is just a convenience for using updateRegistration on user id 0. + Arguments: + pw -- Password. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'setSuperuserPassword' not implemented") -Arguments: - auth Authenticator object to perform subsequent authentications.''' - pass + def getLog(self, first, last, current=None): + """ + Fetch log entries. + Arguments: + first -- Lowest numbered entry to fetch. 0 is the most recent item. + last -- Last entry to fetch. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getLog' not implemented") - def getConf_async(self, _cb, key, current=None): - '''Retrieve configuration item. -Arguments: - key Configuration key. -Returns: - Configuration value. If this is empty, see Meta.getDefaultConf''' - pass + def getLogLen(self, current=None): + """ + Fetch length of log + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getLogLen' not implemented") - def getAllConf_async(self, _cb, current=None): - '''Retrieve all configuration items. -Returns: - All configured values. If a value isn't set here, the value from Meta.getDefaultConf is used.''' - pass + def getUsers(self, current=None): + """ + Fetch all users. This returns all currently connected users on the server. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getUsers' not implemented") - def setConf_async(self, _cb, key, value, current=None): - '''Set a configuration item. -Arguments: - key Configuration key. - value Configuration value.''' - pass + def getChannels(self, current=None): + """ + Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getChannels' not implemented") - def setSuperuserPassword_async(self, _cb, pw, current=None): - '''Set superuser password. This is just a convenience for using updateRegistration on user id 0. -Arguments: - pw Password.''' - pass + def getCertificateList(self, session, current=None): + """ + Fetch certificate of user. This returns the complete certificate chain of a user. + Arguments: + session -- Connection ID of user. See User.session. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getCertificateList' not implemented") - def getLog_async(self, _cb, first, last, current=None): - '''Fetch log entries. -Arguments: - first Lowest numbered entry to fetch. 0 is the most recent item. - last Last entry to fetch. -Returns: - List of log entries.''' - pass + def getTree(self, current=None): + """ + Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server + as a tree. This is primarily used for viewing the state of the server on a webpage. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getTree' not implemented") - def getLogLen_async(self, _cb, current=None): - '''Fetch length of log -Returns: - Number of entries in log''' - pass + def getBans(self, current=None): + """ + Fetch all current IP bans on the server. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getBans' not implemented") - def getUsers_async(self, _cb, current=None): - '''Fetch all users. This returns all currently connected users on the server. -Returns: - List of connected users.''' - pass + def setBans(self, bans, current=None): + """ + Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call getBans and then + append to the returned list before calling this method. + Arguments: + bans -- List of bans. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'setBans' not implemented") - def getChannels_async(self, _cb, current=None): - '''Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. -Returns: - List of defined channels.''' - pass + def kickUser(self, session, reason, current=None): + """ + Kick a user. The user is not banned, and is free to rejoin the server. + Arguments: + session -- Connection ID of user. See User.session. + reason -- Text message to show when user is kicked. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'kickUser' not implemented") - def getCertificateList_async(self, _cb, session, current=None): - '''Fetch certificate of user. This returns the complete certificate chain of a user. -Arguments: - session Connection ID of user. See User.session. -Returns: - Certificate list of user.''' - pass + def getState(self, session, current=None): + """ + Get state of a single connected user. + Arguments: + session -- Connection ID of user. See User.session. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getState' not implemented") - def getTree_async(self, _cb, current=None): - '''Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server -as a tree. This is primarily used for viewing the state of the server on a webpage. -Returns: - Recursive tree of all channels and connected users.''' - pass + def setState(self, state, current=None): + """ + Set user state. You can use this to move, mute and deafen users. + Arguments: + state -- User state to set. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'setState' not implemented") - def getBans_async(self, _cb, current=None): - '''Fetch all current IP bans on the server. -Returns: - List of bans.''' - pass + def sendMessage(self, session, text, current=None): + """ + Send text message to a single user. + Arguments: + session -- Connection ID of user. See User.session. + text -- Message to send. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'sendMessage' not implemented") - def setBans_async(self, _cb, bans, current=None): - '''Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call getBans and then -append to the returned list before calling this method. -Arguments: - bans List of bans.''' - pass + def hasPermission(self, session, channelid, perm, current=None): + """ + Check if user is permitted to perform action. + Arguments: + session -- Connection ID of user. See User.session. + channelid -- ID of Channel. See Channel.id. + perm -- Permission bits to check. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'hasPermission' not implemented") - def kickUser_async(self, _cb, session, reason, current=None): - '''Kick a user. The user is not banned, and is free to rejoin the server. -Arguments: - session Connection ID of user. See User.session. - reason Text message to show when user is kicked.''' - pass + def effectivePermissions(self, session, channelid, current=None): + """ + Return users effective permissions + Arguments: + session -- Connection ID of user. See User.session. + channelid -- ID of Channel. See Channel.id. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'effectivePermissions' not implemented") - def getState_async(self, _cb, session, current=None): - '''Get state of a single connected user. -Arguments: - session Connection ID of user. See User.session. -Returns: - State of connected user.''' - pass + def addContextCallback(self, session, action, text, cb, ctx, current=None): + """ + Add a context callback. This is done per user, and will add a context menu action for the user. + Arguments: + session -- Session of user which should receive context entry. + action -- Action string, a unique name to associate with the action. + text -- Name of action shown to user. + cb -- Callback interface which will receive notifications. + ctx -- Context this should be used in. Needs to be one or a combination of ContextServer, ContextChannel and ContextUser. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'addContextCallback' not implemented") - def setState_async(self, _cb, state, current=None): - '''Set user state. You can use this to move, mute and deafen users. -Arguments: - state User state to set.''' - pass + def removeContextCallback(self, cb, current=None): + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. This callback will be removed from all from all users. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'removeContextCallback' not implemented") - def sendMessage_async(self, _cb, session, text, current=None): - '''Send text message to a single user. -Arguments: - session Connection ID of user. See User.session. - text Message to send.''' - pass + def getChannelState(self, channelid, current=None): + """ + Get state of single channel. + Arguments: + channelid -- ID of Channel. See Channel.id. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getChannelState' not implemented") - def hasPermission_async(self, _cb, session, channelid, perm, current=None): - '''Check if user is permitted to perform action. -Arguments: - session Connection ID of user. See User.session. - channelid ID of Channel. See Channel.id. - perm Permission bits to check. -Returns: - true if any of the permissions in perm were set for the user.''' - pass + def setChannelState(self, state, current=None): + """ + Set state of a single channel. You can use this to move or relink channels. + Arguments: + state -- Channel state to set. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'setChannelState' not implemented") - def effectivePermissions_async(self, _cb, session, channelid, current=None): - '''Return users effective permissions -Arguments: - session Connection ID of user. See User.session. - channelid ID of Channel. See Channel.id. -Returns: - bitfield of allowed actions''' - pass + def removeChannel(self, channelid, current=None): + """ + Remove a channel and all its subchannels. + Arguments: + channelid -- ID of Channel. See Channel.id. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'removeChannel' not implemented") - def addContextCallback_async(self, _cb, session, action, text, cb, ctx, current=None): - '''Add a context callback. This is done per user, and will add a context menu action for the user. + def addChannel(self, name, parent, current=None): + """ + Add a new channel. + Arguments: + name -- Name of new channel. + parent -- Channel ID of parent channel. See Channel.id. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'addChannel' not implemented") -Arguments: - session Session of user which should receive context entry. - action Action string, a unique name to associate with the action. - text Name of action shown to user. - cb Callback interface which will receive notifications. - ctx Context this should be used in. Needs to be one or a combination of ContextServer, ContextChannel and ContextUser.''' - pass + def sendMessageChannel(self, channelid, tree, text, current=None): + """ + Send text message to channel or a tree of channels. + Arguments: + channelid -- Channel ID of channel to send to. See Channel.id. + tree -- If true, the message will be sent to the channel and all its subchannels. + text -- Message to send. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'sendMessageChannel' not implemented") - def removeContextCallback_async(self, _cb, cb, current=None): - '''Remove a callback. + def getACL(self, channelid, current=None): + """ + Retrieve ACLs and Groups on a channel. + Arguments: + channelid -- Channel ID of channel to fetch from. See Channel.id. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getACL' not implemented") -Arguments: - cb Callback interface to be removed. This callback will be removed from all from all users.''' - pass + def setACL(self, channelid, acls, groups, inherit, current=None): + """ + Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. + Arguments: + channelid -- Channel ID of channel to fetch from. See Channel.id. + acls -- List of ACLs on the channel. + groups -- List of groups on the channel. + inherit -- Should this channel inherit ACLs from the parent channel? + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'setACL' not implemented") - def getChannelState_async(self, _cb, channelid, current=None): - '''Get state of single channel. -Arguments: - channelid ID of Channel. See Channel.id. -Returns: - State of channel.''' - pass + def addUserToGroup(self, channelid, session, group, current=None): + """ + Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. + Arguments: + channelid -- Channel ID of channel to add to. See Channel.id. + session -- Connection ID of user. See User.session. + group -- Group name to add to. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'addUserToGroup' not implemented") - def setChannelState_async(self, _cb, state, current=None): - '''Set state of a single channel. You can use this to move or relink channels. -Arguments: - state Channel state to set.''' - pass + def removeUserFromGroup(self, channelid, session, group, current=None): + """ + Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. + Arguments: + channelid -- Channel ID of channel to add to. See Channel.id. + session -- Connection ID of user. See User.session. + group -- Group name to remove from. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'removeUserFromGroup' not implemented") - def removeChannel_async(self, _cb, channelid, current=None): - '''Remove a channel and all its subchannels. -Arguments: - channelid ID of Channel. See Channel.id.''' - pass + def redirectWhisperGroup(self, session, source, target, current=None): + """ + Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". + To remove a redirect pass an empty target string. This is intended for context groups. + Arguments: + session -- Connection ID of user. See User.session. + source -- Group name to redirect from. + target -- Group name to redirect to. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'redirectWhisperGroup' not implemented") - def addChannel_async(self, _cb, name, parent, current=None): - '''Add a new channel. -Arguments: - name Name of new channel. - parent Channel ID of parent channel. See Channel.id. -Returns: - ID of newly created channel.''' - pass + def getUserNames(self, ids, current=None): + """ + Map a list of User.userid to a matching name. + Arguments: + ids -- + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getUserNames' not implemented") - def sendMessageChannel_async(self, _cb, channelid, tree, text, current=None): - '''Send text message to channel or a tree of channels. -Arguments: - channelid Channel ID of channel to send to. See Channel.id. - tree If true, the message will be sent to the channel and all its subchannels. - text Message to send.''' - pass + def getUserIds(self, names, current=None): + """ + Map a list of user names to a matching id. + @reuturn List of matching ids, with -1 representing invalid or unknown user names. + Arguments: + names -- + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getUserIds' not implemented") - def getACL_async(self, _cb, channelid, current=None): - '''Retrieve ACLs and Groups on a channel. -Arguments: - channelid Channel ID of channel to fetch from. See Channel.id. - acls List of ACLs on the channel. This will include inherited ACLs. - groups List of groups on the channel. This will include inherited groups. - inherit Does this channel inherit ACLs from the parent channel?''' - pass + def registerUser(self, info, current=None): + """ + Register a new user. + Arguments: + info -- Information about new user. Must include at least "name". + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'registerUser' not implemented") - def setACL_async(self, _cb, channelid, acls, groups, inherit, current=None): - '''Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. -Arguments: - channelid Channel ID of channel to fetch from. See Channel.id. - acls List of ACLs on the channel. - groups List of groups on the channel. - inherit Should this channel inherit ACLs from the parent channel?''' - pass + def unregisterUser(self, userid, current=None): + """ + Remove a user registration. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'unregisterUser' not implemented") - def addUserToGroup_async(self, _cb, channelid, session, group, current=None): - '''Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. -Arguments: - channelid Channel ID of channel to add to. See Channel.id. - session Connection ID of user. See User.session. - group Group name to add to.''' - pass + def updateRegistration(self, userid, info, current=None): + """ + Update the registration for a user. You can use this to set the email or password of a user, + and can also use it to change the user's name. + Arguments: + userid -- + info -- + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'updateRegistration' not implemented") - def removeUserFromGroup_async(self, _cb, channelid, session, group, current=None): - '''Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. -Arguments: - channelid Channel ID of channel to add to. See Channel.id. - session Connection ID of user. See User.session. - group Group name to remove from.''' - pass + def getRegistration(self, userid, current=None): + """ + Fetch registration for a single user. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getRegistration' not implemented") - def redirectWhisperGroup_async(self, _cb, session, source, target, current=None): - '''Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". -To remove a redirect pass an empty target string. This is intended for context groups. -Arguments: - session Connection ID of user. See User.session. - source Group name to redirect from. - target Group name to redirect to.''' - pass + def getRegisteredUsers(self, filter, current=None): + """ + Fetch a group of registered users. + Arguments: + filter -- Substring of user name. If blank, will retrieve all registered users. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getRegisteredUsers' not implemented") - def getUserNames_async(self, _cb, ids, current=None): - '''Map a list of User.userid to a matching name. -Arguments: - List of ids. -Returns: - Matching list of names, with an empty string representing invalid or unknown ids.''' - pass + def verifyPassword(self, name, pw, current=None): + """ + Verify the password of a user. You can use this to verify a user's credentials. + Arguments: + name -- User name. See RegisteredUser.name. + pw -- User password. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'verifyPassword' not implemented") - def getUserIds_async(self, _cb, names, current=None): - '''Map a list of user names to a matching id. -Arguments: - List of names. -@reuturn List of matching ids, with -1 representing invalid or unknown user names.''' - pass + def getTexture(self, userid, current=None): + """ + Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getTexture' not implemented") - def registerUser_async(self, _cb, info, current=None): - '''Register a new user. -Arguments: - info Information about new user. Must include at least "name". -Returns: - The ID of the user. See RegisteredUser.userid.''' - pass + def setTexture(self, userid, tex, current=None): + """ + Set a user texture (now called avatar). + Arguments: + userid -- ID of registered user. See RegisteredUser.userid. + tex -- Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'setTexture' not implemented") - def unregisterUser_async(self, _cb, userid, current=None): - '''Remove a user registration. -Arguments: - userid ID of registered user. See RegisteredUser.userid.''' - pass - - def updateRegistration_async(self, _cb, userid, info, current=None): - '''Update the registration for a user. You can use this to set the email or password of a user, -and can also use it to change the user's name. -Arguments: - registration Updated registration record.''' - pass - - def getRegistration_async(self, _cb, userid, current=None): - '''Fetch registration for a single user. -Arguments: - userid ID of registered user. See RegisteredUser.userid. -Returns: - Registration record.''' - pass - - def getRegisteredUsers_async(self, _cb, filter, current=None): - '''Fetch a group of registered users. -Arguments: - filter Substring of user name. If blank, will retrieve all registered users. -Returns: - List of registration records.''' - pass - - def verifyPassword_async(self, _cb, name, pw, current=None): - '''Verify the password of a user. You can use this to verify a user's credentials. -Arguments: - name User name. See RegisteredUser.name. - pw User password. -Returns: - User ID of registered user (See RegisteredUser.userid), -1 for failed authentication or -2 for unknown usernames.''' - pass - - def getTexture_async(self, _cb, userid, current=None): - '''Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. -Arguments: - userid ID of registered user. See RegisteredUser.userid. -Returns: - Custom texture associated with user or an empty texture.''' - pass - - def setTexture_async(self, _cb, userid, tex, current=None): - '''Set a user texture (now called avatar). -Arguments: - userid ID of registered user. See RegisteredUser.userid. - tex Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture.''' - pass - - def getUptime_async(self, _cb, current=None): - '''Get virtual server uptime. -Returns: - Uptime of the virtual server in seconds''' - pass + def getUptime(self, current=None): + """ + Get virtual server uptime. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getUptime' not implemented") def __str__(self): - return IcePy.stringify(self, _M_Murmur._t_Server) + return IcePy.stringify(self, _M_Murmur._t_ServerDisp) __repr__ = __str__ - _M_Murmur.ServerPrx = Ice.createTempClass() - class ServerPrx(Ice.ObjectPrx): - - '''Shows if the server currently running (accepting users). - -Returns: - Run-state of server.''' - def isRunning(self, _ctx=None): - return _M_Murmur.Server._op_isRunning.invoke(self, ((), _ctx)) - - '''Shows if the server currently running (accepting users). - -Returns: - Run-state of server.''' - def begin_isRunning(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_isRunning.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Shows if the server currently running (accepting users). - -Returns: - Run-state of server.''' - def end_isRunning(self, _r): - return _M_Murmur.Server._op_isRunning.end(self, _r) - - '''Start server.''' - def start(self, _ctx=None): - return _M_Murmur.Server._op_start.invoke(self, ((), _ctx)) - - '''Start server.''' - def begin_start(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_start.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Start server.''' - def end_start(self, _r): - return _M_Murmur.Server._op_start.end(self, _r) - - '''Stop server. -Note: Server will be restarted on Murmur restart unless explicitly disabled -with setConf("boot", false)''' - def stop(self, _ctx=None): - return _M_Murmur.Server._op_stop.invoke(self, ((), _ctx)) - - '''Stop server. -Note: Server will be restarted on Murmur restart unless explicitly disabled -with setConf("boot", false)''' - def begin_stop(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_stop.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Stop server. -Note: Server will be restarted on Murmur restart unless explicitly disabled -with setConf("boot", false)''' - def end_stop(self, _r): - return _M_Murmur.Server._op_stop.end(self, _r) - - '''Delete server and all it's configuration.''' - def delete(self, _ctx=None): - return _M_Murmur.Server._op_delete.invoke(self, ((), _ctx)) - - '''Delete server and all it's configuration.''' - def begin_delete(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_delete.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Delete server and all it's configuration.''' - def end_delete(self, _r): - return _M_Murmur.Server._op_delete.end(self, _r) - - '''Fetch the server id. - -Returns: - Unique server id.''' - def id(self, _ctx=None): - return _M_Murmur.Server._op_id.invoke(self, ((), _ctx)) - - '''Fetch the server id. - -Returns: - Unique server id.''' - def begin_id(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_id.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Fetch the server id. - -Returns: - Unique server id.''' - def end_id(self, _r): - return _M_Murmur.Server._op_id.end(self, _r) - - '''Add a callback. The callback will receive notifications about changes to users and channels. - -Arguments: - cb Callback interface which will receive notifications.''' - def addCallback(self, cb, _ctx=None): - return _M_Murmur.Server._op_addCallback.invoke(self, ((cb, ), _ctx)) - - '''Add a callback. The callback will receive notifications about changes to users and channels. - -Arguments: - cb Callback interface which will receive notifications.''' - def begin_addCallback(self, cb, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_addCallback.begin(self, ((cb, ), _response, _ex, _sent, _ctx)) - - '''Add a callback. The callback will receive notifications about changes to users and channels. - -Arguments: - cb Callback interface which will receive notifications.''' - def end_addCallback(self, _r): - return _M_Murmur.Server._op_addCallback.end(self, _r) - - '''Remove a callback. - -Arguments: - cb Callback interface to be removed.''' - def removeCallback(self, cb, _ctx=None): - return _M_Murmur.Server._op_removeCallback.invoke(self, ((cb, ), _ctx)) - - '''Remove a callback. - -Arguments: - cb Callback interface to be removed.''' - def begin_removeCallback(self, cb, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_removeCallback.begin(self, ((cb, ), _response, _ex, _sent, _ctx)) - - '''Remove a callback. - -Arguments: - cb Callback interface to be removed.''' - def end_removeCallback(self, _r): - return _M_Murmur.Server._op_removeCallback.end(self, _r) - - '''Set external authenticator. If set, all authentications from clients are forwarded to this -proxy. - -Arguments: - auth Authenticator object to perform subsequent authentications.''' - def setAuthenticator(self, auth, _ctx=None): - return _M_Murmur.Server._op_setAuthenticator.invoke(self, ((auth, ), _ctx)) - - '''Set external authenticator. If set, all authentications from clients are forwarded to this -proxy. - -Arguments: - auth Authenticator object to perform subsequent authentications.''' - def begin_setAuthenticator(self, auth, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_setAuthenticator.begin(self, ((auth, ), _response, _ex, _sent, _ctx)) - - '''Set external authenticator. If set, all authentications from clients are forwarded to this -proxy. - -Arguments: - auth Authenticator object to perform subsequent authentications.''' - def end_setAuthenticator(self, _r): - return _M_Murmur.Server._op_setAuthenticator.end(self, _r) - - '''Retrieve configuration item. -Arguments: - key Configuration key. -Returns: - Configuration value. If this is empty, see Meta.getDefaultConf''' - def getConf(self, key, _ctx=None): - return _M_Murmur.Server._op_getConf.invoke(self, ((key, ), _ctx)) - - '''Retrieve configuration item. -Arguments: - key Configuration key. -Returns: - Configuration value. If this is empty, see Meta.getDefaultConf''' - def begin_getConf(self, key, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getConf.begin(self, ((key, ), _response, _ex, _sent, _ctx)) - - '''Retrieve configuration item. -Arguments: - key Configuration key. -Returns: - Configuration value. If this is empty, see Meta.getDefaultConf''' - def end_getConf(self, _r): - return _M_Murmur.Server._op_getConf.end(self, _r) - - '''Retrieve all configuration items. -Returns: - All configured values. If a value isn't set here, the value from Meta.getDefaultConf is used.''' - def getAllConf(self, _ctx=None): - return _M_Murmur.Server._op_getAllConf.invoke(self, ((), _ctx)) - - '''Retrieve all configuration items. -Returns: - All configured values. If a value isn't set here, the value from Meta.getDefaultConf is used.''' - def begin_getAllConf(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getAllConf.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Retrieve all configuration items. -Returns: - All configured values. If a value isn't set here, the value from Meta.getDefaultConf is used.''' - def end_getAllConf(self, _r): - return _M_Murmur.Server._op_getAllConf.end(self, _r) - - '''Set a configuration item. -Arguments: - key Configuration key. - value Configuration value.''' - def setConf(self, key, value, _ctx=None): - return _M_Murmur.Server._op_setConf.invoke(self, ((key, value), _ctx)) - - '''Set a configuration item. -Arguments: - key Configuration key. - value Configuration value.''' - def begin_setConf(self, key, value, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_setConf.begin(self, ((key, value), _response, _ex, _sent, _ctx)) - - '''Set a configuration item. -Arguments: - key Configuration key. - value Configuration value.''' - def end_setConf(self, _r): - return _M_Murmur.Server._op_setConf.end(self, _r) - - '''Set superuser password. This is just a convenience for using updateRegistration on user id 0. -Arguments: - pw Password.''' - def setSuperuserPassword(self, pw, _ctx=None): - return _M_Murmur.Server._op_setSuperuserPassword.invoke(self, ((pw, ), _ctx)) - - '''Set superuser password. This is just a convenience for using updateRegistration on user id 0. -Arguments: - pw Password.''' - def begin_setSuperuserPassword(self, pw, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_setSuperuserPassword.begin(self, ((pw, ), _response, _ex, _sent, _ctx)) - - '''Set superuser password. This is just a convenience for using updateRegistration on user id 0. -Arguments: - pw Password.''' - def end_setSuperuserPassword(self, _r): - return _M_Murmur.Server._op_setSuperuserPassword.end(self, _r) - - '''Fetch log entries. -Arguments: - first Lowest numbered entry to fetch. 0 is the most recent item. - last Last entry to fetch. -Returns: - List of log entries.''' - def getLog(self, first, last, _ctx=None): - return _M_Murmur.Server._op_getLog.invoke(self, ((first, last), _ctx)) - - '''Fetch log entries. -Arguments: - first Lowest numbered entry to fetch. 0 is the most recent item. - last Last entry to fetch. -Returns: - List of log entries.''' - def begin_getLog(self, first, last, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getLog.begin(self, ((first, last), _response, _ex, _sent, _ctx)) - - '''Fetch log entries. -Arguments: - first Lowest numbered entry to fetch. 0 is the most recent item. - last Last entry to fetch. -Returns: - List of log entries.''' - def end_getLog(self, _r): - return _M_Murmur.Server._op_getLog.end(self, _r) - - '''Fetch length of log -Returns: - Number of entries in log''' - def getLogLen(self, _ctx=None): - return _M_Murmur.Server._op_getLogLen.invoke(self, ((), _ctx)) - - '''Fetch length of log -Returns: - Number of entries in log''' - def begin_getLogLen(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getLogLen.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Fetch length of log -Returns: - Number of entries in log''' - def end_getLogLen(self, _r): - return _M_Murmur.Server._op_getLogLen.end(self, _r) - - '''Fetch all users. This returns all currently connected users on the server. -Returns: - List of connected users.''' - def getUsers(self, _ctx=None): - return _M_Murmur.Server._op_getUsers.invoke(self, ((), _ctx)) - - '''Fetch all users. This returns all currently connected users on the server. -Returns: - List of connected users.''' - def begin_getUsers(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getUsers.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Fetch all users. This returns all currently connected users on the server. -Returns: - List of connected users.''' - def end_getUsers(self, _r): - return _M_Murmur.Server._op_getUsers.end(self, _r) - - '''Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. -Returns: - List of defined channels.''' - def getChannels(self, _ctx=None): - return _M_Murmur.Server._op_getChannels.invoke(self, ((), _ctx)) - - '''Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. -Returns: - List of defined channels.''' - def begin_getChannels(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getChannels.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Fetch all channels. This returns all defined channels on the server. The root channel is always channel 0. -Returns: - List of defined channels.''' - def end_getChannels(self, _r): - return _M_Murmur.Server._op_getChannels.end(self, _r) - - '''Fetch certificate of user. This returns the complete certificate chain of a user. -Arguments: - session Connection ID of user. See User.session. -Returns: - Certificate list of user.''' - def getCertificateList(self, session, _ctx=None): - return _M_Murmur.Server._op_getCertificateList.invoke(self, ((session, ), _ctx)) - - '''Fetch certificate of user. This returns the complete certificate chain of a user. -Arguments: - session Connection ID of user. See User.session. -Returns: - Certificate list of user.''' - def begin_getCertificateList(self, session, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getCertificateList.begin(self, ((session, ), _response, _ex, _sent, _ctx)) - - '''Fetch certificate of user. This returns the complete certificate chain of a user. -Arguments: - session Connection ID of user. See User.session. -Returns: - Certificate list of user.''' - def end_getCertificateList(self, _r): - return _M_Murmur.Server._op_getCertificateList.end(self, _r) - - '''Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server -as a tree. This is primarily used for viewing the state of the server on a webpage. -Returns: - Recursive tree of all channels and connected users.''' - def getTree(self, _ctx=None): - return _M_Murmur.Server._op_getTree.invoke(self, ((), _ctx)) - - '''Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server -as a tree. This is primarily used for viewing the state of the server on a webpage. -Returns: - Recursive tree of all channels and connected users.''' - def begin_getTree(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getTree.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Fetch all channels and connected users as a tree. This retrieves an easy-to-use representation of the server -as a tree. This is primarily used for viewing the state of the server on a webpage. -Returns: - Recursive tree of all channels and connected users.''' - def end_getTree(self, _r): - return _M_Murmur.Server._op_getTree.end(self, _r) - - '''Fetch all current IP bans on the server. -Returns: - List of bans.''' - def getBans(self, _ctx=None): - return _M_Murmur.Server._op_getBans.invoke(self, ((), _ctx)) - - '''Fetch all current IP bans on the server. -Returns: - List of bans.''' - def begin_getBans(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getBans.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Fetch all current IP bans on the server. -Returns: - List of bans.''' - def end_getBans(self, _r): - return _M_Murmur.Server._op_getBans.end(self, _r) - - '''Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call getBans and then -append to the returned list before calling this method. -Arguments: - bans List of bans.''' - def setBans(self, bans, _ctx=None): - return _M_Murmur.Server._op_setBans.invoke(self, ((bans, ), _ctx)) - - '''Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call getBans and then -append to the returned list before calling this method. -Arguments: - bans List of bans.''' - def begin_setBans(self, bans, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_setBans.begin(self, ((bans, ), _response, _ex, _sent, _ctx)) - - '''Set all current IP bans on the server. This will replace any bans already present, so if you want to add a ban, be sure to call getBans and then -append to the returned list before calling this method. -Arguments: - bans List of bans.''' - def end_setBans(self, _r): - return _M_Murmur.Server._op_setBans.end(self, _r) - - '''Kick a user. The user is not banned, and is free to rejoin the server. -Arguments: - session Connection ID of user. See User.session. - reason Text message to show when user is kicked.''' - def kickUser(self, session, reason, _ctx=None): - return _M_Murmur.Server._op_kickUser.invoke(self, ((session, reason), _ctx)) - - '''Kick a user. The user is not banned, and is free to rejoin the server. -Arguments: - session Connection ID of user. See User.session. - reason Text message to show when user is kicked.''' - def begin_kickUser(self, session, reason, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_kickUser.begin(self, ((session, reason), _response, _ex, _sent, _ctx)) - - '''Kick a user. The user is not banned, and is free to rejoin the server. -Arguments: - session Connection ID of user. See User.session. - reason Text message to show when user is kicked.''' - def end_kickUser(self, _r): - return _M_Murmur.Server._op_kickUser.end(self, _r) - - '''Get state of a single connected user. -Arguments: - session Connection ID of user. See User.session. -Returns: - State of connected user.''' - def getState(self, session, _ctx=None): - return _M_Murmur.Server._op_getState.invoke(self, ((session, ), _ctx)) - - '''Get state of a single connected user. -Arguments: - session Connection ID of user. See User.session. -Returns: - State of connected user.''' - def begin_getState(self, session, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getState.begin(self, ((session, ), _response, _ex, _sent, _ctx)) - - '''Get state of a single connected user. -Arguments: - session Connection ID of user. See User.session. -Returns: - State of connected user.''' - def end_getState(self, _r): - return _M_Murmur.Server._op_getState.end(self, _r) - - '''Set user state. You can use this to move, mute and deafen users. -Arguments: - state User state to set.''' - def setState(self, state, _ctx=None): - return _M_Murmur.Server._op_setState.invoke(self, ((state, ), _ctx)) - - '''Set user state. You can use this to move, mute and deafen users. -Arguments: - state User state to set.''' - def begin_setState(self, state, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_setState.begin(self, ((state, ), _response, _ex, _sent, _ctx)) - - '''Set user state. You can use this to move, mute and deafen users. -Arguments: - state User state to set.''' - def end_setState(self, _r): - return _M_Murmur.Server._op_setState.end(self, _r) - - '''Send text message to a single user. -Arguments: - session Connection ID of user. See User.session. - text Message to send.''' - def sendMessage(self, session, text, _ctx=None): - return _M_Murmur.Server._op_sendMessage.invoke(self, ((session, text), _ctx)) - - '''Send text message to a single user. -Arguments: - session Connection ID of user. See User.session. - text Message to send.''' - def begin_sendMessage(self, session, text, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_sendMessage.begin(self, ((session, text), _response, _ex, _sent, _ctx)) - - '''Send text message to a single user. -Arguments: - session Connection ID of user. See User.session. - text Message to send.''' - def end_sendMessage(self, _r): - return _M_Murmur.Server._op_sendMessage.end(self, _r) - - '''Check if user is permitted to perform action. -Arguments: - session Connection ID of user. See User.session. - channelid ID of Channel. See Channel.id. - perm Permission bits to check. -Returns: - true if any of the permissions in perm were set for the user.''' - def hasPermission(self, session, channelid, perm, _ctx=None): - return _M_Murmur.Server._op_hasPermission.invoke(self, ((session, channelid, perm), _ctx)) - - '''Check if user is permitted to perform action. -Arguments: - session Connection ID of user. See User.session. - channelid ID of Channel. See Channel.id. - perm Permission bits to check. -Returns: - true if any of the permissions in perm were set for the user.''' - def begin_hasPermission(self, session, channelid, perm, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_hasPermission.begin(self, ((session, channelid, perm), _response, _ex, _sent, _ctx)) - - '''Check if user is permitted to perform action. -Arguments: - session Connection ID of user. See User.session. - channelid ID of Channel. See Channel.id. - perm Permission bits to check. -Returns: - true if any of the permissions in perm were set for the user.''' - def end_hasPermission(self, _r): - return _M_Murmur.Server._op_hasPermission.end(self, _r) - - '''Return users effective permissions -Arguments: - session Connection ID of user. See User.session. - channelid ID of Channel. See Channel.id. -Returns: - bitfield of allowed actions''' - def effectivePermissions(self, session, channelid, _ctx=None): - return _M_Murmur.Server._op_effectivePermissions.invoke(self, ((session, channelid), _ctx)) - - '''Return users effective permissions -Arguments: - session Connection ID of user. See User.session. - channelid ID of Channel. See Channel.id. -Returns: - bitfield of allowed actions''' - def begin_effectivePermissions(self, session, channelid, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_effectivePermissions.begin(self, ((session, channelid), _response, _ex, _sent, _ctx)) - - '''Return users effective permissions -Arguments: - session Connection ID of user. See User.session. - channelid ID of Channel. See Channel.id. -Returns: - bitfield of allowed actions''' - def end_effectivePermissions(self, _r): - return _M_Murmur.Server._op_effectivePermissions.end(self, _r) - - '''Add a context callback. This is done per user, and will add a context menu action for the user. - -Arguments: - session Session of user which should receive context entry. - action Action string, a unique name to associate with the action. - text Name of action shown to user. - cb Callback interface which will receive notifications. - ctx Context this should be used in. Needs to be one or a combination of ContextServer, ContextChannel and ContextUser.''' - def addContextCallback(self, session, action, text, cb, ctx, _ctx=None): - return _M_Murmur.Server._op_addContextCallback.invoke(self, ((session, action, text, cb, ctx), _ctx)) - - '''Add a context callback. This is done per user, and will add a context menu action for the user. - -Arguments: - session Session of user which should receive context entry. - action Action string, a unique name to associate with the action. - text Name of action shown to user. - cb Callback interface which will receive notifications. - ctx Context this should be used in. Needs to be one or a combination of ContextServer, ContextChannel and ContextUser.''' - def begin_addContextCallback(self, session, action, text, cb, ctx, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_addContextCallback.begin(self, ((session, action, text, cb, ctx), _response, _ex, _sent, _ctx)) - - '''Add a context callback. This is done per user, and will add a context menu action for the user. - -Arguments: - session Session of user which should receive context entry. - action Action string, a unique name to associate with the action. - text Name of action shown to user. - cb Callback interface which will receive notifications. - ctx Context this should be used in. Needs to be one or a combination of ContextServer, ContextChannel and ContextUser.''' - def end_addContextCallback(self, _r): - return _M_Murmur.Server._op_addContextCallback.end(self, _r) - - '''Remove a callback. - -Arguments: - cb Callback interface to be removed. This callback will be removed from all from all users.''' - def removeContextCallback(self, cb, _ctx=None): - return _M_Murmur.Server._op_removeContextCallback.invoke(self, ((cb, ), _ctx)) - - '''Remove a callback. - -Arguments: - cb Callback interface to be removed. This callback will be removed from all from all users.''' - def begin_removeContextCallback(self, cb, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_removeContextCallback.begin(self, ((cb, ), _response, _ex, _sent, _ctx)) - - '''Remove a callback. - -Arguments: - cb Callback interface to be removed. This callback will be removed from all from all users.''' - def end_removeContextCallback(self, _r): - return _M_Murmur.Server._op_removeContextCallback.end(self, _r) - - '''Get state of single channel. -Arguments: - channelid ID of Channel. See Channel.id. -Returns: - State of channel.''' - def getChannelState(self, channelid, _ctx=None): - return _M_Murmur.Server._op_getChannelState.invoke(self, ((channelid, ), _ctx)) - - '''Get state of single channel. -Arguments: - channelid ID of Channel. See Channel.id. -Returns: - State of channel.''' - def begin_getChannelState(self, channelid, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getChannelState.begin(self, ((channelid, ), _response, _ex, _sent, _ctx)) - - '''Get state of single channel. -Arguments: - channelid ID of Channel. See Channel.id. -Returns: - State of channel.''' - def end_getChannelState(self, _r): - return _M_Murmur.Server._op_getChannelState.end(self, _r) - - '''Set state of a single channel. You can use this to move or relink channels. -Arguments: - state Channel state to set.''' - def setChannelState(self, state, _ctx=None): - return _M_Murmur.Server._op_setChannelState.invoke(self, ((state, ), _ctx)) - - '''Set state of a single channel. You can use this to move or relink channels. -Arguments: - state Channel state to set.''' - def begin_setChannelState(self, state, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_setChannelState.begin(self, ((state, ), _response, _ex, _sent, _ctx)) - - '''Set state of a single channel. You can use this to move or relink channels. -Arguments: - state Channel state to set.''' - def end_setChannelState(self, _r): - return _M_Murmur.Server._op_setChannelState.end(self, _r) - - '''Remove a channel and all its subchannels. -Arguments: - channelid ID of Channel. See Channel.id.''' - def removeChannel(self, channelid, _ctx=None): - return _M_Murmur.Server._op_removeChannel.invoke(self, ((channelid, ), _ctx)) - - '''Remove a channel and all its subchannels. -Arguments: - channelid ID of Channel. See Channel.id.''' - def begin_removeChannel(self, channelid, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_removeChannel.begin(self, ((channelid, ), _response, _ex, _sent, _ctx)) - - '''Remove a channel and all its subchannels. -Arguments: - channelid ID of Channel. See Channel.id.''' - def end_removeChannel(self, _r): - return _M_Murmur.Server._op_removeChannel.end(self, _r) - - '''Add a new channel. -Arguments: - name Name of new channel. - parent Channel ID of parent channel. See Channel.id. -Returns: - ID of newly created channel.''' - def addChannel(self, name, parent, _ctx=None): - return _M_Murmur.Server._op_addChannel.invoke(self, ((name, parent), _ctx)) - - '''Add a new channel. -Arguments: - name Name of new channel. - parent Channel ID of parent channel. See Channel.id. -Returns: - ID of newly created channel.''' - def begin_addChannel(self, name, parent, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_addChannel.begin(self, ((name, parent), _response, _ex, _sent, _ctx)) - - '''Add a new channel. -Arguments: - name Name of new channel. - parent Channel ID of parent channel. See Channel.id. -Returns: - ID of newly created channel.''' - def end_addChannel(self, _r): - return _M_Murmur.Server._op_addChannel.end(self, _r) - - '''Send text message to channel or a tree of channels. -Arguments: - channelid Channel ID of channel to send to. See Channel.id. - tree If true, the message will be sent to the channel and all its subchannels. - text Message to send.''' - def sendMessageChannel(self, channelid, tree, text, _ctx=None): - return _M_Murmur.Server._op_sendMessageChannel.invoke(self, ((channelid, tree, text), _ctx)) - - '''Send text message to channel or a tree of channels. -Arguments: - channelid Channel ID of channel to send to. See Channel.id. - tree If true, the message will be sent to the channel and all its subchannels. - text Message to send.''' - def begin_sendMessageChannel(self, channelid, tree, text, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_sendMessageChannel.begin(self, ((channelid, tree, text), _response, _ex, _sent, _ctx)) - - '''Send text message to channel or a tree of channels. -Arguments: - channelid Channel ID of channel to send to. See Channel.id. - tree If true, the message will be sent to the channel and all its subchannels. - text Message to send.''' - def end_sendMessageChannel(self, _r): - return _M_Murmur.Server._op_sendMessageChannel.end(self, _r) - - '''Retrieve ACLs and Groups on a channel. -Arguments: - channelid Channel ID of channel to fetch from. See Channel.id. - acls List of ACLs on the channel. This will include inherited ACLs. - groups List of groups on the channel. This will include inherited groups. - inherit Does this channel inherit ACLs from the parent channel?''' - def getACL(self, channelid, _ctx=None): - return _M_Murmur.Server._op_getACL.invoke(self, ((channelid, ), _ctx)) - - '''Retrieve ACLs and Groups on a channel. -Arguments: - channelid Channel ID of channel to fetch from. See Channel.id. - acls List of ACLs on the channel. This will include inherited ACLs. - groups List of groups on the channel. This will include inherited groups. - inherit Does this channel inherit ACLs from the parent channel?''' - def begin_getACL(self, channelid, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getACL.begin(self, ((channelid, ), _response, _ex, _sent, _ctx)) - - '''Retrieve ACLs and Groups on a channel. -Arguments: - channelid Channel ID of channel to fetch from. See Channel.id. - acls List of ACLs on the channel. This will include inherited ACLs. - groups List of groups on the channel. This will include inherited groups. - inherit Does this channel inherit ACLs from the parent channel?''' - def end_getACL(self, _r): - return _M_Murmur.Server._op_getACL.end(self, _r) - - '''Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. -Arguments: - channelid Channel ID of channel to fetch from. See Channel.id. - acls List of ACLs on the channel. - groups List of groups on the channel. - inherit Should this channel inherit ACLs from the parent channel?''' - def setACL(self, channelid, acls, groups, inherit, _ctx=None): - return _M_Murmur.Server._op_setACL.invoke(self, ((channelid, acls, groups, inherit), _ctx)) - - '''Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. -Arguments: - channelid Channel ID of channel to fetch from. See Channel.id. - acls List of ACLs on the channel. - groups List of groups on the channel. - inherit Should this channel inherit ACLs from the parent channel?''' - def begin_setACL(self, channelid, acls, groups, inherit, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_setACL.begin(self, ((channelid, acls, groups, inherit), _response, _ex, _sent, _ctx)) - - '''Set ACLs and Groups on a channel. Note that this will replace all existing ACLs and groups on the channel. -Arguments: - channelid Channel ID of channel to fetch from. See Channel.id. - acls List of ACLs on the channel. - groups List of groups on the channel. - inherit Should this channel inherit ACLs from the parent channel?''' - def end_setACL(self, _r): - return _M_Murmur.Server._op_setACL.end(self, _r) - - '''Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. -Arguments: - channelid Channel ID of channel to add to. See Channel.id. - session Connection ID of user. See User.session. - group Group name to add to.''' - def addUserToGroup(self, channelid, session, group, _ctx=None): - return _M_Murmur.Server._op_addUserToGroup.invoke(self, ((channelid, session, group), _ctx)) - - '''Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. -Arguments: - channelid Channel ID of channel to add to. See Channel.id. - session Connection ID of user. See User.session. - group Group name to add to.''' - def begin_addUserToGroup(self, channelid, session, group, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_addUserToGroup.begin(self, ((channelid, session, group), _response, _ex, _sent, _ctx)) - - '''Temporarily add a user to a group on a channel. This state is not saved, and is intended for temporary memberships. -Arguments: - channelid Channel ID of channel to add to. See Channel.id. - session Connection ID of user. See User.session. - group Group name to add to.''' - def end_addUserToGroup(self, _r): - return _M_Murmur.Server._op_addUserToGroup.end(self, _r) - - '''Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. -Arguments: - channelid Channel ID of channel to add to. See Channel.id. - session Connection ID of user. See User.session. - group Group name to remove from.''' - def removeUserFromGroup(self, channelid, session, group, _ctx=None): - return _M_Murmur.Server._op_removeUserFromGroup.invoke(self, ((channelid, session, group), _ctx)) - - '''Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. -Arguments: - channelid Channel ID of channel to add to. See Channel.id. - session Connection ID of user. See User.session. - group Group name to remove from.''' - def begin_removeUserFromGroup(self, channelid, session, group, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_removeUserFromGroup.begin(self, ((channelid, session, group), _response, _ex, _sent, _ctx)) - - '''Remove a user from a temporary group membership on a channel. This state is not saved, and is intended for temporary memberships. -Arguments: - channelid Channel ID of channel to add to. See Channel.id. - session Connection ID of user. See User.session. - group Group name to remove from.''' - def end_removeUserFromGroup(self, _r): - return _M_Murmur.Server._op_removeUserFromGroup.end(self, _r) - - '''Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". -To remove a redirect pass an empty target string. This is intended for context groups. -Arguments: - session Connection ID of user. See User.session. - source Group name to redirect from. - target Group name to redirect to.''' - def redirectWhisperGroup(self, session, source, target, _ctx=None): - return _M_Murmur.Server._op_redirectWhisperGroup.invoke(self, ((session, source, target), _ctx)) - - '''Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". -To remove a redirect pass an empty target string. This is intended for context groups. -Arguments: - session Connection ID of user. See User.session. - source Group name to redirect from. - target Group name to redirect to.''' - def begin_redirectWhisperGroup(self, session, source, target, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_redirectWhisperGroup.begin(self, ((session, source, target), _response, _ex, _sent, _ctx)) - - '''Redirect whisper targets for user. If set, whenever a user tries to whisper to group "source", the whisper will be redirected to group "target". -To remove a redirect pass an empty target string. This is intended for context groups. -Arguments: - session Connection ID of user. See User.session. - source Group name to redirect from. - target Group name to redirect to.''' - def end_redirectWhisperGroup(self, _r): - return _M_Murmur.Server._op_redirectWhisperGroup.end(self, _r) - - '''Map a list of User.userid to a matching name. -Arguments: - List of ids. -Returns: - Matching list of names, with an empty string representing invalid or unknown ids.''' - def getUserNames(self, ids, _ctx=None): - return _M_Murmur.Server._op_getUserNames.invoke(self, ((ids, ), _ctx)) - - '''Map a list of User.userid to a matching name. -Arguments: - List of ids. -Returns: - Matching list of names, with an empty string representing invalid or unknown ids.''' - def begin_getUserNames(self, ids, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getUserNames.begin(self, ((ids, ), _response, _ex, _sent, _ctx)) - - '''Map a list of User.userid to a matching name. -Arguments: - List of ids. -Returns: - Matching list of names, with an empty string representing invalid or unknown ids.''' - def end_getUserNames(self, _r): - return _M_Murmur.Server._op_getUserNames.end(self, _r) - - '''Map a list of user names to a matching id. -Arguments: - List of names. -@reuturn List of matching ids, with -1 representing invalid or unknown user names.''' - def getUserIds(self, names, _ctx=None): - return _M_Murmur.Server._op_getUserIds.invoke(self, ((names, ), _ctx)) - - '''Map a list of user names to a matching id. -Arguments: - List of names. -@reuturn List of matching ids, with -1 representing invalid or unknown user names.''' - def begin_getUserIds(self, names, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getUserIds.begin(self, ((names, ), _response, _ex, _sent, _ctx)) - - '''Map a list of user names to a matching id. -Arguments: - List of names. -@reuturn List of matching ids, with -1 representing invalid or unknown user names.''' - def end_getUserIds(self, _r): - return _M_Murmur.Server._op_getUserIds.end(self, _r) - - '''Register a new user. -Arguments: - info Information about new user. Must include at least "name". -Returns: - The ID of the user. See RegisteredUser.userid.''' - def registerUser(self, info, _ctx=None): - return _M_Murmur.Server._op_registerUser.invoke(self, ((info, ), _ctx)) - - '''Register a new user. -Arguments: - info Information about new user. Must include at least "name". -Returns: - The ID of the user. See RegisteredUser.userid.''' - def begin_registerUser(self, info, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_registerUser.begin(self, ((info, ), _response, _ex, _sent, _ctx)) - - '''Register a new user. -Arguments: - info Information about new user. Must include at least "name". -Returns: - The ID of the user. See RegisteredUser.userid.''' - def end_registerUser(self, _r): - return _M_Murmur.Server._op_registerUser.end(self, _r) - - '''Remove a user registration. -Arguments: - userid ID of registered user. See RegisteredUser.userid.''' - def unregisterUser(self, userid, _ctx=None): - return _M_Murmur.Server._op_unregisterUser.invoke(self, ((userid, ), _ctx)) - - '''Remove a user registration. -Arguments: - userid ID of registered user. See RegisteredUser.userid.''' - def begin_unregisterUser(self, userid, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_unregisterUser.begin(self, ((userid, ), _response, _ex, _sent, _ctx)) - - '''Remove a user registration. -Arguments: - userid ID of registered user. See RegisteredUser.userid.''' - def end_unregisterUser(self, _r): - return _M_Murmur.Server._op_unregisterUser.end(self, _r) - - '''Update the registration for a user. You can use this to set the email or password of a user, -and can also use it to change the user's name. -Arguments: - registration Updated registration record.''' - def updateRegistration(self, userid, info, _ctx=None): - return _M_Murmur.Server._op_updateRegistration.invoke(self, ((userid, info), _ctx)) - - '''Update the registration for a user. You can use this to set the email or password of a user, -and can also use it to change the user's name. -Arguments: - registration Updated registration record.''' - def begin_updateRegistration(self, userid, info, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_updateRegistration.begin(self, ((userid, info), _response, _ex, _sent, _ctx)) - - '''Update the registration for a user. You can use this to set the email or password of a user, -and can also use it to change the user's name. -Arguments: - registration Updated registration record.''' - def end_updateRegistration(self, _r): - return _M_Murmur.Server._op_updateRegistration.end(self, _r) - - '''Fetch registration for a single user. -Arguments: - userid ID of registered user. See RegisteredUser.userid. -Returns: - Registration record.''' - def getRegistration(self, userid, _ctx=None): - return _M_Murmur.Server._op_getRegistration.invoke(self, ((userid, ), _ctx)) - - '''Fetch registration for a single user. -Arguments: - userid ID of registered user. See RegisteredUser.userid. -Returns: - Registration record.''' - def begin_getRegistration(self, userid, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getRegistration.begin(self, ((userid, ), _response, _ex, _sent, _ctx)) - - '''Fetch registration for a single user. -Arguments: - userid ID of registered user. See RegisteredUser.userid. -Returns: - Registration record.''' - def end_getRegistration(self, _r): - return _M_Murmur.Server._op_getRegistration.end(self, _r) - - '''Fetch a group of registered users. -Arguments: - filter Substring of user name. If blank, will retrieve all registered users. -Returns: - List of registration records.''' - def getRegisteredUsers(self, filter, _ctx=None): - return _M_Murmur.Server._op_getRegisteredUsers.invoke(self, ((filter, ), _ctx)) - - '''Fetch a group of registered users. -Arguments: - filter Substring of user name. If blank, will retrieve all registered users. -Returns: - List of registration records.''' - def begin_getRegisteredUsers(self, filter, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getRegisteredUsers.begin(self, ((filter, ), _response, _ex, _sent, _ctx)) - - '''Fetch a group of registered users. -Arguments: - filter Substring of user name. If blank, will retrieve all registered users. -Returns: - List of registration records.''' - def end_getRegisteredUsers(self, _r): - return _M_Murmur.Server._op_getRegisteredUsers.end(self, _r) - - '''Verify the password of a user. You can use this to verify a user's credentials. -Arguments: - name User name. See RegisteredUser.name. - pw User password. -Returns: - User ID of registered user (See RegisteredUser.userid), -1 for failed authentication or -2 for unknown usernames.''' - def verifyPassword(self, name, pw, _ctx=None): - return _M_Murmur.Server._op_verifyPassword.invoke(self, ((name, pw), _ctx)) - - '''Verify the password of a user. You can use this to verify a user's credentials. -Arguments: - name User name. See RegisteredUser.name. - pw User password. -Returns: - User ID of registered user (See RegisteredUser.userid), -1 for failed authentication or -2 for unknown usernames.''' - def begin_verifyPassword(self, name, pw, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_verifyPassword.begin(self, ((name, pw), _response, _ex, _sent, _ctx)) - - '''Verify the password of a user. You can use this to verify a user's credentials. -Arguments: - name User name. See RegisteredUser.name. - pw User password. -Returns: - User ID of registered user (See RegisteredUser.userid), -1 for failed authentication or -2 for unknown usernames.''' - def end_verifyPassword(self, _r): - return _M_Murmur.Server._op_verifyPassword.end(self, _r) - - '''Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. -Arguments: - userid ID of registered user. See RegisteredUser.userid. -Returns: - Custom texture associated with user or an empty texture.''' - def getTexture(self, userid, _ctx=None): - return _M_Murmur.Server._op_getTexture.invoke(self, ((userid, ), _ctx)) - - '''Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. -Arguments: - userid ID of registered user. See RegisteredUser.userid. -Returns: - Custom texture associated with user or an empty texture.''' - def begin_getTexture(self, userid, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getTexture.begin(self, ((userid, ), _response, _ex, _sent, _ctx)) - - '''Fetch user texture. Textures are stored as zlib compress()ed 600x60 32-bit BGRA data. -Arguments: - userid ID of registered user. See RegisteredUser.userid. -Returns: - Custom texture associated with user or an empty texture.''' - def end_getTexture(self, _r): - return _M_Murmur.Server._op_getTexture.end(self, _r) - - '''Set a user texture (now called avatar). -Arguments: - userid ID of registered user. See RegisteredUser.userid. - tex Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture.''' - def setTexture(self, userid, tex, _ctx=None): - return _M_Murmur.Server._op_setTexture.invoke(self, ((userid, tex), _ctx)) - - '''Set a user texture (now called avatar). -Arguments: - userid ID of registered user. See RegisteredUser.userid. - tex Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture.''' - def begin_setTexture(self, userid, tex, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_setTexture.begin(self, ((userid, tex), _response, _ex, _sent, _ctx)) - - '''Set a user texture (now called avatar). -Arguments: - userid ID of registered user. See RegisteredUser.userid. - tex Texture (as a Byte-Array) to set for the user, or an empty texture to remove the existing texture.''' - def end_setTexture(self, _r): - return _M_Murmur.Server._op_setTexture.end(self, _r) - - '''Get virtual server uptime. -Returns: - Uptime of the virtual server in seconds''' - def getUptime(self, _ctx=None): - return _M_Murmur.Server._op_getUptime.invoke(self, ((), _ctx)) - - '''Get virtual server uptime. -Returns: - Uptime of the virtual server in seconds''' - def begin_getUptime(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Server._op_getUptime.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Get virtual server uptime. -Returns: - Uptime of the virtual server in seconds''' - def end_getUptime(self, _r): - return _M_Murmur.Server._op_getUptime.end(self, _r) - - def checkedCast(proxy, facetOrCtx=None, _ctx=None): - return _M_Murmur.ServerPrx.ice_checkedCast(proxy, '::Murmur::Server', facetOrCtx, _ctx) - checkedCast = staticmethod(checkedCast) - - def uncheckedCast(proxy, facet=None): - return _M_Murmur.ServerPrx.ice_uncheckedCast(proxy, facet) - uncheckedCast = staticmethod(uncheckedCast) - - _M_Murmur._t_ServerPrx = IcePy.defineProxy('::Murmur::Server', ServerPrx) - - _M_Murmur._t_Server = IcePy.defineClass('::Murmur::Server', Server, -1, (), True, False, None, (), ()) - Server._ice_type = _M_Murmur._t_Server + _M_Murmur._t_ServerDisp = IcePy.defineClass('::Murmur::Server', Server, (), None, ()) + Server._ice_type = _M_Murmur._t_ServerDisp Server._op_isRunning = IcePy.Operation('isRunning', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, True, None, (), (), (), ((), IcePy._t_bool, False, 0), (_M_Murmur._t_InvalidSecretException,)) Server._op_start = IcePy.Operation('start', Ice.OperationMode.Normal, Ice.OperationMode.Normal, True, None, (), (), (), None, (_M_Murmur._t_ServerBootedException, _M_Murmur._t_ServerFailureException, _M_Murmur._t_InvalidSecretException)) @@ -3790,20 +5456,118 @@ Returns: _M_Murmur.Server = Server del Server - _M_Murmur.ServerPrx = ServerPrx - del ServerPrx +_M_Murmur._t_MetaCallback = IcePy.defineValue('::Murmur::MetaCallback', Ice.Value, -1, (), False, True, None, ()) + +if 'MetaCallbackPrx' not in _M_Murmur.__dict__: + _M_Murmur.MetaCallbackPrx = Ice.createTempClass() + class MetaCallbackPrx(Ice.ObjectPrx): + + """ + Called when a server is started. The server is up and running when this event is sent, so all methods that + need a running server will work. + Arguments: + srv -- Interface for started server. + context -- The request context for the invocation. + """ + def started(self, srv, context=None): + return _M_Murmur.MetaCallback._op_started.invoke(self, ((srv, ), context)) + + """ + Called when a server is started. The server is up and running when this event is sent, so all methods that + need a running server will work. + Arguments: + srv -- Interface for started server. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def startedAsync(self, srv, context=None): + return _M_Murmur.MetaCallback._op_started.invokeAsync(self, ((srv, ), context)) + + """ + Called when a server is started. The server is up and running when this event is sent, so all methods that + need a running server will work. + Arguments: + srv -- Interface for started server. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_started(self, srv, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.MetaCallback._op_started.begin(self, ((srv, ), _response, _ex, _sent, context)) + + """ + Called when a server is started. The server is up and running when this event is sent, so all methods that + need a running server will work. + Arguments: + srv -- Interface for started server. + """ + def end_started(self, _r): + return _M_Murmur.MetaCallback._op_started.end(self, _r) + + """ + Called when a server is stopped. The server is already stopped when this event is sent, so no methods that + need a running server will work. + Arguments: + srv -- Interface for started server. + context -- The request context for the invocation. + """ + def stopped(self, srv, context=None): + return _M_Murmur.MetaCallback._op_stopped.invoke(self, ((srv, ), context)) + + """ + Called when a server is stopped. The server is already stopped when this event is sent, so no methods that + need a running server will work. + Arguments: + srv -- Interface for started server. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def stoppedAsync(self, srv, context=None): + return _M_Murmur.MetaCallback._op_stopped.invokeAsync(self, ((srv, ), context)) + + """ + Called when a server is stopped. The server is already stopped when this event is sent, so no methods that + need a running server will work. + Arguments: + srv -- Interface for started server. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_stopped(self, srv, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.MetaCallback._op_stopped.begin(self, ((srv, ), _response, _ex, _sent, context)) + + """ + Called when a server is stopped. The server is already stopped when this event is sent, so no methods that + need a running server will work. + Arguments: + srv -- Interface for started server. + """ + def end_stopped(self, _r): + return _M_Murmur.MetaCallback._op_stopped.end(self, _r) + + @staticmethod + def checkedCast(proxy, facetOrContext=None, context=None): + return _M_Murmur.MetaCallbackPrx.ice_checkedCast(proxy, '::Murmur::MetaCallback', facetOrContext, context) + + @staticmethod + def uncheckedCast(proxy, facet=None): + return _M_Murmur.MetaCallbackPrx.ice_uncheckedCast(proxy, facet) + + @staticmethod + def ice_staticId(): + return '::Murmur::MetaCallback' + _M_Murmur._t_MetaCallbackPrx = IcePy.defineProxy('::Murmur::MetaCallback', MetaCallbackPrx) + + _M_Murmur.MetaCallbackPrx = MetaCallbackPrx + del MetaCallbackPrx -if 'MetaCallback' not in _M_Murmur.__dict__: _M_Murmur.MetaCallback = Ice.createTempClass() class MetaCallback(Ice.Object): - '''Callback interface for Meta. You can supply an implementation of this to receive notifications -when servers are stopped or started. -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.''' - def __init__(self): - if Ice.getType(self) == _M_Murmur.MetaCallback: - raise RuntimeError('Murmur.MetaCallback is an abstract class') def ice_ids(self, current=None): return ('::Ice::Object', '::Murmur::MetaCallback') @@ -3811,86 +5575,39 @@ complete before continuing processing.''' def ice_id(self, current=None): return '::Murmur::MetaCallback' + @staticmethod def ice_staticId(): return '::Murmur::MetaCallback' - ice_staticId = staticmethod(ice_staticId) def started(self, srv, current=None): - '''Called when a server is started. The server is up and running when this event is sent, so all methods that -need a running server will work. -Arguments: - srv Interface for started server.''' - pass + """ + Called when a server is started. The server is up and running when this event is sent, so all methods that + need a running server will work. + Arguments: + srv -- Interface for started server. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'started' not implemented") def stopped(self, srv, current=None): - '''Called when a server is stopped. The server is already stopped when this event is sent, so no methods that -need a running server will work. -Arguments: - srv Interface for started server.''' - pass + """ + Called when a server is stopped. The server is already stopped when this event is sent, so no methods that + need a running server will work. + Arguments: + srv -- Interface for started server. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'stopped' not implemented") def __str__(self): - return IcePy.stringify(self, _M_Murmur._t_MetaCallback) + return IcePy.stringify(self, _M_Murmur._t_MetaCallbackDisp) __repr__ = __str__ - _M_Murmur.MetaCallbackPrx = Ice.createTempClass() - class MetaCallbackPrx(Ice.ObjectPrx): - - '''Called when a server is started. The server is up and running when this event is sent, so all methods that -need a running server will work. -Arguments: - srv Interface for started server.''' - def started(self, srv, _ctx=None): - return _M_Murmur.MetaCallback._op_started.invoke(self, ((srv, ), _ctx)) - - '''Called when a server is started. The server is up and running when this event is sent, so all methods that -need a running server will work. -Arguments: - srv Interface for started server.''' - def begin_started(self, srv, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.MetaCallback._op_started.begin(self, ((srv, ), _response, _ex, _sent, _ctx)) - - '''Called when a server is started. The server is up and running when this event is sent, so all methods that -need a running server will work. -Arguments: - srv Interface for started server.''' - def end_started(self, _r): - return _M_Murmur.MetaCallback._op_started.end(self, _r) - - '''Called when a server is stopped. The server is already stopped when this event is sent, so no methods that -need a running server will work. -Arguments: - srv Interface for started server.''' - def stopped(self, srv, _ctx=None): - return _M_Murmur.MetaCallback._op_stopped.invoke(self, ((srv, ), _ctx)) - - '''Called when a server is stopped. The server is already stopped when this event is sent, so no methods that -need a running server will work. -Arguments: - srv Interface for started server.''' - def begin_stopped(self, srv, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.MetaCallback._op_stopped.begin(self, ((srv, ), _response, _ex, _sent, _ctx)) - - '''Called when a server is stopped. The server is already stopped when this event is sent, so no methods that -need a running server will work. -Arguments: - srv Interface for started server.''' - def end_stopped(self, _r): - return _M_Murmur.MetaCallback._op_stopped.end(self, _r) - - def checkedCast(proxy, facetOrCtx=None, _ctx=None): - return _M_Murmur.MetaCallbackPrx.ice_checkedCast(proxy, '::Murmur::MetaCallback', facetOrCtx, _ctx) - checkedCast = staticmethod(checkedCast) - - def uncheckedCast(proxy, facet=None): - return _M_Murmur.MetaCallbackPrx.ice_uncheckedCast(proxy, facet) - uncheckedCast = staticmethod(uncheckedCast) - - _M_Murmur._t_MetaCallbackPrx = IcePy.defineProxy('::Murmur::MetaCallback', MetaCallbackPrx) - - _M_Murmur._t_MetaCallback = IcePy.defineClass('::Murmur::MetaCallback', MetaCallback, -1, (), True, False, None, (), ()) - MetaCallback._ice_type = _M_Murmur._t_MetaCallback + _M_Murmur._t_MetaCallbackDisp = IcePy.defineClass('::Murmur::MetaCallback', MetaCallback, (), None, ()) + MetaCallback._ice_type = _M_Murmur._t_MetaCallbackDisp MetaCallback._op_started = IcePy.Operation('started', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_Murmur._t_ServerPrx, False, 0),), (), None, ()) MetaCallback._op_stopped = IcePy.Operation('stopped', Ice.OperationMode.Normal, Ice.OperationMode.Normal, False, None, (), (((), _M_Murmur._t_ServerPrx, False, 0),), (), None, ()) @@ -3898,19 +5615,479 @@ Arguments: _M_Murmur.MetaCallback = MetaCallback del MetaCallback - _M_Murmur.MetaCallbackPrx = MetaCallbackPrx - del MetaCallbackPrx - if '_t_ServerList' not in _M_Murmur.__dict__: _M_Murmur._t_ServerList = IcePy.defineSequence('::Murmur::ServerList', (), _M_Murmur._t_ServerPrx) -if 'Meta' not in _M_Murmur.__dict__: +_M_Murmur._t_Meta = IcePy.defineValue('::Murmur::Meta', Ice.Value, -1, (), False, True, None, ()) + +if 'MetaPrx' not in _M_Murmur.__dict__: + _M_Murmur.MetaPrx = Ice.createTempClass() + class MetaPrx(Ice.ObjectPrx): + + """ + Fetch interface to specific server. + Arguments: + id -- Server ID. See Server.getId. + context -- The request context for the invocation. + Returns: Interface for specified server, or a null proxy if id is invalid. + """ + def getServer(self, id, context=None): + return _M_Murmur.Meta._op_getServer.invoke(self, ((id, ), context)) + + """ + Fetch interface to specific server. + Arguments: + id -- Server ID. See Server.getId. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getServerAsync(self, id, context=None): + return _M_Murmur.Meta._op_getServer.invokeAsync(self, ((id, ), context)) + + """ + Fetch interface to specific server. + Arguments: + id -- Server ID. See Server.getId. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getServer(self, id, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_getServer.begin(self, ((id, ), _response, _ex, _sent, context)) + + """ + Fetch interface to specific server. + Arguments: + id -- Server ID. See Server.getId. + Returns: Interface for specified server, or a null proxy if id is invalid. + """ + def end_getServer(self, _r): + return _M_Murmur.Meta._op_getServer.end(self, _r) + + """ + Create a new server. Call Server.getId on the returned interface to find it's ID. + Arguments: + context -- The request context for the invocation. + Returns: Interface for new server. + """ + def newServer(self, context=None): + return _M_Murmur.Meta._op_newServer.invoke(self, ((), context)) + + """ + Create a new server. Call Server.getId on the returned interface to find it's ID. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def newServerAsync(self, context=None): + return _M_Murmur.Meta._op_newServer.invokeAsync(self, ((), context)) + + """ + Create a new server. Call Server.getId on the returned interface to find it's ID. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_newServer(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_newServer.begin(self, ((), _response, _ex, _sent, context)) + + """ + Create a new server. Call Server.getId on the returned interface to find it's ID. + Arguments: + Returns: Interface for new server. + """ + def end_newServer(self, _r): + return _M_Murmur.Meta._op_newServer.end(self, _r) + + """ + Fetch list of all currently running servers. + Arguments: + context -- The request context for the invocation. + Returns: List of interfaces for running servers. + """ + def getBootedServers(self, context=None): + return _M_Murmur.Meta._op_getBootedServers.invoke(self, ((), context)) + + """ + Fetch list of all currently running servers. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getBootedServersAsync(self, context=None): + return _M_Murmur.Meta._op_getBootedServers.invokeAsync(self, ((), context)) + + """ + Fetch list of all currently running servers. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getBootedServers(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_getBootedServers.begin(self, ((), _response, _ex, _sent, context)) + + """ + Fetch list of all currently running servers. + Arguments: + Returns: List of interfaces for running servers. + """ + def end_getBootedServers(self, _r): + return _M_Murmur.Meta._op_getBootedServers.end(self, _r) + + """ + Fetch list of all defined servers. + Arguments: + context -- The request context for the invocation. + Returns: List of interfaces for all servers. + """ + def getAllServers(self, context=None): + return _M_Murmur.Meta._op_getAllServers.invoke(self, ((), context)) + + """ + Fetch list of all defined servers. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getAllServersAsync(self, context=None): + return _M_Murmur.Meta._op_getAllServers.invokeAsync(self, ((), context)) + + """ + Fetch list of all defined servers. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getAllServers(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_getAllServers.begin(self, ((), _response, _ex, _sent, context)) + + """ + Fetch list of all defined servers. + Arguments: + Returns: List of interfaces for all servers. + """ + def end_getAllServers(self, _r): + return _M_Murmur.Meta._op_getAllServers.end(self, _r) + + """ + Fetch default configuraion. This returns the configuration items that were set in the configuration file, or + the built-in default. The individual servers will use these values unless they have been overridden in the + server specific configuration. The only special case is the port, which defaults to the value defined here + + the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). + Arguments: + context -- The request context for the invocation. + Returns: Default configuration of the servers. + """ + def getDefaultConf(self, context=None): + return _M_Murmur.Meta._op_getDefaultConf.invoke(self, ((), context)) + + """ + Fetch default configuraion. This returns the configuration items that were set in the configuration file, or + the built-in default. The individual servers will use these values unless they have been overridden in the + server specific configuration. The only special case is the port, which defaults to the value defined here + + the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getDefaultConfAsync(self, context=None): + return _M_Murmur.Meta._op_getDefaultConf.invokeAsync(self, ((), context)) + + """ + Fetch default configuraion. This returns the configuration items that were set in the configuration file, or + the built-in default. The individual servers will use these values unless they have been overridden in the + server specific configuration. The only special case is the port, which defaults to the value defined here + + the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getDefaultConf(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_getDefaultConf.begin(self, ((), _response, _ex, _sent, context)) + + """ + Fetch default configuraion. This returns the configuration items that were set in the configuration file, or + the built-in default. The individual servers will use these values unless they have been overridden in the + server specific configuration. The only special case is the port, which defaults to the value defined here + + the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). + Arguments: + Returns: Default configuration of the servers. + """ + def end_getDefaultConf(self, _r): + return _M_Murmur.Meta._op_getDefaultConf.end(self, _r) + + """ + Fetch version of Murmur. + Arguments: + context -- The request context for the invocation. + Returns a tuple containing the following: + major -- Major version. + minor -- Minor version. + patch -- Patchlevel. + text -- Textual representation of version. Note that this may not match the major, minor and patch levels, as it may be simply the compile date or the SVN revision. This is usually the text you want to present to users. + """ + def getVersion(self, context=None): + return _M_Murmur.Meta._op_getVersion.invoke(self, ((), context)) + + """ + Fetch version of Murmur. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getVersionAsync(self, context=None): + return _M_Murmur.Meta._op_getVersion.invokeAsync(self, ((), context)) + + """ + Fetch version of Murmur. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getVersion(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_getVersion.begin(self, ((), _response, _ex, _sent, context)) + + """ + Fetch version of Murmur. + Arguments: + Returns a tuple containing the following: + major -- Major version. + minor -- Minor version. + patch -- Patchlevel. + text -- Textual representation of version. Note that this may not match the major, minor and patch levels, as it may be simply the compile date or the SVN revision. This is usually the text you want to present to users. + """ + def end_getVersion(self, _r): + return _M_Murmur.Meta._op_getVersion.end(self, _r) + + """ + Add a callback. The callback will receive notifications when servers are started or stopped. + Arguments: + cb -- Callback interface which will receive notifications. + context -- The request context for the invocation. + """ + def addCallback(self, cb, context=None): + return _M_Murmur.Meta._op_addCallback.invoke(self, ((cb, ), context)) + + """ + Add a callback. The callback will receive notifications when servers are started or stopped. + Arguments: + cb -- Callback interface which will receive notifications. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def addCallbackAsync(self, cb, context=None): + return _M_Murmur.Meta._op_addCallback.invokeAsync(self, ((cb, ), context)) + + """ + Add a callback. The callback will receive notifications when servers are started or stopped. + Arguments: + cb -- Callback interface which will receive notifications. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_addCallback(self, cb, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_addCallback.begin(self, ((cb, ), _response, _ex, _sent, context)) + + """ + Add a callback. The callback will receive notifications when servers are started or stopped. + Arguments: + cb -- Callback interface which will receive notifications. + """ + def end_addCallback(self, _r): + return _M_Murmur.Meta._op_addCallback.end(self, _r) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. + context -- The request context for the invocation. + """ + def removeCallback(self, cb, context=None): + return _M_Murmur.Meta._op_removeCallback.invoke(self, ((cb, ), context)) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def removeCallbackAsync(self, cb, context=None): + return _M_Murmur.Meta._op_removeCallback.invokeAsync(self, ((cb, ), context)) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_removeCallback(self, cb, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_removeCallback.begin(self, ((cb, ), _response, _ex, _sent, context)) + + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. + """ + def end_removeCallback(self, _r): + return _M_Murmur.Meta._op_removeCallback.end(self, _r) + + """ + Get murmur uptime. + Arguments: + context -- The request context for the invocation. + Returns: Uptime of murmur in seconds + """ + def getUptime(self, context=None): + return _M_Murmur.Meta._op_getUptime.invoke(self, ((), context)) + + """ + Get murmur uptime. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getUptimeAsync(self, context=None): + return _M_Murmur.Meta._op_getUptime.invokeAsync(self, ((), context)) + + """ + Get murmur uptime. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getUptime(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_getUptime.begin(self, ((), _response, _ex, _sent, context)) + + """ + Get murmur uptime. + Arguments: + Returns: Uptime of murmur in seconds + """ + def end_getUptime(self, _r): + return _M_Murmur.Meta._op_getUptime.end(self, _r) + + """ + Get slice file. + Arguments: + context -- The request context for the invocation. + Returns: Contents of the slice file server compiled with. + """ + def getSlice(self, context=None): + return _M_Murmur.Meta._op_getSlice.invoke(self, ((), context)) + + """ + Get slice file. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getSliceAsync(self, context=None): + return _M_Murmur.Meta._op_getSlice.invokeAsync(self, ((), context)) + + """ + Get slice file. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getSlice(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_getSlice.begin(self, ((), _response, _ex, _sent, context)) + + """ + Get slice file. + Arguments: + Returns: Contents of the slice file server compiled with. + """ + def end_getSlice(self, _r): + return _M_Murmur.Meta._op_getSlice.end(self, _r) + + """ + Returns a checksum dict for the slice file. + Arguments: + context -- The request context for the invocation. + Returns: Checksum dict + """ + def getSliceChecksums(self, context=None): + return _M_Murmur.Meta._op_getSliceChecksums.invoke(self, ((), context)) + + """ + Returns a checksum dict for the slice file. + Arguments: + context -- The request context for the invocation. + Returns: A future object for the invocation. + """ + def getSliceChecksumsAsync(self, context=None): + return _M_Murmur.Meta._op_getSliceChecksums.invokeAsync(self, ((), context)) + + """ + Returns a checksum dict for the slice file. + Arguments: + _response -- The asynchronous response callback. + _ex -- The asynchronous exception callback. + _sent -- The asynchronous sent callback. + context -- The request context for the invocation. + Returns: An asynchronous result object for the invocation. + """ + def begin_getSliceChecksums(self, _response=None, _ex=None, _sent=None, context=None): + return _M_Murmur.Meta._op_getSliceChecksums.begin(self, ((), _response, _ex, _sent, context)) + + """ + Returns a checksum dict for the slice file. + Arguments: + Returns: Checksum dict + """ + def end_getSliceChecksums(self, _r): + return _M_Murmur.Meta._op_getSliceChecksums.end(self, _r) + + @staticmethod + def checkedCast(proxy, facetOrContext=None, context=None): + return _M_Murmur.MetaPrx.ice_checkedCast(proxy, '::Murmur::Meta', facetOrContext, context) + + @staticmethod + def uncheckedCast(proxy, facet=None): + return _M_Murmur.MetaPrx.ice_uncheckedCast(proxy, facet) + + @staticmethod + def ice_staticId(): + return '::Murmur::Meta' + _M_Murmur._t_MetaPrx = IcePy.defineProxy('::Murmur::Meta', MetaPrx) + + _M_Murmur.MetaPrx = MetaPrx + del MetaPrx + _M_Murmur.Meta = Ice.createTempClass() class Meta(Ice.Object): - '''This is the meta interface. It is primarily used for retrieving the Server interfaces for each individual server.''' - def __init__(self): - if Ice.getType(self) == _M_Murmur.Meta: - raise RuntimeError('Murmur.Meta is an abstract class') def ice_ids(self, current=None): return ('::Ice::Object', '::Murmur::Meta') @@ -3918,338 +6095,122 @@ if 'Meta' not in _M_Murmur.__dict__: def ice_id(self, current=None): return '::Murmur::Meta' + @staticmethod def ice_staticId(): return '::Murmur::Meta' - ice_staticId = staticmethod(ice_staticId) - def getServer_async(self, _cb, id, current=None): - '''Fetch interface to specific server. -Arguments: - id Server ID. See Server.getId. -Returns: - Interface for specified server, or a null proxy if id is invalid.''' - pass + def getServer(self, id, current=None): + """ + Fetch interface to specific server. + Arguments: + id -- Server ID. See Server.getId. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getServer' not implemented") - def newServer_async(self, _cb, current=None): - '''Create a new server. Call Server.getId on the returned interface to find it's ID. -Returns: - Interface for new server.''' - pass + def newServer(self, current=None): + """ + Create a new server. Call Server.getId on the returned interface to find it's ID. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'newServer' not implemented") - def getBootedServers_async(self, _cb, current=None): - '''Fetch list of all currently running servers. -Returns: - List of interfaces for running servers.''' - pass + def getBootedServers(self, current=None): + """ + Fetch list of all currently running servers. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getBootedServers' not implemented") - def getAllServers_async(self, _cb, current=None): - '''Fetch list of all defined servers. -Returns: - List of interfaces for all servers.''' - pass + def getAllServers(self, current=None): + """ + Fetch list of all defined servers. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getAllServers' not implemented") - def getDefaultConf_async(self, _cb, current=None): - '''Fetch default configuraion. This returns the configuration items that were set in the configuration file, or -the built-in default. The individual servers will use these values unless they have been overridden in the -server specific configuration. The only special case is the port, which defaults to the value defined here + -the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). -Returns: - Default configuration of the servers.''' - pass + def getDefaultConf(self, current=None): + """ + Fetch default configuraion. This returns the configuration items that were set in the configuration file, or + the built-in default. The individual servers will use these values unless they have been overridden in the + server specific configuration. The only special case is the port, which defaults to the value defined here + + the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getDefaultConf' not implemented") - def getVersion_async(self, _cb, current=None): - '''Fetch version of Murmur. -Arguments: - major Major version. - minor Minor version. - patch Patchlevel. - text Textual representation of version. Note that this may not match the major, minor and patch levels, as it -may be simply the compile date or the SVN revision. This is usually the text you want to present to users.''' - pass + def getVersion(self, current=None): + """ + Fetch version of Murmur. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getVersion' not implemented") - def addCallback_async(self, _cb, cb, current=None): - '''Add a callback. The callback will receive notifications when servers are started or stopped. + def addCallback(self, cb, current=None): + """ + Add a callback. The callback will receive notifications when servers are started or stopped. + Arguments: + cb -- Callback interface which will receive notifications. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'addCallback' not implemented") -Arguments: - cb Callback interface which will receive notifications.''' - pass + def removeCallback(self, cb, current=None): + """ + Remove a callback. + Arguments: + cb -- Callback interface to be removed. + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'removeCallback' not implemented") - def removeCallback_async(self, _cb, cb, current=None): - '''Remove a callback. + def getUptime(self, current=None): + """ + Get murmur uptime. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getUptime' not implemented") -Arguments: - cb Callback interface to be removed.''' - pass + def getSlice(self, current=None): + """ + Get slice file. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getSlice' not implemented") - def getUptime_async(self, _cb, current=None): - '''Get murmur uptime. -Returns: - Uptime of murmur in seconds''' - pass - - def getSlice_async(self, _cb, current=None): - '''Get slice file. -Returns: - Contents of the slice file server compiled with.''' - pass - - def getSliceChecksums_async(self, _cb, current=None): - '''Returns a checksum dict for the slice file. -Returns: - Checksum dict''' - pass + def getSliceChecksums(self, current=None): + """ + Returns a checksum dict for the slice file. + Arguments: + current -- The Current object for the invocation. + Returns: A future object for the invocation. + """ + raise NotImplementedError("servant method 'getSliceChecksums' not implemented") def __str__(self): - return IcePy.stringify(self, _M_Murmur._t_Meta) + return IcePy.stringify(self, _M_Murmur._t_MetaDisp) __repr__ = __str__ - _M_Murmur.MetaPrx = Ice.createTempClass() - class MetaPrx(Ice.ObjectPrx): - - '''Fetch interface to specific server. -Arguments: - id Server ID. See Server.getId. -Returns: - Interface for specified server, or a null proxy if id is invalid.''' - def getServer(self, id, _ctx=None): - return _M_Murmur.Meta._op_getServer.invoke(self, ((id, ), _ctx)) - - '''Fetch interface to specific server. -Arguments: - id Server ID. See Server.getId. -Returns: - Interface for specified server, or a null proxy if id is invalid.''' - def begin_getServer(self, id, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_getServer.begin(self, ((id, ), _response, _ex, _sent, _ctx)) - - '''Fetch interface to specific server. -Arguments: - id Server ID. See Server.getId. -Returns: - Interface for specified server, or a null proxy if id is invalid.''' - def end_getServer(self, _r): - return _M_Murmur.Meta._op_getServer.end(self, _r) - - '''Create a new server. Call Server.getId on the returned interface to find it's ID. -Returns: - Interface for new server.''' - def newServer(self, _ctx=None): - return _M_Murmur.Meta._op_newServer.invoke(self, ((), _ctx)) - - '''Create a new server. Call Server.getId on the returned interface to find it's ID. -Returns: - Interface for new server.''' - def begin_newServer(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_newServer.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Create a new server. Call Server.getId on the returned interface to find it's ID. -Returns: - Interface for new server.''' - def end_newServer(self, _r): - return _M_Murmur.Meta._op_newServer.end(self, _r) - - '''Fetch list of all currently running servers. -Returns: - List of interfaces for running servers.''' - def getBootedServers(self, _ctx=None): - return _M_Murmur.Meta._op_getBootedServers.invoke(self, ((), _ctx)) - - '''Fetch list of all currently running servers. -Returns: - List of interfaces for running servers.''' - def begin_getBootedServers(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_getBootedServers.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Fetch list of all currently running servers. -Returns: - List of interfaces for running servers.''' - def end_getBootedServers(self, _r): - return _M_Murmur.Meta._op_getBootedServers.end(self, _r) - - '''Fetch list of all defined servers. -Returns: - List of interfaces for all servers.''' - def getAllServers(self, _ctx=None): - return _M_Murmur.Meta._op_getAllServers.invoke(self, ((), _ctx)) - - '''Fetch list of all defined servers. -Returns: - List of interfaces for all servers.''' - def begin_getAllServers(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_getAllServers.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Fetch list of all defined servers. -Returns: - List of interfaces for all servers.''' - def end_getAllServers(self, _r): - return _M_Murmur.Meta._op_getAllServers.end(self, _r) - - '''Fetch default configuraion. This returns the configuration items that were set in the configuration file, or -the built-in default. The individual servers will use these values unless they have been overridden in the -server specific configuration. The only special case is the port, which defaults to the value defined here + -the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). -Returns: - Default configuration of the servers.''' - def getDefaultConf(self, _ctx=None): - return _M_Murmur.Meta._op_getDefaultConf.invoke(self, ((), _ctx)) - - '''Fetch default configuraion. This returns the configuration items that were set in the configuration file, or -the built-in default. The individual servers will use these values unless they have been overridden in the -server specific configuration. The only special case is the port, which defaults to the value defined here + -the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). -Returns: - Default configuration of the servers.''' - def begin_getDefaultConf(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_getDefaultConf.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Fetch default configuraion. This returns the configuration items that were set in the configuration file, or -the built-in default. The individual servers will use these values unless they have been overridden in the -server specific configuration. The only special case is the port, which defaults to the value defined here + -the servers ID - 1 (so that virtual server #1 uses the defined port, server #2 uses port+1 etc). -Returns: - Default configuration of the servers.''' - def end_getDefaultConf(self, _r): - return _M_Murmur.Meta._op_getDefaultConf.end(self, _r) - - '''Fetch version of Murmur. -Arguments: - major Major version. - minor Minor version. - patch Patchlevel. - text Textual representation of version. Note that this may not match the major, minor and patch levels, as it -may be simply the compile date or the SVN revision. This is usually the text you want to present to users.''' - def getVersion(self, _ctx=None): - return _M_Murmur.Meta._op_getVersion.invoke(self, ((), _ctx)) - - '''Fetch version of Murmur. -Arguments: - major Major version. - minor Minor version. - patch Patchlevel. - text Textual representation of version. Note that this may not match the major, minor and patch levels, as it -may be simply the compile date or the SVN revision. This is usually the text you want to present to users.''' - def begin_getVersion(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_getVersion.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Fetch version of Murmur. -Arguments: - major Major version. - minor Minor version. - patch Patchlevel. - text Textual representation of version. Note that this may not match the major, minor and patch levels, as it -may be simply the compile date or the SVN revision. This is usually the text you want to present to users.''' - def end_getVersion(self, _r): - return _M_Murmur.Meta._op_getVersion.end(self, _r) - - '''Add a callback. The callback will receive notifications when servers are started or stopped. - -Arguments: - cb Callback interface which will receive notifications.''' - def addCallback(self, cb, _ctx=None): - return _M_Murmur.Meta._op_addCallback.invoke(self, ((cb, ), _ctx)) - - '''Add a callback. The callback will receive notifications when servers are started or stopped. - -Arguments: - cb Callback interface which will receive notifications.''' - def begin_addCallback(self, cb, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_addCallback.begin(self, ((cb, ), _response, _ex, _sent, _ctx)) - - '''Add a callback. The callback will receive notifications when servers are started or stopped. - -Arguments: - cb Callback interface which will receive notifications.''' - def end_addCallback(self, _r): - return _M_Murmur.Meta._op_addCallback.end(self, _r) - - '''Remove a callback. - -Arguments: - cb Callback interface to be removed.''' - def removeCallback(self, cb, _ctx=None): - return _M_Murmur.Meta._op_removeCallback.invoke(self, ((cb, ), _ctx)) - - '''Remove a callback. - -Arguments: - cb Callback interface to be removed.''' - def begin_removeCallback(self, cb, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_removeCallback.begin(self, ((cb, ), _response, _ex, _sent, _ctx)) - - '''Remove a callback. - -Arguments: - cb Callback interface to be removed.''' - def end_removeCallback(self, _r): - return _M_Murmur.Meta._op_removeCallback.end(self, _r) - - '''Get murmur uptime. -Returns: - Uptime of murmur in seconds''' - def getUptime(self, _ctx=None): - return _M_Murmur.Meta._op_getUptime.invoke(self, ((), _ctx)) - - '''Get murmur uptime. -Returns: - Uptime of murmur in seconds''' - def begin_getUptime(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_getUptime.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Get murmur uptime. -Returns: - Uptime of murmur in seconds''' - def end_getUptime(self, _r): - return _M_Murmur.Meta._op_getUptime.end(self, _r) - - '''Get slice file. -Returns: - Contents of the slice file server compiled with.''' - def getSlice(self, _ctx=None): - return _M_Murmur.Meta._op_getSlice.invoke(self, ((), _ctx)) - - '''Get slice file. -Returns: - Contents of the slice file server compiled with.''' - def begin_getSlice(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_getSlice.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Get slice file. -Returns: - Contents of the slice file server compiled with.''' - def end_getSlice(self, _r): - return _M_Murmur.Meta._op_getSlice.end(self, _r) - - '''Returns a checksum dict for the slice file. -Returns: - Checksum dict''' - def getSliceChecksums(self, _ctx=None): - return _M_Murmur.Meta._op_getSliceChecksums.invoke(self, ((), _ctx)) - - '''Returns a checksum dict for the slice file. -Returns: - Checksum dict''' - def begin_getSliceChecksums(self, _response=None, _ex=None, _sent=None, _ctx=None): - return _M_Murmur.Meta._op_getSliceChecksums.begin(self, ((), _response, _ex, _sent, _ctx)) - - '''Returns a checksum dict for the slice file. -Returns: - Checksum dict''' - def end_getSliceChecksums(self, _r): - return _M_Murmur.Meta._op_getSliceChecksums.end(self, _r) - - def checkedCast(proxy, facetOrCtx=None, _ctx=None): - return _M_Murmur.MetaPrx.ice_checkedCast(proxy, '::Murmur::Meta', facetOrCtx, _ctx) - checkedCast = staticmethod(checkedCast) - - def uncheckedCast(proxy, facet=None): - return _M_Murmur.MetaPrx.ice_uncheckedCast(proxy, facet) - uncheckedCast = staticmethod(uncheckedCast) - - _M_Murmur._t_MetaPrx = IcePy.defineProxy('::Murmur::Meta', MetaPrx) - - _M_Murmur._t_Meta = IcePy.defineClass('::Murmur::Meta', Meta, -1, (), True, False, None, (), ()) - Meta._ice_type = _M_Murmur._t_Meta + _M_Murmur._t_MetaDisp = IcePy.defineClass('::Murmur::Meta', Meta, (), None, ()) + Meta._ice_type = _M_Murmur._t_MetaDisp Meta._op_getServer = IcePy.Operation('getServer', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, True, None, (), (((), IcePy._t_int, False, 0),), (), ((), _M_Murmur._t_ServerPrx, False, 0), (_M_Murmur._t_InvalidSecretException,)) Meta._op_newServer = IcePy.Operation('newServer', Ice.OperationMode.Normal, Ice.OperationMode.Normal, True, None, (), (), (), ((), _M_Murmur._t_ServerPrx, False, 0), (_M_Murmur._t_InvalidSecretException,)) @@ -4266,7 +6227,74 @@ Returns: _M_Murmur.Meta = Meta del Meta - _M_Murmur.MetaPrx = MetaPrx - del MetaPrx - # End of module Murmur + +Ice.sliceChecksums["::Murmur::ACL"] = "157797fb27cda83faec7e5374284e275" +Ice.sliceChecksums["::Murmur::ACLList"] = "c0d51a6dadd205ea4ceed3ab8605e" +Ice.sliceChecksums["::Murmur::Ban"] = "77c83f17e3b1603f5d35b47fa33870" +Ice.sliceChecksums["::Murmur::BanList"] = "0c7df186822caffee1c2391a82de0a8" +Ice.sliceChecksums["::Murmur::CertificateDer"] = "bda5350e8ec40eef1cae7c2b3c616cf" +Ice.sliceChecksums["::Murmur::CertificateList"] = "bb8d3e415f174d82a74a3abebeadc0" +Ice.sliceChecksums["::Murmur::Channel"] = "3d7546228b98475e03e4bd2eef7042" +Ice.sliceChecksums["::Murmur::ChannelInfo"] = "1e1c915adb3475dd6aa6943aff139d7c" +Ice.sliceChecksums["::Murmur::ChannelList"] = "b6a00a1063ca328741442333853ac" +Ice.sliceChecksums["::Murmur::ChannelMap"] = "c680d84f229348aeac44fceda7a02cc8" +Ice.sliceChecksums["::Murmur::ConfigMap"] = "a959102c70f61ff099b044a145ba2a" +Ice.sliceChecksums["::Murmur::ContextChannel"] = "d031ddb65dbaea316b6718ffa867852" +Ice.sliceChecksums["::Murmur::ContextServer"] = "36637f606caa3dfe7a88816f3d1d4b4" +Ice.sliceChecksums["::Murmur::ContextUser"] = "928e6ca841dc5467d671cc7e94a47b1" +Ice.sliceChecksums["::Murmur::Group"] = "351a3b2b4d272047beca8770793874b" +Ice.sliceChecksums["::Murmur::GroupList"] = "cbca3d925b7b06eb1d0ca15379977e8" +Ice.sliceChecksums["::Murmur::GroupNameList"] = "3129349326861d482a77548514a44ea9" +Ice.sliceChecksums["::Murmur::IdList"] = "ee9f8c35179c12487ff62e359b7f267b" +Ice.sliceChecksums["::Murmur::IdMap"] = "36f07840567acf5a1a182b80cc4ec4c8" +Ice.sliceChecksums["::Murmur::IntList"] = "6f1c32278d7993b8e7fcab62838cfa6" +Ice.sliceChecksums["::Murmur::InvalidCallbackException"] = "8f793feff89155d9b9b47cd11c283f" +Ice.sliceChecksums["::Murmur::InvalidChannelException"] = "551df6f38d8243dfc01b8ae610f0a41b" +Ice.sliceChecksums["::Murmur::InvalidSecretException"] = "2fb9069906614c74d6f54ffb7299723" +Ice.sliceChecksums["::Murmur::InvalidServerException"] = "8c23808992774379fd0deede158a24d" +Ice.sliceChecksums["::Murmur::InvalidSessionException"] = "411551c2f6abb9aa68b0dce4da1f2261" +Ice.sliceChecksums["::Murmur::InvalidTextureException"] = "c2f0fb931df3ceac9f3b231d90d1f66a" +Ice.sliceChecksums["::Murmur::InvalidUserException"] = "deaaf2325132ceebde9ba71eae8aae0" +Ice.sliceChecksums["::Murmur::LogEntry"] = "baf7375450f0cf5a4221ac1080297efb" +Ice.sliceChecksums["::Murmur::LogList"] = "816cdfe716397174d44069acd3309836" +Ice.sliceChecksums["::Murmur::Meta"] = "11f0c26da8d8ffb8135a7028ddfe43e" +Ice.sliceChecksums["::Murmur::MetaCallback"] = "8769511071e0b08b8dfc4b1ca1c352a" +Ice.sliceChecksums["::Murmur::MurmurException"] = "f14e757fac3ec91e3eb581beaf8d1af" +Ice.sliceChecksums["::Murmur::NameList"] = "492b93e2b12d2bd7f61f719a67b8623b" +Ice.sliceChecksums["::Murmur::NameMap"] = "8eb7985198a0add716b9462cbdd8c" +Ice.sliceChecksums["::Murmur::NestingLimitException"] = "f7a9a488daca3d97d689debc832c76" +Ice.sliceChecksums["::Murmur::NetAddress"] = "fe2a565d478baf1e5e2168ca4492d9d" +Ice.sliceChecksums["::Murmur::PermissionBan"] = "ac198d670d743c882937073eae3247" +Ice.sliceChecksums["::Murmur::PermissionEnter"] = "54fa28c949285c187f4df657b087b8" +Ice.sliceChecksums["::Murmur::PermissionKick"] = "15a8e0bcd0862dba4b5b72550f09aad" +Ice.sliceChecksums["::Murmur::PermissionLinkChannel"] = "992d2978f5eb8c5c5c8ec68aee4f890" +Ice.sliceChecksums["::Murmur::PermissionMakeChannel"] = "7cb412acce465d84c9a11bc5cd43e66" +Ice.sliceChecksums["::Murmur::PermissionMakeTempChannel"] = "beeec37912c744f855149ab30608344" +Ice.sliceChecksums["::Murmur::PermissionMove"] = "19f25e8a3ccabbbdf7316a675d6cc87" +Ice.sliceChecksums["::Murmur::PermissionMuteDeafen"] = "53c56b4bd8cf231a4090ef24ed893939" +Ice.sliceChecksums["::Murmur::PermissionRegister"] = "d0c4e13de6abc868b79cf01bb7d5c1ad" +Ice.sliceChecksums["::Murmur::PermissionRegisterSelf"] = "3a9718827e1cdc13b1fde4a724df8" +Ice.sliceChecksums["::Murmur::PermissionSpeak"] = "cfd814f27bac13db9c9a342a0512a4b" +Ice.sliceChecksums["::Murmur::PermissionTextMessage"] = "b5d36eeecdffc56a3a72854a1469145b" +Ice.sliceChecksums["::Murmur::PermissionTraverse"] = "37f12b9bb96c0d07a7c45e1bfef0fe" +Ice.sliceChecksums["::Murmur::PermissionWhisper"] = "dddf47c35e992f8cd868c4321f9bcb" +Ice.sliceChecksums["::Murmur::PermissionWrite"] = "a939b87d29f9fff8b2f957b3e4b121c0" +Ice.sliceChecksums["::Murmur::Server"] = "3d9069b83074d0cfc8d2c392e69dc73" +Ice.sliceChecksums["::Murmur::ServerAuthenticator"] = "53d631793acaba02db8a24971d9032" +Ice.sliceChecksums["::Murmur::ServerBootedException"] = "ddeb7c96e12425ac5fa5a6a94f956" +Ice.sliceChecksums["::Murmur::ServerCallback"] = "8963c15b917c6dac6ab1a7abdbd" +Ice.sliceChecksums["::Murmur::ServerContextCallback"] = "aa3c7926b1cea864d4a280e116ce42" +Ice.sliceChecksums["::Murmur::ServerFailureException"] = "1fe7854e87d2f446c8ff19f38043e821" +Ice.sliceChecksums["::Murmur::ServerList"] = "c4b0f170133f5681b162f8eff53fe" +Ice.sliceChecksums["::Murmur::ServerUpdatingAuthenticator"] = "ad94f3cb11cd39bf69ad81f879af45f" +Ice.sliceChecksums["::Murmur::TextMessage"] = "31d8456b13daf9ab43832a7b381f73b7" +Ice.sliceChecksums["::Murmur::Texture"] = "141dd3bb5aa45668e290153de4e8a23c" +Ice.sliceChecksums["::Murmur::Tree"] = "d22bc269c9dab07c1ff38be14e4bf89" +Ice.sliceChecksums["::Murmur::TreeList"] = "d7942bdad7624ea9e13a297b75fa7da" +Ice.sliceChecksums["::Murmur::User"] = "b0d23475ce2fc5fd59558ea55796946" +Ice.sliceChecksums["::Murmur::UserInfo"] = "5c4250eb31f2ceebc6cbba32967198b" +Ice.sliceChecksums["::Murmur::UserInfoMap"] = "422b99b6357d73912dfea65a794c41a6" +Ice.sliceChecksums["::Murmur::UserList"] = "629ef93051c372dd4ab85895fd9d311" +Ice.sliceChecksums["::Murmur::UserMap"] = "787e8028481a284f43687305c91473" +Ice.sliceChecksums["::Murmur::WriteOnlyException"] = "8aca8bfe9c995581fe3dc942c5a342b" diff --git a/src/status.py b/src/status.py new file mode 100644 index 0000000..f399045 --- /dev/null +++ b/src/status.py @@ -0,0 +1,20 @@ +import sys, Ice +import Murmur + +with Ice.initialize(sys.argv) as communicator: + base = communicator.stringToProxy("Meta:tcp -h 127.0.0.1 -p 6502") + + meta = Murmur.MetaPrx.checkedCast(base) + if not meta: + raise RuntimeError("Invalid proxy") + + servers = meta.getAllServers() + + if len(servers) == 0: + print("No servers found") + + for currentServer in servers: + if currentServer.isRunning(): + print("Found server (id=%d):\tOnline since %d seconds" % (currentServer.id(), currentServer.getUptime())) + else: + print("Found server (id=%d):\tOffline" % currentServer.id()) \ No newline at end of file