Changeset 4592


Ignore:
Timestamp:
1 Jan 2010, 15:50:15 (15 years ago)
Author:
uli
Message:
  • Add title attribute for WAeUP pages to render headings of content areas.
  • Site layout now provides a method to get the current user title.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/browser/layout.py

    r4584 r4592  
    2424    piece can be removed.
    2525    """
     26    title = u'' # What appears in the content title...
     27   
    2628    def application_url(self, name=None):
    2729        """Return the URL of the nearest site.
     
    9395    grok.context(IWAeUPObject)
    9496
     97    def getUserTitle(self):
     98        usertitle = self.request.principal.title
     99        if usertitle == 'Unauthenticated User':
     100            return u'Login'
     101        return usertitle
     102   
    95103    def update(self):
    96104        yui.reset_fonts_grids.need()
    97105        yui.sam.need()
    98         yui.tabview.need()
    99         yui.layout.need()
    100 
Note: See TracChangeset for help on using the changeset viewer.