Added api call to pull Murmur Objects

This commit is contained in:
2010-09-02 22:13:08 +01:00
parent 3e97539688
commit 1615f79b88
2 changed files with 6 additions and 1 deletions

View File

@@ -179,6 +179,11 @@ class MumbleCtlIce_118(MumbleCtlBase):
self.proxy = connstring;
self.meta = meta;
@protectDjangoErrPage
def getMurmurObj(self, objname):
if hasattr(Murmur, objname):
return getattr(Murmur, objname)
@protectDjangoErrPage
def _getIceServerObject(self, srvid):
return self.meta.getServer(srvid);

View File

@@ -97,7 +97,7 @@ class MumbleService(BaseService):
newgroups = False
for agroup in groups:
if not agroup.name.replace(' ', '').lower() in glist:
group = Murmur.Group()
group = self.mumblectl.getMurmurObj('Group')
group.name = group.name.replace(' ', '').lower()
group.inheritable = True
group.inherit = True