Commit 12340e88 authored by Ayush Tiwari's avatar Ayush Tiwari

multiple_catalog: Add predicate action for Catalog portal_type

parent 670a59c4
<?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>
...@@ -51,6 +51,7 @@ Catalog | clear_catalog ...@@ -51,6 +51,7 @@ Catalog | clear_catalog
Catalog | clear_reserved Catalog | clear_reserved
Catalog | content_view Catalog | content_view
Catalog | export_property_content Catalog | export_property_content
Catalog | predicate
Catalog | property Catalog | property
Catalog | update_catalog Catalog | update_catalog
Category Acquired Membership State Constraint | predicate Category Acquired Membership State Constraint | predicate
......
...@@ -34,6 +34,7 @@ from Products.ERP5Type.Base import Base ...@@ -34,6 +34,7 @@ from Products.ERP5Type.Base import Base
from Products.ERP5Type import PropertySheet from Products.ERP5Type import PropertySheet
from Products.ERP5Type.patches.PropertyManager import PropertyManager from Products.ERP5Type.patches.PropertyManager import PropertyManager
from Products.ZSQLCatalog.SQLCatalog import Catalog, CatalogError from Products.ZSQLCatalog.SQLCatalog import Catalog, CatalogError
from Products.ERP5Type.Core.Predicate import Predicate
import OFS.History import OFS.History
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
...@@ -134,7 +135,7 @@ class FilterDict(object): ...@@ -134,7 +135,7 @@ class FilterDict(object):
'filtered', 'expression_instance'): 'filtered', 'expression_instance'):
filter_._method._delPropValue(prop_id) filter_._method._delPropValue(prop_id)
class ERP5Catalog(Folder, Catalog): class ERP5Catalog(Folder, Catalog, Predicate):
""" """
Catalog Folder inside ERP5 to store indexes Catalog Folder inside ERP5 to store indexes
""" """
......
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