In trunk. Thank you.

On Tuesday, 10 July 2012 00:09:50 UTC-5, Dave wrote:
>
> I figured it out...  The trunk welcome (and all default apps) are missing 
> the conditional for the reset password in the view...  Here is a patch:
>
> --- welcome/views/default/user.html     2012-07-04 17:54:18.000000000 -0400
> +++ socialjack/views/default/user.html  2012-07-10 00:57:48.000000000 -0400
> @@ -2,10 +2,12 @@
>  <h2>{{=T( request.args(0).replace('_',' ').capitalize() )}}</h2>
>  <div id="web2py_user_form">
>      {{if request.args(0)=='login':}}
> -    {{if not 'register' in auth.settings.actions_disabled:}}
> -    {{form.add_button(T('Register'),URL(args='register'))}}
> -    {{pass}}
> -    {{form.add_button(T('Lost 
> Password'),URL(args='request_reset_password'))}}
> +        {{if not 'register' in auth.settings.actions_disabled:}}
> +            {{form.add_button(T('Register'),URL(args='register'))}}
> +        {{pass}}
> +        {{if not 'request_reset_password' in 
> auth.settings.actions_disabled:}}
> +            {{form.add_button(T('Lost 
> Password'),URL(args='request_reset_password'))}}
> +        {{pass}}
>      {{pass}}
>      {{=form}}
>  </div>
>
> On Tuesday, July 10, 2012 12:27:39 AM UTC-4, Dave wrote:
>>
>> I am running latest trunk.
>>
>> Added the private/janrain.key file as prescribed with the domain:key
>>
>> When navigating to the /default/user/login page I get a 500 server error. 
>>  It appears that the reset_password button is trying to be rendered even 
>> though using janrain should disable it.  I tried manually disabling as well.
>>
>> Any ideas?
>>
>> <type 'exceptions.AttributeError'>('IFRAME' object has no attribute 
>> 'add_button')
>>
>> 70.
>> 71.
>> 72.
>> 73.
>> 74.
>> 75.
>> 76.
>> 77.
>> 78.
>> 79.
>>
>> 80.
>> 81.
>> 82.
>> 83.
>> 84.
>> 85.
>> 86.
>> 87.
>> 88.
>> 89.
>>
>> response.write('</h2>\n<div id="web2py_user_form">\n    ', escape=False)
>> if request.args(0)=='login':
>>     response.write('\n    ', escape=False)
>>     if not 'register' in auth.settings.actions_disabled:
>>         response.write('\n    ', escape=False)
>>         form.add_button(T('Register'),URL(args='register'))
>>         response.write('\n    ', escape=False)
>>         pass
>>     response.write('\n    ', escape=False)
>>     form.add_button(T('Lost Password'),URL(args='request_reset_password'))
>>
>>     response.write('\n    ', escape=False)
>>     pass
>> response.write('\n    ', escape=False)
>> response.write(form)
>>
>>

Reply via email to