[Erp5-report] r34865 leonardo - in /erp5/trunk/products/ERP5: PropertySheet/ bootstrap/ boo...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Apr 30 01:40:19 CEST 2010


Author: leonardo
Date: Fri Apr 30 01:40:18 2010
New Revision: 34865

URL: http://svn.erp5.org?rev=34865&view=rev
Log:
Add preference for disabling the protection against navigation away from partially changed forms

Added:
    erp5/trunk/products/ERP5/bootstrap/bt5list
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle/my_prefered_html_style_unsaved_form_warning.xml
Modified:
    erp5/trunk/products/ERP5/PropertySheet/HtmlStylePreference.py
    erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/PropertySheet/HtmlStylePreference.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/HtmlStylePreference.py?rev=34865&r1=34864&r2=34865&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/HtmlStylePreference.py [utf8] (original)
+++ erp5/trunk/products/ERP5/PropertySheet/HtmlStylePreference.py [utf8] Fri Apr 30 01:40:18 2010
@@ -33,7 +33,7 @@
   
   _properties = (
     { 'id'          : 'preferred_html_style_developper_mode',
-      'description' : 'When true, usefull links for developpers are shown in '\
+      'description' : 'When true, useful links for developers are shown in '\
                       'the interface.',
       'type'        : 'boolean',
       'preference'  : 1,
@@ -50,7 +50,7 @@
       'preference'  : 1,
       'mode'        : 'w' },
     { 'id'          : 'preferred_html_style_access_tab',
-      'description' : 'When true, access tab will used in front page.',
+      'description' : 'When true, access tab will be used in front page.',
       'type'        : 'boolean',
       'preference'  : 1,
       'mode'        : 'w' },
@@ -66,6 +66,14 @@
       'preference'  : 1,
       'default'     : 'http://www.erp5.com/erp5_help/',
       'mode'        : 'w' },
