query: Add implementation of regex match operator
authorMichael Hanselmann <hansmi@google.com>
Wed, 30 Mar 2011 16:38:44 +0000 (18:38 +0200)
committerMichael Hanselmann <hansmi@google.com>
Tue, 5 Apr 2011 12:20:38 +0000 (14:20 +0200)
commit23d0a608a42a56e37f8677a490cb0315b823d201
treec167c3ed925bc232d7ca0362fe5368f367071720
parenta7761c1205e3a8a627022f7c41d1950b1ef913c9
query: Add implementation of regex match operator

So far this operator was not implemented. This patch adds an additional
value preparation function to the function table for binary operators,
used to compile the regular expression. Unittests are included.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
lib/query.py
test/ganeti.query_unittest.py