[Erp5-report] r12662 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateIte...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 13 15:48:17 CET 2007


Author: jp
Date: Tue Feb 13 15:48:13 2007
New Revision: 12662

URL: http://svn.erp5.org?rev=12662&view=rev
Log:
Better support for erp5_web login

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/logged_in.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/login_form.xml

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/logged_in.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/logged_in.xml?rev=12662&r1=12661&r2=12662&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/logged_in.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/logged_in.xml Tue Feb 13 15:48:13 2007
@@ -61,12 +61,12 @@
                        isAnon mtool/isAnonymousUser|nothing;">\n
   <tal:block tal:condition="isAnon">\n
     <tal:block tal:define="dummy python: response.expireCookie(\'__ac\', path=\'/\');\n
-                           url python: \'%s/login_form?portal_status_message=%s\' % (here.portal_url(), here.getPortalObject().Localizer.translate(\'ui\', \'Login+and/or+password+is+incorrect.\'));\n
+                           url python: \'%s/login_form?portal_status_message=%s\' % (here.absolute_url(), here.getPortalObject().Localizer.translate(\'ui\', \'Login+and/or+password+is+incorrect.\'));\n
                            url python: request.get(\'came_from\') and  \'%s&came_from=%s\' % (url, request[\'came_from\']) or url;\n
                            dummy python: response.redirect(url);"/>\n
   </tal:block>\n
   <tal:block tal:condition="not: isAnon">\n
-    <tal:block tal:define="came_from python: request.get(\'came_from\') or here.portal_url() + \'/view\';\n
+    <tal:block tal:define="came_from python: request.get(\'came_from\') or here.absolute_url() + \'/view\';\n
                            dummy python: response.redirect(came_from);" />\n
   </tal:block>\n
 </tal:block>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/login_form.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/login_form.xml?rev=12662&r1=12661&r2=12662&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/login_form.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/login_form.xml Tue Feb 13 15:48:13 2007
@@ -85,6 +85,7 @@
 -->\n
 </tal:block>\n
 <tal:block tal:define="form_action string:logged_in;\n
+                       global form_id string:login_form;\n
                        js_list python: [\'%s/login_form.js\' % (here.portal_url.getPortalPath(), )]">\n
 <tal:block metal:use-macro="here/main_template/macros/master">\n
   <tal:block metal:fill-slot="main">\n




More information about the Erp5-report mailing list