[Erp5-report] r20269 - /erp5/trunk/products/ERP5Form/FormulatorPatch.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Apr 2 14:17:00 CEST 2008


Author: bartek
Date: Wed Apr  2 14:16:56 2008
New Revision: 20269

URL: http://svn.erp5.org?rev=20269&view=rev
Log:
more informative docstrings

Modified:
    erp5/trunk/products/ERP5Form/FormulatorPatch.py

Modified: erp5/trunk/products/ERP5Form/FormulatorPatch.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/FormulatorPatch.py?rev=20269&r1=20268&r2=20269&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/FormulatorPatch.py (original)
+++ erp5/trunk/products/ERP5Form/FormulatorPatch.py Wed Apr  2 14:16:56 2008
@@ -489,14 +489,18 @@
 
 def Widget_render_css(self, field, REQUEST):
   """
-  Default render css for widget
+    Default render css for widget - to be overwritten in field classes.
+    Should return valid css code as string.
+    The value returned by this method will be used as inline style for a field.
   """
   pass
 Widget.render_css = Widget_render_css
 
 def Widget_get_javascript_list(self, field, REQUEST):
   """
-  Return JS needed by the widget
+    Return JS needed by the widget - to be overwritten in field classes.
+    Should return a list of javascript file names.
+    These names will be appended to global js_list and included in a rendered page.
   """
   return []
 Widget.get_javascript_list = Widget_get_javascript_list




More information about the Erp5-report mailing list