Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
1929d52f
Commit
1929d52f
authored
Nov 01, 2005
by
Florent Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure a virtual host monster is present in the application object.
parent
6ce37239
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lib/python/Products/SiteAccess/tests/testVirtualHostMonster.py
...ython/Products/SiteAccess/tests/testVirtualHostMonster.py
+4
-2
No files found.
lib/python/Products/SiteAccess/tests/testVirtualHostMonster.py
View file @
1929d52f
...
@@ -26,8 +26,10 @@ class VHMRegressions(unittest.TestCase):
...
@@ -26,8 +26,10 @@ class VHMRegressions(unittest.TestCase):
transaction
.
begin
()
transaction
.
begin
()
self
.
app
=
makerequest
(
Zope2
.
app
())
self
.
app
=
makerequest
(
Zope2
.
app
())
try
:
try
:
#self.app.manage_addProduct['SiteAccess'].manage_addVirtualHostMonster('VHM')
if
not
hasattr
(
self
.
app
,
'virtual_hosting'
):
# now we have a VHM as virtual_hosting per default
# If ZopeLite was imported, we have no default virtual host monster
from
Products.SiteAccess.VirtualHostMonster
import
manage_addVirtualHostMonster
manage_addVirtualHostMonster
(
self
.
app
,
'virtual_hosting'
)
self
.
app
.
manage_addFolder
(
'folder'
)
self
.
app
.
manage_addFolder
(
'folder'
)
self
.
app
.
folder
.
manage_addDTMLMethod
(
'doc'
,
''
)
self
.
app
.
folder
.
manage_addDTMLMethod
(
'doc'
,
''
)
self
.
app
.
REQUEST
.
set
(
'PARENTS'
,
[
self
.
app
])
self
.
app
.
REQUEST
.
set
(
'PARENTS'
,
[
self
.
app
])
...
...
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