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
1
Merge Requests
1
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
Boxiang Sun
erp5
Commits
bb7855ca
Commit
bb7855ca
authored
Feb 28, 2012
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename component_class to component_package.
parent
89bdc92b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
product/ERP5Type/Tool/ComponentTool.py
product/ERP5Type/Tool/ComponentTool.py
+3
-3
product/ERP5Type/dynamic/component_package.py
product/ERP5Type/dynamic/component_package.py
+0
-0
product/ERP5Type/dynamic/dynamic_module.py
product/ERP5Type/dynamic/dynamic_module.py
+1
-1
No files found.
product/ERP5Type/Tool/ComponentTool.py
View file @
bb7855ca
...
@@ -84,10 +84,10 @@ class ComponentTool(BaseTool):
...
@@ -84,10 +84,10 @@ class ComponentTool(BaseTool):
global
last_sync
global
last_sync
if
force
:
if
force
:
# hard invalidation to force sync between nodes
# hard invalidation to force sync between nodes
portal
.
newCacheCookie
(
'component_
class
es'
)
portal
.
newCacheCookie
(
'component_
packag
es'
)
last_sync
=
portal
.
getCacheCookie
(
'component_
class
es'
)
last_sync
=
portal
.
getCacheCookie
(
'component_
packag
es'
)
else
:
else
:
cookie
=
portal
.
getCacheCookie
(
'component_
class
es'
)
cookie
=
portal
.
getCacheCookie
(
'component_
packag
es'
)
if
cookie
==
last_sync
:
if
cookie
==
last_sync
:
type_tool
.
resetDynamicDocumentsOnceAtTransactionBoundary
()
type_tool
.
resetDynamicDocumentsOnceAtTransactionBoundary
()
return
return
...
...
product/ERP5Type/dynamic/component_
class
.py
→
product/ERP5Type/dynamic/component_
package
.py
View file @
bb7855ca
File moved
product/ERP5Type/dynamic/dynamic_module.py
View file @
bb7855ca
...
@@ -125,7 +125,7 @@ def initializeDynamicModules():
...
@@ -125,7 +125,7 @@ def initializeDynamicModules():
erp5
.
component
=
ModuleType
(
"erp5.component"
)
erp5
.
component
=
ModuleType
(
"erp5.component"
)
sys
.
modules
[
"erp5.component"
]
=
erp5
.
component
sys
.
modules
[
"erp5.component"
]
=
erp5
.
component
from
component_
class
import
ComponentDynamicPackage
from
component_
package
import
ComponentDynamicPackage
erp5
.
component
.
extension
=
ComponentDynamicPackage
(
'erp5.component.extension'
,
erp5
.
component
.
extension
=
ComponentDynamicPackage
(
'erp5.component.extension'
,
'Extension Component'
)
'Extension Component'
)
...
...
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