← Back to team overview

team4alfanous team mailing list archive

[Branch ~team4alfanous/alfanous/alfanous-git] Rev 403: Spaces in Exception Operation "-"; issue #70

 

------------------------------------------------------------
revno: 403
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Tue 2012-10-16 08:05:36 +0100
message:
  Spaces in Exception Operation "-"; issue #70
modified:
  src/alfanous/QueryProcessing.py


--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git

Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous/QueryProcessing.py'
--- src/alfanous/QueryProcessing.py	2012-10-16 06:57:45 +0000
+++ src/alfanous/QueryProcessing.py	2012-10-16 07:05:36 +0000
@@ -216,7 +216,7 @@
 
     operatorAnd = Group( ( generalUnit + Suppress( White() ) + Suppress( andToken ) + Suppress( White() ) + expression ) | ( generalUnit + Suppress( Literal( u"+" ) ) + expression ) ).setResultsName( "And" )
     operatorOr = Group( ( generalUnit + Suppress( White() ) + Suppress( orToken ) + Suppress( White() ) + expression ) | ( generalUnit + Suppress( Literal( u"|" ) ) + expression ) ).setResultsName( "Or" )
-    operatorAndNot = Group( ( unit + Suppress( White() ) + Suppress( andNotToken ) + Suppress( White() ) + unit ) | ( unit + Suppress( Literal( u"-" ) ) + Suppress( White() ) + unit ) ).setResultsName( "AndNot" )
+    operatorAndNot = Group( ( unit + Suppress( White() ) + Suppress( andNotToken ) + Suppress( White() ) + expression ) | ( unit + Suppress( Literal( u"-" ) ) + expression ) ).setResultsName( "AndNot" )