Browse Source

updating slice and ctl to work with the Murmur snapshot from 21-Aug-2009

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
ce3b7142fd
  1. 6
      pyweb/mumble/MumbleCtlIce.py
  2. 21
      pyweb/mumble/Murmur_1-2-0.ice

6
pyweb/mumble/MumbleCtlIce.py

@ -270,8 +270,8 @@ class MumbleCtlIce_120(MumbleCtlIce_118):
users = self._getIceServerObject( srvid ).getRegisteredUsers( filter.encode( "UTF-8" ) ) users = self._getIceServerObject( srvid ).getRegisteredUsers( filter.encode( "UTF-8" ) )
ret = [] ret = []
for user in users:
ret.append([user.playerid, self.setUnicodeFlag(user.name), self.setUnicodeFlag(user.email), self.setUnicodeFlag(user.pw)])
for id in users:
ret.append( [ id, self.setUnicodeFlag( users[id] ) ] );
return ret return ret
@ -292,7 +292,7 @@ class MumbleCtlIce_120(MumbleCtlIce_118):
for x in users: for x in users:
user = users[x] user = users[x]
ret.append([user.session, user.mute, user.deaf, user.suppressed, user.selfMute, user.selfDeaf, user.channel, user.userid, self.setUnicodeFlag(user.name), user.onlinesecs, user.bytespersec])
ret.append([user.session, user.mute, user.deaf, user.suppress, user.selfMute, user.selfDeaf, user.channel, user.userid, self.setUnicodeFlag(user.name), user.onlinesecs, user.bytespersec])
return ret return ret

21
pyweb/mumble/Murmur_1-2-0.ice

@ -55,7 +55,7 @@ module Murmur
/** Is user deafened by the server? If true, this implies mute. */ /** Is user deafened by the server? If true, this implies mute. */
bool deaf; bool deaf;
/** Is the user suppressed by the server? This means the user is not muted, but does not have speech privileges in the current channel. */ /** Is the user suppressed by the server? This means the user is not muted, but does not have speech privileges in the current channel. */
bool suppressed;
bool suppress;
/** Is the user self-muted? */ /** Is the user self-muted? */
bool selfMute; bool selfMute;
/** Is the user self-deafened? If true, this implies mute. */ /** Is the user self-deafened? If true, this implies mute. */
@ -107,6 +107,8 @@ module Murmur
string description; string description;
/** Channel is temporary, and will be removed when the last user leaves it. */ /** Channel is temporary, and will be removed when the last user leaves it. */
bool temporary; bool temporary;
/** Position of the channel which is used in Client for sorting. */
int position;
}; };
/** 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.
@ -208,6 +210,9 @@ module Murmur
class Tree; class Tree;
sequence<Tree> TreeList; sequence<Tree> TreeList;
enum ChannelInfo { ChannelDescription, ChannelPosition };
enum UserInfo { UserName, UserEmail, UserComment, UserHash, UserPassword };
dictionary<int, User> UserMap; dictionary<int, User> UserMap;
dictionary<int, Channel> ChannelMap; dictionary<int, Channel> ChannelMap;
sequence<Channel> ChannelList; sequence<Channel> ChannelList;
@ -220,7 +225,7 @@ module Murmur
sequence<string> NameList; sequence<string> NameList;
dictionary<int, string> NameMap; dictionary<int, string> NameMap;
dictionary<string, int> IdMap; dictionary<string, int> IdMap;
dictionary<string, string> InfoMap;
dictionary<UserInfo, string> UserInfoMap;
sequence<byte> Texture; sequence<byte> Texture;
dictionary<string, string> ConfigMap; dictionary<string, string> ConfigMap;
sequence<string> GroupNameList; sequence<string> GroupNameList;
@ -342,7 +347,7 @@ module Murmur
* @param info Information about user. This needs to include at least "name". * @param info Information about user. This needs to include at least "name".
* @return true if information is present, false to fall through. * @return true if information is present, false to fall through.
*/ */
idempotent bool getInfo(int id, out InfoMap info);
idempotent bool getInfo(int id, out UserInfoMap info);
/** Map a name to a user id. /** Map a name to a user id.
* @param name Username to map. * @param name Username to map.
@ -375,7 +380,7 @@ module Murmur
* @param info Information about user to register. * @param info Information about user to register.
* @return User id of new user, -1 for registration failure, or -2 to fall through. * @return User id of new user, -1 for registration failure, or -2 to fall through.
*/ */
int registerUser(InfoMap info);
int registerUser(UserInfoMap info);
/** Unregister a user. /** Unregister a user.
* @param id Userid to unregister. * @param id Userid to unregister.
@ -394,7 +399,7 @@ module Murmur
* @param info Information to set about user. This should be merged with existing information. * @param info Information to set about user. This should be merged with existing information.
* @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through. * @return 1 for successfull update, 0 for unsuccessfull update, -1 to fall through.
*/ */
idempotent int setInfo(int id, InfoMap info);
idempotent int setInfo(int id, UserInfoMap info);
/** Set texture of user registration. /** Set texture of user registration.
* @param id Userid of registered user. * @param id Userid of registered user.
@ -628,7 +633,7 @@ module Murmur
* @param info Information about new user. Must include at least "name". * @param info Information about new user. Must include at least "name".
* @return The ID of the user. See [RegisteredUser::userid]. * @return The ID of the user. See [RegisteredUser::userid].
*/ */
int registerUser(InfoMap info) throws ServerBootedException, InvalidUserException;
int registerUser(UserInfoMap info) throws ServerBootedException, InvalidUserException;
/** Remove a user registration. /** Remove a user registration.
* @param userid ID of registered user. See [RegisteredUser::userid]. * @param userid ID of registered user. See [RegisteredUser::userid].
@ -639,13 +644,13 @@ module Murmur
* and can also use it to change the user's name. * and can also use it to change the user's name.
* @param registration Updated registration record. * @param registration Updated registration record.
*/ */
idempotent void updateRegistration(int userid, InfoMap info) throws ServerBootedException, InvalidUserException;
idempotent void updateRegistration(int userid, UserInfoMap info) throws ServerBootedException, InvalidUserException;
/** Fetch registration for a single user. /** Fetch registration for a single user.
* @param userid ID of registered user. See [RegisteredUser::userid]. * @param userid ID of registered user. See [RegisteredUser::userid].
* @return Registration record. * @return Registration record.
*/ */
idempotent InfoMap getRegistration(int userid) throws ServerBootedException, InvalidUserException;
idempotent UserInfoMap getRegistration(int userid) throws ServerBootedException, InvalidUserException;
/** Fetch a group of registered users. /** Fetch a group of registered users.
* @param filter Substring of user name. If blank, will retrieve all registered users. * @param filter Substring of user name. If blank, will retrieve all registered users.

Loading…
Cancel
Save