[Erp5-report] r19891 - /experimental/Experimental/patches/ERP5Form_ListBox_line_marking.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Mar 14 12:42:27 CET 2008
Author: mikolaj
Date: Fri Mar 14 12:42:24 2008
New Revision: 19891
URL: http://svn.erp5.org?rev=19891&view=rev
Log:
Added a description and rationale to the patch.
Modified:
experimental/Experimental/patches/ERP5Form_ListBox_line_marking.py
Modified: experimental/Experimental/patches/ERP5Form_ListBox_line_marking.py
URL: http://svn.erp5.org/experimental/Experimental/patches/ERP5Form_ListBox_line_marking.py?rev=19891&r1=19890&r2=19891&view=diff
==============================================================================
--- experimental/Experimental/patches/ERP5Form_ListBox_line_marking.py (original)
+++ experimental/Experimental/patches/ERP5Form_ListBox_line_marking.py Fri Mar 14 12:42:24 2008
@@ -26,6 +26,22 @@
#
##############################################################################
+"""
+ This patch creates a new field in listbox formulator form.
+ It allows entering of the script name, which in turn should return a name
+ (or names separated by spaces) of the css class(es). They would be usually
+ based on some conditions related to the objects listed in that listbox.
+ The css class should be defined separately and added (preferably dynamicaly)
+ to the erp5.css style sheet.
+ In combination with the erp5_core_experimental BT (rev. >= 19770) for each
+ listbox line where script returns the css class name(s), it is added to that
+ line default css class ('DataA' or 'DataB').
+
+ RATIONALE: this is a very handy functionality, since it allows besides
+ filtering to mark items of special meaning/importance. It is already used
+ with success in eg. Thunderbird for marking mail messages.
+"""
+
from Products.Formulator.DummyField import fields
from Products.ERP5Form.ListBox import lazyMethod
More information about the Erp5-report
mailing list