hello to all.im using python API in our research project.i read lot of ppt and material, and finally understand this concept now i have task to execute simple function which is chek user credential thorough openid provider and return successful after the valid user check.....
views:
103answers:
3yes...i know but im new in this language.give me idea that how i should start this implementation
Rahul S
2009-07-06 09:20:36
Josip
2009-07-06 09:32:29
no,i understand concept of openid but i have confused where should i start first module to implement these function......
Rahul S
2009-07-06 10:10:35
+2
A:
To add to the recommendation of the Python OpenID library: their docs pages for the server and consumer modules both have useful Overview sections which you should read as a good starting point. The examples directory is also useful; I've written things starting from server.py
and consumer.py
from there.
Chris Boyle
2009-07-06 09:37:20
thnks cmb,im trying to understand server.py and consumer,py programme.can u tell me more about this concept..
Rahul S
2009-07-06 10:11:32
If you run either of those programs (as main, as in `python server.py`) you'll get an HTTP server which you can browse to (by default localhost:8000 for server, localhost:8001 for consumer). Then you can look at the behaviour of that demo and follow along in the code to see how it works. If that doesn't help, try asking a more specific question.
Chris Boyle
2009-07-06 10:47:29
A:
Here's ClickPass's recommendation: http://www.clickpass.com/docs/reference-language-libraries
sharjeel
2009-07-06 11:09:48
thnks sharjeeli have testing one small function for socket but i havt got this error everytime.... code as belowimport sockets = socket.socket(socket.AF_INET, socket.SOCK_STREAM)s.connect("www.mcmillan-inc.com", 80)i found error -> Creating socket...Traceback (most recent call last): File "socketdemo.py", line 1, in ? import socket File "/usr/lib/python2.4/socket.py", line 4, in ? """\AttributeError: 'module' object has no attribute 'AF_INET'
Rahul S
2009-07-07 05:01:04