[Erp5-report] r27089 - /erp5/trunk/products/ERP5/PropertySheet/BusinessTemplate.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu May 21 17:20:40 CEST 2009


Author: jp
Date: Thu May 21 17:20:40 2009
New Revision: 27089

URL: http://svn.erp5.org?rev=27089&view=rev
Log:
Renamed two properties for consistency with naming conventions. Kept compatibility with current status.

Modified:
    erp5/trunk/products/ERP5/PropertySheet/BusinessTemplate.py

Modified: erp5/trunk/products/ERP5/PropertySheet/BusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/BusinessTemplate.py?rev=27089&r1=27088&r2=27089&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/BusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/PropertySheet/BusinessTemplate.py [utf8] Thu May 21 17:20:40 2009
@@ -211,12 +211,14 @@
       'type'        : 'lines',
       'mode'        : 'w',
       'default'     : () },
-    { 'id'          : 'template_local_roles',
+    { 'id'          : 'template_local_role',
+      'storage_id'  : 'template_local_roles', # Kept for compatibility
       'description' : 'A list of local roles used by this template',
       'type'        : 'lines',
       'mode'        : 'w',
       'default'     : () },
-    { 'id'          : 'template_portal_type_roles',
+    { 'id'          : 'template_portal_type_role',
+      'storage_id'  : 'template_portal_type_roles', # Kept for compatibility
       'description' : 'A list of ERP5Types for which we want to add the roles in the template',
       'type'        : 'lines',
       'mode'        : 'w',
@@ -280,6 +282,17 @@
       'type'        : 'boolean',
       'mode'        : 'w',
       'default'     : 0 },
+    # Kept for compatibility - will be removed some day
+    { 'id'          : 'template_local_roles',
+      'description' : 'A list of local roles used by this template',
+      'type'        : 'lines',
+      'mode'        : 'w',
+      'default'     : () },
+    { 'id'          : 'template_portal_type_roles',
+      'description' : 'A list of ERP5Types for which we want to add the roles in the template',
+      'type'        : 'lines',
+      'mode'        : 'w',
+      'default'     : () },
  )
 
   _categories = ( )




More information about the Erp5-report mailing list