Ignore:
Timestamp:
8 Mar 2012, 19:00:51 (13 years ago)
Author:
uli
Message:

Rename all non-locales stuff from sirp to kofa.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/breadcrumbs.py

    r7700 r7811  
    2323from zope.publisher.browser import TestRequest
    2424
    25 from waeup.sirp.interfaces import (
     25from waeup.kofa.interfaces import (
    2626    IConfigurationContainer, ISessionConfiguration)
    27 from waeup.sirp.interfaces import MessageFactory as _
    28 from waeup.sirp.browser import interfaces
    29 from waeup.sirp.browser.interfaces import (IBreadcrumb,
     27from waeup.kofa.interfaces import MessageFactory as _
     28from waeup.kofa.browser import interfaces
     29from waeup.kofa.browser.interfaces import (IBreadcrumb,
    3030    IBreadcrumbIgnorable, IBreadcrumbContainer)
    31        
     31
    3232class Breadcrumb(grok.Adapter):
    3333    """A most general breadcrumb generator.
    3434    """
    3535    grok.provides(IBreadcrumb)
    36     grok.context(interfaces.ISIRPObject)
     36    grok.context(interfaces.IKOFAObject)
    3737    grok.name('index')
    3838
     
    4242    parent_viewname = 'index'
    4343    viewname = 'index'
    44    
     44
    4545    def __init__(self, context):
    4646        """Turn a context into a breadcrumb.
     
    5757            return self.context.title
    5858        if hasattr(self.context, 'name'):
    59             return self.context.name           
     59            return self.context.name
    6060        return None
    6161
     
    151151class DataCenterBreadcrumb(Breadcrumb):
    152152    """A breadcrumb for data centers.
    153     """ 
     153    """
    154154    grok.context(interfaces.IDataCenter)
    155155    title = _(u'Data Center')
     
    160160    """
    161161    grok.context(interfaces.IFaculty)
    162    
     162
    163163    @property
    164164    def title(self):
     
    169169    """
    170170    grok.context(interfaces.IDepartment)
    171    
     171
    172172class CourseBreadcrumb(FacultyBreadcrumb):
    173173    """A breadcrumb for courses.
    174174    """
    175     grok.context(interfaces.ICourse)   
    176    
     175    grok.context(interfaces.ICourse)
     176
    177177class CertificateBreadcrumb(FacultyBreadcrumb):
    178178    """A breadcrumb for certificates.
    179179    """
    180     grok.context(interfaces.ICertificate)       
     180    grok.context(interfaces.ICertificate)
    181181
    182182class CoursesContainerBreadcrumb(Breadcrumb):
     
    245245
    246246    _breadcrumbs = None
    247    
     247
    248248    def __init__(self, context):
    249249        self.context = context
Note: See TracChangeset for help on using the changeset viewer.