Commit 52b5e4a8 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[cleanup] pylint detected error (among a ton of false positives due to the...

[cleanup] pylint detected error (among a ton of false positives due to the dynamic nature of cubicweb's code...)

--HG--
branch : stable
parent 8291f5e0c9f6
......@@ -697,7 +697,7 @@ class Entity(AppObject):
if not self.has_eid():
if entities:
return []
return self.empty_rset()
return self._cw.empty_rset()
rql = self.cw_related_rql(rtype, role)
rset = self._cw.execute(rql, {'x': self.eid})
self.cw_set_relation_cache(rtype, role, rset)
......
......@@ -27,7 +27,7 @@ from logilab.common.deprecation import class_renamed, class_moved, deprecated
from cubicweb.selectors import yes
from cubicweb.view import Component
from cubicweb.mail import NotificationView, SkipEmail
from cubicweb.mail import NotificationView as BaseNotificationView, SkipEmail
from cubicweb.server.hook import SendMailOp
......@@ -59,7 +59,7 @@ class RecipientsFinder(Component):
# abstract or deactivated notification views and mixin ########################
class NotificationView(NotificationView):
class NotificationView(BaseNotificationView):
"""overriden to delay actual sending of mails to a commit operation by
default
"""
......
......@@ -62,7 +62,7 @@ class RemoteCallFailed(RequestError):
"""raised when a json remote call fails
"""
def __init__(self, reason=''):
super(RequestError, self).__init__()
super(RemoteCallFailed, self).__init__()
self.reason = reason
def dumps(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment