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
6a9a37ab
Commit
6a9a37ab
authored
Jul 20, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Override getCatalogMethodIds cause it uses global variable in SQLCatalog.Catalog
parent
78270d0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
product/ERP5Catalog/ERP5Catalog.py
product/ERP5Catalog/ERP5Catalog.py
+11
-0
No files found.
product/ERP5Catalog/ERP5Catalog.py
View file @
6a9a37ab
...
...
@@ -57,6 +57,8 @@ class ERP5Catalog(Folder, Catalog):
icon
=
None
# Activate isRADContent cause we need to generate accessors and default values
isRADContent
=
1
global
valid_method_meta_type_list_new
valid_method_meta_type_list_new
=
(
'ERP5 SQL Method'
,
'ERP5 Python Script'
)
# Declarative security
security
=
ClassSecurityInfo
()
...
...
@@ -102,6 +104,15 @@ class ERP5Catalog(Folder, Catalog):
meta_types
.
append
(
meta_type
)
return
meta_types
security
.
declarePrivate
(
'getCatalogMethodIds'
)
def
getCatalogMethodIds
(
self
,
valid_method_meta_type_list
=
valid_method_meta_type_list_new
):
"""Find ERP5 SQL methods in the current folder and above
This function return a list of ids.
"""
return
super
(
ERP5Catalog
,
self
).
getCatalogMethodIds
(
valid_method_meta_type_list
=
valid_method_meta_type_list_new
)
InitializeClass
(
ERP5Catalog
)
class
ERP5CatalogError
(
CatalogError
):
pass
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