incubator-heraldry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ket...@apache.org
Subject svn commit: r493420 - /incubator/heraldry/libraries/python/openid/trunk/examples/consumer.py
Date Sat, 06 Jan 2007 05:29:27 GMT
Author: keturn
Date: Fri Jan  5 21:29:27 2007
New Revision: 493420

URL: http://svn.apache.org/viewvc?view=rev&rev=493420
Log:
[python-to-heraldry @ Add failure response message to example consumer failure output]

Original author: cygnus@janrain.com
Date: 2007-01-03 22:44:13+00:00

Modified:
    incubator/heraldry/libraries/python/openid/trunk/examples/consumer.py

Modified: incubator/heraldry/libraries/python/openid/trunk/examples/consumer.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/examples/consumer.py?view=diff&rev=493420&r1=493419&r2=493420
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/examples/consumer.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/examples/consumer.py Fri Jan  5 21:29:27
2007
@@ -220,8 +220,9 @@
             # In the case of failure, if info is non-None, it is the
             # URL that we were verifying. We include it in the error
             # message to help the user figure out what happened.
-            fmt = "Verification of %s failed."
-            message = fmt % (cgi.escape(info.identity_url),)
+            fmt = "Verification of %s failed: %s"
+            message = fmt % (cgi.escape(info.identity_url),
+                             info.message)
         elif info.status == consumer.SUCCESS:
             # Success means that the transaction completed without
             # error. If info is None, it means that the user cancelled



Mime
View raw message