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
cb7ac2f1
Commit
cb7ac2f1
authored
Jun 23, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog : Generate Portal Catalog as an ERP5Tool in ERP5 Site.
parent
e82f3f0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+6
-3
No files found.
product/ERP5/ERP5Site.py
View file @
cb7ac2f1
...
@@ -1928,9 +1928,9 @@ class ERP5Generator(PortalGenerator):
...
@@ -1928,9 +1928,9 @@ class ERP5Generator(PortalGenerator):
addERP5Tool
(
p
,
'portal_memcached'
,
'Memcached Tool'
)
addERP5Tool
(
p
,
'portal_memcached'
,
'Memcached Tool'
)
# Add ERP5 SQL Catalog Tool
# Add ERP5 SQL Catalog Tool
addTool
=
p
.
manage_addProduct
[
'ERP5Catalog'
].
manage_addTool
#
addTool = p.manage_addProduct['ERP5Catalog'].manage_addTool
if
not
p
.
hasObject
(
'portal_catalog'
):
#
if not p.hasObject('portal_catalog'):
addTool
(
'ERP5 Catalog'
,
None
)
#
addTool('ERP5 Catalog', None)
# Add Default SQL connection
# Add Default SQL connection
if
p
.
erp5_sql_connection_type
==
'Z MySQL Database Connection'
:
if
p
.
erp5_sql_connection_type
==
'Z MySQL Database Connection'
:
...
@@ -2210,6 +2210,9 @@ class ERP5Generator(PortalGenerator):
...
@@ -2210,6 +2210,9 @@ class ERP5Generator(PortalGenerator):
self
.
setupDefaultSkins
(
p
)
self
.
setupDefaultSkins
(
p
)
assert
not
p
.
hasObject
(
'portal_activities'
)
assert
not
p
.
hasObject
(
'portal_activities'
)
addERP5Tool
(
p
,
'portal_activities'
,
'Activity Tool'
)
addERP5Tool
(
p
,
'portal_activities'
,
'Activity Tool'
)
# CatalogTool has been included inside ERP5. So, prefer using addERP5Tool
# instead of using addTool on Catalog Tool object.
addERP5Tool
(
p
,
'portal_catalog'
,
'Catalog Tool'
)
# Initialize Activities
# Initialize Activities
p
.
portal_activities
.
manageClearActivities
()
p
.
portal_activities
.
manageClearActivities
()
# Reindex already existing tools
# Reindex already existing tools
...
...
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