Commit abc25a07 authored by 's avatar

ui update

parent ec6aa794
......@@ -19,7 +19,7 @@ function update(target)
<FRAME SRC="manage_menu" NAME="manage_menu"
MARGINWIDTH="2" MARGINHEIGHT="2" SCROLLING="auto">
<FRAME SRC="manage_main" NAME="manage_main"
MARGINWIDTH="2" MARGINHEIGHT="2" SCROLLING="auto">
MARGINWIDTH="2" MARGINHEIGHT="0" SCROLLING="auto">
</FRAMESET>
<NOFRAMES>
Management interfaces require the use of a <B>frames-capable</B> web browser.
......
<!--#if manage_options-->
<TABLE WIDTH="100%" BORDER="1" CELLSPACING="0" CELLPADDING="2">
<TABLE WIDTH="100%" BORDER="1" CELLSPACING="0" CELLPADDING="0">
<TR>
<!--#in manage_options mapping-->
<!--#if sequence-item-->
<!--#if expr="_vars['PATH_INFO'][-(_.len(action)):]==action"-->
<TD ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#FFFFFF">
<FONT SIZE="-1">
<IMG ALIGN="LEFT" HSPACE="0" SRC="<!--#var SOFTWARE_URL-->/App/ltab.gif">
<IMG ALIGN="RIGHT" HSPACE="0" SRC="<!--#var SOFTWARE_URL-->/App/rtab.gif">
<STRONG>
<!--#if action-->
<A HREF="<!--#var action-->"><!--#var label--></A>
......@@ -13,12 +15,15 @@
<A HREF="<!--#var URL1-->"><!--#var label--></A>
<!--#/if action-->
</STRONG>
</FONT>
</TD>
<!--#else-->
<TD ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#EFEFEF">
<FONT SIZE="-1">
<!--#if action-->
<IMG ALIGN="LEFT" HSPACE="0" SRC="<!--#var SOFTWARE_URL-->/App/ltab.gif">
<IMG ALIGN="RIGHT" HSPACE="0" SRC="<!--#var SOFTWARE_URL-->/App/rtab.gif">
<!--#if action-->
<A HREF="<!--#var action-->"><!--#var label--></A>
<!--#else action-->
<A HREF="<!--#var URL1-->"><!--#var label--></A>
......@@ -31,3 +36,21 @@
</TR>
</TABLE>
<!--#/if manage_options-->
<BR>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2">
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<IMG SRC="<!--#var SOFTWARE_URL-->/<!--#var icon-->"
ALT="<!--#var meta_type-->" BORDER="0">
<STRONG>
<!--#if meta_type-->
<!--#var meta_type-->
<!--#else-->
Object
<!--#/if-->
at <!--#var SCRIPT_NAME--><!--#var
expr="PATH_INFO[:(_.string.rfind(PATH_INFO,'/'))]"-->
</STRONG>
</TD>
</TR>
</TABLE>
<HTML>
<HEAD>
<TITLE>Principia Navigator</TITLE>
<TITLE>Navigator</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<TABLE CELLSPACING="0">
......@@ -11,7 +11,7 @@
ALT="Click to open this item"></A>
<STRONG>
<A HREF="manage_main" TARGET="manage_main">
<!--#var title_or_id-->
<!--#var expr="SCRIPT_NAME[1:]"-->
</A>
</STRONG>
</TD>
......@@ -22,10 +22,20 @@
<IMG SRC="<!--#var SOFTWARE_URL-->/<!--#var icon-->" BORDER="0"
ALT="Click to open this item"></A>
<A HREF="<!--#var tree-item-url-->/manage_main" TARGET="manage_main">
<!--#var title_or_id-->
<!--#var id-->
</A>
<!--#/tree-->
<TABLE CELLSPACING="0">
<TR>
<TD WIDTH="16"></TD>
<TD VALIGN="TOP" NOWRAP>
<STRONG>
<A HREF="manage_copyright" TARGET="manage_main">
&copy Digital Creations
</A>
</STRONG>
</TD>
</TR>
<TR>
<TD WIDTH="16"></TD>
<TD VALIGN="TOP" NOWRAP>
......
......@@ -4,14 +4,12 @@
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555" ALINK="#77003B">
<!--#var manage_tabs-->
<H2>Undo Changes</H2>
<P>
<FORM ACTION="manage_undo_transactions" METHOD="POST">
This application's transactional feature allows you to easily undo changes
made to the application's settings or data. You can revert the application
to a &quot;snapshot&quot; of it's state at a previous point in time.
<P>
Select one or more transactions below and then click on the &quot;Undo&quot;
button to undo the transactions. Note that even though a transaction
is shown below, you will not be able to undo it if later transactions
......
......@@ -11,8 +11,8 @@
__doc__='''Application support
$Id: Application.py,v 1.23 1997/12/05 20:33:02 brian Exp $'''
__version__='$Revision: 1.23 $'[11:-2]
$Id: Application.py,v 1.24 1997/12/12 21:49:41 brian Exp $'''
__version__='$Revision: 1.24 $'[11:-2]
import Globals,Folder,os,regex
......@@ -24,7 +24,7 @@ from App.ApplicationManager import ApplicationManager
class Application(Folder.Folder):
title ='Principia'
id =title
# id =title
__roles__=None
__defined_roles__=('manage',)
web__form__method='GET'
......@@ -34,8 +34,8 @@ class Application(Folder.Folder):
'action':'manage_main', 'target':'manage_main'},
{'icon':'OFS/Properties_icon.gif', 'label':'Properties',
'action':'manage_propertiesForm', 'target':'manage_main'},
{'icon':'AccessControl/AccessControl_icon.gif', 'label':'Access Control',
'action':'manage_rolesForm', 'target':'manage_main'},
{'icon':'AccessControl/AccessControl_icon.gif', 'label':'Security',
'action':'manage_changeAccess', 'target':'manage_main'},
{'icon':'App/undo_icon.gif', 'label':'Undo',
'action':'manage_UndoForm', 'target':'manage_main'},
# {'icon':'OFS/Help_icon.gif', 'label':'Help',
......@@ -69,6 +69,10 @@ class Application(Folder.Folder):
'</BODY></HTML>')
def id(self):
try: return self.REQUEST['SCRIPT_NAME'][1:]
except: return self.title
def folderClass(self): return Folder.Folder
def __class_init__(self): pass
......@@ -248,6 +252,9 @@ if __name__ == "__main__": main()
##############################################################################
#
# $Log: Application.py,v $
# Revision 1.24 1997/12/12 21:49:41 brian
# ui update
#
# Revision 1.23 1997/12/05 20:33:02 brian
# *** empty log message ***
#
......
"""Document object"""
__version__='$Revision: 1.27 $'[11:-2]
__version__='$Revision: 1.28 $'[11:-2]
from Globals import HTML, HTMLFile
from string import join,split,strip,rfind,atoi
......@@ -24,7 +24,7 @@ class Document(HTML, RoleManager, SimpleItem.Item_w__name__,
{'icon':'', 'label':'View',
'action':'', 'target':'manage_main',
},
{'icon':'', 'label':'Access Control',
{'icon':'', 'label':'Security',
'action':'manage_rolesForm', 'target':'manage_main',
},
{'icon':'', 'label':'Undo',
......
......@@ -14,8 +14,8 @@ Provide an area where people can work without others seeing their changes.
A Draft folder is a surrogate for a folder. It get\'s subobjects by
gettingthem from a session copy of a base folder.
$Id: DraftFolder.py,v 1.3 1997/12/05 20:33:02 brian Exp $'''
__version__='$Revision: 1.3 $'[11:-2]
$Id: DraftFolder.py,v 1.4 1997/12/12 21:49:42 brian Exp $'''
__version__='$Revision: 1.4 $'[11:-2]
import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals
import AccessControl.User, Session
......@@ -38,7 +38,7 @@ def hack(self):
{'icon':'OFS/Properties_icon.gif', 'label':'Properties',
'action':'manage_propertiesForm', 'target':'manage_main'},
{'icon':'AccessControl/AccessControl_icon.gif',
'label':'Access Control',
'label':'Security',
'action':'manage_rolesForm', 'target':'manage_main'},
{'icon':'App/undo_icon.gif', 'label':'Undo',
'action':'manage_UndoForm', 'target':'manage_main'},
......@@ -62,7 +62,7 @@ class DraftFolder(Persistence.Persistent,
'action':'manage_main', 'target':'manage_main'},
{'icon':'OFS/Properties_icon.gif', 'label':'Properties',
'action':'manage_propertiesForm', 'target':'manage_main'},
{'icon':'AccessControl/AccessControl_icon.gif', 'label':'Access Control',
{'icon':'AccessControl/AccessControl_icon.gif', 'label':'Security',
'action':'manage_rolesForm', 'target':'manage_main'},
{'icon':'App/undo_icon.gif', 'label':'Undo',
'action':'manage_UndoForm', 'target':'manage_main'},
......@@ -210,6 +210,9 @@ class Supervisor(AccessControl.User.UserFolder, Session.Session):
##############################################################################
#
# $Log: DraftFolder.py,v $
# Revision 1.4 1997/12/12 21:49:42 brian
# ui update
#
# Revision 1.3 1997/12/05 20:33:02 brian
# *** empty log message ***
#
......
"""Folder object
$Id: Folder.py,v 1.22 1997/12/05 17:13:49 brian Exp $"""
$Id: Folder.py,v 1.23 1997/12/12 21:49:43 brian Exp $"""
__version__='$Revision: 1.22 $'[11:-2]
__version__='$Revision: 1.23 $'[11:-2]
from Globals import HTMLFile
......@@ -91,8 +91,8 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
'action':'manage_main', 'target':'manage_main'},
{'icon':'OFS/Properties_icon.gif', 'label':'Properties',
'action':'manage_propertiesForm', 'target':'manage_main'},
{'icon':'AccessControl/AccessControl_icon.gif', 'label':'Access Control',
'action':'manage_rolesForm', 'target':'manage_main'},
{'icon':'AccessControl/AccessControl_icon.gif', 'label':'Security',
'action':'manage_changeAccess', 'target':'manage_main'},
{'icon':'App/undo_icon.gif', 'label':'Undo',
'action':'manage_UndoForm', 'target':'manage_main'},
# {'icon':'OFS/Help_icon.gif', 'label':'Help',
......
"""Image object"""
__version__='$Revision: 1.13 $'[11:-2]
__version__='$Revision: 1.14 $'[11:-2]
from Persistence import Persistent
from Globals import HTMLFile
......@@ -28,7 +28,7 @@ class File(Persistent,RoleManager,SimpleItem.Item_w__name__,
{'icon':'', 'label':'View',
'action':'index_html', 'target':'manage_main',
},
{'icon':'', 'label':'Access Control',
{'icon':'', 'label':'Security',
'action':'manage_rolesForm', 'target':'manage_main',
},
{'icon':'', 'label':'Undo',
......
......@@ -12,7 +12,7 @@ __doc__='''A drop-in object that represents a session.
$Id: Session.py,v 1.5 1997/12/05 17:13:51 brian Exp $'''
$Id: Session.py,v 1.6 1997/12/12 21:49:44 brian Exp $'''
import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals
from string import rfind
......@@ -54,7 +54,7 @@ class Session(Persistence.Persistent,
{'icon':'', 'label':'Join/Leave',
'action':'index_html', 'target':'manage_main',
},
{'icon':'', 'label':'Access Control',
{'icon':'', 'label':'Security',
'action':'manage_rolesForm', 'target':'manage_main',
},
{'icon':'', 'label':'Undo',
......@@ -123,7 +123,7 @@ class Session(Persistence.Persistent,
def nonempty(self): return Globals.SessionBase[self.cookie].nonempty()
__version__='$Revision: 1.5 $'[11:-2]
__version__='$Revision: 1.6 $'[11:-2]
......@@ -131,6 +131,9 @@ __version__='$Revision: 1.5 $'[11:-2]
##############################################################################
#
# $Log: Session.py,v $
# Revision 1.6 1997/12/12 21:49:44 brian
# ui update
#
# Revision 1.5 1997/12/05 17:13:51 brian
# New UI
#
......
......@@ -16,8 +16,8 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
item types.
$Id: SimpleItem.py,v 1.7 1997/12/05 17:13:52 brian Exp $'''
__version__='$Revision: 1.7 $'[11:-2]
$Id: SimpleItem.py,v 1.8 1997/12/12 21:49:44 brian Exp $'''
__version__='$Revision: 1.8 $'[11:-2]
import Globals
from DateTime import DateTime
......@@ -39,6 +39,7 @@ class Item(CopySource):
title=''
manage_tabs =Globals.HTMLFile('App/manage_tabs')
manage_info =Globals.HTMLFile('App/manage_info')
manage_options=({'icon':'', 'label':'Manage',
'action':'manage_main', 'target':'manage_main',
},
......@@ -118,6 +119,9 @@ class Item_w__name__(Item):
##############################################################################
#
# $Log: SimpleItem.py,v $
# Revision 1.8 1997/12/12 21:49:44 brian
# ui update
#
# Revision 1.7 1997/12/05 17:13:52 brian
# New UI
#
......
<HTML>
<HEAD>
<TITLE>Edit <!--#var title_or_id--></TITLE>
<TITLE>Edit</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->
<H2>Edit <!--#var title_or_id--></H2>
<FORM ACTION="manage_edit" METHOD="POST">
<TABLE CELLSPACING="2">
<TR>
......
<HTML>
<HEAD>
<TITLE>Upload document data</TITLE>
<TITLE>Upload</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->
<H2>Upload document data</H2>
You may upload the source for <!--#var title_and_id--> using the form below.
Choose an existing html file from your local computer by clicking the
<I>Browse</I> button.
......
<HTML>
<HEAD>
<TITLE>Edit <!--#var title_or_id--></TITLE>
<TITLE>Edit</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->
<H2>Edit <!--#var title_or_id--></H2>
<FORM ACTION="manage_edit" METHOD="POST" TARGET="manage_main">
<TABLE CELLSPACING="2">
<TR>
......
<HTML>
<HEAD>
<TITLE>Upload <!--#var kind--> data</TITLE>
<TITLE>Upload</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->
<H2>Upload data to <EM><!--#var title_or_id--></EM></H2>
You can update data in the <!--#var kind--> using the form below.
Select a data file from your local computer by clicking the <EM>Browse</EM>
button. The file you select will be uploaded to the application.
......
<HTML>
<HEAD>
<TITLE>Contents of <!--#var title_or_id--></TITLE>
<TITLE>Contents</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->
<H2>Contents of <EM><!--#var title_or_id--></EM></H2>
<!--#if Principia-Session-->
<EM>You are currently working in session <!--#var Principia-Session--></EM>
<P>
<!--#/if Principia-Session-->
<FORM ACTION="manage_delObjects" METHOD="POST">
<!--#if objectValues-->
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING=2>
......@@ -27,7 +25,11 @@
</TD>
<TD ALIGN="LEFT" VALIGN="TOP">
<A HREF="<!--#var id-->/manage_main">
<!--#var title_and_id--></A>
<!--#var id-->
<!--#if title-->
(<!--#var title-->)
<!--#/if title-->
</A>
<!--#if modified_in_session-->
<IMG SRC="<!--#var SOFTWARE_URL-->/OFS/modified.gif"
ALT="This item has been modified in a session">
......
<HTML>
<HEAD>
<TITLE>Properties for <!--#var title_or_id--></TITLE>
<TITLE>Properties</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->
<H2>Properties for <EM><!--#var title_or_id--></EM></H2>
<!--#if Principia-Session-->
<EM>You are currently working in session <!--#var Principia-Session--></EM>
<P>
......
......@@ -5,8 +5,6 @@
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555" ALINK="#77003B">
<!--#var manage_tabs-->
<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 &quot;Change&quot;.
......
<HTML>
<HEAD>
<TITLE>Edit Session</TITLE>
<TITLE>Edit</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->
<H2>Edit Session</H2>
<FORM ACTION="manage_edit" METHOD="POST">
<TABLE CELLSPACING="2">
<TR>
......
......@@ -14,8 +14,8 @@ Provide an area where people can work without others seeing their changes.
A Draft folder is a surrogate for a folder. It get\'s subobjects by
gettingthem from a session copy of a base folder.
$Id: DraftFolder.py,v 1.3 1997/12/05 20:33:02 brian Exp $'''
__version__='$Revision: 1.3 $'[11:-2]
$Id: DraftFolder.py,v 1.4 1997/12/12 21:49:42 brian Exp $'''
__version__='$Revision: 1.4 $'[11:-2]
import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals
import AccessControl.User, Session
......@@ -38,7 +38,7 @@ def hack(self):
{'icon':'OFS/Properties_icon.gif', 'label':'Properties',
'action':'manage_propertiesForm', 'target':'manage_main'},
{'icon':'AccessControl/AccessControl_icon.gif',
'label':'Access Control',
'label':'Security',
'action':'manage_rolesForm', 'target':'manage_main'},
{'icon':'App/undo_icon.gif', 'label':'Undo',
'action':'manage_UndoForm', 'target':'manage_main'},
......@@ -62,7 +62,7 @@ class DraftFolder(Persistence.Persistent,
'action':'manage_main', 'target':'manage_main'},
{'icon':'OFS/Properties_icon.gif', 'label':'Properties',
'action':'manage_propertiesForm', 'target':'manage_main'},
{'icon':'AccessControl/AccessControl_icon.gif', 'label':'Access Control',
{'icon':'AccessControl/AccessControl_icon.gif', 'label':'Security',
'action':'manage_rolesForm', 'target':'manage_main'},
{'icon':'App/undo_icon.gif', 'label':'Undo',
'action':'manage_UndoForm', 'target':'manage_main'},
......@@ -210,6 +210,9 @@ class Supervisor(AccessControl.User.UserFolder, Session.Session):
##############################################################################
#
# $Log: DraftFolder.py,v $
# Revision 1.4 1997/12/12 21:49:42 brian
# ui update
#
# Revision 1.3 1997/12/05 20:33:02 brian
# *** empty log message ***
#
......
......@@ -12,7 +12,7 @@ __doc__='''A drop-in object that represents a session.
$Id: Session.py,v 1.5 1997/12/05 17:13:51 brian Exp $'''
$Id: Session.py,v 1.6 1997/12/12 21:49:44 brian Exp $'''
import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals
from string import rfind
......@@ -54,7 +54,7 @@ class Session(Persistence.Persistent,
{'icon':'', 'label':'Join/Leave',
'action':'index_html', 'target':'manage_main',
},
{'icon':'', 'label':'Access Control',
{'icon':'', 'label':'Security',
'action':'manage_rolesForm', 'target':'manage_main',
},
{'icon':'', 'label':'Undo',
......@@ -123,7 +123,7 @@ class Session(Persistence.Persistent,
def nonempty(self): return Globals.SessionBase[self.cookie].nonempty()
__version__='$Revision: 1.5 $'[11:-2]
__version__='$Revision: 1.6 $'[11:-2]
......@@ -131,6 +131,9 @@ __version__='$Revision: 1.5 $'[11:-2]
##############################################################################
#
# $Log: Session.py,v $
# Revision 1.6 1997/12/12 21:49:44 brian
# ui update
#
# Revision 1.5 1997/12/05 17:13:51 brian
# New UI
#
......
......@@ -12,7 +12,7 @@ __doc__='''A drop-in object that represents a session.
$Id: Version.py,v 1.5 1997/12/05 17:13:51 brian Exp $'''
$Id: Version.py,v 1.6 1997/12/12 21:49:44 brian Exp $'''
import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals
from string import rfind
......@@ -54,7 +54,7 @@ class Session(Persistence.Persistent,
{'icon':'', 'label':'Join/Leave',
'action':'index_html', 'target':'manage_main',
},
{'icon':'', 'label':'Access Control',
{'icon':'', 'label':'Security',
'action':'manage_rolesForm', 'target':'manage_main',
},
{'icon':'', 'label':'Undo',
......@@ -123,7 +123,7 @@ class Session(Persistence.Persistent,
def nonempty(self): return Globals.SessionBase[self.cookie].nonempty()
__version__='$Revision: 1.5 $'[11:-2]
__version__='$Revision: 1.6 $'[11:-2]
......@@ -131,6 +131,9 @@ __version__='$Revision: 1.5 $'[11:-2]
##############################################################################
#
# $Log: Version.py,v $
# Revision 1.6 1997/12/12 21:49:44 brian
# ui update
#
# Revision 1.5 1997/12/05 17:13:51 brian
# New UI
#
......
<HTML>
<HEAD>
<TITLE>Edit Session</TITLE>
<TITLE>Edit</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->
<H2>Edit Session</H2>
<FORM ACTION="manage_edit" METHOD="POST">
<TABLE CELLSPACING="2">
<TR>
......
<HTML>
<HEAD>
<TITLE>Edit Session</TITLE>
<TITLE>Edit</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->
<H2>Edit Session</H2>
<FORM ACTION="manage_edit" METHOD="POST">
<TABLE CELLSPACING="2">
<TR>
......
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