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
4a63ddd6
Commit
4a63ddd6
authored
Jul 06, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Move manage_option before declaring property sheets
parent
662aa818
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
product/ERP5Catalog/CatalogTool.py
product/ERP5Catalog/CatalogTool.py
+1
-10
product/ERP5Catalog/ERP5Catalog.py
product/ERP5Catalog/ERP5Catalog.py
+4
-4
No files found.
product/ERP5Catalog/CatalogTool.py
View file @
4a63ddd6
...
...
@@ -321,6 +321,7 @@ class CatalogTool (ZCatalog, CMFCoreCatalogTool, BaseTool):
default_count_limit
=
1
manage_options
=
({
'label'
:
'Overview'
,
'action'
:
'manage_overview'
},
{
'label'
:
'Catalog'
,
'action'
:
'manage_catalogView'
},
)
+
Folder
.
manage_options
property_sheets
=
(
PropertySheet
.
Base
...
...
@@ -329,16 +330,6 @@ class CatalogTool (ZCatalog, CMFCoreCatalogTool, BaseTool):
,
PropertySheet
.
CatalogTool
)
_properties
=
ZCatalog
.
_properties
+
(
{
'id'
:
'default_erp5_catalog_id'
,
'description'
:
'Default ERP5 Catalog Id'
,
'type'
:
'selection'
,
'select_variable'
:
'getERP5CatalogIdList'
,
'mode'
:
'w'
},
)
default_erp5_catalog_id
=
None
# Use reindexObject method from BaseTool class and declare it public
reindexObject
=
BaseTool
.
reindexObject
security
.
declarePublic
(
'reindexObject'
)
...
...
product/ERP5Catalog/ERP5Catalog.py
View file @
4a63ddd6
...
...
@@ -57,6 +57,10 @@ class ERP5Catalog(Folder, Catalog):
icon
=
None
security
=
ClassSecurityInfo
()
manage_options
=
(
Folder
.
manage_options
+
OFS
.
History
.
Historical
.
manage_options
)
# Declarative properties
property_sheets
=
(
PropertySheet
.
Base
,
PropertySheet
.
SimpleItem
...
...
@@ -69,10 +73,6 @@ class ERP5Catalog(Folder, Catalog):
_setPropValue
=
Catalog
.
_setPropValue
getProperty
=
Catalog
.
getProperty
manage_options
=
(
Folder
.
manage_options
+
OFS
.
History
.
Historical
.
manage_options
)
# Declarative Constructors
constructors
=
(
manage_addERP5CatalogForm
,
manage_addERP5Catalog
,)
...
...
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