[Python-modules-commits] [django-xmlrpc] 01/04: New upstream version 0.1.8
Brian May
bam at debian.org
Sun Nov 5 03:59:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
bam pushed a commit to branch debian/master
in repository django-xmlrpc.
commit a0a0b427f7e20b4d53f1f5d2759da28857826e70
Author: Brian May <bam at debian.org>
Date: Sun Nov 5 14:57:41 2017 +1100
New upstream version 0.1.8
---
PKG-INFO | 17 +++++++++++++----
README.rst | 14 +++++++++++---
django_xmlrpc.egg-info/PKG-INFO | 17 +++++++++++++----
django_xmlrpc.egg-info/SOURCES.txt | 1 +
django_xmlrpc/__init__.py | 2 +-
django_xmlrpc/views.py | 14 ++------------
setup.cfg | 4 +++-
7 files changed, 44 insertions(+), 25 deletions(-)
diff --git a/PKG-INFO b/PKG-INFO
index be8391c..5703ba3 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,11 +1,12 @@
Metadata-Version: 1.1
Name: django-xmlrpc
-Version: 0.1.7
+Version: 0.1.8
Summary: XML-RPC Server App for the Django framework.
Home-page: https://github.com/Fantomas42/django-xmlrpc
Author: Fantomas42
Author-email: fantomas42 at gmail.com
License: New BSD License
+Description-Content-Type: UNKNOWN
Description: ==============
Django XML-RPC
==============
@@ -13,9 +14,8 @@ Description: ==============
**Django_xmlrpc** offers a means by which a Django developer can expose their
views (or indeed any other function) using XML-RPC.
- This is a fork of the version hosted at :
- https://code.launchpad.net/~aartemenko/django-xmlrpc/svetlyak40wt
- compatible with Django >= 1.8 and Python >= 2.5.
+ This is a fork of the original version made by Svetlyak40wt compatible with
+ Django >= 1.8 and Python >= 2.5.
If you want to use **django_xmlrpc** for an older version of Django or Python,
please use an old release.
@@ -53,6 +53,15 @@ Description: ==============
XMLRPC_METHODS = (('path.to.your.method', 'Method name'),
('path.to.your.othermethod', 'Other Method name'),)
+ A registered method should look like this: ::
+
+ from django_xmlrpc.decorators import xmlrpc_func
+
+ @xmlrpc_func(returns='string', args=['string'])
+ def test_xmlrpc(text):
+ """Simply returns the args passed to it as a string"""
+ return "Here's a response! %s" % str(text)
+
Finally we need to register the url of the XML-RPC server. Insert something
like this in your project's urls.py: ::
diff --git a/README.rst b/README.rst
index 9fa3b82..babaceb 100644
--- a/README.rst
+++ b/README.rst
@@ -5,9 +5,8 @@ Django XML-RPC
**Django_xmlrpc** offers a means by which a Django developer can expose their
views (or indeed any other function) using XML-RPC.
-This is a fork of the version hosted at :
-https://code.launchpad.net/~aartemenko/django-xmlrpc/svetlyak40wt
-compatible with Django >= 1.8 and Python >= 2.5.
+This is a fork of the original version made by Svetlyak40wt compatible with
+Django >= 1.8 and Python >= 2.5.
If you want to use **django_xmlrpc** for an older version of Django or Python,
please use an old release.
@@ -45,6 +44,15 @@ In a file called ``xmlrpc.py`` in your application directory. ::
XMLRPC_METHODS = (('path.to.your.method', 'Method name'),
('path.to.your.othermethod', 'Other Method name'),)
+A registered method should look like this: ::
+
+ from django_xmlrpc.decorators import xmlrpc_func
+
+ @xmlrpc_func(returns='string', args=['string'])
+ def test_xmlrpc(text):
+ """Simply returns the args passed to it as a string"""
+ return "Here's a response! %s" % str(text)
+
Finally we need to register the url of the XML-RPC server. Insert something
like this in your project's urls.py: ::
diff --git a/django_xmlrpc.egg-info/PKG-INFO b/django_xmlrpc.egg-info/PKG-INFO
index be8391c..5703ba3 100644
--- a/django_xmlrpc.egg-info/PKG-INFO
+++ b/django_xmlrpc.egg-info/PKG-INFO
@@ -1,11 +1,12 @@
Metadata-Version: 1.1
Name: django-xmlrpc
-Version: 0.1.7
+Version: 0.1.8
Summary: XML-RPC Server App for the Django framework.
Home-page: https://github.com/Fantomas42/django-xmlrpc
Author: Fantomas42
Author-email: fantomas42 at gmail.com
License: New BSD License
+Description-Content-Type: UNKNOWN
Description: ==============
Django XML-RPC
==============
@@ -13,9 +14,8 @@ Description: ==============
**Django_xmlrpc** offers a means by which a Django developer can expose their
views (or indeed any other function) using XML-RPC.
- This is a fork of the version hosted at :
- https://code.launchpad.net/~aartemenko/django-xmlrpc/svetlyak40wt
- compatible with Django >= 1.8 and Python >= 2.5.
+ This is a fork of the original version made by Svetlyak40wt compatible with
+ Django >= 1.8 and Python >= 2.5.
If you want to use **django_xmlrpc** for an older version of Django or Python,
please use an old release.
@@ -53,6 +53,15 @@ Description: ==============
XMLRPC_METHODS = (('path.to.your.method', 'Method name'),
('path.to.your.othermethod', 'Other Method name'),)
+ A registered method should look like this: ::
+
+ from django_xmlrpc.decorators import xmlrpc_func
+
+ @xmlrpc_func(returns='string', args=['string'])
+ def test_xmlrpc(text):
+ """Simply returns the args passed to it as a string"""
+ return "Here's a response! %s" % str(text)
+
Finally we need to register the url of the XML-RPC server. Insert something
like this in your project's urls.py: ::
diff --git a/django_xmlrpc.egg-info/SOURCES.txt b/django_xmlrpc.egg-info/SOURCES.txt
index 10eff41..824b5e4 100644
--- a/django_xmlrpc.egg-info/SOURCES.txt
+++ b/django_xmlrpc.egg-info/SOURCES.txt
@@ -1,5 +1,6 @@
MANIFEST.in
README.rst
+setup.cfg
setup.py
django_xmlrpc/__init__.py
django_xmlrpc/apps.py
diff --git a/django_xmlrpc/__init__.py b/django_xmlrpc/__init__.py
index 9d6bf24..78db8d4 100644
--- a/django_xmlrpc/__init__.py
+++ b/django_xmlrpc/__init__.py
@@ -38,7 +38,7 @@ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
-VERSION = (0, 1, 7)
+VERSION = (0, 1, 8)
__version__ = '.'.join(map(str, VERSION))
default_app_config = 'django_xmlrpc.apps.XMLRPCConfig'
diff --git a/django_xmlrpc/views.py b/django_xmlrpc/views.py
index 86ad118..66fa6b1 100644
--- a/django_xmlrpc/views.py
+++ b/django_xmlrpc/views.py
@@ -43,23 +43,15 @@ from logging import getLogger
from django.http import HttpResponse
from django.http import HttpResponseServerError
-from django.shortcuts import render_to_response
-from django.template import RequestContext
+from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
-from django_xmlrpc.decorators import xmlrpc_func
from django_xmlrpc.dispatcher import xmlrpc_dispatcher
logger = getLogger('xmlrpc.views')
- at xmlrpc_func(returns='string', args=['string'])
-def test_xmlrpc(text):
- """Simply returns the args passed to it as a string"""
- return "Here's a response! %s" % str(text)
-
-
@csrf_exempt
def handle_xmlrpc(request):
"""Handles XML-RPC requests. All XML-RPC calls should be forwarded here
@@ -94,6 +86,4 @@ def handle_xmlrpc(request):
method_list.append((method, sig, method_help))
- return render_to_response(
- 'xmlrpc_get.html',
- RequestContext(request, {'methods': method_list}))
+ return render(request, 'xmlrpc_get.html', {'methods': method_list})
diff --git a/setup.cfg b/setup.cfg
index 861a9f5..adf5ed7 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,7 @@
+[bdist_wheel]
+universal = 1
+
[egg_info]
tag_build =
tag_date = 0
-tag_svn_revision = 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-xmlrpc.git
More information about the Python-modules-commits
mailing list