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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hugo Ricateau
erp5
Commits
1ab308cb
Commit
1ab308cb
authored
Dec 10, 2012
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support predicate in Knowled Box for more flexibility.
parent
9a03adeb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
86 additions
and
3 deletions
+86
-3
bt5/erp5_knowledge_pad/ActionTemplateItem/portal_types/Knowledge%20Box/predicate.xml
...onTemplateItem/portal_types/Knowledge%20Box/predicate.xml
+79
-0
bt5/erp5_knowledge_pad/PortalTypeTemplateItem/portal_types/Knowledge%20Box.xml
...d/PortalTypeTemplateItem/portal_types/Knowledge%20Box.xml
+1
-1
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/KnowledgePad_getBoxColumnLayout.xml
...ns/erp5_knowledge_pad/KnowledgePad_getBoxColumnLayout.xml
+1
-1
bt5/erp5_knowledge_pad/bt/change_log
bt5/erp5_knowledge_pad/bt/change_log
+3
-0
bt5/erp5_knowledge_pad/bt/revision
bt5/erp5_knowledge_pad/bt/revision
+1
-1
bt5/erp5_knowledge_pad/bt/template_action_path_list
bt5/erp5_knowledge_pad/bt/template_action_path_list
+1
-0
No files found.
bt5/erp5_knowledge_pad/ActionTemplateItem/portal_types/Knowledge%20Box/predicate.xml
0 → 100644
View file @
1ab308cb
<?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>
<string></string>
</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>
priority
</string>
</key>
<value>
<float>
4.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>
bt5/erp5_knowledge_pad/PortalTypeTemplateItem/portal_types/Knowledge%20Box.xml
View file @
1ab308cb
...
...
@@ -195,7 +195,7 @@
</item>
<item>
<key>
<string>
type_class
</string>
</key>
<value>
<string>
XMLObject
</string>
</value>
<value>
<string>
Predicate
</string>
</value>
</item>
<item>
<key>
<string>
type_interface
</string>
</key>
...
...
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/KnowledgePad_getBoxColumnLayout.xml
View file @
1ab308cb
...
...
@@ -58,7 +58,7 @@ boxes = context.contentValues(portal_type = \'Knowledge Box\', \n
isAnon = context.portal_membership.isAnonymousUser()\n
validation_state_map = {1: (\'public\',),\n
0: (\'visible\', \'invisible\', \'public\',)}\n
boxes = filter(lambda x: x.getValidationState() in validation_state_map[isAnon], boxes)\n
boxes = filter(lambda x: x.getValidationState() in validation_state_map[isAnon]
and x.test(context)
, boxes)\n
for box in boxes:\n
all_box_ids.append(box.getId())\n
\n
...
...
bt5/erp5_knowledge_pad/bt/change_log
View file @
1ab308cb
2012-12-10 Kazuhiko
* support predicate in Knowled Box for more flexibility.
2012-06-25 Kazuhiko
* add knowledge pad's group in gadget title div class.
...
...
bt5/erp5_knowledge_pad/bt/revision
View file @
1ab308cb
752
\ No newline at end of file
753
\ No newline at end of file
bt5/erp5_knowledge_pad/bt/template_action_path_list
View file @
1ab308cb
...
...
@@ -4,6 +4,7 @@ Gadget Type | gadget_view
Gadget Type | view
Gadget | preferences
Gadget | view
Knowledge Box | predicate
Knowledge Box | preferences
Knowledge Box | view
Knowledge Pad Module | view
...
...
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