problem with openid

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

problem with openid

kenneth gonsalves

hi,

was trying out django_openidconsumer and get this error:

complete() takes exactly 3 arguments (2 given) - I cannot figure it out as this
is the definition of complete:

def complete(request, on_success=None, on_failure=None):

any clues?

the cut-and-paste view of the traceback is here:

Environment:

Request Method: GET
Request URL:
http://ilugc.web/openid/complete/?janrain_nonce=2009-08-13T01%3A30%3A50ZyN0AZR&openid1_claimed_id=http%3A%2F%2Flawgon.livejournal.com%2F&openid.mode=id_res&openid.claimed_id=http://lawgon.livejournal.com/&openid.identity=http://lawgon.livejournal.com/&openid.return_to=http://ilugc.web/openid/complete/%3Fjanrain_nonce%3D2009-08-13T01%253A30%253A50ZyN0AZR%26openid1_claimed_id%3Dhttp%253A%252F%252Flawgon.livejournal.com%252F&openid.response_nonce=2009-08-13T01:33:40Zdhz2Jv&openid.assoc_handle=1250062085:OU8pMnJa2OCTFPjUyT7z:ab7d0893ae&openid.signed=mode,claimed_id,identity,return_to,response_nonce,assoc_handle&openid.sig=Rek809lzX1hQuzbQQTY8LikCkfA%3D
Django Version: 1.2 pre-alpha SVN-11422
Python Version: 2.6.0
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'ilugc.web',
 'django.contrib.comments',
 'django_openidconsumer']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django_openidconsumer.middleware.OpenIDMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.doc.XViewMiddleware',
 'django.middleware.locale.LocaleMiddleware')


Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in
get_response
  92.                 response = callback(request, *callback_args,
**callback_kwargs)
File "/usr/lib/python2.6/site-packages/django_openidconsumer/views.py" in
complete
  111.     openid_response = consumer.complete(dict(request.GET.items()))

Exception Type: TypeError at /openid/complete/
Exception Value: complete() takes exactly 3 arguments (2 given)
--
regards
kg
http://lawgon.livejournal.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: problem with openid

Malcolm Tredinnick

On Thu, 2009-08-13 at 07:22 +0530, Kenneth Gonsalves wrote:
> hi,
>
> was trying out django_openidconsumer and get this error:
>
> complete() takes exactly 3 arguments (2 given) - I cannot figure it out as this
> is the definition of complete:
>
> def complete(request, on_success=None, on_failure=None):

That's certainly one complete() function. But it's not the one in the
traceback. :-)


[...]
> Traceback:
> File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in
> get_response
>   92.                 response = callback(request, *callback_args,
> **callback_kwargs)
> File "/usr/lib/python2.6/site-packages/django_openidconsumer/views.py" in
> complete
>   111.     openid_response = consumer.complete(dict(request.GET.items()))

This is calling the complete() method on the "consumer" instance
(consumer.complete(), not complete()). So find what type of object
"consumer" is and look at the methods on that object.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: problem with openid

kenneth gonsalves

On Thursday 13 Aug 2009 10:16:19 am Malcolm Tredinnick wrote:

> On Thu, 2009-08-13 at 07:22 +0530, Kenneth Gonsalves wrote:
> > hi,
> >
> > was trying out django_openidconsumer and get this error:
> >
> > complete() takes exactly 3 arguments (2 given) - I cannot figure it out
> > as this is the definition of complete:
> >
> > def complete(request, on_success=None, on_failure=None):
>
> That's certainly one complete() function. But it's not the one in the
> traceback. :-)

thanks - apparently openid.consumer.complete is being called wrongly - that
has the correct number of arguments.
--
regards
kg
http://lawgon.livejournal.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: problem with openid

kenneth gonsalves

On Thursday 13 Aug 2009 10:47:36 am Kenneth Gonsalves wrote:

> On Thursday 13 Aug 2009 10:16:19 am Malcolm Tredinnick wrote:
> > On Thu, 2009-08-13 at 07:22 +0530, Kenneth Gonsalves wrote:
> > > hi,
> > >
> > > was trying out django_openidconsumer and get this error:
> > >
> > > complete() takes exactly 3 arguments (2 given) - I cannot figure it out
> > > as this is the definition of complete:
> > >
> > > def complete(request, on_success=None, on_failure=None):
> >
> > That's certainly one complete() function. But it's not the one in the
> > traceback. :-)
>
> thanks - apparently openid.consumer.complete is being called wrongly - that
> has the correct number of arguments.

and now it like django_openid is not maintained any more - so I give up
--
regards
kg
http://lawgon.livejournal.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---