[undo view] fix wrong set operator
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 27 Feb 2012 11:53:24 +0100
changeset 8273 6c7cad317e60
parent 8272 18893bb969d2
child 8274 aedb32d324ab
[undo view] fix wrong set operator
web/views/undohistory.py
--- a/web/views/undohistory.py	Mon Feb 27 11:51:09 2012 +0100
+++ b/web/views/undohistory.py	Mon Feb 27 11:53:24 2012 +0100
@@ -41,7 +41,7 @@
     # XXX FIXME : this selector should be completed to allow selection on the
     # entity or relation types and public / private.
     def __init__(self, action_type='CUDAR'):
-        assert not set(action_type) & set('CUDAR')
+        assert not set(action_type) - set('CUDAR')
         self.action_type = action_type
 
     def __str__(self):