Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
New UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed Dec 5, 1997
1 parent e74fb3f commit 2950841
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 16 deletions.
23 changes: 20 additions & 3 deletions Session.py
Expand Up @@ -12,7 +12,7 @@
$Id: Session.py,v 1.4 1997/11/11 19:25:48 jim Exp $'''
$Id: Session.py,v 1.5 1997/12/05 17:13:51 brian Exp $'''

import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals
from string import rfind
Expand Down Expand Up @@ -48,6 +48,20 @@ class Session(Persistence.Persistent,
meta_type='Session'
icon='OFS/session.gif'

manage_options=({'icon':'', 'label':'Properties',
'action':'manage_main', 'target':'manage_main',
},
{'icon':'', 'label':'Join/Leave',
'action':'index_html', 'target':'manage_main',
},
{'icon':'', 'label':'Access Control',
'action':'manage_rolesForm', 'target':'manage_main',
},
{'icon':'', 'label':'Undo',
'action':'manage_UndoForm','target':'manage_main',
},
)

def _init(self, id, title, REQUEST):
self.id=id
self.title=title
Expand All @@ -56,7 +70,7 @@ def _init(self, id, title, REQUEST):
if l >= 0: cookie=cookie[:l]
self.cookie="%s/%s" % (cookie, id)

manage=Globals.HTMLFile('OFS/sessionEdit')
manage=manage_main=Globals.HTMLFile('OFS/sessionEdit')
index_html=Globals.HTMLFile('OFS/session')

def title_and_id(self):
Expand Down Expand Up @@ -109,14 +123,17 @@ def discard(self, REQUEST):

def nonempty(self): return Globals.SessionBase[self.cookie].nonempty()

__version__='$Revision: 1.4 $'[11:-2]
__version__='$Revision: 1.5 $'[11:-2]




##############################################################################
#
# $Log: Session.py,v $
# Revision 1.5 1997/12/05 17:13:51 brian
# New UI
#
# Revision 1.4 1997/11/11 19:25:48 jim
# Changed title_and_id method to include a flag to indicate whether a
# session has unsaved changes.
Expand Down
23 changes: 20 additions & 3 deletions Version.py
Expand Up @@ -12,7 +12,7 @@
$Id: Version.py,v 1.4 1997/11/11 19:25:48 jim Exp $'''
$Id: Version.py,v 1.5 1997/12/05 17:13:51 brian Exp $'''

import time, SimpleItem, AccessControl.Role, Persistence, Acquisition, Globals
from string import rfind
Expand Down Expand Up @@ -48,6 +48,20 @@ class Session(Persistence.Persistent,
meta_type='Session'
icon='OFS/session.gif'

manage_options=({'icon':'', 'label':'Properties',
'action':'manage_main', 'target':'manage_main',
},
{'icon':'', 'label':'Join/Leave',
'action':'index_html', 'target':'manage_main',
},
{'icon':'', 'label':'Access Control',
'action':'manage_rolesForm', 'target':'manage_main',
},
{'icon':'', 'label':'Undo',
'action':'manage_UndoForm','target':'manage_main',
},
)

def _init(self, id, title, REQUEST):
self.id=id
self.title=title
Expand All @@ -56,7 +70,7 @@ def _init(self, id, title, REQUEST):
if l >= 0: cookie=cookie[:l]
self.cookie="%s/%s" % (cookie, id)

manage=Globals.HTMLFile('OFS/sessionEdit')
manage=manage_main=Globals.HTMLFile('OFS/sessionEdit')
index_html=Globals.HTMLFile('OFS/session')

def title_and_id(self):
Expand Down Expand Up @@ -109,14 +123,17 @@ def discard(self, REQUEST):

def nonempty(self): return Globals.SessionBase[self.cookie].nonempty()

__version__='$Revision: 1.4 $'[11:-2]
__version__='$Revision: 1.5 $'[11:-2]




##############################################################################
#
# $Log: Version.py,v $
# Revision 1.5 1997/12/05 17:13:51 brian
# New UI
#
# Revision 1.4 1997/11/11 19:25:48 jim
# Changed title_and_id method to include a flag to indicate whether a
# session has unsaved changes.
Expand Down
11 changes: 6 additions & 5 deletions session.dtml
@@ -1,8 +1,9 @@
<html> <head>
<title><!--#var title_or_id--></title>
</head>

<body>
<HTML>
<HEAD>
<TITLE><!--#var title_or_id--></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->

<!--#if Principia-Session-->
<!--#if expr="_vars['Principia-Session'] != cookie"-->
Expand Down
2 changes: 2 additions & 0 deletions sessionEdit.dtml
Expand Up @@ -3,6 +3,8 @@
<TITLE>Edit Session</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->

<H2>Edit Session</H2>

<FORM ACTION="manage_edit" METHOD="POST">
Expand Down
11 changes: 6 additions & 5 deletions version.dtml
@@ -1,8 +1,9 @@
<html> <head>
<title><!--#var title_or_id--></title>
</head>

<body>
<HTML>
<HEAD>
<TITLE><!--#var title_or_id--></TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->

<!--#if Principia-Session-->
<!--#if expr="_vars['Principia-Session'] != cookie"-->
Expand Down
2 changes: 2 additions & 0 deletions versionEdit.dtml
Expand Up @@ -3,6 +3,8 @@
<TITLE>Edit Session</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" LINK="#000099" VLINK="#555555">
<!--#var manage_tabs-->

<H2>Edit Session</H2>

<FORM ACTION="manage_edit" METHOD="POST">
Expand Down

0 comments on commit 2950841

Please sign in to comment.