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
138
Merge Requests
138
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
7463a7d4
Commit
7463a7d4
authored
Oct 02, 2022
by
Kazuhiko Shiozaki
Committed by
Jérome Perrin
Jun 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
import six.string_types as basestring for Python 3.
parent
93f8ae7d
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
14 additions
and
1 deletion
+14
-1
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.EncryptedPasswordMixin.py
...em/portal_components/mixin.erp5.EncryptedPasswordMixin.py
+1
-0
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.ServiceConfiguratorItem.py
...ortal_components/document.erp5.ServiceConfiguratorItem.py
+1
-1
bt5/erp5_forge/ModuleComponentTemplateItem/portal_components/module.erp5.Subversion.py
...tTemplateItem/portal_components/module.erp5.Subversion.py
+1
-0
bt5/erp5_forge/ModuleComponentTemplateItem/portal_components/module.erp5.WorkingCopy.py
...TemplateItem/portal_components/module.erp5.WorkingCopy.py
+1
-0
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doVcsCommit.py
...tem/portal_skins/erp5_vcs/BusinessTemplate_doVcsCommit.py
+1
-0
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/ERP5Site_toggleActiveKnowledgePad.py
...s/erp5_knowledge_pad/ERP5Site_toggleActiveKnowledgePad.py
+1
-0
bt5/erp5_syncml/DocumentTemplateItem/portal_components/document.erp5.SyncMLSubscription.py
...tem/portal_components/document.erp5.SyncMLSubscription.py
+1
-0
bt5/erp5_syncml/ModuleComponentTemplateItem/portal_components/module.erp5.ERP5Conduit.py
...TemplateItem/portal_components/module.erp5.ERP5Conduit.py
+1
-0
bt5/erp5_syncml/ModuleComponentTemplateItem/portal_components/module.erp5.SyncMLMessage.py
...mplateItem/portal_components/module.erp5.SyncMLMessage.py
+1
-0
bt5/erp5_syncml/TestTemplateItem/portal_components/test.erp5.testERP5SyncML.py
...emplateItem/portal_components/test.erp5.testERP5SyncML.py
+1
-0
bt5/erp5_syncml/ToolComponentTemplateItem/portal_components/tool.erp5.SynchronizationTool.py
...teItem/portal_components/tool.erp5.SynchronizationTool.py
+1
-0
bt5/erp5_test_result/ExtensionTemplateItem/portal_components/extension.erp5.TestResults.py
...plateItem/portal_components/extension.erp5.TestResults.py
+1
-0
bt5/erp5_tiosafe_core/ModuleComponentTemplateItem/portal_components/module.erp5.TioSafeBaseConduit.py
...eItem/portal_components/module.erp5.TioSafeBaseConduit.py
+1
-0
bt5/erp5_wechat_secure_payment/DocumentTemplateItem/portal_components/document.erp5.WechatService.py
...lateItem/portal_components/document.erp5.WechatService.py
+1
-0
No files found.
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.EncryptedPasswordMixin.py
View file @
7463a7d4
...
@@ -38,6 +38,7 @@ from erp5.component.interface.IEncryptedPassword import IEncryptedPassword
...
@@ -38,6 +38,7 @@ from erp5.component.interface.IEncryptedPassword import IEncryptedPassword
from
Products.ERP5Type.Globals
import
PersistentMapping
from
Products.ERP5Type.Globals
import
PersistentMapping
from
Products.CMFCore.utils
import
_checkPermission
from
Products.CMFCore.utils
import
_checkPermission
from
Products.CMFCore.exceptions
import
AccessControl_Unauthorized
from
Products.CMFCore.exceptions
import
AccessControl_Unauthorized
from
six
import
string_types
as
basestring
@
zope
.
interface
.
implementer
(
IEncryptedPassword
,)
@
zope
.
interface
.
implementer
(
IEncryptedPassword
,)
class
EncryptedPasswordMixin
(
object
):
class
EncryptedPasswordMixin
(
object
):
...
...
bt5/erp5_configurator/DocumentTemplateItem/portal_components/document.erp5.ServiceConfiguratorItem.py
View file @
7463a7d4
...
@@ -34,7 +34,7 @@ from Products.ERP5Type.XMLObject import XMLObject
...
@@ -34,7 +34,7 @@ from Products.ERP5Type.XMLObject import XMLObject
from
Products.ERP5Type.Message
import
translateString
from
Products.ERP5Type.Message
import
translateString
from
erp5.component.mixin.ConfiguratorItemMixin
import
ConfiguratorItemMixin
from
erp5.component.mixin.ConfiguratorItemMixin
import
ConfiguratorItemMixin
from
erp5.component.interface.IConfiguratorItem
import
IConfiguratorItem
from
erp5.component.interface.IConfiguratorItem
import
IConfiguratorItem
from
six
import
string_types
as
basestring
@
zope
.
interface
.
implementer
(
IConfiguratorItem
)
@
zope
.
interface
.
implementer
(
IConfiguratorItem
)
class
ServiceConfiguratorItem
(
ConfiguratorItemMixin
,
XMLObject
):
class
ServiceConfiguratorItem
(
ConfiguratorItemMixin
,
XMLObject
):
...
...
bt5/erp5_forge/ModuleComponentTemplateItem/portal_components/module.erp5.Subversion.py
View file @
7463a7d4
...
@@ -41,6 +41,7 @@ from erp5.component.module.WorkingCopy import \
...
@@ -41,6 +41,7 @@ from erp5.component.module.WorkingCopy import \
WorkingCopy
,
Dir
,
File
,
selfcached
,
\
WorkingCopy
,
Dir
,
File
,
selfcached
,
\
NotAWorkingCopyError
,
NotVersionedError
,
VcsConflictError
NotAWorkingCopyError
,
NotVersionedError
,
VcsConflictError
from
erp5.component.module.SubversionClient
import
newSubversionClient
from
erp5.component.module.SubversionClient
import
newSubversionClient
from
six
import
string_types
as
basestring
# XXX This does not work with concurrent processes/threads accessing the
# XXX This does not work with concurrent processes/threads accessing the
# same working copy...
# same working copy...
...
...
bt5/erp5_forge/ModuleComponentTemplateItem/portal_components/module.erp5.WorkingCopy.py
View file @
7463a7d4
...
@@ -41,6 +41,7 @@ from DateTime import DateTime
...
@@ -41,6 +41,7 @@ from DateTime import DateTime
from
ZTUtils
import
make_query
from
ZTUtils
import
make_query
from
Products.ERP5.Document.BusinessTemplate
import
BusinessTemplateFolder
from
Products.ERP5.Document.BusinessTemplate
import
BusinessTemplateFolder
from
Products.ERP5Type.Utils
import
simple_decorator
from
Products.ERP5Type.Utils
import
simple_decorator
from
six
import
string_types
as
basestring
@
simple_decorator
@
simple_decorator
def
selfcached
(
func
):
def
selfcached
(
func
):
...
...
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doVcsCommit.py
View file @
7463a7d4
import
json
import
json
from
six
import
string_types
as
basestring
commit_dict
=
json
.
loads
(
commit_json
)
if
commit_json
is
not
None
else
{
commit_dict
=
json
.
loads
(
commit_json
)
if
commit_json
is
not
None
else
{
'added'
:
(),
'added'
:
(),
...
...
bt5/erp5_knowledge_pad/SkinTemplateItem/portal_skins/erp5_knowledge_pad/ERP5Site_toggleActiveKnowledgePad.py
View file @
7463a7d4
from
six
import
string_types
as
basestring
toggable_pad
=
None
toggable_pad
=
None
all_knowledge_pads
=
context
.
ERP5Site_getKnowledgePadListForUser
(
mode
=
mode
)
all_knowledge_pads
=
context
.
ERP5Site_getKnowledgePadListForUser
(
mode
=
mode
)
if
isinstance
(
knowledge_pad_url
,
basestring
):
if
isinstance
(
knowledge_pad_url
,
basestring
):
...
...
bt5/erp5_syncml/DocumentTemplateItem/portal_components/document.erp5.SyncMLSubscription.py
View file @
7463a7d4
...
@@ -32,6 +32,7 @@ from logging import getLogger
...
@@ -32,6 +32,7 @@ from logging import getLogger
from
urlparse
import
urlparse
from
urlparse
import
urlparse
from
lxml
import
etree
from
lxml
import
etree
from
copy
import
deepcopy
from
copy
import
deepcopy
from
six
import
string_types
as
basestring
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
from
AccessControl.SecurityManagement
import
newSecurityManager
from
AccessControl.SecurityManagement
import
newSecurityManager
...
...
bt5/erp5_syncml/ModuleComponentTemplateItem/portal_components/module.erp5.ERP5Conduit.py
View file @
7463a7d4
...
@@ -48,6 +48,7 @@ from xupdate_processor import xuproc
...
@@ -48,6 +48,7 @@ from xupdate_processor import xuproc
from
base64
import
standard_b64decode
from
base64
import
standard_b64decode
from
zope.interface
import
implementer
from
zope.interface
import
implementer
from
copy
import
deepcopy
from
copy
import
deepcopy
from
six
import
string_types
as
basestring
import
logging
import
logging
syncml_logger
=
logging
.
getLogger
(
'ERP5SyncML'
)
syncml_logger
=
logging
.
getLogger
(
'ERP5SyncML'
)
...
...
bt5/erp5_syncml/ModuleComponentTemplateItem/portal_components/module.erp5.SyncMLMessage.py
View file @
7463a7d4
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
from
lxml.builder
import
ElementMaker
from
lxml.builder
import
ElementMaker
from
lxml.etree
import
Element
from
lxml.etree
import
Element
from
lxml
import
etree
from
lxml
import
etree
from
six
import
string_types
as
basestring
from
erp5.component.module.XMLSyncUtils
import
resolveSyncmlStatusCode
,
\
from
erp5.component.module.XMLSyncUtils
import
resolveSyncmlStatusCode
,
\
encode
,
resolveSyncmlAlertCode
encode
,
resolveSyncmlAlertCode
...
...
bt5/erp5_syncml/TestTemplateItem/portal_components/test.erp5.testERP5SyncML.py
View file @
7463a7d4
...
@@ -31,6 +31,7 @@ import unittest
...
@@ -31,6 +31,7 @@ import unittest
from
base64
import
b64encode
,
b64decode
,
b16encode
from
base64
import
b64encode
,
b64decode
,
b16encode
from
lxml
import
etree
from
lxml
import
etree
from
unittest
import
expectedFailure
from
unittest
import
expectedFailure
from
six
import
string_types
as
basestring
from
AccessControl.SecurityManagement
import
newSecurityManager
from
AccessControl.SecurityManagement
import
newSecurityManager
from
ERP5Diff
import
ERP5Diff
from
ERP5Diff
import
ERP5Diff
...
...
bt5/erp5_syncml/ToolComponentTemplateItem/portal_components/tool.erp5.SynchronizationTool.py
View file @
7463a7d4
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
##############################################################################
##############################################################################
from
logging
import
getLogger
from
logging
import
getLogger
from
six
import
string_types
as
basestring
from
AccessControl
import
ClassSecurityInfo
from
AccessControl
import
ClassSecurityInfo
...
...
bt5/erp5_test_result/ExtensionTemplateItem/portal_components/extension.erp5.TestResults.py
View file @
7463a7d4
...
@@ -2,6 +2,7 @@ import difflib
...
@@ -2,6 +2,7 @@ import difflib
import
zipfile
import
zipfile
import
os
import
os
import
re
import
re
from
six
import
string_types
as
basestring
from
zExceptions
import
Unauthorized
from
zExceptions
import
Unauthorized
separator1
=
'='
*
70
separator1
=
'='
*
70
...
...
bt5/erp5_tiosafe_core/ModuleComponentTemplateItem/portal_components/module.erp5.TioSafeBaseConduit.py
View file @
7463a7d4
...
@@ -35,6 +35,7 @@ from zLOG import LOG, INFO, WARNING
...
@@ -35,6 +35,7 @@ from zLOG import LOG, INFO, WARNING
from
erp5.component.module.ERP5Conduit
import
ERP5Conduit
from
erp5.component.module.ERP5Conduit
import
ERP5Conduit
from
lxml
import
etree
from
lxml
import
etree
from
copy
import
deepcopy
from
copy
import
deepcopy
from
six
import
string_types
as
basestring
parser
=
etree
.
XMLParser
(
remove_blank_text
=
True
)
parser
=
etree
.
XMLParser
(
remove_blank_text
=
True
)
XUPDATE_INSERT_LIST
=
(
'xupdate:insert-after'
,
'xupdate:insert-before'
)
XUPDATE_INSERT_LIST
=
(
'xupdate:insert-after'
,
'xupdate:insert-before'
)
...
...
bt5/erp5_wechat_secure_payment/DocumentTemplateItem/portal_components/document.erp5.WechatService.py
View file @
7463a7d4
...
@@ -5,6 +5,7 @@ from Products.ERP5Type.XMLObject import XMLObject
...
@@ -5,6 +5,7 @@ from Products.ERP5Type.XMLObject import XMLObject
from
zLOG
import
LOG
,
WARNING
from
zLOG
import
LOG
,
WARNING
import
random
,
string
,
hashlib
,
urllib2
,
socket
import
random
,
string
,
hashlib
,
urllib2
,
socket
from
urlparse
import
urlparse
from
urlparse
import
urlparse
from
six
import
string_types
as
basestring
try
:
try
:
import
xml.etree.cElementTree
as
ET
import
xml.etree.cElementTree
as
ET
except
ImportError
:
except
ImportError
:
...
...
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