Commit f9c452fb authored by Jérome Perrin's avatar Jérome Perrin Committed by Gabriel Monnerat

Display an empty item and fix docstring

parent f323163c
...@@ -51,15 +51,13 @@ ...@@ -51,15 +51,13 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>"""\n <value> <string>"""\n
This script returns the list of items based on the preferred\n This script returns the list of forms that will be used as assessment forms on tickets\n
resources for events. It is intended to be used\n
by ListField instances.\n
"""\n """\n
\n \n
from Products.ERP5Type.Cache import CachingMethod\n from Products.ERP5Type.Cache import CachingMethod\n
\n \n
def getFormItemList():\n def getFormItemList():\n
result = []\n result = [(\'\', \'\')]\n
form_id_list = context.portal_preferences.getPreferredEventAssessmentFormIdList()\n form_id_list = context.portal_preferences.getPreferredEventAssessmentFormIdList()\n
for form_id in form_id_list:\n for form_id in form_id_list:\n
form = getattr(context.getPortalObject(), form_id, None)\n form = getattr(context.getPortalObject(), form_id, None)\n
...@@ -68,7 +66,7 @@ def getFormItemList():\n ...@@ -68,7 +66,7 @@ def getFormItemList():\n
return result\n return result\n
\n \n
getFormItemList = CachingMethod(getFormItemList, \n getFormItemList = CachingMethod(getFormItemList, \n
id=(\'Ticket_getFormItemList\', context.Localizer.get_selected_language()), \n id=(\'Ticket_getFormItemList\', context.Localizer.get_selected_language()),\n
cache_factory=\'erp5_ui_long\')\n cache_factory=\'erp5_ui_long\')\n
\n \n
return getFormItemList()\n return getFormItemList()\n
......
631 632
\ No newline at end of file \ No newline at end of file
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