| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
cMatchProvider --+
|
cMatchProvider_SQL2
Match provider which searches matches
in possibly several database tables.
queries:
- a list of unicode strings
- each string is a query
- each string must contain: "... WHERE <column> %(fragment_condition)s ..."
- each string can contain in the where clause: "... %(<ctxt_key1>)s ..."
- each query must return (data, list_label, field_label)
context definitions to be used in the queries, example:
{'ctxt_key1': {'where_part': 'AND country = %(country)s', 'placeholder': 'country'}}
client code using .set_context() must use the 'placeholder':
<phrasewheel>/<match provider>.set_context('country', 'Germany')
_SQL_data2match:
SQL to retrieve a match by, say, primary key
wherein the only keyword argument is 'pk'
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Class Variables | |
|
Inherited from |
| Properties | |
|
Inherited from Inherited from |
| Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Return all items.
|
Return matches for aFragment at start of phrases.
|
Return matches for aFragment as a true substring.
|
Return matches for aFragment at start of words inside phrases.
|
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Jun 25 03:58:10 2012 | http://epydoc.sourceforge.net |