Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
f9c452fb
Commit
f9c452fb
authored
Apr 30, 2013
by
Jérome Perrin
Committed by
Gabriel Monnerat
May 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display an empty item and fix docstring
parent
f323163c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_getAssessmentFormIdList.xml
.../portal_skins/erp5_crm/Ticket_getAssessmentFormIdList.xml
+3
-5
bt5/erp5_crm/bt/revision
bt5/erp5_crm/bt/revision
+1
-1
No files found.
bt5/erp5_crm/SkinTemplateItem/portal_skins/erp5_crm/Ticket_getAssessmentFormIdList.xml
View file @
f9c452fb
...
@@ -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
...
...
bt5/erp5_crm/bt/revision
View file @
f9c452fb
631
632
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment