On Tue, 2009-06-09 at 10:00 +0000, Alexander Belchenko wrote:
> I'm not familiar with bzr-search API unfortunately. Can you give me a
> template for the testing script?
For more, look at bzrlib.plugins.search.commands.cmd_search.
trans = get_transport(directory)
index = bzrlib.plugins.search.index.open_index_url(trans.base)
# query_list might be ['foo', 'bar']
query = [(query_item,) for query_item in query_list]
index._branch.lock_read()
print list(index.search(query))
So essentially, I'm asking for a value of query_list that I can use as
python source.
On Tue, 2009-06-09 at 10:00 +0000, Alexander Belchenko wrote:
> I'm not familiar with bzr-search API unfortunately. Can you give me a
> template for the testing script?
For more, look at bzrlib. plugins. search. commands. cmd_search.
trans = get_transport( directory) plugins. search. index.open_ index_url( trans.base) branch. lock_read( ) search( query))
index = bzrlib.
# query_list might be ['foo', 'bar']
query = [(query_item,) for query_item in query_list]
index._
print list(index.
So essentially, I'm asking for a value of query_list that I can use as
python source.
-Rob