Bugfix : la connexion Solr peut se volatiliser plus vite que le hook de transaction…
[Plinn.git] / skins / custom_generic / expanded_title.py
1 ## Script (Python) "expanded_title"
2 ##parameters=
3 ##title=Build title which includes site title
4 ##
5 site_title = context.portal_url.getPortalObject().title_or_id()
6 page_title = context.Title() or context.getId()
7
8 if page_title != site_title:
9 page_title = site_title + " : " + page_title
10
11 return page_title