Commit 66e038a5 authored by 's avatar

Style mods

parent d7836069
"""Access control package"""
__version__='$Revision: 1.2 $'[11:-2]
__version__='$Revision: 1.3 $'[11:-2]
import Globals
from User import SafeDtml
......@@ -11,8 +11,8 @@ from string import join, strip, split
class RoleManager:
"""Mixin role management support"""
manage_rolesForm=SafeDtml('RoleManager_manage_rolesForm')
smallRolesWidget=SafeDtml('smallRolesWidget')
manage_rolesForm=SafeDtml('AccessControl/RoleManager_manage_rolesForm')
smallRolesWidget=SafeDtml('AccessControl/smallRolesWidget')
def validRoles(self):
return Globals.Bobobase['roles']
......@@ -110,6 +110,9 @@ class RoleManager:
# $Log: Role.py,v $
# Revision 1.3 1997/09/08 23:01:33 brian
# Style mods
#
# Revision 1.2 1997/09/02 18:12:13 jim
# Added smallRolesWidget.
#
......
"""Access control package"""
__version__='$Revision: 1.9 $'[11:-2]
__version__='$Revision: 1.10 $'[11:-2]
import Globals
from Persistence import Persistent
......@@ -16,7 +16,7 @@ from string import join,strip,split,lower
class SafeDtml(HTML):
"""Lobotomized document template"""
def __init__(self,name='',*args,**kw):
f=open('%s/lib/python/AccessControl/%s.dtml' % (SOFTWARE_HOME, name))
f=open('%s/lib/python/%s.dtml' % (SOFTWARE_HOME, name))
s=f.read()
f.close()
args=(self,s,)+args
......@@ -83,18 +83,18 @@ class UserFolder(Implicit, Persistent):
isAUserFolder=1
manage =SafeDtml('Generic_manage')
manage_menu=SafeDtml('Generic_manage_menu')
manage_main=SafeDtml('UserFolder_manage_main')
manage_help=SafeDtml('UserFolder_manage_help')
_editForm =SafeDtml('UserFolder_manage_editForm')
manage =SafeDtml('App/manage')
manage_menu=SafeDtml('App/menu')
manage_main=SafeDtml('AccessControl/UserFolder_manage_main')
manage_help=SafeDtml('AccessControl/UserFolder_manage_help')
_editForm =SafeDtml('AccessControl/UserFolder_manage_editForm')
index_html =manage_main
manage_options=(
{'icon':'AccessControl/UserFolder_icon.gif', 'label':'Contents',
'action':'manage_main', 'target':'manage_main'},
{'icon':'OFS/Help_icon.gif', 'label':'Help',
'action':'manage_help', 'target':'_new'},
# {'icon':'OFS/Help_icon.gif', 'label':'Help',
# 'action':'manage_help', 'target':'_new'},
)
def _init(self):
......@@ -227,6 +227,9 @@ class UserFolderHandler:
# $Log: User.py,v $
# Revision 1.10 1997/09/08 23:01:33 brian
# Style mods
#
# Revision 1.9 1997/09/04 20:35:36 brian
# Fixed truth test bug in UserFolder
#
......
......@@ -3,7 +3,7 @@
<!--#var title--><!--#else title-->
<!--#var id--><!--#/if title--></TITLE>
</HEAD>
<FRAMESET FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0" COLS="140,*">
<FRAMESET FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0" COLS="150,*">
<FRAME SRC="<!--#var PARENT_URL-->/manage_menu" NAME="manage_menu"
MARGINWIDTH="6" MARGINHEIGHT="6" SCROLLING="auto">
<FRAME SRC="<!--#var PARENT_URL-->/manage_main" NAME="manage_main"
......
......@@ -2,19 +2,20 @@
<HEAD>
<TITLE>Management Menu</TITLE>
</HEAD>
<BODY BACKGROUND="<!--#var SOFTWARE_URL-->/App/background.jpg"
<BODY BACKGROUND="<!--#var SOFTWARE_URL-->/App/border.gif"
BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<TABLE BORDER="0" WIDTH="100">
<TABLE WIDTH="100" BORDER="0">
<TR>
<TD ALIGN="LEFT" COLSPAN="2" VALIGN="TOP">
<IMG SRC="<!--#var SOFTWARE_URL-->/logo.jpg"
WIDTH="90" HEIGHT="90">
<TD ALIGN="LEFT" COLSPAN="2">
<IMG SRC="<!--#var SOFTWARE_URL-->/App/logo.jpg" WIDTH="102" HEIGHT="54">
<FONT SIZE="-2">
&copy; Copyright 1997
<BR>
Digital Creations L.C.
</FONT>
</TD>
</TR>
<TR><TD></TD><TD></TD></TR>
<!--#if manage_options-->
<!--#in manage_options mapping-->
<!--#if sequence-item-->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment