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
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
Alain Takoudjou
erp5
Commits
2ff4d690
Commit
2ff4d690
authored
May 05, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lazy_class.py: deploy universal workflow method initilization function.
parent
0fcb2746
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
product/ERP5Type/dynamic/lazy_class.py
product/ERP5Type/dynamic/lazy_class.py
+2
-6
No files found.
product/ERP5Type/dynamic/lazy_class.py
View file @
2ff4d690
...
@@ -27,7 +27,7 @@ from Products.ERP5Type.Accessor.Constant import Getter as ConstantGetter
...
@@ -27,7 +27,7 @@ from Products.ERP5Type.Accessor.Constant import Getter as ConstantGetter
from
Products.ERP5Type.Globals
import
InitializeClass
from
Products.ERP5Type.Globals
import
InitializeClass
from
Products.ERP5Type.Base
import
Base
as
ERP5Base
from
Products.ERP5Type.Base
import
Base
as
ERP5Base
from
.
import
aq_method_lock
from
.
import
aq_method_lock
from
Products.ERP5Type.Base
import
PropertyHolder
,
initializePortalType
DynamicWorkflowMethods
,
initializePortalTypeERP5WorkflowMethod
from
Products.ERP5Type.Base
import
PropertyHolder
,
initializePortalType
WorkflowMethods
from
Products.ERP5Type.Utils
import
UpperCase
from
Products.ERP5Type.Utils
import
UpperCase
from
Products.ERP5Type.Core.CategoryProperty
import
CategoryProperty
from
Products.ERP5Type.Core.CategoryProperty
import
CategoryProperty
from
ExtensionClass
import
ExtensionClass
,
pmc_init_of
from
ExtensionClass
import
ExtensionClass
,
pmc_init_of
...
@@ -280,8 +280,6 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
...
@@ -280,8 +280,6 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
category_id
,
category_id
,
category_tool
)
category_tool
)
###= Compatibility mode ====================================================
portal_workflow
=
getattr
(
site
,
'portal_workflow'
,
None
)
portal_workflow
=
getattr
(
site
,
'portal_workflow'
,
None
)
if
portal_workflow
is
None
:
if
portal_workflow
is
None
:
...
@@ -290,9 +288,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
...
@@ -290,9 +288,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
"Could not generate workflow methods for %s"
"Could not generate workflow methods for %s"
%
cls
.
__name__
)
%
cls
.
__name__
)
else
:
else
:
initializePortalTypeDynamicWorkflowMethods
(
cls
,
portal_workflow
)
initializePortalTypeWorkflowMethods
(
cls
,
portal_workflow
)
initializePortalTypeERP5WorkflowMethod
(
cls
,
portal_workflow
)
### =================================================== Compatibility Mode =
# portal type group methods, isNodeType, isResourceType...
# portal type group methods, isNodeType, isResourceType...
from
Products.ERP5Type.ERP5Type
import
ERP5TypeInformation
from
Products.ERP5Type.ERP5Type
import
ERP5TypeInformation
...
...
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