You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2015/05/28 22:13:21 UTC

[19/26] allura git commit: [#7868] ticket:776 Fix NexmoPhoneService docstring and inheritance

[#7868] ticket:776 Fix NexmoPhoneService docstring and inheritance


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/53d48fb7
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/53d48fb7
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/53d48fb7

Branch: refs/heads/master
Commit: 53d48fb7ae3492bf250fd71ac60d15fa0918fe6b
Parents: cd395f9
Author: Igor Bondarenko <je...@gmail.com>
Authored: Mon May 25 16:09:00 2015 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Thu May 28 20:11:46 2015 +0000

----------------------------------------------------------------------
 Allura/allura/lib/phone/nexmo.py | 15 ++-------------
 1 file changed, 2 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/53d48fb7/Allura/allura/lib/phone/nexmo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/phone/nexmo.py b/Allura/allura/lib/phone/nexmo.py
index 0e53a60..c9e2a32 100644
--- a/Allura/allura/lib/phone/nexmo.py
+++ b/Allura/allura/lib/phone/nexmo.py
@@ -20,26 +20,15 @@ from urlparse import urljoin
 
 import json
 import requests
+from allura.lib.phone import PhoneService
 
 log = logging.getLogger(__name__)
 
 
-class NexmoPhoneService(object):
+class NexmoPhoneService(PhoneService):
     """
     Implementation of :class:`allura.lib.phone.PhoneService` interface
     for Nexmo Verify
-
-    To enable NexmoPhoneService in your Allura instance, first enable the entry
-    point in setup.py::
-
-        [allura.phone]
-        nexmo = allura.lib.phone.nexmo:NexmoPhoneService
-
-    Then include the following parameters in your .ini file::
-
-        phone.method = nexmo
-        phone.api_key = <your Nexmo API key here>
-        phone.api_secret = <your Nexmo API secret here>
     """
 
     BASE_URL = 'https://api.nexmo.com/'