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
f6bc28e1
Commit
f6bc28e1
authored
Jul 20, 2016
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_catalog: Methods in portal_component extension should use default_erp5_catalog
parent
6a9a37ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
product/ERP5/bootstrap/erp5_catalog_transition/ExtensionTemplateItem/portal_components/extension.erp5.UnrestrictedCallToCatalog.py
...al_components/extension.erp5.UnrestrictedCallToCatalog.py
+26
-26
No files found.
product/ERP5/bootstrap/erp5_catalog_transition/ExtensionTemplateItem/portal_components/extension.erp5.UnrestrictedCallToCatalog.py
View file @
f6bc28e1
...
...
@@ -4,17 +4,17 @@ def getTableIdsUnrestricted(self):
The reason we need it here is that we need to get the result from the
restricted environment which isn't possible from inside ERP5.
This is because we are moving
SQL
Catalog inside ERP5 and converting it to
This is because we are moving Catalog inside ERP5 and converting it to
Folder object.
"""
# Get portal object
portal
=
self
.
getPortalObject
()
# Get current
SQL
Catalog objects
default_
sql_catalog
=
portal
.
portal_catalog
.
getSQL
Catalog
()
# Get current
ERP5
Catalog objects
default_
erp5_catalog
=
portal
.
portal_catalog
.
getERP5
Catalog
()
return
default_
sql
_catalog
.
getTableIds
()
return
default_
erp5
_catalog
.
getTableIds
()
def
getCatalogMethodIdsUnrestricted
(
self
):
"""
...
...
@@ -22,17 +22,17 @@ def getCatalogMethodIdsUnrestricted(self):
The reason we need it here is that we need to get the result from the
restricted environment which isn't possible from inside ERP5.
This is because we are moving
SQL
Catalog inside ERP5 and converting it to
This is because we are moving Catalog inside ERP5 and converting it to
Folder object.
"""
# Get portal object
portal
=
self
.
getPortalObject
()
# Get current
SQL
Catalog objects
default_
sql_catalog
=
portal
.
portal_catalog
.
getSQL
Catalog
()
# Get current
ERP5
Catalog objects
default_
erp5_catalog
=
portal
.
portal_catalog
.
getERP5
Catalog
()
return
default_
sql
_catalog
.
getCatalogMethodIds
()
return
default_
erp5
_catalog
.
getCatalogMethodIds
()
def
getResultColumnIdsUnrestricted
(
self
):
"""
...
...
@@ -40,17 +40,17 @@ def getResultColumnIdsUnrestricted(self):
The reason we need it here is that we need to get the result from the
restricted environment which isn't possible from inside ERP5.
This is because we are moving
SQL
Catalog inside ERP5 and converting it to
This is because we are moving Catalog inside ERP5 and converting it to
Folder object.
"""
# Get portal object
portal
=
self
.
getPortalObject
()
# Get current
SQL
Catalog objects
default_
sql_catalog
=
portal
.
portal_catalog
.
getSQL
Catalog
()
# Get current
ERP5
Catalog objects
default_
erp5_catalog
=
portal
.
portal_catalog
.
getERP5
Catalog
()
return
default_
sql
_catalog
.
getResultColumnIds
()
return
default_
erp5
_catalog
.
getResultColumnIds
()
def
getColumnIdsUnrestricted
(
self
):
"""
...
...
@@ -58,17 +58,17 @@ def getColumnIdsUnrestricted(self):
The reason we need it here is that we need to get the result from the
restricted environment which isn't possible from inside ERP5.
This is because we are moving
SQL
Catalog inside ERP5 and converting it to
This is because we are moving Catalog inside ERP5 and converting it to
Folder object.
"""
# Get portal object
portal
=
self
.
getPortalObject
()
# Get current
SQL
Catalog objects
default_
sql_catalog
=
portal
.
portal_catalog
.
getSQL
Catalog
()
# Get current
ERP5
Catalog objects
default_
erp5_catalog
=
portal
.
portal_catalog
.
getERP5
Catalog
()
return
default_
sql
_catalog
.
getColumnIds
()
return
default_
erp5
_catalog
.
getColumnIds
()
def
getSortColumnIdsUnrestricted
(
self
):
"""
...
...
@@ -76,17 +76,17 @@ def getSortColumnIdsUnrestricted(self):
The reason we need it here is that we need to get the result from the
restricted environment which isn't possible from inside ERP5.
This is because we are moving
SQL
Catalog inside ERP5 and converting it to
This is because we are moving Catalog inside ERP5 and converting it to
Folder object.
"""
# Get portal object
portal
=
self
.
getPortalObject
()
# Get current
SQL
Catalog objects
default_
sql_catalog
=
portal
.
portal_catalog
.
getSQL
Catalog
()
# Get current
ERP5
Catalog objects
default_
erp5_catalog
=
portal
.
portal_catalog
.
getERP5
Catalog
()
return
default_
sql
_catalog
.
getSortColumnIds
()
return
default_
erp5
_catalog
.
getSortColumnIds
()
def
getPythonMethodIdsUnrestricted
(
self
):
"""
...
...
@@ -94,17 +94,17 @@ def getPythonMethodIdsUnrestricted(self):
The reason we need it here is that we need to get the result from the
restricted environment which isn't possible from inside ERP5.
This is because we are moving
SQL
Catalog inside ERP5 and converting it to
This is because we are moving Catalog inside ERP5 and converting it to
Folder object.
"""
# Get portal object
portal
=
self
.
getPortalObject
()
# Get current
SQL
Catalog objects
default_
sql_catalog
=
portal
.
portal_catalog
.
getSQL
Catalog
()
# Get current
ERP5
Catalog objects
default_
erp5_catalog
=
portal
.
portal_catalog
.
getERP5
Catalog
()
return
default_
sql
_catalog
.
getPythonMethodIds
()
return
default_
erp5
_catalog
.
getPythonMethodIds
()
def
getSQLCatalogIdListUnrestricted
(
self
):
"""
...
...
@@ -112,11 +112,11 @@ def getSQLCatalogIdListUnrestricted(self):
The reason we need it here is that we need to get the result from the
restricted environment which isn't possible from inside ERP5.
This is because we are moving
SQL
Catalog inside ERP5 and converting it to
This is because we are moving Catalog inside ERP5 and converting it to
Folder object.
"""
# Get portal object
portal
=
self
.
getPortalObject
()
return
portal
.
portal_catalog
.
get
SQL
CatalogIdList
()
return
portal
.
portal_catalog
.
get
ERP5
CatalogIdList
()
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