tags upstream 429628
thanks
Here is another bugreport regarding example code.
--- Begin Message ---
Package: python-openid
Version: 2.0.0-1
Severity: normal
Tags: patch
Hi,
The server try to use sreg.sendSRegFields which doesn't exist when
adding the registration data in the response. This can be corrected
with the joined patch.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages python-openid depends on:
ii python 2.4.4-6 An interactive high-level object-o
ii python-central 0.5.14 register and build utility for Pyt
ii python-urljr 1.0.1-1 Common interface to urllib2 and cu
ii python-yadis 1.1.0-1 Yadis service discovery library
python-openid recommends no packages.
-- no debconf information
--- server.orig/views.py 2007-06-19 10:02:19.000000000 +0200
+++ server/views.py 2007-06-19 10:01:17.000000000 +0200
@@ -221,9 +221,10 @@
'timezone': 'America/New_York',
}
- sreg.sendSRegFields(openid_request, sreg_data,
- openid_response)
-
+ sreg_req = sreg.SRegRequest.fromOpenIDRequest(openid_request)
+ sreg_resp = sreg.SRegResponse.extractResponse(sreg_req, sreg_data)
+ openid_response.addExtension(sreg_resp)
+
return displayResponse(request, openid_response)
def displayResponse(request, openid_response):
--- End Message ---
--
JID: [EMAIL PROTECTED]