Browse Source

a few style fixes

Natenom/support-murmur-13-1446181288462
Michael Ziegler 16 years ago
parent
commit
27aa076552
  1. 2
      pyweb/mumble/mctl.py
  2. 1
      pyweb/mumble/mmobjects.py
  3. 7
      pyweb/mumble/models.py
  4. 1
      pyweb/mumble/views.py

2
pyweb/mumble/mctl.py

@ -65,7 +65,7 @@ class MumbleCtlBase (object):
raise NotImplementedError( "mctl::registerPlayer" ); raise NotImplementedError( "mctl::registerPlayer" );
def getRegistration(self, srvid, mumbleid): def getRegistration(self, srvid, mumbleid):
raise NotImplementedError( "mctl::setRegistration" );
raise NotImplementedError( "mctl::getRegistration" );
def setRegistration(self, srvid, mumbleid, name, email, password): def setRegistration(self, srvid, mumbleid, name, email, password):
raise NotImplementedError( "mctl::setRegistration" ); raise NotImplementedError( "mctl::setRegistration" );

1
pyweb/mumble/mmobjects.py

@ -23,6 +23,7 @@ from os.path import join
from django.utils.http import urlquote from django.utils.http import urlquote
from django.conf import settings from django.conf import settings
def cmp_names( a, b ): def cmp_names( a, b ):
return cmp( a.name, b.name ); return cmp( a.name, b.name );

7
pyweb/mumble/models.py

@ -15,14 +15,11 @@
""" """
import socket import socket
from PIL import Image
from struct import pack, unpack
from zlib import compress, decompress
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User from django.contrib.auth.models import User
from django.db import models from django.db import models
from django.db.models import signals
from django.conf import settings from django.conf import settings
from mmobjects import * from mmobjects import *
@ -405,8 +402,6 @@ class MumbleUser( models.Model ):
from django.db.models import signals
signals.pre_delete.connect( Mumble.pre_delete_listener, sender=Mumble ); signals.pre_delete.connect( Mumble.pre_delete_listener, sender=Mumble );
signals.pre_delete.connect( MumbleUser.pre_delete_listener, sender=MumbleUser ); signals.pre_delete.connect( MumbleUser.pre_delete_listener, sender=MumbleUser );

1
pyweb/mumble/views.py

@ -20,7 +20,6 @@ from StringIO import StringIO
from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404 from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404
from django.template import RequestContext from django.template import RequestContext
from django.http import Http404, HttpResponse, HttpResponseRedirect from django.http import Http404, HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User from django.contrib.auth.models import User
from django.conf import settings from django.conf import settings

Loading…
Cancel
Save