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
07c8cb99
Commit
07c8cb99
authored
8 years ago
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Add isRADContent for ERP5Catalog Class and remove monkeypatching from Catalog class
parent
182ca6c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
product/ERP5Catalog/ERP5Catalog.py
product/ERP5Catalog/ERP5Catalog.py
+2
-8
No files found.
product/ERP5Catalog/ERP5Catalog.py
View file @
07c8cb99
...
...
@@ -55,6 +55,8 @@ class ERP5Catalog(Folder, Catalog):
allowed_types
=
()
#TODO(low priority): Add an icon to display at ERP5 Zope interface
icon
=
None
# Activate isRADContent cause we need to generate accessors and default values
isRADContent
=
1
# Declarative security
security
=
ClassSecurityInfo
()
...
...
@@ -65,11 +67,6 @@ class ERP5Catalog(Folder, Catalog):
'manage_propertiesForm'
,
)
#_properties = Catalog._properties
#_propertyMap = Catalog._propertyMap
#_setPropValue = Catalog._setPropValue
#getProperty = Catalog.getProperty
manage_options
=
(
Folder
.
manage_options
+
OFS
.
History
.
Historical
.
manage_options
)
...
...
@@ -102,9 +99,6 @@ class ERP5Catalog(Folder, Catalog):
meta_types
.
append
(
meta_type
)
return
meta_types
_updateProperty
=
Catalog
.
_updateProperty
_setPropValue
=
Catalog
.
_setPropValue
InitializeClass
(
ERP5Catalog
)
class
ERP5CatalogError
(
CatalogError
):
pass
This diff is collapsed.
Click to expand it.
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