- Timestamp:
- 18 Nov 2014, 11:37:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/catalog.py
r11958 r11985 29 29 from waeup.ikoba.customers.interfaces import ICustomer 30 30 31 31 32 class CustomersCatalog(grok.Indexes): 32 33 """A catalog for customers. … … 41 42 reg_number = index.Field(attribute='reg_number') 42 43 state = index.Field(attribute='state') 44 43 45 44 46 class CustomerQueryResultItem(object): … … 56 58 self.state = context.state 57 59 self.translated_state = context.translated_state 60 58 61 59 62 def search(query=None, searchtype=None, view=None): … … 82 85 return hitlist 83 86 87 84 88 class SimpleFieldSearch(object): 85 89 """A programmatic (no UI required) search. … … 93 97 """ 94 98 catalog_name = 'customers_catalog' 99 95 100 def __call__(self, **kw): 96 101 """Search customers catalog programmatically. … … 106 111 simple_search = SimpleFieldSearch() 107 112 113 108 114 class CustomersQuery(FilteredCatalogQueryBase): 109 115 """Query customers in a site. See waeup.ikoba.catalog for more info. 110 116 """ 111 117 cat_name = 'customers_catalog' 112 defaults = dict(customer_id=None) # make sure we get all studs by default118 defaults = dict(customer_id=None) # make sure we get all studs by default
Note: See TracChangeset for help on using the changeset viewer.