Ignore:
Timestamp:
12 Mar 2015, 20:19:23 (10 years ago)
Author:
uli
Message:

pep8, pyflakes.

File:
1 edited

Legend:

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

    r12754 r12755  
    2121from grokcore.view.interfaces import IGrokView
    2222from zope.component import getAdapter
    23 from zope.publisher.browser import TestRequest
    24 
    25 from waeup.ikoba.interfaces import (
    26     IConfigurationContainer, IExportJobContainer)
     23
     24from waeup.ikoba.interfaces import IConfigurationContainer
    2725from waeup.ikoba.interfaces import MessageFactory as _
    2826from waeup.ikoba.browser.interfaces import (
     
    3432from waeup.ikoba.reports import IReportsContainer
    3533
     34
    3635class Breadcrumb(grok.Adapter):
    3736    """A most general breadcrumb generator.
     
    8887        return self.viewname
    8988
     89
    9090class CompanyBreadcrumb(Breadcrumb):
    9191    """A breadcrumb for company index pages.
     
    9494    title = _(u'Home')
    9595    parent = None
     96
    9697
    9798class PortalSettingsBreadcrumb(Breadcrumb):
     
    114115        return (self.context, 'administration')
    115116
     117
    116118class AdministrationBreadcrumb(Breadcrumb):
    117119    """A breadcrumb for administration areas of Company instances.
     
    122124    viewname = 'administration'
    123125
     126
    124127class ConfigurationContainerBreadcrumb(Breadcrumb):
    125128    """A breadcrumb for the configuration container.
     
    129132    parent_viewname = 'administration'
    130133
     134
    131135class UsersContainerBreadcrumb(Breadcrumb):
    132136    """A breadcrumb for user containers.
     
    136140    parent_viewname = 'administration'
    137141
     142
    138143class DataCenterBreadcrumb(Breadcrumb):
    139144    """A breadcrumb for data centers.
     
    142147    title = _(u'Data Center')
    143148    parent_viewname = 'administration'
     149
    144150
    145151class ReportsBreadcrumb(Breadcrumb):
     
    187193        pass
    188194    return getAdapter(obj, IBreadcrumb, name='index')
     195
    189196
    190197def getBreadcrumbList(obj, viewname):
     
    205212    return result
    206213
     214
    207215def getBreadcrumbListForView(view):
    208216    """Get an ordered list of breadcrumbs a certain view.
     
    214222    return getBreadcrumbList(context, viewname)
    215223
     224
    216225class BreadcrumbContainer(grok.Adapter):
    217226    """An adapter to adapt grok views to list of breadcrumbs.
Note: See TracChangeset for help on using the changeset viewer.