Typo in the book:

from gluon.contrib.login_methods.dropbox_account import use_dropbox
use_dropbox(auth,filename='private/dropbox.key')
mydropbox = auth.settings.login_form


On Monday, 22 October 2012 11:39:26 UTC-5, Hassan Alnatour wrote:
>
> Dear Massimo , 
>
> i got this from the book :
>
> from gluon.contrib.login_methods.dropbox_account import use_dropbox
> use_janrain(auth,filename='private/dropbox.key')
> mydropbox = auth.settings.login_form
>
>
> http://web2py.com/books/default/chapter/29/14?search=dropbox#Dropbox-API
>
> Best Regards,
>
>
> On Mon, Oct 22, 2012 at 7:14 PM, Massimo Di Pierro 
> <massimo....@gmail.com<javascript:>
> > wrote:
>
>> You cannot use janrain with dropbox. They are different APIs and use 
>> different keys. Look into 
>>
>> gluon/contrib/login_methods/dropbox_account.py
>>
>> for examples
>>
>>
>> On Monday, 22 October 2012 08:11:13 UTC-5, Hassan Alnatour wrote:
>>>
>>> Dear ALL , 
>>>
>>> i am trying to work with dropbox API i addedthe file dropbox.key in 
>>> app/private and added the keys in it , i added the dropbox module and i am 
>>> getting this error , any help ?
>>>
>>>
>>> regards,
>>>
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "C:\web2py\gluon\restricted.**py", line 209, in restricted
>>>
>>>     exec ccode in environment
>>>   File "C:/web2py/applications/**dropbox/models/db.py" 
>>> <http://127.0.0.1:8000/admin/default/edit/dropbox/models/db.py>, line 67, 
>>> in <module>
>>>
>>>     use_janrain(auth,filename='**private/dropbox.key')
>>>
>>>   File "C:\web2py\gluon\contrib\**login_methods\rpx_account.py", line 121, 
>>> in use_janrain
>>>
>>>     domain,key = open(path,'r').read().strip().**split(':')
>>> ValueError: too many values to unpack
>>>
>>>  -- 
>>  
>>  
>>  
>>
>
>

-- 



Reply via email to