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
1de013d6
Commit
1de013d6
authored
Jun 21, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Monkey-patching of getPath to use getPath from Base
parent
e48ac9dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
product/ZSQLCatalog/ZSQLCatalog.py
product/ZSQLCatalog/ZSQLCatalog.py
+2
-0
No files found.
product/ZSQLCatalog/ZSQLCatalog.py
View file @
1de013d6
...
@@ -939,6 +939,8 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -939,6 +939,8 @@ class ZCatalog(Folder, Persistent, Implicit):
return
record
.
path
return
record
.
path
else
:
else
:
return
None
return
None
# Use getPath from Base class while calling getPath on ZSQLCatalog
getPath
=
Folder
.
getPath
security
.
declarePrivate
(
'hasPath'
)
security
.
declarePrivate
(
'hasPath'
)
def
hasPath
(
self
,
path
,
sql_catalog_id
=
None
):
def
hasPath
(
self
,
path
,
sql_catalog_id
=
None
):
...
...
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