I get this error.

EOL while scanning string literal: <string>, line 1, pos 68

While typing 
navbar.element(_href=re.compile('register'))[0] = 'Registration Page"


So, I am guessing, it looks for the work (pattern) 'register' and change 
that to the 'registration page'. I printed out the navbar but I don't see 
the 'profile' anywhere. 


On Wednesday, June 1, 2016 at 12:12:31 PM UTC-4, Anthony wrote:
>
> You'd have to use server-side DOM manipulation:
>
> import re
> navbar = auth.navbar()
> navbar.element(_href=re.compile('register'))[0] = 'Registration Page"
>
> Or just take Massimo's advice and make a custom navbar.
>
> Anthony
>
> On Wednesday, June 1, 2016 at 11:45:13 AM UTC-4, [email protected] 
> <javascript:> wrote:
>>
>> Thank you Anthony. See attached. Just want to change the wording of it 
>> but keep everything same and working the way they are.
>>
>>
>>
>> On Wednesday, June 1, 2016 at 7:55:19 AM UTC-4, Anthony wrote:
>>>
>>> On Wednesday, June 1, 2016 at 2:13:45 AM UTC-4, [email protected] 
>>> wrote:
>>>>
>>>> Yes. you are right. Just curious to know where Profile is defined like 
>>>> in which html file? I can't seem to find that.
>>>>
>>>
>>> Do you want to know where the auth dropdown menu is defined, or where 
>>> the actual Profile page is defined? Assuming you are talking about the 
>>> scaffolding application, the menu is created by auth.navbar() and is 
>>> included in layout.html. All of the Auth actions are handled via the user() 
>>> function in the default.py controller (and the associated 
>>> /views/default/user.html view).
>>>
>>> Note, it doesn't make sense to change "Profile" to "Register" in the 
>>> navbar. The way it works now is if the user is not logged in, the navbar 
>>> includes a link to "Register", and if the user is logged in, the navbar 
>>> instead includes a link to the "Profile" action (doesn't make sense for a 
>>> logged in user to register). If you do not want to expose the "profile" 
>>> action at all, you can instead add it to auth.settings.actions_disabled.
>>>
>>> Anthony
>>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to