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
Issues
1
Issues
1
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
erp5
Commits
6bca5348
Commit
6bca5348
authored
Mar 07, 2024
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rewrite deprecated imports that will be removed in the future.
parent
48a82c22
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
20 additions
and
20 deletions
+20
-20
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.EncryptedPasswordMixin.py
...em/portal_components/mixin.erp5.EncryptedPasswordMixin.py
+1
-1
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.LoginAccountProviderMixin.py
...portal_components/mixin.erp5.LoginAccountProviderMixin.py
+1
-1
bt5/erp5_big_file/DocumentTemplateItem/portal_components/document.erp5.BigFile.py
...ntTemplateItem/portal_components/document.erp5.BigFile.py
+1
-1
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testAlarm.py
...TestTemplateItem/portal_components/test.erp5.testAlarm.py
+1
-1
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testCookieCrumbler.py
...ateItem/portal_components/test.erp5.testCookieCrumbler.py
+1
-1
product/CMFActivity/ActivityTool.py
product/CMFActivity/ActivityTool.py
+1
-1
product/ERP5/Document/Alarm.py
product/ERP5/Document/Alarm.py
+1
-1
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+1
-1
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.Delivery.py
...tTemplateItem/portal_components/document.erp5.Delivery.py
+1
-1
product/ERP5Catalog/CatalogTool.py
product/ERP5Catalog/CatalogTool.py
+1
-1
product/ERP5Security/ERP5LoginUserManager.py
product/ERP5Security/ERP5LoginUserManager.py
+1
-1
product/ERP5Security/ERP5UserManager.py
product/ERP5Security/ERP5UserManager.py
+1
-1
product/ERP5Type/UnrestrictedMethod.py
product/ERP5Type/UnrestrictedMethod.py
+1
-1
product/ERP5Type/patches/AcceleratedHTTPCacheManager.py
product/ERP5Type/patches/AcceleratedHTTPCacheManager.py
+1
-1
product/ERP5Type/patches/CachingPolicyManager.py
product/ERP5Type/patches/CachingPolicyManager.py
+1
-1
product/ERP5Type/patches/PropertiedUser.py
product/ERP5Type/patches/PropertiedUser.py
+2
-2
product/ERP5Type/patches/User.py
product/ERP5Type/patches/User.py
+1
-1
product/MailTemplates/tests/test_FSMailTemplate.py
product/MailTemplates/tests/test_FSMailTemplate.py
+1
-1
product/MailTemplates/tests/test_MailTemplate.py
product/MailTemplates/tests/test_MailTemplate.py
+1
-1
No files found.
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.EncryptedPasswordMixin.py
View file @
6bca5348
...
...
@@ -30,7 +30,7 @@
##############################################################################
import
zope.interface
from
AccessControl
import
ClassSecurityInfo
from
A
ccessControl
.AuthEncoding
import
pw_encrypt
,
pw_validate
from
A
uthEncoding
.AuthEncoding
import
pw_encrypt
,
pw_validate
from
Products.ERP5Type.Globals
import
InitializeClass
from
Acquisition
import
aq_base
from
Products.ERP5Type
import
Permissions
...
...
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.LoginAccountProviderMixin.py
View file @
6bca5348
...
...
@@ -31,7 +31,7 @@ import zope.interface
from
Products.ERP5Type
import
Permissions
from
erp5.component.interface.ILoginAccountProvider
import
ILoginAccountProvider
from
A
ccessControl
.AuthEncoding
import
pw_validate
from
A
uthEncoding
.AuthEncoding
import
pw_validate
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type.Globals
import
InitializeClass
...
...
bt5/erp5_big_file/DocumentTemplateItem/portal_components/document.erp5.BigFile.py
View file @
6bca5348
...
...
@@ -22,7 +22,7 @@ from erp5.component.document.File import File, _MARKER
from
erp5.component.module.BTreeData
import
BTreeData
from
ZPublisher.HTTPRequest
import
FileUpload
from
ZPublisher
import
HTTPRangeSupport
from
webdav.common
import
rfc1123_date
from
zope.datetime
import
rfc1123_date
from
mimetools
import
choose_boundary
from
Products.CMFCore.utils
import
_setCacheHeaders
,
_ViewEmulator
from
DateTime
import
DateTime
...
...
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testAlarm.py
View file @
6bca5348
...
...
@@ -30,7 +30,7 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from
Products.ERP5Type.UnrestrictedMethod
import
super_user
from
AccessControl.SecurityManagement
import
newSecurityManager
,
\
getSecurityManager
,
setSecurityManager
from
AccessControl.
User
import
nobody
from
AccessControl.
users
import
nobody
from
AccessControl
import
Unauthorized
from
DateTime
import
DateTime
from
erp5.component.module.DateUtils
import
addToDate
...
...
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testCookieCrumbler.py
View file @
6bca5348
...
...
@@ -18,7 +18,7 @@ import urllib
from
OFS.DTMLMethod
import
DTMLMethod
from
OFS.Folder
import
Folder
from
AccessControl.
User
import
UserFolder
from
AccessControl.
users
import
UserFolder
from
Products.CMFCore.CookieCrumbler
import
CookieCrumbler
from
Products.CMFCore.tests.test_CookieCrumbler
import
makerequest
...
...
product/CMFActivity/ActivityTool.py
View file @
6bca5348
...
...
@@ -47,7 +47,7 @@ from AccessControl.SecurityManagement import newSecurityManager
from
AccessControl.SecurityManagement
import
noSecurityManager
from
AccessControl.SecurityManagement
import
setSecurityManager
from
AccessControl.SecurityManagement
import
getSecurityManager
from
AccessControl.
User
import
system
as
system_user
from
AccessControl.
users
import
system
as
system_user
from
Products.CMFCore.utils
import
UniqueObject
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
from
Acquisition
import
aq_base
,
aq_inner
,
aq_parent
...
...
product/ERP5/Document/Alarm.py
View file @
6bca5348
...
...
@@ -36,7 +36,7 @@ from DateTime import DateTime
from
AccessControl
import
ClassSecurityInfo
,
Unauthorized
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
setSecurityManager
,
newSecurityManager
from
AccessControl.
User
import
nobody
from
AccessControl.
users
import
nobody
from
Products.CMFActivity.ActivityRuntimeEnvironment
import
getActivityRuntimeEnvironment
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.XMLObject
import
XMLObject
...
...
product/ERP5/Document/BusinessTemplate.py
View file @
6bca5348
...
...
@@ -40,7 +40,7 @@ from AccessControl import ClassSecurityInfo, Unauthorized
from
AccessControl.SecurityInfo
import
ModuleSecurityInfo
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
newSecurityManager
,
setSecurityManager
from
AccessControl.
User
import
nobody
from
AccessControl.
users
import
nobody
from
Products.CMFCore.utils
import
getToolByName
from
Products.PythonScripts.PythonScript
import
PythonScript
from
Products.ZSQLMethods.SQL
import
SQL
...
...
product/ERP5/bootstrap/erp5_core/DocumentTemplateItem/portal_components/document.erp5.Delivery.py
View file @
6bca5348
...
...
@@ -34,7 +34,7 @@ import zope.interface
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
setSecurityManager
,
newSecurityManager
from
AccessControl.
User
import
nobody
from
AccessControl.
users
import
nobody
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Accessor.Constant
import
PropertyGetter
as
ConstantGetter
from
Products.ERP5Type.XMLObject
import
XMLObject
...
...
product/ERP5Catalog/CatalogTool.py
View file @
6bca5348
...
...
@@ -36,7 +36,7 @@ from Products.ZSQLCatalog.ZSQLCatalog import ZCatalog
from
Products.ZSQLCatalog.SQLCatalog
import
ComplexQuery
,
SimpleQuery
from
Products.ERP5Type
import
Permissions
from
AccessControl
import
ClassSecurityInfo
,
getSecurityManager
from
AccessControl.
User
import
system
as
system_user
from
AccessControl.
users
import
system
as
system_user
from
Products.CMFCore.utils
import
UniqueObject
,
_getAuthenticatedUser
,
getToolByName
from
Products.ERP5Type.Globals
import
InitializeClass
,
DTMLFile
from
Acquisition
import
aq_base
,
aq_inner
,
aq_parent
,
ImplicitAcquisitionWrapper
...
...
product/ERP5Security/ERP5LoginUserManager.py
View file @
6bca5348
...
...
@@ -28,7 +28,7 @@
from
functools
import
partial
from
Products.ERP5Type.Globals
import
InitializeClass
from
AccessControl
import
ClassSecurityInfo
from
A
ccessControl
.AuthEncoding
import
pw_validate
from
A
uthEncoding
.AuthEncoding
import
pw_validate
from
Products.PageTemplates.PageTemplateFile
import
PageTemplateFile
from
Products.PluggableAuthService.plugins.BasePlugin
import
BasePlugin
from
Products.PluggableAuthService.utils
import
classImplements
...
...
product/ERP5Security/ERP5UserManager.py
View file @
6bca5348
...
...
@@ -19,7 +19,7 @@ from six import string_types as basestring
from
Products.ERP5Type.Globals
import
InitializeClass
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityInfo
import
ModuleSecurityInfo
from
A
ccessControl
.AuthEncoding
import
pw_validate
from
A
uthEncoding
.AuthEncoding
import
pw_validate
from
Products.PageTemplates.PageTemplateFile
import
PageTemplateFile
from
Products.PluggableAuthService.PluggableAuthService
import
\
_SWALLOWABLE_PLUGIN_EXCEPTIONS
...
...
product/ERP5Type/UnrestrictedMethod.py
View file @
6bca5348
...
...
@@ -27,7 +27,7 @@
##############################################################################
from
contextlib
import
contextmanager
from
AccessControl.
User
import
UnrestrictedUser
from
AccessControl.
users
import
UnrestrictedUser
from
AccessControl.SpecialUsers
import
system
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
newSecurityManager
,
setSecurityManager
...
...
product/ERP5Type/patches/AcceleratedHTTPCacheManager.py
View file @
6bca5348
import
time
from
Products.StandardCacheManagers.AcceleratedHTTPCacheManager
import
\
AcceleratedHTTPCache
,
AcceleratedHTTPCacheManager
from
App.Common
import
rfc1123_date
from
zope.datetime
import
rfc1123_date
from
App.special_dtml
import
DTMLFile
from
Products.ERP5Type
import
_dtmldir
...
...
product/ERP5Type/patches/CachingPolicyManager.py
View file @
6bca5348
...
...
@@ -2,7 +2,7 @@ from Products.CMFCore.CachingPolicyManager import CachingPolicy, \
CachingPolicyManager
,
createCPContext
from
App.special_dtml
import
DTMLFile
from
Products.CMFCore.Expression
import
Expression
from
App.Common
import
rfc1123_date
from
zope.datetime
import
rfc1123_date
from
DateTime.DateTime
import
DateTime
from
Products.ERP5Type
import
_dtmldir
...
...
product/ERP5Type/patches/PropertiedUser.py
View file @
6bca5348
...
...
@@ -37,7 +37,7 @@ def getRolesInContext(self, object):
o Include *both* local roles assigned directly to us *and* those
assigned to our groups.
o Ripped off from AccessControl.
User
.BasicUser, which provides
o Ripped off from AccessControl.
users
.BasicUser, which provides
no other extension mechanism. :(
"""
principal_id_list
=
[
self
.
getId
()]
...
...
@@ -74,7 +74,7 @@ def allowed(self, object, object_roles=None):
o Include *both* local roles assigned directly to us *and* those
assigned to our groups.
o Ripped off from AccessControl.
User
.BasicUser, which provides
o Ripped off from AccessControl.
users
.BasicUser, which provides
no other extension mechanism. :(
"""
if
object_roles
is
_what_not_even_god_should_do
:
...
...
product/ERP5Type/patches/User.py
View file @
6bca5348
...
...
@@ -15,7 +15,7 @@
from
threading
import
local
from
Acquisition
import
aq_inner
,
aq_parent
from
AccessControl.
User
import
SimpleUser
from
AccessControl.
users
import
SimpleUser
from
App.config
import
getConfiguration
from
..TransactionalVariable
import
TransactionalVariable
...
...
product/MailTemplates/tests/test_FSMailTemplate.py
View file @
6bca5348
...
...
@@ -8,7 +8,7 @@ from __future__ import absolute_import
import
os
from
AccessControl.SecurityManagement
import
newSecurityManager
from
AccessControl.SecurityManagement
import
noSecurityManager
from
AccessControl.
User
import
system
as
SystemUser
,
SimpleUser
from
AccessControl.
users
import
system
as
SystemUser
,
SimpleUser
from
OFS.Folder
import
Folder
from
.test_MailTemplate
import
DummyMailHost
,
Zope
,
get_transaction
from
Testing.makerequest
import
makerequest
...
...
product/MailTemplates/tests/test_MailTemplate.py
View file @
6bca5348
...
...
@@ -13,7 +13,7 @@ except ImportError:
from
AccessControl.SecurityManagement
import
newSecurityManager
from
AccessControl.SecurityManagement
import
noSecurityManager
from
AccessControl.
User
import
system
as
SystemUser
,
SimpleUser
from
AccessControl.
users
import
system
as
SystemUser
,
SimpleUser
from
six.moves
import
cStringIO
as
StringIO
from
difflib
import
unified_diff
from
Products.MailHost.MailHost
import
MailHost
...
...
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