From 394e001950578e785e79669897c1931af81cbc40 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Fri, 26 Feb 2010 19:25:59 +0100 Subject: [PATCH] add getRawTexture method that simply returns the texture. that way, it can be piped to a file and stored on the disk. --- pyweb/mumble/MumbleCtlIce.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyweb/mumble/MumbleCtlIce.py b/pyweb/mumble/MumbleCtlIce.py index 40877aa..2f2dbc7 100644 --- a/pyweb/mumble/MumbleCtlIce.py +++ b/pyweb/mumble/MumbleCtlIce.py @@ -515,9 +515,14 @@ class MumbleCtlIce_122(MumbleCtlIce_120): class MumbleCtlIce_123(MumbleCtlIce_120): + + @protectDjangoErrPage + def getRawTexture(self, srvid, mumbleid): + return self._getIceServerObject(srvid).getTexture(mumbleid) + @protectDjangoErrPage def getTexture(self, srvid, mumbleid): - texture = self._getIceServerObject(srvid).getTexture(mumbleid) + texture = self.getRawTexture(srvid, mumbleid); if len(texture) == 0: raise ValueError( "No Texture has been set." ); from StringIO import StringIO