Changeset 6553


Ignore:
Timestamp:
24 Jul 2011, 02:53:00 (13 years ago)
Author:
uli
Message:

Remove the search method from AccessCodeBatch?. If I rememember
correctly, it is not used and makes not much sense anymore, as we
switched to catalog-based access code lookup.

File:
1 edited

Legend:

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

    r6542 r6553  
    240240        return os.path.basename(csv_path)
    241241
    242     def search(self, searchterm, searchtype):
    243         if searchtype == 'serial':
    244             if len(self._entries) < searchterm + 1:
    245                 return []
    246             return [self._entries[searchterm]]
    247         if searchtype == 'pin':
    248             try:
    249                 entry = self.getAccessCode(searchterm)
    250                 return [entry]
    251             except KeyError:
    252                 return []
    253 
    254242@grok.subscribe(IAccessCodeBatch, grok.IObjectAddedEvent)
    255243def handle_batch_added(batch, event):
Note: See TracChangeset for help on using the changeset viewer.