[Erp5-report] r19919 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Mar 14 16:49:29 CET 2008
Author: romain
Date: Fri Mar 14 16:49:29 2008
New Revision: 19919
URL: http://svn.erp5.org?rev=19919&view=rev
Log:
Define field_prefix variable
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editUnrestricted.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editUnrestricted.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editUnrestricted.xml?rev=19919&r1=19918&r2=19919&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editUnrestricted.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_editUnrestricted.xml Fri Mar 14 16:49:29 2008
@@ -73,6 +73,10 @@
request=context.REQUEST\n
portal = context.getPortalObject()\n
N_ = portal.Base_translateString\n
+\n
+# Extra security\n
+if request.get(\'field_prefix\', None):\n
+ field_prefix = \'my_\' # Prevent changing the prefix through publisher\n
\n
# Use dialog_id if present, otherwise fall back on form_id.\n
if dialog_id not in (\'\', None):\n
@@ -182,7 +186,7 @@
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string>form_id, selection_index=0, selection_name=\'\', dialog_id=\'\', ignore_layout=0, editable_mode=1</string> </value>
+ <value> <string>form_id, selection_index=0, selection_name=\'\', dialog_id=\'\', ignore_layout=0, editable_mode=1, field_prefix=\'my_\'</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
@@ -202,7 +206,7 @@
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
- <value> <int>6</int> </value>
+ <value> <int>7</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
@@ -214,6 +218,7 @@
<string>dialog_id</string>
<string>ignore_layout</string>
<string>editable_mode</string>
+ <string>field_prefix</string>
<string>Products.Formulator.Errors</string>
<string>FormValidationError</string>
<string>Products.CMFActivity.Errors</string>
@@ -261,6 +266,7 @@
<string></string>
<int>0</int>
<int>1</int>
+ <string>my_</string>
</tuple>
</value>
</item>
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=19919&r1=19918&r2=19919&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Fri Mar 14 16:49:29 2008
@@ -1,1 +1,1 @@
-741
+744
More information about the Erp5-report
mailing list