Title or capitalize names

19 views
Skip to first unread message

Maurice Waka

unread,
Jan 28, 2021, 8:05:41 AM1/28/21
to web2py-users
Hello,
How do i use title() or capitalize() on these:
{{"%(first_name)s %(last_name)s (%(nickname)s)" % post.author}}

I tried e.g.

%(first_name.title())s
%(first_name).title()s

None working
Please help

Massimiliano

unread,
Jan 28, 2021, 9:25:05 AM1/28/21
to web...@googlegroups.com
{{ post.author.first_name.title() }} ... etc..
 should work

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/2d456e41-65b8-46d2-bcba-29f72be606aan%40googlegroups.com.


--
Massimiliano

Maurice Waka

unread,
Jan 28, 2021, 11:14:06 AM1/28/21
to web...@googlegroups.com
Cool.
That actually works!
Regards 

Reply all
Reply to author
Forward
0 new messages