[Checkins] SVN: Products.CMFDefault/trunk/Products/CMFDefault/RegistrationTool.py - removed deprecated fallback
Yvo Schubbe
y.2010 at wcm-solutions.de
Mon Aug 2 05:50:38 EDT 2010
Log message for revision 115372:
- removed deprecated fallback
Changed:
UU Products.CMFDefault/trunk/Products/CMFDefault/RegistrationTool.py
-=-
Modified: Products.CMFDefault/trunk/Products/CMFDefault/RegistrationTool.py
===================================================================
--- Products.CMFDefault/trunk/Products/CMFDefault/RegistrationTool.py 2010-08-02 09:41:36 UTC (rev 115371)
+++ Products.CMFDefault/trunk/Products/CMFDefault/RegistrationTool.py 2010-08-02 09:50:38 UTC (rev 115372)
@@ -11,12 +11,8 @@
#
##############################################################################
""" CMFDefault portal_registration tool.
-
-$Id$
"""
-from warnings import warn
-
from AccessControl.requestmethod import postonly
from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_base
@@ -159,13 +155,8 @@
def registeredNotify(self, new_member_id, password=None, REQUEST=None):
""" Handle mailing the registration / welcome message.
"""
- # XXX: this method violates the rules for tools/utilities:
- # it depends on a non-utility tool and uses self.REQUEST
if REQUEST is None:
- REQUEST = self.REQUEST
- warn("registeredNotify should be called with 'REQUEST' as third "
- "argument. The BBB code will be removed in CMF 2.3.",
- DeprecationWarning, stacklevel=2)
+ raise ValueError(u"'REQUEST' argument is missing.")
membership = getToolByName( self, 'portal_membership' )
member = membership.getMemberById( new_member_id )
Property changes on: Products.CMFDefault/trunk/Products/CMFDefault/RegistrationTool.py
___________________________________________________________________
Deleted: svn:keywords
- Author Date Id Revision
More information about the checkins
mailing list