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

[41/50] [abbrv] 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/554a4a86
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/554a4a86
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/554a4a86

Branch: refs/heads/ib/7868
Commit: 554a4a86c66a95734025eb54238e8b788d0b776e
Parents: e328839
Author: Igor Bondarenko <je...@gmail.com>
Authored: Mon May 25 16:09:00 2015 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Mon May 25 16:09:00 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/554a4a86/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/'