Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
Commits
7cdf2dec
Commit
7cdf2dec
authored
Dec 17, 2014
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Plain Diff
Fix new line markers.
parents
0c9063ec
48a1ae7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+0
-2
product/ERP5Type/dynamic/lazy_class.py
product/ERP5Type/dynamic/lazy_class.py
+2
-3
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+1
-0
No files found.
product/ERP5Type/Base.py
View file @
7cdf2dec
...
...
@@ -3633,5 +3633,3 @@ class TempBase(Base):
# allow_class(TempBase) in ERP5Type/Document/__init__.py will trample our
# ClassSecurityInfo with one that doesn't declare our public methods
InitializeClass
(
TempBase
)
product/ERP5Type/dynamic/lazy_class.py
View file @
7cdf2dec
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
...
...
@@ -290,8 +289,8 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
portal_type
=
site
.
getDefaultModule
(
portal_type
=
"portal_types"
)
pt
=
portal_type
.
_getOb
(
cls
.
__name__
,
None
)
if
pt
is
not
None
:
w
f
=
getattr
(
pt
,
'workflow_list'
,
None
)
if
w
f
is
not
None
:
w
orkflow_list
=
getattr
(
pt
,
'workflow_list'
,
None
)
if
w
orkflow_list
is
not
None
:
portal_ERP5Workflow
=
site
.
getDefaultModule
(
portal_type
=
"Workflow"
)
if
portal_ERP5Workflow
is
None
:
LOG
(
"ERP5Type.Dynamic"
,
WARNING
,
...
...
product/ERP5Workflow/Document/Workflow.py
View file @
7cdf2dec
...
...
@@ -151,6 +151,7 @@ class Workflow(XMLObject):
def
_getERP5WorkflowStateOf
(
self
,
ob
):
bc_id
=
self
.
getStateBaseCategory
()
state_path
=
ob
.
getCategoryList
()
### should avoid using lstrip
state_path
=
state_path
[
0
].
lstrip
(
"%s/"
%
bc_id
)
if
state_path
is
not
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