Browse Source

rename extdirect.py to djextdirect.py (outsourced it to its own project)

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
7f266468e7
  1. 12
      pyweb/djextdirect.py
  2. 2
      pyweb/mumble/forms.py
  3. 2
      pyweb/mumble/views.py

12
pyweb/extdirect.py → pyweb/djextdirect.py

@ -4,7 +4,7 @@
"""
* Copyright (C) 2010, Michael "Svedrin" Ziegler <diese-addy@funzt-halt.net>
*
* Mumble-Django is free software; you can redistribute it and/or modify
* djExtDirect is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
@ -30,6 +30,13 @@ from django.utils.datastructures import MultiValueDictKeyError
from django.views.decorators.csrf import csrf_exempt
from django.utils.safestring import mark_safe
__author__ = "Michael Ziegler"
__copyright__ = "Copyright (C) 2010, Michael Ziegler"
__license__ = "GPL"
__version__ = "0.1"
__email__ = "diese-addy@funzt-halt.net"
__status__ = "Development"
def getname( cls_or_name ):
if type(cls_or_name) not in ( str, unicode ):
@ -82,7 +89,8 @@ class Provider( object ):
>>> EXT_JS_PROVIDER = Provider( [name="Ext.app.REMOTING_API", autoadd=True] )
If autoadd is True, the api.js will include a line like such:
If autoadd is True, the api.js will include a line like such::
Ext.Direct.addProvider( Ext.app.REMOTING_API );
After instantiating the Provider, register functions to it like so:

2
pyweb/mumble/forms.py

@ -26,7 +26,7 @@ from django.utils.translation import ugettext_lazy as _
from mumble.models import MumbleServer, Mumble, MumbleUser
from extdirect import Provider
from djextdirect import Provider
EXT_FORMS_PROVIDER = Provider(name="Ext.app.MUMBLE_FORMS_API")

2
pyweb/mumble/views.py

@ -33,7 +33,7 @@ from models import Mumble, MumbleUser
from forms import MumbleForm, MumbleUserForm, MumbleUserPasswordForm
from forms import MumbleUserLinkForm, MumbleTextureForm, MumbleKickForm
from extdirect import Provider
from djextdirect import Provider
EXT_DIRECT_PROVIDER = Provider()

Loading…
Cancel
Save