[PATCH 17 of 18 Nosylist cube] [autopep8] W504 - Fix line break after binary operator

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


# HG changeset patch
# User Nsukami Patrick <ndkpatt at gmail dot com>
# Date 1560419495 0
#      Thu Jun 13 09:51:35 2019 +0000
# Node ID 43d2a90253fbc0831f10eb3966a23ce89e52ddf4
# Parent  50f92bc5e7a1f16a476b99c9c9eff75b65d433cb
[autopep8] W504 - Fix line break after binary operator

diff --git a/cubicweb_nosylist/views.py b/cubicweb_nosylist/views.py
--- a/cubicweb_nosylist/views.py
+++ b/cubicweb_nosylist/views.py
@@ -41,8 +41,8 @@
     """component to control explicit registration for notification on an entity
     (eg interested_in relation)"""
     __regid__ = 'notification'
-    __select__ = (component.EntityCtxComponent.__select__ &
-                  relation_possible('interested_in', 'object', 'CWUser',
+    __select__ = (component.EntityCtxComponent.__select__
+                  & relation_possible('interested_in', 'object', 'CWUser',
                                     action='add'))
     context = 'ctxtoolbar'
 
@@ -165,10 +165,10 @@
 
 class CWUserManageNotificationsView(StartupView):
     __regid__ = 'notifications'
-    __select__ = (one_line_rset() &
-                  (match_user_groups('users') & logged_user_in_rset())
-                  |
-                  (match_user_groups('managers') & is_instance('CWUser'))
+    __select__ = (one_line_rset()
+                  & (match_user_groups('users') & logged_user_in_rset())
+
+                  | (match_user_groups('managers') & is_instance('CWUser'))
                   )
 
     @property
@@ -206,8 +206,8 @@
 
 
 class INosyListManageNotificationsAction(CWUserManageNotificationsAction):
-    __select__ = (match_user_groups('managers') & one_line_rset() &
-                  relation_possible('nosy_list', 'subject', 'CWUser', action='add'))
+    __select__ = (match_user_groups('managers') & one_line_rset()
+                  & relation_possible('nosy_list', 'subject', 'CWUser', action='add'))
 
 
 class OneLineUserInterestedInView(EntityView):
@@ -238,8 +238,8 @@
 
 class INosyListManageNotificationsView(EntityView):
     __regid__ = 'notifications'
-    __select__ = (match_user_groups('managers') & one_line_rset() &
-                  relation_possible('nosy_list', 'subject', 'CWUser', action='add'))
+    __select__ = (match_user_groups('managers') & one_line_rset()
+                  & relation_possible('nosy_list', 'subject', 'CWUser', action='add'))
 
     @property
     def title(self):
@@ -321,8 +321,8 @@
 
 class InterestedInForm(forms.EntityFieldsForm):
     __regid__ = 'interested_in_form'
-    __select__ = (match_user_groups('managers') &
-                  relation_possible('interested_in', 'object', 'CWUser',
+    __select__ = (match_user_groups('managers')
+                  & relation_possible('interested_in', 'object', 'CWUser',
                                     action='add'))
 
     cwtarget = 'eformframe'



More information about the cubicweb-devel mailing list