onelogin/python-saml — pull request #11 by dashouguai (2013-05-03 17:23:09+00:00)
Title: error in example.py: NameError: global name 'AuthnRequest' is not defined

When I try to run the example.py, it gives:

Exception happened during processing of request from ('192.168.202.59', 51115)
Traceback (most recent call last):
File "/usr/lib64/python2.6/SocketServer.py", line 283, in _handle_request_noblock
self.process_request(request, client_address)
File "/usr/lib64/python2.6/SocketServer.py", line 309, in process_request
self.finish_request(request, client_address)
File "/usr/lib64/python2.6/SocketServer.py", line 322, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib64/python2.6/SocketServer.py", line 617, in __init__
self.handle()
File "/usr/lib64/python2.6/BaseHTTPServer.py", line 329, in handle
self.handle_one_request()
File "/usr/lib64/python2.6/BaseHTTPServer.py", line 323, in handle_one_request
method()
File "/home/ec2-user/python-saml/example.py", line 60, in do_GET
url = AuthnRequest.create(**self.settings)
NameError: global name 'AuthnRequest' is not defined

- - -

So, changed the variable name from AuthnRequest to AuthRequest

It is correct?