Browse Source

add getRawTexture method that simply returns the texture. that way, it can be piped to a file and stored on the disk.

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
394e001950
  1. 7
      pyweb/mumble/MumbleCtlIce.py

7
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

Loading…
Cancel
Save