Commit b450bf9b authored by Bartek Górny's avatar Bartek Górny

more informative docstrings

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20269 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a5cc036a
......@@ -489,14 +489,18 @@ Widget.render_pdf = Widget.render_view
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment