[Erp5-report] r19839 - /erp5/trunk/products/ERP5Type/PropertySheet/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 13 11:54:44 CET 2008


Author: alex
Date: Thu Mar 13 11:54:42 2008
New Revision: 19839

URL: http://svn.erp5.org?rev=19839&view=rev
Log:
If title is not defined on the object, try to call getCompactTitle.
getCompactTitle will look for different methods to call, among which are
getReference and getId.
The idea is that if title is not defined, but reference is, it's better to
display the reference rather than nothing or the id to the user, for instance
in relation fields, listbox lines or the breadcrumb.

Modified:
    erp5/trunk/products/ERP5Type/PropertySheet/DublinCore.py
    erp5/trunk/products/ERP5Type/PropertySheet/SimpleItem.py

Modified: erp5/trunk/products/ERP5Type/PropertySheet/DublinCore.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/PropertySheet/DublinCore.py?rev=19839&r1=19838&r2=19839&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/PropertySheet/DublinCore.py (original)
+++ erp5/trunk/products/ERP5Type/PropertySheet/DublinCore.py Thu Mar 13 11:54:42 2008
@@ -40,6 +40,13 @@
             'translatable'  : 1,
             'translation_domain' : 'erp5_content',
             'default'     : '',
+            'acquisition_base_category': (),
+            'acquisition_portal_type': (),
+            'acquisition_copy_value': 0,
+            'acquisition_mask_value': 1,
+            'acquisition_accessor_id': 'getTitle',
+            'acquisition_depends': None,
+            'alt_accessor_id': ('getCompactTitle',),
             'mode'        : 'w' },
         {   'id'          : 'subject',
             'description' : '',

Modified: erp5/trunk/products/ERP5Type/PropertySheet/SimpleItem.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/PropertySheet/SimpleItem.py?rev=19839&r1=19838&r2=19839&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/PropertySheet/SimpleItem.py (original)
+++ erp5/trunk/products/ERP5Type/PropertySheet/SimpleItem.py Thu Mar 13 11:54:42 2008
@@ -38,6 +38,13 @@
             'description' : '',
             'type'        : 'string',
             'default'     : '',
+            'acquisition_base_category': (),
+            'acquisition_portal_type': (),
+            'acquisition_copy_value': 0,
+            'acquisition_mask_value': 1,
+            'acquisition_accessor_id': 'getTitle',
+            'acquisition_depends': None,
+            'alt_accessor_id': ('getCompactTitle',),
             'mode'        : 'w',
             'translatable': 1,
             'translation_domain' : 'erp5_content',




More information about the Erp5-report mailing list