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
658dd8de
Commit
658dd8de
authored
Jun 30, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Chnage CatalogTool meta_type to 'Catalog Tool'
parent
13e3a750
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+2
-2
product/ERP5Catalog/CatalogTool.py
product/ERP5Catalog/CatalogTool.py
+1
-1
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
658dd8de
...
...
@@ -1311,7 +1311,7 @@ class ObjectTemplateItem(BaseTemplateItem):
# The id match, but better double check with the meta type
# while avoiding the impact of systematic check
container_container
=
portal
.
unrestrictedTraverse
(
container_path
[:
-
1
])
if
container_container
.
meta_type
==
'
ERP5 Catalogs
'
:
if
container_container
.
meta_type
==
'
Catalog Tool
'
:
container_container
.
manage_addProduct
[
'ZSQLCatalog'
].
manage_addSQLCatalog
(
id
=
container_path
[
-
1
],
title
=
''
)
# Create a new container path list for the ERP5Catalog object
container_path_new
=
list
(
container_path
)
...
...
@@ -1618,7 +1618,7 @@ class ObjectTemplateItem(BaseTemplateItem):
container
.
getSkinSelections
())
container
.
manage_delObjects
([
object_id
])
if
container
.
aq_parent
.
meta_type
==
'
ERP5 Catalogs
'
and
not
len
(
container
):
if
container
.
aq_parent
.
meta_type
==
'
Catalog Tool
'
and
not
len
(
container
):
# We are removing a ZSQLMethod, remove the SQLCatalog if empty
container
.
getParentValue
().
manage_delObjects
([
container
.
id
])
except
(
NotFound
,
KeyError
,
BadRequest
,
AttributeError
):
...
...
product/ERP5Catalog/CatalogTool.py
View file @
658dd8de
...
...
@@ -311,7 +311,7 @@ class CatalogTool (ZCatalog, CMFCoreCatalogTool, BaseTool):
It is based on ZSQLCatalog
"""
id
=
'portal_catalog'
meta_type
=
'
ERP5 Catalogs
'
meta_type
=
'
Catalog Tool
'
portal_type
=
'Catalog Tool'
allowed_types
=
(
'Catalog'
,)
security
=
ClassSecurityInfo
()
...
...
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