Commit 6f854cae authored by Fabien Morin's avatar Fabien Morin

use a custom variable 'anonymous_module' to know wich module the annonymous application belongs to

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23591 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 479e7501
...@@ -69,6 +69,10 @@ if not context.isCaptchaTextCorrect(captcha_text):\n ...@@ -69,6 +69,10 @@ if not context.isCaptchaTextCorrect(captcha_text):\n
module = context.getDefaultModule(portal_type=\'Subscription Form\')\n module = context.getDefaultModule(portal_type=\'Subscription Form\')\n
form = module.newContent(portal_type=\'Subscription Form\')\n form = module.newContent(portal_type=\'Subscription Form\')\n
\n \n
# set in the request wich module is used for this annonymous application\n
# this is use in PAS\n
request.set(\'anonymous_module\', module.getId())\n
\n
# XXX this group is not good for a form\n # XXX this group is not good for a form\n
# but it\'s used for security on subscription form module\n # but it\'s used for security on subscription form module\n
form.setGroup(\'dgid/di/cge\')\n form.setGroup(\'dgid/di/cge\')\n
......
293 295
\ No newline at end of file \ No newline at end of file
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