[PATCH 08 of 18 Nosylist cube] [autopep8] E241 - Fix extraneous whitespace around keywords

Nsukami Patrick ndkpatt at gmail.com
Thu Jun 13 12:02:06 CEST 2019


# HG changeset patch
# User Nsukami Patrick <ndkpatt at gmail dot com>
# Date 1560419488 0
#      Thu Jun 13 09:51:28 2019 +0000
# Node ID 666b6dfb1b02920ca6198ee0eb20067a09c17798
# Parent  6180e2e6f94a070d760151e75e2cb93fd8718ebd
[autopep8] E241 - Fix extraneous whitespace around keywords

diff --git a/cubicweb_nosylist/schema.py b/cubicweb_nosylist/schema.py
--- a/cubicweb_nosylist/schema.py
+++ b/cubicweb_nosylist/schema.py
@@ -12,8 +12,8 @@
 class interested_in(RelationType):
     """relation to explicitly note interest about something"""
     __permissions__ = {
-        'read':   ('managers', 'users'),
-        'add':    ('managers', RRQLExpression('U has_update_permission S', 'S'),),
+        'read': ('managers', 'users'),
+        'add': ('managers', RRQLExpression('U has_update_permission S', 'S'),),
         'delete': ('managers', RRQLExpression('U has_update_permission S', 'S'),),
     }
     subject = 'CWUser'
@@ -21,8 +21,8 @@
 class nosy_list(RelationType):
     """relation handled internaly to control who will be notified"""
     __permissions__ = {
-        'read':   ('managers', 'users'),
-        'add':    ('managers',),
+        'read': ('managers', 'users'),
+        'add': ('managers',),
         # we need to delete it from the ui (for instance to unregister from a
         # ticket when user is interested in a project)
         'delete': ('managers', RRQLExpression('U has_update_permission O', 'O')),



More information about the cubicweb-devel mailing list