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
cd323086
Commit
cd323086
authored
Jan 12, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed things which use HTMLFile to use DTMLFile.
Corrected target of some message dialogs.
parent
2668929d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
lib/python/AccessControl/Role.py
lib/python/AccessControl/Role.py
+10
-10
No files found.
lib/python/AccessControl/Role.py
View file @
cd323086
...
...
@@ -84,10 +84,10 @@
##############################################################################
"""Access control support"""
__version__
=
'$Revision: 1.4
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.4
4
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
,
MessageDialog
,
Dictionary
from
Globals
import
HTMLFile
,
DTMLFile
,
MessageDialog
,
Dictionary
from
string
import
join
,
strip
,
split
,
find
from
Acquisition
import
Implicit
,
Acquired
,
aq_get
import
Globals
,
ExtensionClass
,
PermissionMapping
,
Products
...
...
@@ -186,7 +186,7 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
return
result
manage_roleForm
=
H
TMLFile
(
'dtml/roleEdit'
,
globals
(),
manage_roleForm
=
D
TMLFile
(
'dtml/roleEdit'
,
globals
(),
management_view
=
'Security'
,
help_topic
=
'Security_Manage-Role.stx'
,
help_product
=
'OFSP'
)
...
...
@@ -201,7 +201,7 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
if
REQUEST
is
not
None
:
return
self
.
manage_access
(
self
,
REQUEST
)
manage_acquiredForm
=
H
TMLFile
(
'dtml/acquiredEdit'
,
globals
(),
manage_acquiredForm
=
D
TMLFile
(
'dtml/acquiredEdit'
,
globals
(),
management_view
=
'Security'
,
help_topic
=
'Security_Manage-Acquisition.stx'
,
help_product
=
'OFSP'
)
...
...
@@ -219,7 +219,7 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
if
REQUEST
is
not
None
:
return
self
.
manage_access
(
self
,
REQUEST
)
manage_permissionForm
=
H
TMLFile
(
'dtml/permissionEdit'
,
globals
(),
manage_permissionForm
=
D
TMLFile
(
'dtml/permissionEdit'
,
globals
(),
management_view
=
'Security'
,
help_topic
=
'Security_Manage-Permission.stx'
,
help_product
=
'OFSP'
)
...
...
@@ -333,12 +333,12 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
__ac_local_roles__
=
None
manage_listLocalRoles
=
H
TMLFile
(
'dtml/listLocalRoles'
,
globals
(),
manage_listLocalRoles
=
D
TMLFile
(
'dtml/listLocalRoles'
,
globals
(),
management_view
=
'Security'
,
help_topic
=
'Security_Local-Roles.stx'
,
help_product
=
'OFSP'
)
manage_editLocalRoles
=
H
TMLFile
(
'dtml/editLocalRoles'
,
globals
(),
manage_editLocalRoles
=
D
TMLFile
(
'dtml/editLocalRoles'
,
globals
(),
management_view
=
'Security'
,
help_topic
=
'Security_User-Local-Roles.stx'
,
help_product
=
'OFSP'
)
...
...
@@ -494,12 +494,12 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
return
MessageDialog
(
title
=
'Incomplete'
,
message
=
'You must specify a role name'
,
action
=
'manage_
changeA
ccess'
)
action
=
'manage_
a
ccess'
)
if
role
in
self
.
__ac_roles__
:
return
MessageDialog
(
title
=
'Role Exists'
,
message
=
'The given role is already defined'
,
action
=
'manage_
changeA
ccess'
)
action
=
'manage_
a
ccess'
)
data
=
list
(
self
.
__ac_roles__
)
data
.
append
(
role
)
self
.
__ac_roles__
=
tuple
(
data
)
...
...
@@ -512,7 +512,7 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
return
MessageDialog
(
title
=
'Incomplete'
,
message
=
'You must specify a role name'
,
action
=
'manage_
changeA
ccess'
)
action
=
'manage_
a
ccess'
)
data
=
list
(
self
.
__ac_roles__
)
for
role
in
roles
:
try
:
data
.
remove
(
role
)
...
...
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