incubator-heraldry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ket...@apache.org
Subject svn commit: r493322 - in /incubator/heraldry/libraries/python/openid/trunk/openid: consumer/consumer.py consumer/discover.py test/test_discover.py
Date Sat, 06 Jan 2007 05:20:10 GMT
Author: keturn
Date: Fri Jan  5 21:20:09 2007
New Revision: 493322

URL: http://svn.apache.org/viewvc?view=rev&rev=493322
Log:
[python-to-heraldry @ Replace getServerID with getLocalID]

Original author: cygnus@janrain.com
Date: 2006-12-18 22:43:02+00:00

Modified:
    incubator/heraldry/libraries/python/openid/trunk/openid/consumer/consumer.py
    incubator/heraldry/libraries/python/openid/trunk/openid/consumer/discover.py
    incubator/heraldry/libraries/python/openid/trunk/openid/test/test_discover.py

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/consumer/consumer.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/consumer/consumer.py?view=diff&rev=493322&r1=493321&r2=493322
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/consumer/consumer.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/consumer/consumer.py Fri Jan 
5 21:20:09 2007
@@ -644,8 +644,8 @@
             return (
                 (endpoint.server_url == server_url) and
                 # Delegate must be equivalent to the discovered URL.
-                ((endpoint.getServerID() == endpoint.claimed_id) or
-                 (endpoint.getServerID() == identifier)))
+                ((endpoint.getLocalID() == endpoint.claimed_id) or
+                 (endpoint.getLocalID() == identifier)))
 
         services = filter(serviceMatches, services)
 
@@ -912,7 +912,7 @@
              })
 
         if not self.anonymous:
-            request_identity = self.endpoint.getServerID()
+            request_identity = self.endpoint.getLocalID()
             if request_identity is None:
                 request_identity = IDENTIFIER_SELECT
 

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/consumer/discover.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/consumer/discover.py?view=diff&rev=493322&r1=493321&r2=493322
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/consumer/discover.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/consumer/discover.py Fri Jan 
5 21:20:09 2007
@@ -72,7 +72,7 @@
             self.delegate = findDelegate(service_element)
             self.claimed_id = yadis_url
 
-    def getServerID(self):
+    def getLocalID(self):
         """Return the identifier that should be sent as the
         openid.identity parameter to the server."""
         if (self.delegate is self.canonicalID is None):

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/test/test_discover.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/test/test_discover.py?view=diff&rev=493322&r1=493321&r2=493322
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/test/test_discover.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/test/test_discover.py Fri Jan
 5 21:20:09 2007
@@ -506,7 +506,7 @@
         endpoint = discover.OpenIDServiceEndpoint()
         endpoint.claimed_id = "=example"
         endpoint.canonicalID = XRI("=!1000")
-        self.failUnlessEqual(endpoint.getServerID(), XRI("=!1000"))
+        self.failUnlessEqual(endpoint.getLocalID(), XRI("=!1000"))
 
 
 class TestPreferredNamespace(datadriven.DataDrivenTestCase):



Mime
View raw message