schema.py
branchstable
changeset 4132 440d383367eb
parent 3985 d5bf894fcf02
child 4181 c79135c217df
child 4212 ab6573088b4a
--- a/schema.py	Thu Dec 17 17:22:36 2009 +0100
+++ b/schema.py	Fri Dec 18 10:26:47 2009 +0100
@@ -137,8 +137,9 @@
 
 def split_expression(rqlstring):
     for expr in rqlstring.split(','):
-        for word in expr.split():
-            yield word
+        for noparen in expr.split('('):
+            for word in noparen.split():
+                yield word
 
 def normalize_expression(rqlstring):
     """normalize an rql expression to ease schema synchronization (avoid