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
e9e1c06c
Commit
e9e1c06c
authored
Sep 25, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added default __roles__ of None, custom roles form
parent
cf2f4fab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
6 deletions
+56
-6
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+10
-6
lib/python/OFS/Setup
lib/python/OFS/Setup
+1
-0
lib/python/OFS/rolesForm.dtml
lib/python/OFS/rolesForm.dtml
+45
-0
No files found.
lib/python/OFS/Application.py
View file @
e9e1c06c
...
...
@@ -11,8 +11,8 @@
__doc__
=
'''Application support
$Id: Application.py,v 1.1
3 1997/09/24 22:16:43
brian Exp $'''
__version__
=
'$Revision: 1.1
3
$'
[
11
:
-
2
]
$Id: Application.py,v 1.1
4 1997/09/25 14:04:56
brian Exp $'''
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
regex
...
...
@@ -21,9 +21,10 @@ from AccessControl.User import UserFolder
class
Application
(
Folder
.
Folder
):
title
=
'Principia'
id
=
title
__roles__
=
None
web__form__method
=
'GET'
title
=
'Principia'
id
=
title
manage_options
=
(
{
'icon'
:
'OFS/Folder_icon.gif'
,
'label'
:
'Contents'
,
...
...
@@ -40,6 +41,8 @@ class Application(Folder.Folder):
# 'action':'manage_help', 'target':'_new'},
)
manage_rolesForm
=
Globals
.
HTMLFile
(
'OFS/rolesForm'
)
_reserved_names
=
(
'standard_html_header'
,
'standard_html_footer'
,
'acl_users'
)
...
...
@@ -56,8 +59,6 @@ class Application(Folder.Folder):
'</BODY></HTML>'
)
self
.
_setObject
(
'acl_users'
,
self
.
__allow_groups__
)
def
folderClass
(
self
):
return
Folder
.
Folder
def
__class_init__
(
self
):
pass
...
...
@@ -165,6 +166,9 @@ if __name__ == "__main__": main()
##############################################################################
#
# $Log: Application.py,v $
# Revision 1.14 1997/09/25 14:04:56 brian
# Added default __roles__ of None, custom roles form
#
# Revision 1.13 1997/09/24 22:16:43 brian
# Style update
#
...
...
lib/python/OFS/Setup
View file @
e9e1c06c
...
...
@@ -10,4 +10,5 @@
# install imageEdit.dtml
# install main.dtml
# install properties.dtml
# install rolesForm.dtml
# install www www/%(package)s
lib/python/OFS/rolesForm.dtml
0 → 100644
View file @
e9e1c06c
<HTML>
<HEAD>
<TITLE>Access Control</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555" ALINK="#77003B">
<H2>Access Control</H2>
<P>
You may restrict access to <EM><!--#var title--></EM> using the form
below. To add or remove roles, select or deselect
the desired role names and click "Change".
<P>
<FORM ACTION="<!--#var PARENT_URL-->/manage_editRoles" METHOD="POST">
<TABLE>
<TR>
<TD VALIGN="TOP">
<INPUT TYPE="RADIO" NAME="acl_type" VALUE="E"<!--#var aclEChecked-->>
Allow users with selected roles
<BR>
<INPUT TYPE="RADIO" NAME="acl_type" VALUE="P"<!--#var aclPChecked-->>
Allow all users
</TD>
<TD VALIGN="TOP">
<SELECT NAME="acl_roles:list" SIZE="4" MULTIPLE>
<!--#in selectedRoles-->
<!--#var sequence-item-->
<!--#/in selectedRoles-->
</SELECT>
<BR>
<INPUT TYPE="SUBMIT" VALUE="Change">
</TD>
</TR>
</TABLE>
</FORM>
<P>
<FORM ACTION="<!--#var PARENT_URL-->/manage_addRole" METHOD="POST">
To add a new, user-defined role to this object, enter the name of
the new role and click "Add".
<BR>
<INPUT TYPE="TEXT" NAME="role" SIZE="20">
<BR>
<INPUT TYPE="SUBMIT" VALUE=" Add ">
</FORM>
</BODY>
</HTML>
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