Ignore:
Timestamp:
18 Nov 2014, 11:37:28 (10 years ago)
Author:
Henrik Bettermann
Message:

pep8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/catalog.py

    r11958 r11985  
    2929from waeup.ikoba.customers.interfaces import ICustomer
    3030
     31
    3132class CustomersCatalog(grok.Indexes):
    3233    """A catalog for customers.
     
    4142    reg_number = index.Field(attribute='reg_number')
    4243    state = index.Field(attribute='state')
     44
    4345
    4446class CustomerQueryResultItem(object):
     
    5658        self.state = context.state
    5759        self.translated_state = context.translated_state
     60
    5861
    5962def search(query=None, searchtype=None, view=None):
     
    8285    return hitlist
    8386
     87
    8488class SimpleFieldSearch(object):
    8589    """A programmatic (no UI required) search.
     
    9397    """
    9498    catalog_name = 'customers_catalog'
     99
    95100    def __call__(self, **kw):
    96101        """Search customers catalog programmatically.
     
    106111simple_search = SimpleFieldSearch()
    107112
     113
    108114class CustomersQuery(FilteredCatalogQueryBase):
    109115    """Query customers in a site. See waeup.ikoba.catalog for more info.
    110116    """
    111117    cat_name = 'customers_catalog'
    112     defaults = dict(customer_id=None) # make sure we get all studs by default
     118    defaults = dict(customer_id=None)  # make sure we get all studs by default
Note: See TracChangeset for help on using the changeset viewer.