Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
140
Merge Requests
140
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
178b7e0c
Commit
178b7e0c
authored
Mar 16, 2021
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip : deactivate some import, Globals is only for BBB, we don't use publish
parent
9829b291
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
product/ERP5Type/ZopePatch.py
product/ERP5Type/ZopePatch.py
+1
-1
product/Localizer/patches.py
product/Localizer/patches.py
+4
-3
No files found.
product/ERP5Type/ZopePatch.py
View file @
178b7e0c
...
@@ -90,7 +90,7 @@ from Products.ERP5Type.patches import ZopePageTemplate
...
@@ -90,7 +90,7 @@ from Products.ERP5Type.patches import ZopePageTemplate
from
Products.ERP5Type.patches
import
ZSQLMethod
from
Products.ERP5Type.patches
import
ZSQLMethod
from
Products.ERP5Type.patches
import
MimetypesRegistry
from
Products.ERP5Type.patches
import
MimetypesRegistry
from
Products.ERP5Type.patches
import
users
from
Products.ERP5Type.patches
import
users
from
Products.ERP5Type.patches
import
Publish
#
from Products.ERP5Type.patches import Publish
from
Products.ERP5Type.patches
import
WSGITask
from
Products.ERP5Type.patches
import
WSGITask
from
Products.ERP5Type.patches
import
urllib_opener
from
Products.ERP5Type.patches
import
urllib_opener
...
...
product/Localizer/patches.py
View file @
178b7e0c
...
@@ -26,7 +26,7 @@ import os
...
@@ -26,7 +26,7 @@ import os
from
.itools.i18n
import
AcceptLanguageType
from
.itools.i18n
import
AcceptLanguageType
# Import from Zope
# Import from Zope
import
Globals
#
import Globals
from
ZPublisher
import
Publish
from
ZPublisher
import
Publish
from
ZPublisher.HTTPRequest
import
HTTPRequest
from
ZPublisher.HTTPRequest
import
HTTPRequest
from
zope.globalrequest
import
clearRequest
,
setRequest
from
zope.globalrequest
import
clearRequest
,
setRequest
...
@@ -74,8 +74,9 @@ if patch is False:
...
@@ -74,8 +74,9 @@ if patch is False:
Publish
.
publish
=
get_new_publish
(
Publish
.
publish
)
Publish
.
publish
=
get_new_publish
(
Publish
.
publish
)
patch
=
True
patch
=
True
# Add to Globals for backwards compatibility
# Add to Globals for backwards compatibility
Globals
.
get_request
=
get_request
# XXX-AUREL do we really care ?
# Globals.get_request = get_request
...
...
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