Skip to content

Commit

Permalink
Use the new autodiscover feature in django_xmlrpc for detecting methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Fantomas42 committed Oct 7, 2016
1 parent 41a21cc commit 059429b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
3 changes: 0 additions & 3 deletions demo/settings.py
Expand Up @@ -100,6 +100,3 @@
'tagging',
'zinnia'
)

from zinnia.xmlrpc import ZINNIA_XMLRPC_METHODS # noqa
XMLRPC_METHODS = ZINNIA_XMLRPC_METHODS
4 changes: 0 additions & 4 deletions zinnia/tests/implementations/settings.py
@@ -1,6 +1,4 @@
"""Settings for testing zinnia"""
from zinnia.xmlrpc import ZINNIA_XMLRPC_METHODS

SITE_ID = 1

USE_TZ = True
Expand Down Expand Up @@ -54,5 +52,3 @@
]

ZINNIA_PAGINATION = 3

XMLRPC_METHODS = ZINNIA_XMLRPC_METHODS
2 changes: 1 addition & 1 deletion zinnia/xmlrpc/__init__.py
Expand Up @@ -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.