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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
7d11ff91
Commit
7d11ff91
authored
Jun 03, 2011
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace listfield by relation field
parent
5c41977b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
97 deletions
+14
-97
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/NotificationMessage_getSpecialiseItemList.xml
...s/erp5_base/NotificationMessage_getSpecialiseItemList.xml
+0
-88
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/NotificationMessage_view.xml
...eItem/portal_skins/erp5_base/NotificationMessage_view.xml
+1
-1
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/NotificationMessage_view/my_specialise_title.xml
...rp5_base/NotificationMessage_view/my_specialise_title.xml
+12
-7
bt5/erp5_base/bt/revision
bt5/erp5_base/bt/revision
+1
-1
No files found.
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/NotificationMessage_getSpecialiseItemList.xml
deleted
100644 → 0
View file @
5c41977b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""Fallback on Event_getResourceItemList if found \n
ie: erp5_crm is installed\n
"""\n
from Products.ERP5Type.Cache import CachingMethod\n
portal = context.getPortalObject()\n
if getattr(portal, \'Event_getResourceItemList\', None) is not None:\n
portal_type = \'Mail Message\'\n
temp_event = portal.getDefaultModule(portal_type).newContent(portal_type=portal_type, temp_object=True)\n
return temp_event.Event_getResourceItemList()\n
\n
sql_kw = {\'portal_type\': portal.getPortalResourceTypeList(),\n
\'validation_state\': \'validated\',\n
\'sort_on\': \'title\'}\n
\n
def getResourceItemList():\n
return [(\'\', \'\')] + [(result.getTitle(), result.getRelativeUrl()) for result in portal.portal_catalog(**sql_kw)]\n
\n
getResourceItemList = CachingMethod(getResourceItemList, \n
id=(script.id, context.Localizer.get_selected_language()), \n
cache_factory=\'erp5_ui_long\')\n
\n
return getResourceItemList()\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
NotificationMessage_getSpecialiseItemList
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/NotificationMessage_view.xml
View file @
7d11ff91
...
...
@@ -83,7 +83,7 @@
<list>
<string>
my_description
</string>
<string>
my_aggregate_title_list
</string>
<string>
my_specialise
</string>
<string>
my_specialise
_title
</string>
</list>
</value>
</item>
...
...
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/NotificationMessage_view/my_specialise.xml
→
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/NotificationMessage_view/my_specialise
_title
.xml
View file @
7d11ff91
...
...
@@ -10,14 +10,14 @@
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
items
</string>
<string>
portal_type
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_specialise
</string>
</value>
<value>
<string>
my_specialise
_title
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
@@ -62,7 +62,7 @@
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
items
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
...
...
@@ -84,16 +84,21 @@
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_
list
_field
</string>
</value>
<value>
<string>
my_
relation
_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
items
</string>
</key>
<key>
<string>
portal_type
</string>
</key>
<value>
<list/>
<list>
<tuple>
<string>
(To be defined in proxy field)
</string>
<string>
(To be defined in proxy field)
</string>
</tuple>
</list>
</value>
</item>
<item>
...
...
@@ -118,7 +123,7 @@
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
here/NotificationMessage_getSpecialiseItemList
</string>
</value>
<value>
<string>
python: zip(here.getPortalObject().getPortalResourceTypeList(), here.getPortalObject().getPortalResourceTypeList())
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_base/bt/revision
View file @
7d11ff91
980
\ No newline at end of file
981
\ 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