On Jul 13, 2010, at 6:52 AM, Jean-Guy wrote:
> The :
> {{=auth.navbar('welcome',URL(r=request,c='default',c='user'))}}
Try f='user' (not c=).
>
> Not working :
>
> Traceback (most recent call last):
> File "/nigthly_build/web2py/gluon/restricted.py", line 176, in restricted
> ccode = compile2(code,layer)
> File "/nigthly_build/web2py/gluon/restricted.py", line 163, in compile2
> return compile(code.rstrip().replace('\r\n','\n')+'\n', layer, 'exec')
> File "/nigthly_build/web2py/applications/GUImdg1/views/lotns/create.html",
> line 88
>
> SyntaxError: keyword argument repeated
>
> Jonhy
>
> On 2010-07-12 18:22, mdipierro wrote:
>>
>> if in the view you use
>>
>> {{=auth.navbar('welcome',URL(r=request,c='default',c='user'))}}
>>
>> then I just added some code to trunk so that if
>>
>> auth.settings.actions_disabled.append('profile')
>>
>> The link to profile is not displayed.
>>
>> Please check it.
>>
>> On 12 Lug, 16:38, Jean-Guy <[email protected]> wrote:
>>
>>> It raises a 404 error when "modify profil" is cliked...
>>>
>>> I add those line to catch it up in the user controller:
>>>
>>> if request.args[0] == 'profile':
>>> return dict(form='you are not allowed (permission)')
>>>
>>> Maybe it could be simpler to just remove the entry in the layout??
>>>
>>> Or both...
>>>
>>> Jonhy
>>>
>>> On 2010-07-12 15:31, mdipierro wrote:
>>>
>>>
>>>> auth.settings.actions_disabled.append('profile')
>>>>
>>>
>>>> On 12 Lug, 10:29, Jean-Guy<[email protected]> wrote:
>>>>
>>>
>>>>> I get this error :
>>>>>
>>>
>>>>> AttributeError:'NoneType'object has no attribute'append'
>>>>>
>>>
>>>>> I put this :
>>>>>
>>>
>>>>> auth.settings.function_disabled.append('profile')
>>>>>
>>>
>>>>> In the db.py and in the user function...
>>>>>
>>>
>>>>> Jonhy
>>>>>
>>>
>>>>> On 2010-07-12 11:04, mdipierro wrote:
>>>>>
>>>
>>>>>> That line only links the edit profile page. To block it you need to
>>>>>> 1) remove the list (as you did) and
>>>>>> 2) auth.settings.function_disabled.append('profile')
>>>>>>
>>>
>>>>>> On 12 Lug, 09:48, Jean-Guy<[email protected]> wrote:
>>>>>>
>>>
>>>>>>> Hello,
>>>>>>>
>>>
>>>>>>> It says here :http://web2py.com/book/default/section/8/1?search=profile
>>>>>>>
>>>
>>>>>>> That this line :
>>>>>>>
>>>
>>>>>>> http://.../[app]/default/user/profile
>>>>>>>
>>>
>>>>>>> Control if the user can or not edit their profile by exposing or not the
>>>>>>> function.
>>>>>>>
>>>
>>>>>>> I remove it but the users can still edit their profiles.
>>>>>>>
>>>
>>>>>>> Do I miss something?
>>>>>>>
>>>
>>>>>>> Jonhy
>>>>>>>
>