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
c9a95ed9
Commit
c9a95ed9
authored
Jan 09, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use DTMLFile
parent
563ad818
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
20 deletions
+18
-20
lib/python/Products/SiteAccess/AccessRule.py
lib/python/Products/SiteAccess/AccessRule.py
+2
-2
lib/python/Products/SiteAccess/SiteRoot.py
lib/python/Products/SiteAccess/SiteRoot.py
+3
-3
lib/python/Products/SiteAccess/VirtualHostMonster.py
lib/python/Products/SiteAccess/VirtualHostMonster.py
+3
-3
lib/python/Products/SiteAccess/www/AccessRuleAdd.dtml
lib/python/Products/SiteAccess/www/AccessRuleAdd.dtml
+6
-6
lib/python/Products/SiteAccess/www/SiteRootAdd.dtml
lib/python/Products/SiteAccess/www/SiteRootAdd.dtml
+1
-3
lib/python/Products/SiteAccess/www/VirtualHostMonsterAdd.dtml
...python/Products/SiteAccess/www/VirtualHostMonsterAdd.dtml
+3
-3
No files found.
lib/python/Products/SiteAccess/AccessRule.py
View file @
c9a95ed9
...
...
@@ -3,7 +3,7 @@
Provide a simple method to set up Access Rules
"""
from
Globals
import
H
TMLFile
,
MessageDialog
from
Globals
import
D
TMLFile
,
MessageDialog
from
ZPublisher.BeforeTraverse
import
\
registerBeforeTraverse
,
unregisterBeforeTraverse
,
queryBeforeTraverse
,
\
NameCaller
...
...
@@ -77,7 +77,7 @@ def getAccessRule(self, REQUEST=None):
return
''
constructors
=
(
(
'manage_addAccessRuleForm'
,
H
TMLFile
(
'www/AccessRuleAdd'
,
globals
())),
(
'manage_addAccessRuleForm'
,
D
TMLFile
(
'www/AccessRuleAdd'
,
globals
())),
(
'manage_addAccessRule'
,
manage_addAccessRule
),
(
'manage_getAccessRule'
,
getAccessRule
),
)
lib/python/Products/SiteAccess/SiteRoot.py
View file @
c9a95ed9
...
...
@@ -3,7 +3,7 @@
Defines the Traverser base class and SiteRoot class
"""
from
Globals
import
H
TMLFile
,
MessageDialog
,
Persistent
from
Globals
import
D
TMLFile
,
MessageDialog
,
Persistent
from
OFS.SimpleItem
import
Item
from
Acquisition
import
Implicit
,
ImplicitAcquisitionWrapper
from
ExtensionClass
import
Base
...
...
@@ -76,7 +76,7 @@ class SiteRoot(Traverser, Implicit):
manage_options
=
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
,
'help'
:
(
'SiteAccess'
,
'SiteRoot_Edit.stx'
)},)
manage
=
manage_main
=
H
TMLFile
(
'www/SiteRootEdit'
,
globals
())
manage
=
manage_main
=
D
TMLFile
(
'www/SiteRootEdit'
,
globals
())
def
__init__
(
self
,
title
,
base
,
path
):
'''Title'''
...
...
@@ -138,6 +138,6 @@ def manage_addSiteRoot(self, title='', base='', path='', REQUEST=None,
sr
.
manage_addToContainer
(
self
.
this
())
constructors
=
(
(
'manage_addSiteRootForm'
,
H
TMLFile
(
'www/SiteRootAdd'
,
globals
())),
(
'manage_addSiteRootForm'
,
D
TMLFile
(
'www/SiteRootAdd'
,
globals
())),
(
'manage_addSiteRoot'
,
manage_addSiteRoot
),
)
lib/python/Products/SiteAccess/VirtualHostMonster.py
View file @
c9a95ed9
...
...
@@ -3,7 +3,7 @@
Defines the VirtualHostMonster class
"""
from
Globals
import
H
TMLFile
,
MessageDialog
,
Persistent
from
Globals
import
D
TMLFile
,
MessageDialog
,
Persistent
from
OFS.SimpleItem
import
Item
from
Acquisition
import
Implicit
,
ImplicitAcquisitionWrapper
from
ExtensionClass
import
Base
...
...
@@ -24,7 +24,7 @@ class VirtualHostMonster(Persistent, Item, Implicit):
manage_options
=
({
'label'
:
'View'
,
'action'
:
'manage_main'
},)
manage_main
=
H
TMLFile
(
'www/VirtualHostMonster'
,
globals
())
manage_main
=
D
TMLFile
(
'www/VirtualHostMonster'
,
globals
())
def
addToContainer
(
self
,
container
):
container
.
_setObject
(
self
.
id
,
self
)
...
...
@@ -102,6 +102,6 @@ def manage_addVirtualHostMonster(self, id, REQUEST=None, **ignored):
vhm
.
addToContainer
(
self
.
this
())
constructors
=
(
(
'manage_addVirtualHostMonsterForm'
,
H
TMLFile
(
'www/VirtualHostMonsterAdd'
,
globals
())),
(
'manage_addVirtualHostMonsterForm'
,
D
TMLFile
(
'www/VirtualHostMonsterAdd'
,
globals
())),
(
'manage_addVirtualHostMonster'
,
manage_addVirtualHostMonster
),
)
lib/python/Products/SiteAccess/www/AccessRuleAdd.dtml
View file @
c9a95ed9
<dtml-var manage_page_header>
<dtml-
var "manage_form_title(this(), _,
form_title='Set Access Rule',
)"
>
<dtml-
let form_title="'Set Access Rule'">
<dtml-var manage_form_title>
</dtml-let
>
<p class="form-help">
<strong>
...
...
@@ -18,11 +18,11 @@ Zope Folder which will be called whenever the Folder is published.
It can implement rewrite rules, preload request variables, etc.
</p>
<dtml-if
"manage_getAccessRule(this())"
>
<dtml-if
manage_getAccessRule
>
<p class="form-text">
The current Access Rule is
<a href="
<dtml-var "'%s/%s/manage_workspace' % (this().absolute_url(), manage_getAccessRule(this()))">
">
"
<dtml-var "manage_getAccessRule(this())">
"</a>.
<a href="
&dtml-absolute_url;/&dtml-manage_getAccessRule;/manage_workspace
">
"
&dtml-manage_getAccessRule;
"</a>.
</p>
<dtml-else>
<p class="form-text">
...
...
lib/python/Products/SiteAccess/www/SiteRootAdd.dtml
View file @
c9a95ed9
<dtml-var manage_page_header>
<dtml-var "manage_form_title(this(), _,
form_title='Add SiteRoot',
)">
<dtml-let form_title="'Add SiteRoot'"><dtml-var manage_form_title></dtml-let>
<p class="form-help">
This will change URLs generated by all objects within the same container
...
...
lib/python/Products/SiteAccess/www/VirtualHostMonsterAdd.dtml
View file @
c9a95ed9
<dtml-var manage_page_header>
<dtml-
var "manage_form_title(this(), _,
form_title='Add Virtual Host Monster',
)"
>
<dtml-
let form_title="'Add Virtual Host Monster'">
<dtml-var manage_form_title>
</dtml-let
>
<p class="form-help">
A Virtual Host Monster changes the URLs generated by all objects
...
...
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