Permalink
Browse files

Use the new autodiscover feature in django_xmlrpc for detecting methods

  • Loading branch information...
1 parent 41a21cc commit 059429b779aac4cb30326123d3b75dd4fc443adb @Fantomas42 committed Oct 7, 2016
Showing with 1 addition and 8 deletions.
  1. +0 −3 demo/settings.py
  2. +0 −4 zinnia/tests/implementations/settings.py
  3. +1 −1 zinnia/xmlrpc/__init__.py
View
@@ -100,6 +100,3 @@
'tagging',
'zinnia'
)
-
-from zinnia.xmlrpc import ZINNIA_XMLRPC_METHODS # noqa
-XMLRPC_METHODS = ZINNIA_XMLRPC_METHODS
@@ -1,6 +1,4 @@
"""Settings for testing zinnia"""
-from zinnia.xmlrpc import ZINNIA_XMLRPC_METHODS
-
SITE_ID = 1
USE_TZ = True
@@ -54,5 +52,3 @@
]
ZINNIA_PAGINATION = 3
-
-XMLRPC_METHODS = ZINNIA_XMLRPC_METHODS
@@ -33,4 +33,4 @@
('zinnia.xmlrpc.metaweblog.new_media_object',
'metaWeblog.newMediaObject')]
-ZINNIA_XMLRPC_METHODS = ZINNIA_XMLRPC_PINGBACK + ZINNIA_XMLRPC_METAWEBLOG
+XMLRPC_METHODS = ZINNIA_XMLRPC_PINGBACK + ZINNIA_XMLRPC_METAWEBLOG

0 comments on commit 059429b

Please sign in to comment.