[CMF-checkins] CVS: Products/CMFDefault/skins/zpt_generic -
registered_notify.py:1.1 registered_notify_template.pt:1.3
registered_notify_control.py:NONE
Yvo Schubbe
y.2004_ at wcm-solutions.de
Tue Jul 6 18:35:19 EDT 2004
Update of /cvs-repository/Products/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv21421/CMFDefault/skins/zpt_generic
Modified Files:
registered_notify_template.pt
Added Files:
registered_notify.py
Removed Files:
registered_notify_control.py
Log Message:
- renamed registered_notify_control.py to registered_notify.py: this is no controller
=== Added File Products/CMFDefault/skins/zpt_generic/registered_notify.py ===
##parameters=member=None, password='baz', email='foo at example.org', **kw
##
from ZTUtils import make_query
from Products.CMFCore.utils import getToolByName
mtool = getToolByName(script, 'portal_membership')
ptool = getToolByName(script, 'portal_properties')
utool = getToolByName(script, 'portal_url')
portal_url = utool()
member_id = member and member.getId() or 'foo'
options = {}
options['member_email'] = '<%s>' % email
options['email_from_name'] = ptool.getProperty('email_from_name')
options['email_from_address'] = '<%s>' % ptool.getProperty(
'email_from_address')
options['portal_title'] = ptool.title()
options['portal_description'] = ptool.getProperty('description')
options['portal_url'] = '<%s>' % portal_url
options['member_id'] = member_id
options['password'] = password
target = mtool.getActionInfo('user/logged_in')['url']
query = make_query(__ac_name=member_id, __ac_password=password)
options['login_url'] = '<%s?%s>' % (target, query)
return options
=== Products/CMFDefault/skins/zpt_generic/registered_notify_template.pt 1.2 => 1.3 ===
--- Products/CMFDefault/skins/zpt_generic/registered_notify_template.pt:1.2 Tue Jan 20 17:20:11 2004
+++ Products/CMFDefault/skins/zpt_generic/registered_notify_template.pt Tue Jul 6 18:35:18 2004
@@ -1,5 +1,4 @@
-<tal:page xmlns:tal="http://xml.zope.org/namespaces/tal"
- tal:define="control python: here.registered_notify_control(**options)"
+<tal:page tal:define="control python: context.registered_notify(**options)"
><div tal:omit-tag="" i18n:domain="cmf_default"
>Subject: <tal:span i18n:translate=""><tal:span i18n:name="portal_title"
tal:content="control/portal_title"
=== Removed File Products/CMFDefault/skins/zpt_generic/registered_notify_control.py ===
More information about the CMF-checkins
mailing list