Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
12340e88
Commit
12340e88
authored
Nov 04, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multiple_catalog: Add predicate action for Catalog portal_type
parent
670a59c4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
1 deletion
+88
-1
product/ERP5/bootstrap/erp5_core/ActionTemplateItem/portal_types/Catalog/predicate.xml
...ore/ActionTemplateItem/portal_types/Catalog/predicate.xml
+85
-0
product/ERP5/bootstrap/erp5_core/bt/template_action_path_list
...uct/ERP5/bootstrap/erp5_core/bt/template_action_path_list
+1
-0
product/ERP5Catalog/Document/ERP5Catalog.py
product/ERP5Catalog/Document/ERP5Catalog.py
+2
-1
No files found.
product/ERP5/bootstrap/erp5_core/ActionTemplateItem/portal_types/Catalog/predicate.xml
0 → 100644
View file @
12340e88
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ActionInformation"
module=
"Products.CMFCore.ActionInformation"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_view
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_view
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
predicate
</string>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
Modify portal content
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Action Information
</string>
</value>
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
3.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Predicate
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/Predicate_view
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_core/bt/template_action_path_list
View file @
12340e88
...
...
@@ -51,6 +51,7 @@ Catalog | clear_catalog
Catalog | clear_reserved
Catalog | content_view
Catalog | export_property_content
Catalog | predicate
Catalog | property
Catalog | update_catalog
Category Acquired Membership State Constraint | predicate
...
...
product/ERP5Catalog/Document/ERP5Catalog.py
View file @
12340e88
...
...
@@ -34,6 +34,7 @@ from Products.ERP5Type.Base import Base
from
Products.ERP5Type
import
PropertySheet
from
Products.ERP5Type.patches.PropertyManager
import
PropertyManager
from
Products.ZSQLCatalog.SQLCatalog
import
Catalog
,
CatalogError
from
Products.ERP5Type.Core.Predicate
import
Predicate
import
OFS.History
from
AccessControl
import
ClassSecurityInfo
...
...
@@ -134,7 +135,7 @@ class FilterDict(object):
'filtered'
,
'expression_instance'
):
filter_
.
_method
.
_delPropValue
(
prop_id
)
class
ERP5Catalog
(
Folder
,
Catalog
):
class
ERP5Catalog
(
Folder
,
Catalog
,
Predicate
):
"""
Catalog Folder inside ERP5 to store indexes
"""
...
...
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