If the user is logged in, how would I change the "profile" word to 
"registration page" or "registration info". Which is (to me) more in line 
with how I see the info. 

On Monday, June 6, 2016 at 9:59:12 PM UTC-4, Anthony wrote:
>
> On Monday, June 6, 2016 at 2:45:00 PM UTC-4, Ron Chatterjee wrote:
>>
>> 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"
>>
>
> Not sure how/why you are getting that error (hard to say without seeing 
> all the code and the traceback). Of course, though, it will only work if 
> the "register" item is in the navbar (which will only be the case if the 
> user is *not* logged in).
>  
>
>> So, I am guessing, it looks for the work (pattern) 'register' and change 
>> that to the 'registration page'.
>>
>
> Not exactly. It looks for the element whose _href attribute includes 
> "register" in the URL (which is an anchor tag), and then it changes the 
> first component of that element (which is the text displayed within the 
> anchor tag).
>
> 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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to