Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
erp5
Commits
8f7efb34
Commit
8f7efb34
authored
Oct 26, 2017
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New ERP5Site.isPortalBeingCreated accessor for scalability tests
parent
ad4e44c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+20
-3
No files found.
product/ERP5/ERP5Site.py
View file @
8f7efb34
...
@@ -236,6 +236,10 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
...
@@ -236,6 +236,10 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
icon
=
'portal.gif'
icon
=
'portal.gif'
# Default value, prevents error during upgrade
# Default value, prevents error during upgrade
isIndexable
=
ConstantGetter
(
'isIndexable'
,
value
=
True
)
isIndexable
=
ConstantGetter
(
'isIndexable'
,
value
=
True
)
# There can remain a lot a activities to be processed once all BT5 are
# installed, and scalability tests want a reliable way to know when the site
# is ready to be tortured.
isPortalBeingCreated
=
ConstantGetter
(
'isPortalBeingCreated'
,
value
=
False
)
_properties
=
(
_properties
=
(
{
'id'
:
'title'
,
{
'id'
:
'title'
,
...
@@ -1905,7 +1909,7 @@ class ERP5Generator(PortalGenerator):
...
@@ -1905,7 +1909,7 @@ class ERP5Generator(PortalGenerator):
p
.
_v_bootstrapping
=
False
p
.
_v_bootstrapping
=
False
# XXX: Is it useful to wait for indexing ?
# XXX: Is it useful to wait for indexing
before using upgradeSite
?
after_method_id
=
'immediateReindexObject'
after_method_id
=
'immediateReindexObject'
if
bt5_repository_url
:
if
bt5_repository_url
:
p
.
portal_templates
.
repository_dict
=
dict
.
fromkeys
(
p
.
portal_templates
.
repository_dict
=
dict
.
fromkeys
(
...
@@ -1916,8 +1920,21 @@ class ERP5Generator(PortalGenerator):
...
@@ -1916,8 +1920,21 @@ class ERP5Generator(PortalGenerator):
method_id
)(
bt5
.
split
(),
update_catalog
=
True
)
method_id
)(
bt5
.
split
(),
update_catalog
=
True
)
after_method_id
=
method_id
after_method_id
=
method_id
if
cloudooo_url
:
if
cloudooo_url
:
method_id
=
'_initSystemPreference'
getattr
(
p
.
portal_activities
.
activateObject
(
p
,
after_method_id
=
after_method_id
),
method_id
)(
cloudooo_url
=
cloudooo_url
)
after_method_id
=
method_id
id_
=
'isPortalBeingCreated'
setattr
(
p
,
id_
,
ConstantGetter
(
id_
,
value
=
True
))
# XXX: ERP5Site_reindexAll should be reviewed so that one can depend on a
# final tag. A more general approach is to have an activity dependency
# to anything, so that _delPropValue is called as soon as activity
# nodes have nothing else to do.
after_method_id
=
tuple
({
after_method_id
}.
union
((
'Folder_reindexAll'
,
'Folder_reindexObjectList'
,
'InventoryModule_reindexMovementList'
,
'immediateReindexObject'
,
'recursiveImmediateReindexObject'
,
'SQLCatalog_deferFullTextIndexActivity'
)))
p
.
portal_activities
.
activateObject
(
p
,
after_method_id
=
after_method_id
,
p
.
portal_activities
.
activateObject
(
p
,
after_method_id
=
after_method_id
,
).
_initSystemPreference
(
cloudooo_url
=
cloudooo_url
)
).
_delPropValue
(
id_
)
return
p
return
p
...
...
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