[CMF-checkins] SVN: CMF/trunk/CMFDefault/skins/zpt_ - removed
dependency on portal_status_message
Yvo Schubbe
y.2006_ at wcm-solutions.de
Fri Feb 24 15:18:28 EST 2006
Log message for revision 41779:
- removed dependency on portal_status_message
Changed:
U CMF/trunk/CMFDefault/skins/zpt_control/members_add_control.py
U CMF/trunk/CMFDefault/skins/zpt_generic/join_form.py
-=-
Modified: CMF/trunk/CMFDefault/skins/zpt_control/members_add_control.py
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_control/members_add_control.py 2006-02-24 17:18:40 UTC (rev 41778)
+++ CMF/trunk/CMFDefault/skins/zpt_control/members_add_control.py 2006-02-24 20:18:28 UTC (rev 41779)
@@ -21,4 +21,4 @@
if mtool.checkPermission(ManageUsers, mtool):
return context.setStatus(True, _(u'Member registered.'))
else:
- return context.setStatus(False, _(u'Success!'))
+ return context.setStatus(False, _(u'Success!'), is_newmember=True)
Modified: CMF/trunk/CMFDefault/skins/zpt_generic/join_form.py
===================================================================
--- CMF/trunk/CMFDefault/skins/zpt_generic/join_form.py 2006-02-24 17:18:40 UTC (rev 41778)
+++ CMF/trunk/CMFDefault/skins/zpt_generic/join_form.py 2006-02-24 20:18:28 UTC (rev 41779)
@@ -29,7 +29,7 @@
options = {}
-if context.REQUEST.get('portal_status_message', '') == _(u'Success!'):
+if context.REQUEST.get('is_newmember', False) == True:
is_anon = False
is_newmember = True
More information about the CMF-checkins
mailing list