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
255d3227
Commit
255d3227
authored
Nov 01, 2012
by
Ivan Tyagov
Committed by
Julien Muchembled
Nov 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portal_caches tool is expected to allow only Cache Factory instances inside
parent
b031c0e4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
13 deletions
+11
-13
product/ERP5/bootstrap/erp5_core/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
...eAllowedContentTypeTemplateItem/allowed_content_types.xml
+0
-1
product/ERP5/bootstrap/erp5_core/bt/template_portal_type_allowed_content_type_list
...p5_core/bt/template_portal_type_allowed_content_type_list
+1
-2
product/ERP5OOo/tests/testDmsWithFlare.py
product/ERP5OOo/tests/testDmsWithFlare.py
+5
-5
product/ERP5OOo/tests/testIngestionWithFlare.py
product/ERP5OOo/tests/testIngestionWithFlare.py
+5
-5
No files found.
product/ERP5/bootstrap/erp5_core/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml
View file @
255d3227
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
<item>
Ram Cache
</item>
<item>
Ram Cache
</item>
</portal_type>
</portal_type>
<portal_type
id=
"Cache Tool"
>
<portal_type
id=
"Cache Tool"
>
<item>
Cache Bag
</item>
<item>
Cache Factory
</item>
<item>
Cache Factory
</item>
</portal_type>
</portal_type>
<portal_type
id=
"Category"
>
<portal_type
id=
"Category"
>
...
...
product/ERP5/bootstrap/erp5_core/bt/template_portal_type_allowed_content_type_list
View file @
255d3227
...
@@ -11,7 +11,6 @@ Cache Bag | Ram Cache
...
@@ -11,7 +11,6 @@ Cache Bag | Ram Cache
Cache Factory | Cache Bag
Cache Factory | Cache Bag
Cache Factory | Distributed Ram Cache
Cache Factory | Distributed Ram Cache
Cache Factory | Ram Cache
Cache Factory | Ram Cache
Cache Tool | Cache Bag
Cache Tool | Cache Factory
Cache Tool | Cache Factory
Category Tool | Base Category
Category Tool | Base Category
Category | Category
Category | Category
...
...
product/ERP5OOo/tests/testDmsWithFlare.py
View file @
255d3227
...
@@ -44,11 +44,11 @@ class TestDocumentWithFlare(TestDocument):
...
@@ -44,11 +44,11 @@ class TestDocumentWithFlare(TestDocument):
def
setSystemPreference
(
self
):
def
setSystemPreference
(
self
):
system_preference
=
TestDocument
.
setSystemPreference
(
self
)
system_preference
=
TestDocument
.
setSystemPreference
(
self
)
memcached
=
_getPersistentMemcachedServerDict
()
memcached
=
_getPersistentMemcachedServerDict
()
# create a Cache
Bag
for tests
# create a Cache
Factory
for tests
cache_
bag
=
self
.
portal
.
portal_caches
.
newContent
(
portal_type
=
'Cache Bag
'
)
cache_
factory
=
self
.
portal
.
portal_caches
.
newContent
(
portal_type
=
'Cache Factory
'
)
cache_
bag
.
cache_duration
=
15768000
cache_
factory
.
cache_duration
=
15768000
cache_plugin
=
cache_
bag
.
newContent
(
portal_type
=
'Distributed Ram Cache'
)
cache_plugin
=
cache_
factory
.
newContent
(
portal_type
=
'Distributed Ram Cache'
)
system_preference
.
setPreferredConversionCacheFactory
(
cache_
bag
.
getId
())
system_preference
.
setPreferredConversionCacheFactory
(
cache_
factory
.
getId
())
persistent_memcached_plugin
=
self
.
portal
.
portal_memcached
.
persistent_memcached_plugin
persistent_memcached_plugin
=
self
.
portal
.
portal_memcached
.
persistent_memcached_plugin
persistent_memcached_plugin
.
setUrlString
(
'%s:%s'
%
(
memcached
[
'hostname'
],
memcached
[
'port'
]))
persistent_memcached_plugin
.
setUrlString
(
'%s:%s'
%
(
memcached
[
'hostname'
],
memcached
[
'port'
]))
cache_plugin
.
setSpecialiseValue
(
persistent_memcached_plugin
)
cache_plugin
.
setSpecialiseValue
(
persistent_memcached_plugin
)
...
...
product/ERP5OOo/tests/testIngestionWithFlare.py
View file @
255d3227
...
@@ -49,11 +49,11 @@ class TestIngestionWithFlare(TestIngestion):
...
@@ -49,11 +49,11 @@ class TestIngestionWithFlare(TestIngestion):
def
setSystemPreference
(
self
):
def
setSystemPreference
(
self
):
default_pref
=
self
.
portal
.
portal_preferences
.
default_site_preference
default_pref
=
self
.
portal
.
portal_preferences
.
default_site_preference
memcached
=
_getPersistentMemcachedServerDict
()
memcached
=
_getPersistentMemcachedServerDict
()
# create a Cache
Bag
for tests
# create a Cache
Factory
for tests
cache_
bag
=
self
.
portal
.
portal_caches
.
newContent
(
portal_type
=
'Cache Bag
'
)
cache_
factory
=
self
.
portal
.
portal_caches
.
newContent
(
portal_type
=
'Cache Factory
'
)
cache_
bag
.
cache_duration
=
15768000
cache_
factory
.
cache_duration
=
15768000
cache_plugin
=
cache_
bag
.
newContent
(
portal_type
=
'Distributed Ram Cache'
)
cache_plugin
=
cache_
factory
.
newContent
(
portal_type
=
'Distributed Ram Cache'
)
default_pref
.
setPreferredConversionCacheFactory
(
cache_
bag
.
getId
())
default_pref
.
setPreferredConversionCacheFactory
(
cache_
factory
.
getId
())
persistent_memcached_plugin
=
self
.
portal
.
portal_memcached
.
persistent_memcached_plugin
persistent_memcached_plugin
=
self
.
portal
.
portal_memcached
.
persistent_memcached_plugin
persistent_memcached_plugin
.
setUrlString
(
'%s:%s'
%
(
memcached
[
'hostname'
],
memcached
[
'port'
]))
persistent_memcached_plugin
.
setUrlString
(
'%s:%s'
%
(
memcached
[
'hostname'
],
memcached
[
'port'
]))
cache_plugin
.
setSpecialiseValue
(
persistent_memcached_plugin
)
cache_plugin
.
setSpecialiseValue
(
persistent_memcached_plugin
)
...
...
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