+    { 'id'          : 'preferred_html_style_unsaved_form_warning',
+      'description' : 'When true, display a javascript confirmation box if '\
+                      'the user tries to navigate away from a form that was '\
+                      'partially changed but is unsaved.',
+      'type'        : 'boolean',
+      'preference'  : 1,
+      'default'     : True,
+      'mode'        : 'w' },
     { 'id'          : 'preferred_string_field_width',
       'description' : 'The default width of string fields',
       'type'        : 'int',

Added: erp5/trunk/products/ERP5/bootstrap/bt5list
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/bt5list?rev=34865&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/bt5list (added)
+++ erp5/trunk/products/ERP5/bootstrap/bt5list [utf8] Fri Apr 30 01:40:18 2010
@@ -1,0 +1,47 @@
+<?xml version="1.0"?>
+<repository>
+  <template id="erp5_core">
+    <copyright>Copyright (c) 2001-2007 Nexedi SA</copyright>
+    <dependency>erp5_catalog (&gt;= 1.1)</dependency>
+    <description>ERP5 Core is the basic template for ERP5.</description>
+    <license>GPL</license>
+    <revision>1570</revision>
+    <title>erp5_core</title>
+    <version>5.4.6</version>
+  </template>
+  <template id="erp5_mysql_innodb_catalog">
+    <copyright>Copyright (c) 2001-2006 Nexedi SARL</copyright>
+    <description>MySQL InnoDB
+
+Contains all the scripts &amp; configuration required to use MySQL InnoDB tables as a catalog storage backend.</description>
+    <license>GPL</license>
+    <provision>erp5_catalog</provision>
+    <revision>190</revision>
+    <title>erp5_mysql_innodb_catalog</title>
+    <version>5.4.6</version>
+  </template>
+  <template id="erp5_mysql_ndb_catalog">
+    <copyright>Copyright (c) 2001-2006 Nexedi SARL</copyright>
+    <description>MySQL NDB
+
+Contains all the scripts &amp; configuration required to use MySQL NDB (Network DataBase) tables as a catalog storage backend.</description>
+    <license>GPL</license>
+    <provision>erp5_catalog</provision>
+    <revision>33
+</revision>
+    <title>erp5_mysql_ndb_catalog</title>
+    <version>0.1</version>
+  </template>
+  <template id="erp5_xhtml_style">
+    <copyright>Copyright (c) 2006-2007 Nexedi SA</copyright>
+    <dependency>erp5_core</dependency>
+    <description>This style is a rewrite of erp5_html_style more CSS and semantic html oriented.
+
+Handles page parameters dynamically.</description>
+    <license>GPL</license>
+    <provision>erp5_view_style</provision>
+    <revision>930</revision>
+    <title>erp5_xhtml_style</title>
+    <version>5.4.6</version>
+  </template>
+</repository>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle.xml?rev=34865&r1=34864&r2=34865&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle.xml [utf8] Fri Apr 30 01:40:18 2010
@@ -80,6 +80,7 @@
                     <value>
                       <list>
                         <string>my_preferred_date_order</string>
+                        <string>my_prefered_html_style_unsaved_form_warning</string>
                         <string>my_preferred_html_style_developper_mode</string>
                         <string>my_preferred_html_style_contextual_help</string>
                         <string>my_preferred_html_style_translator_mode</string>
@@ -96,7 +97,6 @@
                         <string>my_preferred_money_quantity_style</string>
                         <string>my_preferred_quantity_field_width</string>
                         <string>my_preferred_float_number_style</string>
-                        <string>my_preferred_max_user_inactivity_duration</string>
                       </list>
                     </value>
                 </item>
@@ -104,6 +104,7 @@
                     <key> <string>right</string> </key>
                     <value>
                       <list>
+                        <string>my_preferred_max_user_inactivity_duration</string>
                         <string>my_preferred_report_style</string>
                         <string>my_preferred_report_format</string>
                         <string>my_preferred_nano_image_height</string>

Added: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle/my_prefered_html_style_unsaved_form_warning.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle/my_prefered_html_style_unsaved_form_warning.xml?rev=34865&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle/my_prefered_html_style_unsaved_form_warning.xml (added)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Preference_viewHtmlStyle/my_prefered_html_style_unsaved_form_warning.xml [utf8] Fri Apr 30 01:40:18 2010
@@ -1,0 +1,171 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="CheckBoxField" module="Products.Formulator.StandardFields"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>my_prefered_html_style_unsaved_form_warning</string> </value>
+        </item>
+        <item>
+            <key> <string>message_values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>external_validator_failed</string> </key>
+                    <value> <string>The input failed the external validator.</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>overrides</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>tales</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string></string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+        <item>
+            <key> <string>values</string> </key>
+            <value>
+              <dictionary>
+                <item>
+                    <key> <string>alternate_name</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>css_class</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>default</string> </key>
+                    <value> <int>1</int> </value>
+                </item>
+                <item>
+                    <key> <string>description</string> </key>
+                    <value> <string>Indicates if a confirmation dialog should be displayed when the user tries to navigate from a form that was partially changed</string> </value>
+                </item>
+                <item>
+                    <key> <string>editable</string> </key>
+                    <value> <int>1</int> </value>
+                </item>
+                <item>
+                    <key> <string>enabled</string> </key>
+                    <value> <int>1</int> </value>
+                </item>
+                <item>
+                    <key> <string>external_validator</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>extra</string> </key>
+                    <value> <string></string> </value>
+                </item>
+                <item>
+                    <key> <string>hidden</string> </key>
+                    <value> <int>0</int> </value>
+                </item>
+                <item>
+                    <key> <string>title</string> </key>
+                    <value> <string>Unsaved Form Warning</string> </value>
+                </item>
+              </dictionary>
+            </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=34865&r1=34864&r2=34865&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision [utf8] Fri Apr 30 01:40:18 2010
@@ -1,1 +1,1 @@
-1574
+1575

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml?rev=34865&r1=34864&r2=34865&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml [utf8] Fri Apr 30 01:40:18 2010
@@ -60,6 +60,7 @@
         </tal:block>\n
         <tal:block metal:fill-slot="main">\n
           <script type="text/javascript"\n
+            tal:condition="portal/portal_preferences/getPreferredHtmlStyleUnsavedFormWarning"\n
             tal:define="message python:context.Base_translateString(\'You have unsaved changes\').replace(\'\\\'\', \'\\\\\\\'\')"\n
             tal:content="string:installUnsavedChangesWarning(\'$message\')">\n
           </script>\n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=34865&r1=34864&r2=34865&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Fri Apr 30 01:40:18 2010
@@ -1,1 +1,1 @@
-935
+936




More information about the Erp5-report mailing list