Ignore:
Timestamp:
22 May 2011, 16:43:29 (14 years ago)
Author:
uli
Message:

Remove whitespaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/layout.py

    r6132 r6193  
    88from z3c.flashmessage.interfaces import IMessageSource, IMessageReceiver
    99from zope.component import getUtility, queryUtility, ComponentLookupError
     10from zope.formlib.utility import setUpWidgets
    1011from zope.interface import Interface
    11 try:
    12     from zope.site.hooks import getSite
    13 except ImportError:
    14     # BBB
    15     from zope.app.component.hooks import getSite
    16 from zope.formlib.utility import setUpWidgets   
     12from zope.site.hooks import getSite
    1713from waeup.sirp.interfaces import IWAeUPObject
    1814from waeup.sirp.browser.interfaces import ITheme
     
    6258    title = u'' # What appears in the content title...
    6359    pnav = 0 # Primary navigation index...
    64    
     60
    6561    def application_url(self, name=None):
    6662        """Return the URL of the nearest site.
     
    8480    """
    8581    grok.baseclass()
    86    
     82
    8783class WAeUPPage(Page):
    8884    """A megrok.layout page with additional methods.
     
    10197    grok.baseclass()
    10298    template = default_waeup_edit_template
    103    
     99
    104100    def setUpWidgets(self,ignore_request=False):
    105101        super(WAeUPEditFormPage,self).setUpWidgets(ignore_request)
     
    126122    def site(self):
    127123        return grok.getSite()
    128    
     124
    129125    def getAppTitle(self):
    130126        return getattr(grok.getSite(), 'name', u'Sample University')
    131        
     127
    132128    def isAuthenticated(self):
    133129        """Return True if the calling user is authenticated.
     
    135131        usertitle = self.request.principal.title
    136132        return usertitle != 'Unauthenticated User'
    137    
     133
    138134    def getUserTitle(self):
    139135        """Return principal title of current user.
     
    171167            resource.need()
    172168        return
     169
Note: See TracChangeset for help on using the changeset viewer.