changeset 14:9cea47dc6926

added _op_XXX=in operation added version number
author casties
date Thu, 10 Nov 2011 19:59:59 +0100
parents cf03ab908a2b
children 9fb0d4f24486
files ZDBInterfaceFolder.py version.txt
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ZDBInterfaceFolder.py	Thu Jul 07 21:04:23 2011 +0200
+++ b/ZDBInterfaceFolder.py	Thu Nov 10 19:59:59 2011 +0100
@@ -99,6 +99,12 @@
                     words.append(param + " ILIKE %s")
                     args.append("%" + word + "%")
                 wheres.append("(" + " OR ".join(words) + ")")
+            elif op == "in":
+                words = []
+                for word in val.split(" "):
+                    words.append("%s")
+                    args.append(word)
+                wheres.append(param + " in (" + ", ".join(words) + ")")
             else:
                 logging.error("getSQLquery: unknown op=%s!"%op)
                 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/version.txt	Thu Nov 10 19:59:59 2011 +0100
@@ -0,0 +1,1 @@
+1.4
\ No newline at end of file