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
0e271696
Commit
0e271696
authored
May 20, 2010
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow tests to run in isolation.
E.g., 'bin/test --all -s Products.SiteAccess'.
parent
9a3748ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/Products/SiteAccess/__init__.py
src/Products/SiteAccess/__init__.py
+9
-4
No files found.
src/Products/SiteAccess/__init__.py
View file @
0e271696
__doc__
=
"""SiteAccess product"""
"""SiteAccess product
"""
import
SiteRoot
,
AccessRule
,
VirtualHostMonster
def
initialize
(
context
):
def
initialize
(
context
):
import
SiteRoot
import
AccessRule
import
VirtualHostMonster
context
.
registerClass
(
instance_class
=
SiteRoot
.
SiteRoot
,
context
.
registerClass
(
instance_class
=
SiteRoot
.
SiteRoot
,
permission
=
'Add Site Roots'
,
permission
=
'Add Site Roots'
,
constructors
=
SiteRoot
.
constructors
,
legacy
=
SiteRoot
.
constructors
,
constructors
=
SiteRoot
.
constructors
,
legacy
=
SiteRoot
.
constructors
,
icon
=
'www/SiteRoot.gif'
)
icon
=
'www/SiteRoot.gif'
)
context
.
registerClass
(
instance_class
=
AccessRule
.
AccessRule
,
context
.
registerClass
(
instance_class
=
AccessRule
.
AccessRule
,
permission
=
'Manage Access Rules'
,
constructors
=
AccessRule
.
constructors
,
permission
=
'Manage Access Rules'
,
constructors
=
AccessRule
.
constructors
,
icon
=
'www/AccessRule.gif'
)
icon
=
'www/AccessRule.gif'
)
context
.
registerClass
(
instance_class
=
VirtualHostMonster
.
VirtualHostMonster
,
context
.
registerClass
(
instance_class
=
VirtualHostMonster
.
VirtualHostMonster
,
permission
=
'Add Virtual Host Monsters'
,
permission
=
'Add Virtual Host Monsters'
,
constructors
=
VirtualHostMonster
.
constructors
,
constructors
=
VirtualHostMonster
.
constructors
,
icon
=
'www/VirtualHostMonster.gif'
)
icon
=
'www/VirtualHostMonster.gif'
)
context
.
registerHelp
()
context
.
registerHelp
()
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