From 6f854caef4dfff9362d86a18e23b76bb88070b99 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Fri, 12 Sep 2008 14:19:53 +0000 Subject: [PATCH] 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 --- .../SkinTemplateItem/portal_skins/erp5_egov/EGov_register.xml | 4 ++++ bt5/erp5_egov/bt/revision | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_register.xml b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_register.xml index 23b55a75a8..adb63f3eb0 100644 --- a/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_register.xml +++ b/bt5/erp5_egov/SkinTemplateItem/portal_skins/erp5_egov/EGov_register.xml @@ -69,6 +69,10 @@ if not context.isCaptchaTextCorrect(captcha_text):\n module = context.getDefaultModule(portal_type=\'Subscription Form\')\n form = module.newContent(portal_type=\'Subscription Form\')\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 # but it\'s used for security on subscription form module\n form.setGroup(\'dgid/di/cge\')\n diff --git a/bt5/erp5_egov/bt/revision b/bt5/erp5_egov/bt/revision index 8975db9a05..3d9983adab 100644 --- a/bt5/erp5_egov/bt/revision +++ b/bt5/erp5_egov/bt/revision @@ -1 +1 @@ -293 \ No newline at end of file +295 \ No newline at end of file -- 2.30.9