Package bosco :: Module editor :: Class RunFinder
[hide private]
[frames] | no frames]

Class RunFinder

source code

object --+    
         |    
Observable --+
             |
            RunFinder

Searches for runs and/or runners.

Instance Methods [hide private]
 
__init__(self, store)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_results(self, limit=False, start=0)
Returns the results of the current search.
source code
 
set_search_term(self, term)
Set the search string
source code
 
get_search_domains(self)
@return List of (key, description) pairs of valid search domains.
source code
 
set_search_domain(self, domain) source code
 
_update_query(self)
Updates the internal search query.
source code

Inherited from Observable: add_observer, remove_observer

Inherited from Observable (private): _notify_observers

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _search_config = {'run': {'title': u'Run', 'joins': True, 'ter...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, store)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

set_search_domain(self, domain)

source code 
Parameters:
  • domain - set of search domains. Valid search domains are those defined in _search_config.

Class Variable Details [hide private]

_search_config

Value:
{'run': {'title': u'Run', 'joins': True, 'terms':((Run.id, 'int'),),},\
 'sicard': {'title': u'SICard', 'joins': True, 'terms':((Run.sicard, '\
int'),),}, 'runner': {'title': u'Runner', 'joins': And(Run.sicard== SI\
Card.id, SICard.runner== Runner.id), 'terms':((Runner.given_name, 'par\
tial_string'), (Runner.surname, 'partial_string'), (Runner.number, 'ex\
act_string'), (Runner.solvnr, 'exact_string'),),}, 'team': {'title': u\
'Team', 'joins': And(Run.sicard== SICard.id, SICard.runner== Runner.id\
, Runner.team== Team.id), 'terms':((Team.name, 'partial_string'), (Tea\
...