# HG changeset patch # User Sylvain Thénault # Date 1294762132 -3600 # Node ID 7330d1fa02dde24df3d07862398c216677c85f3f # Parent 8291f5e0c9f6dba9a706f956904d639acbacff0e [cleanup] pylint detected error (among a ton of false positives due to the dynamic nature of cubicweb's code...) diff -r 8291f5e0c9f6 -r 7330d1fa02dd entity.py --- a/entity.py Tue Nov 09 17:19:39 2010 +0100 +++ b/entity.py Tue Jan 11 17:08:52 2011 +0100 @@ -697,7 +697,7 @@ 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) diff -r 8291f5e0c9f6 -r 7330d1fa02dd sobjects/notification.py --- a/sobjects/notification.py Tue Nov 09 17:19:39 2010 +0100 +++ b/sobjects/notification.py Tue Jan 11 17:08:52 2011 +0100 @@ -27,7 +27,7 @@ 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 @@ # 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 """ diff -r 8291f5e0c9f6 -r 7330d1fa02dd web/_exceptions.py --- a/web/_exceptions.py Tue Nov 09 17:19:39 2010 +0100 +++ b/web/_exceptions.py Tue Jan 11 17:08:52 2011 +0100 @@ -62,7 +62,7 @@ """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):