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
8a88b3fa
Commit
8a88b3fa
authored
Dec 18, 1997
by
Jeffrey Shell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changeover to new ImageFile and HTMLFile handling
parent
16b21fee
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
152 additions
and
91 deletions
+152
-91
lib/python/AccessControl/ACL.py
lib/python/AccessControl/ACL.py
+4
-3
lib/python/AccessControl/User.py
lib/python/AccessControl/User.py
+9
-5
lib/python/App/ApplicationManager.py
lib/python/App/ApplicationManager.py
+8
-6
lib/python/App/CacheManager.py
lib/python/App/CacheManager.py
+6
-3
lib/python/App/Management.py
lib/python/App/Management.py
+13
-8
lib/python/App/Undo.py
lib/python/App/Undo.py
+6
-3
lib/python/App/copyright.dtml
lib/python/App/copyright.dtml
+1
-1
lib/python/App/manage_tabs.dtml
lib/python/App/manage_tabs.dtml
+5
-5
lib/python/App/menu.dtml
lib/python/App/menu.dtml
+2
-2
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+6
-3
lib/python/OFS/CopySupport.py
lib/python/OFS/CopySupport.py
+2
-2
lib/python/OFS/Document.py
lib/python/OFS/Document.py
+7
-5
lib/python/OFS/DraftFolder.py
lib/python/OFS/DraftFolder.py
+10
-5
lib/python/OFS/Folder.py
lib/python/OFS/Folder.py
+8
-5
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+12
-9
lib/python/OFS/ObjectManager.py
lib/python/OFS/ObjectManager.py
+14
-5
lib/python/OFS/SimpleItem.py
lib/python/OFS/SimpleItem.py
+13
-5
lib/python/OFS/main.dtml
lib/python/OFS/main.dtml
+1
-1
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+10
-5
lib/python/Products/OFSP/DraftFolder.py
lib/python/Products/OFSP/DraftFolder.py
+10
-5
lib/python/TreeDisplay/TreeTag.py
lib/python/TreeDisplay/TreeTag.py
+5
-5
No files found.
lib/python/AccessControl/ACL.py
View file @
8a88b3fa
"""Access control objects"""
"""Access control objects"""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
from
Persistence
import
Persistent
from
Persistence
import
Persistent
...
@@ -8,7 +8,7 @@ from DocumentTemplate import HTML
...
@@ -8,7 +8,7 @@ from DocumentTemplate import HTML
from
Globals
import
MessageDialog
from
Globals
import
MessageDialog
from
Acquisition
import
Acquirer
from
Acquisition
import
Acquirer
from
string
import
join
,
strip
,
split
from
string
import
join
,
strip
,
split
from
ImageFile
import
ImageFile
class
SafeDtml
(
HTML
):
class
SafeDtml
(
HTML
):
...
@@ -42,7 +42,8 @@ class ACL(Persistent, Acquirer):
...
@@ -42,7 +42,8 @@ class ACL(Persistent, Acquirer):
id
=
'AccessControl'
id
=
'AccessControl'
title
=
'Access Control'
title
=
'Access Control'
icon
=
'AccessControl/AccessControl_icon.gif'
icon
=
'AccessControlIcon'
AccessControlIcon
=
ImageFile
(
'www/AccessControl_icon.gif'
,
globals
())
_groupsForm
=
SafeDtml
(
'groupsForm'
)
_groupsForm
=
SafeDtml
(
'groupsForm'
)
_groupForm
=
SafeDtml
(
'groupForm'
)
_groupForm
=
SafeDtml
(
'groupForm'
)
...
...
lib/python/AccessControl/User.py
View file @
8a88b3fa
"""Access control package"""
"""Access control package"""
__version__
=
'$Revision: 1.2
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
import
Globals
import
Globals
from
Persistence
import
Persistent
from
Persistence
import
Persistent
...
@@ -12,7 +12,7 @@ from DocumentTemplate import HTML
...
@@ -12,7 +12,7 @@ from DocumentTemplate import HTML
from
Globals
import
MessageDialog
from
Globals
import
MessageDialog
from
base64
import
decodestring
from
base64
import
decodestring
from
string
import
join
,
strip
,
split
,
lower
from
string
import
join
,
strip
,
split
,
lower
from
ImageFile
import
ImageFile
class
SafeDtml
(
HTML
):
class
SafeDtml
(
HTML
):
...
@@ -93,13 +93,14 @@ class UserFolder(Persistent, Item, Implicit, Management):
...
@@ -93,13 +93,14 @@ class UserFolder(Persistent, Item, Implicit, Management):
meta_type
=
'User Folder'
meta_type
=
'User Folder'
id
=
'acl_users'
id
=
'acl_users'
title
=
'User Folder'
title
=
'User Folder'
icon
=
'AccessControl/UserFolder_icon.gif'
icon
=
'UserFolderIcon'
UserFolderIcon
=
ImageFile
(
'www/UserFolder_icon.gif'
,
globals
())
isPrincipiaFolderish
=
1
isPrincipiaFolderish
=
1
isAUserFolder
=
1
isAUserFolder
=
1
manage_main
=
Globals
.
HTMLFile
(
'
AccessControl/UserFolder_manage_main'
)
manage_main
=
Globals
.
HTMLFile
(
'
UserFolder_manage_main'
,
globals
()
)
_editForm
=
Globals
.
HTMLFile
(
'
AccessControl/UserFolder_manage_editForm'
)
_editForm
=
Globals
.
HTMLFile
(
'
UserFolder_manage_editForm'
,
globals
()
)
manage
=
manage_main
manage
=
manage_main
#index_html =manage_main
#index_html =manage_main
...
@@ -265,6 +266,9 @@ class UserFolderHandler:
...
@@ -265,6 +266,9 @@ class UserFolderHandler:
# $Log: User.py,v $
# $Log: User.py,v $
# Revision 1.22 1997/12/18 16:45:28 jeffrey
# changeover to new ImageFile and HTMLFile handling
#
# Revision 1.21 1997/12/18 13:34:04 jim
# Revision 1.21 1997/12/18 13:34:04 jim
# Changed PersistentMapping import
# Changed PersistentMapping import
#
#
...
...
lib/python/App/ApplicationManager.py
View file @
8a88b3fa
__doc__
=
"""System management components"""
__doc__
=
"""System management components"""
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
import
sys
,
os
,
time
,
Globals
import
sys
,
os
,
time
,
Globals
...
@@ -7,7 +7,7 @@ from Globals import HTMLFile
...
@@ -7,7 +7,7 @@ from Globals import HTMLFile
from
OFS.ObjectManager
import
ObjectManager
from
OFS.ObjectManager
import
ObjectManager
from
CacheManager
import
CacheManager
from
CacheManager
import
CacheManager
from
OFS
import
SimpleItem
from
OFS
import
SimpleItem
from
ImageFile
import
ImageFile
...
@@ -15,9 +15,9 @@ class ApplicationManager(ObjectManager,SimpleItem.Item,CacheManager):
...
@@ -15,9 +15,9 @@ class ApplicationManager(ObjectManager,SimpleItem.Item,CacheManager):
"""System management"""
"""System management"""
__roles__
=
[
'manage'
,]
__roles__
=
[
'manage'
,]
manage
=
manage_main
=
HTMLFile
(
'
App/appMain'
)
manage
=
manage_main
=
HTMLFile
(
'
appMain'
,
globals
()
)
manage_packForm
=
HTMLFile
(
'
App/pack'
)
manage_packForm
=
HTMLFile
(
'
pack'
,
globals
()
)
manage_undoForm
=
HTMLFile
(
'
App/undo'
)
manage_undoForm
=
HTMLFile
(
'
undo'
,
globals
()
)
manage
=
manage_main
manage
=
manage_main
manage_options
=
(
manage_options
=
(
...
@@ -34,7 +34,9 @@ class ApplicationManager(ObjectManager,SimpleItem.Item,CacheManager):
...
@@ -34,7 +34,9 @@ class ApplicationManager(ObjectManager,SimpleItem.Item,CacheManager):
id
=
'Control_Panel'
id
=
'Control_Panel'
name
=
title
=
'Control Panel'
name
=
title
=
'Control Panel'
meta_type
=
'Control Panel'
meta_type
=
'Control Panel'
icon
=
'OFS/ControlPanel_icon.gif'
icon
=
'Icon'
Icon
=
ImageFile
(
'OFS/www/ControlPanel_icon.gif'
)
process_id
=
os
.
getpid
()
process_id
=
os
.
getpid
()
process_start
=
int
(
time
.
time
())
process_start
=
int
(
time
.
time
())
...
...
lib/python/App/CacheManager.py
View file @
8a88b3fa
...
@@ -58,8 +58,8 @@
...
@@ -58,8 +58,8 @@
__doc__
=
'''Cache management support
__doc__
=
'''Cache management support
$Id: CacheManager.py,v 1.
3 1997/11/19 20:11:48 jim
Exp $'''
$Id: CacheManager.py,v 1.
4 1997/12/18 16:45:29 jeffrey
Exp $'''
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
Globals
import
Globals
import
time
import
time
...
@@ -70,7 +70,7 @@ class CacheManager:
...
@@ -70,7 +70,7 @@ class CacheManager:
_cache_age
=
60
_cache_age
=
60
_cache_size
=
2000
_cache_size
=
2000
manage_cacheForm
=
Globals
.
HTMLFile
(
'
App/cache'
)
manage_cacheForm
=
Globals
.
HTMLFile
(
'
cache'
,
globals
()
)
def
cache_length
(
self
):
return
len
(
Globals
.
Bobobase
.
_jar
.
cache
)
def
cache_length
(
self
):
return
len
(
Globals
.
Bobobase
.
_jar
.
cache
)
...
@@ -136,6 +136,9 @@ class CacheManager:
...
@@ -136,6 +136,9 @@ class CacheManager:
##############################################################################
##############################################################################
#
#
# $Log: CacheManager.py,v $
# $Log: CacheManager.py,v $
# Revision 1.4 1997/12/18 16:45:29 jeffrey
# changeover to new ImageFile and HTMLFile handling
#
# Revision 1.3 1997/11/19 20:11:48 jim
# Revision 1.3 1997/11/19 20:11:48 jim
# Fixed bugs in check for working in a session.
# Fixed bugs in check for working in a session.
#
#
...
...
lib/python/App/Management.py
View file @
8a88b3fa
"""Standard management interface support
"""Standard management interface support
$Id: Management.py,v 1.
7 1997/12/05 17:10:46 brian
Exp $"""
$Id: Management.py,v 1.
8 1997/12/18 16:45:30 jeffrey
Exp $"""
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
import
sys
,
Globals
import
sys
,
Globals
from
Dialogs
import
MessageDialog
from
Dialogs
import
MessageDialog
from
Globals
import
HTMLFile
from
Globals
import
HTMLFile
from
Undo
import
UndoSupport
from
Undo
import
UndoSupport
from
ImageFile
import
ImageFile
class
Management
(
UndoSupport
):
class
Management
(
UndoSupport
):
"""Management support"""
"""Management support"""
manage
=
HTMLFile
(
'App/manage'
)
# cute little tab images
manage_menu
=
HTMLFile
(
'App/menu'
)
tabs_rtab
=
ImageFile
(
'www/rtab.gif'
,
globals
())
manage_tabs
=
HTMLFile
(
'App/manage_tabs'
)
tabs_ltab
=
ImageFile
(
'www/ltab.gif'
,
globals
())
manage_copyright
=
HTMLFile
(
'App/copyright'
)
manage
=
HTMLFile
(
'manage'
,
globals
())
manage_menu
=
HTMLFile
(
'menu'
,
globals
())
manage_tabs
=
HTMLFile
(
'manage_tabs'
,
globals
())
manage_copyright
=
HTMLFile
(
'copyright'
,
globals
())
manage_options
=
()
manage_options
=
()
PyPoweredSmall_Gif
=
ImageFile
(
'www/PythonPoweredSmall.gif'
,
globals
())
lib/python/App/Undo.py
View file @
8a88b3fa
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
__doc__
=
'''short description
__doc__
=
'''short description
$Id: Undo.py,v 1.
4 1997/11/07 17:06:28 jim
Exp $'''
$Id: Undo.py,v 1.
5 1997/12/18 16:45:30 jeffrey
Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
Globals
import
Globals
from
DateTime
import
DateTime
from
DateTime
import
DateTime
...
@@ -20,7 +20,7 @@ from string import atof, find, atoi, split, rfind
...
@@ -20,7 +20,7 @@ from string import atof, find, atoi, split, rfind
class
UndoSupport
:
class
UndoSupport
:
manage_UndoForm
=
Globals
.
HTMLFile
(
'
App/undo'
)
manage_UndoForm
=
Globals
.
HTMLFile
(
'
undo'
,
globals
()
)
def
undoable_transactions
(
self
,
AUTHENTICATION_PATH
=
None
,
def
undoable_transactions
(
self
,
AUTHENTICATION_PATH
=
None
,
first_transaction
=
None
,
first_transaction
=
None
,
...
@@ -87,6 +87,9 @@ class UndoSupport:
...
@@ -87,6 +87,9 @@ class UndoSupport:
##############################################################################
##############################################################################
#
#
# $Log: Undo.py,v $
# $Log: Undo.py,v $
# Revision 1.5 1997/12/18 16:45:30 jeffrey
# changeover to new ImageFile and HTMLFile handling
#
# Revision 1.4 1997/11/07 17:06:28 jim
# Revision 1.4 1997/11/07 17:06:28 jim
# Added session support.
# Added session support.
#
#
...
...
lib/python/App/copyright.dtml
View file @
8a88b3fa
...
@@ -81,7 +81,7 @@ Creations, 910 Princess Anne Street, Suite 300, Fredericksburg, VA 22401.
...
@@ -81,7 +81,7 @@ Creations, 910 Princess Anne Street, Suite 300, Fredericksburg, VA 22401.
<A NAME="PYTHON">
<A NAME="PYTHON">
<H3>
<H3>
<img src="
<!--#var SOFTWARE_URL-->/App/PythonPoweredSmall.g
if">
<img src="
PyPoweredSmall_G
if">
This software is powered by <a href="http://www.python.org/">Python</a>!
This software is powered by <a href="http://www.python.org/">Python</a>!
</H3>
</H3>
<p>Copyright © 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
<p>Copyright © 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
...
...
lib/python/App/manage_tabs.dtml
View file @
8a88b3fa
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<!--#if expr="_vars['PATH_INFO'][-(_.len(action)):]==action"-->
<!--#if expr="_vars['PATH_INFO'][-(_.len(action)):]==action"-->
<TD ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#FFFFFF">
<TD ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#FFFFFF">
<FONT SIZE="-1">
<FONT SIZE="-1">
<IMG ALIGN="LEFT" HSPACE="0" SRC="
<!--#var SOFTWARE_URL-->/App/ltab.gif
">
<IMG ALIGN="LEFT" HSPACE="0" SRC="
tabs_ltab
">
<IMG ALIGN="RIGHT" HSPACE="0" SRC="
<!--#var SOFTWARE_URL-->/App/rtab.gif
">
<IMG ALIGN="RIGHT" HSPACE="0" SRC="
tabs_rtab
">
<STRONG>
<STRONG>
<!--#if action-->
<!--#if action-->
<A HREF="<!--#var action-->"><!--#var label--></A>
<A HREF="<!--#var action-->"><!--#var label--></A>
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
<!--#else-->
<!--#else-->
<TD ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#EFEFEF">
<TD ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#EFEFEF">
<FONT SIZE="-1">
<FONT SIZE="-1">
<IMG ALIGN="LEFT" HSPACE="0" SRC="
<!--#var SOFTWARE_URL-->/App/ltab.gif
">
<IMG ALIGN="LEFT" HSPACE="0" SRC="
tabs_ltab
">
<IMG ALIGN="RIGHT" HSPACE="0" SRC="
<!--#var SOFTWARE_URL-->/App/rtab.gif
">
<IMG ALIGN="RIGHT" HSPACE="0" SRC="
tabs_rtab
">
<!--#if action-->
<!--#if action-->
<A HREF="<!--#var action-->"><!--#var label--></A>
<A HREF="<!--#var action-->"><!--#var label--></A>
<!--#else action-->
<!--#else action-->
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2">
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2">
<TR>
<TR>
<TD ALIGN="LEFT" VALIGN="TOP">
<TD ALIGN="LEFT" VALIGN="TOP">
<IMG SRC="<!--#var
SOFTWARE_URL-->/<!--#var
icon-->"
<IMG SRC="<!--#var icon-->"
ALT="<!--#var meta_type-->" BORDER="0">
ALT="<!--#var meta_type-->" BORDER="0">
<STRONG>
<STRONG>
<!--#if meta_type-->
<!--#if meta_type-->
...
...
lib/python/App/menu.dtml
View file @
8a88b3fa
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<TR>
<TR>
<TD VALIGN="TOP" NOWRAP>
<TD VALIGN="TOP" NOWRAP>
<A HREF="manage_main" TARGET="manage_main">
<A HREF="manage_main" TARGET="manage_main">
<IMG SRC="<!--#var
SOFTWARE_URL-->/<!--#var
icon-->" BORDER="0"
<IMG SRC="<!--#var icon-->" BORDER="0"
ALT="Click to open this item"></A>
ALT="Click to open this item"></A>
<STRONG>
<STRONG>
<A HREF="manage_main" TARGET="manage_main">
<A HREF="manage_main" TARGET="manage_main">
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</TABLE>
</TABLE>
<!--#tree sort=title_or_id nowrap=1-->
<!--#tree sort=title_or_id nowrap=1-->
<A HREF="<!--#var tree-item-url-->/manage_main" TARGET="manage_main">
<A HREF="<!--#var tree-item-url-->/manage_main" TARGET="manage_main">
<IMG SRC="<!--#var
SOFTWARE_URL
-->/<!--#var icon-->" BORDER="0"
<IMG SRC="<!--#var
tree-item-url
-->/<!--#var icon-->" BORDER="0"
ALT="Click to open this item"></A>
ALT="Click to open this item"></A>
<A HREF="<!--#var tree-item-url-->/manage_main" TARGET="manage_main">
<A HREF="<!--#var tree-item-url-->/manage_main" TARGET="manage_main">
<!--#var id-->
<!--#var id-->
...
...
lib/python/OFS/Application.py
View file @
8a88b3fa
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
__doc__
=
'''Application support
__doc__
=
'''Application support
$Id: Application.py,v 1.2
6 1997/12/17 16:45:26 jim
Exp $'''
$Id: Application.py,v 1.2
7 1997/12/18 16:45:38 jeffrey
Exp $'''
__version__
=
'$Revision: 1.2
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
import
Globals
,
Folder
,
os
,
regex
,
sys
import
Globals
,
Folder
,
os
,
regex
,
sys
...
@@ -42,7 +42,7 @@ class Application(Folder.Folder):
...
@@ -42,7 +42,7 @@ class Application(Folder.Folder):
# 'action':'manage_help', 'target':'_new'},
# 'action':'manage_help', 'target':'_new'},
)
)
manage_rolesForm
=
Globals
.
HTMLFile
(
'
OFS/rolesForm'
)
manage_rolesForm
=
Globals
.
HTMLFile
(
'
rolesForm'
,
globals
()
)
_reserved_names
=
(
'standard_html_header'
,
_reserved_names
=
(
'standard_html_header'
,
'standard_html_footer'
,
'standard_html_footer'
,
...
@@ -235,6 +235,9 @@ def install_products():
...
@@ -235,6 +235,9 @@ def install_products():
##############################################################################
##############################################################################
#
#
# $Log: Application.py,v $
# $Log: Application.py,v $
# Revision 1.27 1997/12/18 16:45:38 jeffrey
# changeover to new ImageFile and HTMLFile handling
#
# Revision 1.26 1997/12/17 16:45:26 jim
# Revision 1.26 1997/12/17 16:45:26 jim
# initial_products is dead!
# initial_products is dead!
#
#
...
...
lib/python/OFS/CopySupport.py
View file @
8a88b3fa
"""Copy interface"""
"""Copy interface"""
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
Globals
,
Moniker
,
rPickle
,
tempfile
import
Globals
,
Moniker
,
rPickle
,
tempfile
from
cPickle
import
loads
,
dumps
from
cPickle
import
loads
,
dumps
...
@@ -15,7 +15,7 @@ class CopyContainer:
...
@@ -15,7 +15,7 @@ class CopyContainer:
# Interface for containerish objects which allow
# Interface for containerish objects which allow
# objects to be copied into them.
# objects to be copied into them.
pasteDialog
=
Globals
.
HTMLFile
(
'
OFS/pasteDialog'
)
pasteDialog
=
Globals
.
HTMLFile
(
'
pasteDialog'
,
globals
()
)
def
_getMoniker
(
self
):
def
_getMoniker
(
self
):
# Ask an object to return a moniker for itself.
# Ask an object to return a moniker for itself.
...
...
lib/python/OFS/Document.py
View file @
8a88b3fa
"""Document object"""
"""Document object"""
__version__
=
'$Revision: 1.3
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
from
Globals
import
HTML
,
HTMLFile
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
from
AccessControl.Role
import
RoleManager
from
AccessControl.Role
import
RoleManager
import
SimpleItem
,
regex
import
SimpleItem
,
regex
import
Acquisition
import
Acquisition
from
ImageFile
import
ImageFile
class
Document
(
HTML
,
RoleManager
,
SimpleItem
.
Item_w__name__
,
class
Document
(
HTML
,
RoleManager
,
SimpleItem
.
Item_w__name__
,
Acquisition
.
Explicit
):
Acquisition
.
Explicit
):
"""Document object"""
"""Document object"""
meta_type
=
'Document'
meta_type
=
'Document'
icon
=
'OFS/Document_icon.gif'
icon
=
'DocumentIcon'
DocumentIcon
=
ImageFile
(
'www/Document_icon.gif'
,
globals
())
__state_names__
=
HTML
.
__state_names__
+
(
'title'
,
'__roles__'
)
__state_names__
=
HTML
.
__state_names__
+
(
'title'
,
'__roles__'
)
# Documents masquerade as functions:
# Documents masquerade as functions:
...
@@ -58,8 +60,8 @@ class Document(HTML, RoleManager, SimpleItem.Item_w__name__,
...
@@ -58,8 +60,8 @@ class Document(HTML, RoleManager, SimpleItem.Item_w__name__,
try
:
return
md
.
AUTHENTICATED_USER
.
hasRole
(
roles
)
try
:
return
md
.
AUTHENTICATED_USER
.
hasRole
(
roles
)
except
AttributeError
:
return
0
except
AttributeError
:
return
0
manage_editForm
=
HTMLFile
(
'
OFS/documentEdit'
)
manage_editForm
=
HTMLFile
(
'
documentEdit'
,
globals
()
)
manage_uploadForm
=
HTMLFile
(
'
OFS/documentUpload'
)
manage_uploadForm
=
HTMLFile
(
'
documentUpload'
,
globals
()
)
manage
=
manage_main
=
manage_editDocument
=
manage_editForm
manage
=
manage_main
=
manage_editDocument
=
manage_editForm
def
manage_edit
(
self
,
data
,
title
,
acl_type
=
'A'
,
acl_roles
=
[],
SUBMIT
=
'Change'
,
def
manage_edit
(
self
,
data
,
title
,
acl_type
=
'A'
,
acl_roles
=
[],
SUBMIT
=
'Change'
,
...
@@ -117,7 +119,7 @@ class DocumentHandler:
...
@@ -117,7 +119,7 @@ class DocumentHandler:
"""Document object handler mixin"""
"""Document object handler mixin"""
#meta_types=({'name':'Document', 'action':'manage_addDocumentForm'},)
#meta_types=({'name':'Document', 'action':'manage_addDocumentForm'},)
manage_addDocumentForm
=
HTMLFile
(
'
OFS/documentAdd'
)
manage_addDocumentForm
=
HTMLFile
(
'
documentAdd'
,
globals
()
)
def
manage_addDocument
(
self
,
id
,
title
=
''
,
file
=
''
,
def
manage_addDocument
(
self
,
id
,
title
=
''
,
file
=
''
,
acl_type
=
'A'
,
acl_roles
=
[],
REQUEST
=
None
):
acl_type
=
'A'
,
acl_roles
=
[],
REQUEST
=
None
):
...
...
lib/python/OFS/DraftFolder.py
View file @
8a88b3fa
...
@@ -14,16 +14,17 @@ Provide an area where people can work without others seeing their changes.
...
@@ -14,16 +14,17 @@ 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
A Draft folder is a surrogate for a folder. It get
\
'
s subobjects by
gettingthem from a session copy of a base folder.
gettingthem from a session copy of a base folder.
$Id: DraftFolder.py,v 1.
4 1997/12/12 21:49:42 brian
Exp $'''
$Id: DraftFolder.py,v 1.
5 1997/12/18 16:45:40 jeffrey
Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
time
,
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
Globals
import
time
,
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
Globals
import
AccessControl.User
,
Session
import
AccessControl.User
,
Session
from
string
import
rfind
from
string
import
rfind
from
App.Management
import
Management
from
App.Management
import
Management
from
Globals
import
HTMLFile
from
Globals
import
HTMLFile
from
ImageFile
import
ImageFile
addForm
=
HTMLFile
(
'
OFS/draftFolderAdd'
)
addForm
=
HTMLFile
(
'
draftFolderAdd'
,
globals
()
)
def
add
(
self
,
id
,
baseid
,
title
=
''
,
REQUEST
=
None
):
def
add
(
self
,
id
,
baseid
,
title
=
''
,
REQUEST
=
None
):
"""Add a new Folder object"""
"""Add a new Folder object"""
...
@@ -54,7 +55,8 @@ class DraftFolder(Persistence.Persistent,
...
@@ -54,7 +55,8 @@ class DraftFolder(Persistence.Persistent,
):
):
meta_type
=
'Draft Folder'
meta_type
=
'Draft Folder'
icon
=
'OFS/DraftFolder.gif'
icon
=
'DraftFolderIcon'
DraftFolderIcon
=
ImageFile
(
'www/DraftFolder.gif'
,
globals
())
isPrincipiaFolderish
=
1
isPrincipiaFolderish
=
1
manage_options
=
(
manage_options
=
(
...
@@ -200,7 +202,7 @@ class DraftFolder(Persistence.Persistent,
...
@@ -200,7 +202,7 @@ class DraftFolder(Persistence.Persistent,
class
Supervisor
(
AccessControl
.
User
.
UserFolder
,
Session
.
Session
):
class
Supervisor
(
AccessControl
.
User
.
UserFolder
,
Session
.
Session
):
manage
=
manage_main
=
HTMLFile
(
'
OFS/DraftFolderSupervisor'
)
manage
=
manage_main
=
HTMLFile
(
'
DraftFolderSupervisor'
,
globals
()
)
manage_options
=
()
# This is a simple item
manage_options
=
()
# This is a simple item
...
@@ -210,6 +212,9 @@ class Supervisor(AccessControl.User.UserFolder, Session.Session):
...
@@ -210,6 +212,9 @@ class Supervisor(AccessControl.User.UserFolder, Session.Session):
##############################################################################
##############################################################################
#
#
# $Log: DraftFolder.py,v $
# $Log: DraftFolder.py,v $
# Revision 1.5 1997/12/18 16:45:40 jeffrey
# changeover to new ImageFile and HTMLFile handling
#
# Revision 1.4 1997/12/12 21:49:42 brian
# Revision 1.4 1997/12/12 21:49:42 brian
# ui update
# ui update
#
#
...
...
lib/python/OFS/Folder.py
View file @
8a88b3fa
"""Folder object
"""Folder object
$Id: Folder.py,v 1.2
4 1997/12/12 21:53:05 brian
Exp $"""
$Id: Folder.py,v 1.2
5 1997/12/18 16:45:40 jeffrey
Exp $"""
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
from
Globals
import
HTMLFile
from
Globals
import
HTMLFile
...
@@ -17,7 +17,7 @@ import SimpleItem
...
@@ -17,7 +17,7 @@ import SimpleItem
from
string
import
rfind
,
lower
from
string
import
rfind
,
lower
from
content_types
import
content_type
,
find_binary
,
text_type
from
content_types
import
content_type
,
find_binary
,
text_type
import
Image
import
Image
from
ImageFile
import
ImageFile
...
@@ -26,7 +26,7 @@ class FolderHandler:
...
@@ -26,7 +26,7 @@ class FolderHandler:
# meta_types=({'name':'Folder', 'action':'manage_addFolderForm'},)
# meta_types=({'name':'Folder', 'action':'manage_addFolderForm'},)
manage_addFolderForm
=
HTMLFile
(
'
OFS/folderAdd'
)
manage_addFolderForm
=
HTMLFile
(
'
folderAdd'
,
globals
()
)
def
folderClass
(
self
):
def
folderClass
(
self
):
return
Folder
return
Folder
...
@@ -77,7 +77,10 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
...
@@ -77,7 +77,10 @@ class Folder(ObjectManager,RoleManager,DocumentHandler,
meta_type
=
'Folder'
meta_type
=
'Folder'
id
=
'folder'
id
=
'folder'
title
=
'Folder object'
title
=
'Folder object'
icon
=
'OFS/Folder_icon.gif'
icon
=
'FolderIcon'
FolderIcon
=
ImageFile
(
'www/Folder_icon.gif'
,
globals
())
Modified_Gif
=
ImageFile
(
'www/modified.gif'
,
globals
())
_properties
=
({
'id'
:
'title'
,
'type'
:
'string'
},)
_properties
=
({
'id'
:
'title'
,
'type'
:
'string'
},)
...
...
lib/python/OFS/Image.py
View file @
8a88b3fa
"""Image object"""
"""Image object"""
__version__
=
'$Revision: 1.1
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
from
Persistence
import
Persistent
from
Persistence
import
Persistent
from
Globals
import
HTMLFile
from
Globals
import
HTMLFile
...
@@ -8,15 +8,17 @@ from Globals import MessageDialog
...
@@ -8,15 +8,17 @@ from Globals import MessageDialog
from
AccessControl.Role
import
RoleManager
from
AccessControl.Role
import
RoleManager
import
SimpleItem
import
SimpleItem
import
Acquisition
import
Acquisition
from
ImageFile
import
ImageFile
class
File
(
Persistent
,
RoleManager
,
SimpleItem
.
Item_w__name__
,
class
File
(
Persistent
,
RoleManager
,
SimpleItem
.
Item_w__name__
,
Acquisition
.
Implicit
):
Acquisition
.
Implicit
):
"""Image object"""
"""Image object"""
meta_type
=
'File'
meta_type
=
'File'
icon
=
'OFS/File_icon.gif'
icon
=
'FileIcon'
FileIcon
=
ImageFile
(
'www/File_icon.gif'
,
globals
())
manage_editForm
=
HTMLFile
(
'
OFS/imageEdit'
,
Kind
=
'File'
,
kind
=
'file'
)
manage_editForm
=
HTMLFile
(
'
imageEdit'
,
globals
()
,
Kind
=
'File'
,
kind
=
'file'
)
manage_uploadForm
=
HTMLFile
(
'
OFS/imageUpload'
,
Kind
=
'File'
,
kind
=
'file'
)
manage_uploadForm
=
HTMLFile
(
'
imageUpload'
,
globals
()
,
Kind
=
'File'
,
kind
=
'file'
)
manage
=
manage_main
=
manage_editForm
manage
=
manage_main
=
manage_editForm
manage_options
=
({
'icon'
:
''
,
'label'
:
'Edit'
,
manage_options
=
({
'icon'
:
''
,
'label'
:
'Edit'
,
...
@@ -92,10 +94,11 @@ class File(Persistent,RoleManager,SimpleItem.Item_w__name__,
...
@@ -92,10 +94,11 @@ class File(Persistent,RoleManager,SimpleItem.Item_w__name__,
class
Image
(
File
):
class
Image
(
File
):
meta_type
=
'Image'
meta_type
=
'Image'
icon
=
'OFS/Image_icon.gif'
icon
=
'ImageIcon'
ImageIcon
=
ImageFile
(
'www/Image_icon.gif'
,
globals
())
manage_editForm
=
HTMLFile
(
'
OFS/imageEdit'
,
Kind
=
'Image'
,
kind
=
'image'
)
manage_editForm
=
HTMLFile
(
'
imageEdit'
,
globals
()
,
Kind
=
'Image'
,
kind
=
'image'
)
manage_uploadForm
=
HTMLFile
(
'
OFS/imageUpload'
,
Kind
=
'Image'
,
kind
=
'image'
)
manage_uploadForm
=
HTMLFile
(
'
imageUpload'
,
globals
()
,
Kind
=
'Image'
,
kind
=
'image'
)
manage
=
manage_main
=
manage_editForm
manage
=
manage_main
=
manage_editForm
def
__str__
(
self
):
def
__str__
(
self
):
...
@@ -106,8 +109,8 @@ class ImageHandler:
...
@@ -106,8 +109,8 @@ class ImageHandler:
"""Image object handler mixin"""
"""Image object handler mixin"""
#meta_types=({'name':'Image', 'action':'manage_addImageForm'},)
#meta_types=({'name':'Image', 'action':'manage_addImageForm'},)
manage_addFileForm
=
HTMLFile
(
'
OFS/imageAdd'
,
Kind
=
'File'
,
kind
=
'file'
)
manage_addFileForm
=
HTMLFile
(
'
imageAdd'
,
globals
(),
Kind
=
'File'
,
kind
=
'file'
)
manage_addImageForm
=
HTMLFile
(
'
OFS/imageAdd'
,
Kind
=
'Image'
,
kind
=
'image'
)
manage_addImageForm
=
HTMLFile
(
'
imageAdd'
,
globals
()
,
Kind
=
'Image'
,
kind
=
'image'
)
def
manage_addImage
(
self
,
id
,
file
,
title
=
''
,
acl_type
=
'A'
,
acl_roles
=
[],
def
manage_addImage
(
self
,
id
,
file
,
title
=
''
,
acl_type
=
'A'
,
acl_roles
=
[],
REQUEST
=
None
):
REQUEST
=
None
):
...
...
lib/python/OFS/ObjectManager.py
View file @
8a88b3fa
__doc__
=
"""Object Manager
__doc__
=
"""Object Manager
$Id: ObjectManager.py,v 1.2
4 1997/12/16 20:04:43 jim
Exp $"""
$Id: ObjectManager.py,v 1.2
5 1997/12/18 16:45:41 jeffrey
Exp $"""
__version__
=
'$Revision: 1.2
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
5
$'
[
11
:
-
2
]
from
SingleThreadedTransaction
import
Persistent
from
SingleThreadedTransaction
import
Persistent
...
@@ -16,6 +16,7 @@ from urllib import quote
...
@@ -16,6 +16,7 @@ from urllib import quote
from
DocumentTemplate
import
html_quote
from
DocumentTemplate
import
html_quote
from
cgi_module_publisher
import
type_converters
from
cgi_module_publisher
import
type_converters
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
ImageFile
import
ImageFile
class
ObjectManager
(
Acquirer
,
Management
,
Persistent
):
class
ObjectManager
(
Acquirer
,
Management
,
Persistent
):
"""Generic object manager
"""Generic object manager
...
@@ -27,12 +28,17 @@ class ObjectManager(Acquirer,Management,Persistent):
...
@@ -27,12 +28,17 @@ class ObjectManager(Acquirer,Management,Persistent):
meta_types
=
dynamic_meta_types
=
()
meta_types
=
dynamic_meta_types
=
()
id
=
'default'
id
=
'default'
title
=
''
title
=
''
icon
=
'OFS/Folder_icon.gif'
icon
=
'FolderIcon'
FolderIcon
=
ImageFile
(
'www/Folder_icon.gif'
,
globals
())
_objects
=
()
_objects
=
()
_properties
=
({
'id'
:
'title'
,
'type'
:
'string'
},)
_properties
=
({
'id'
:
'title'
,
'type'
:
'string'
},)
manage_main
=
HTMLFile
(
'OFS/main'
)
manage_main
=
HTMLFile
(
'main'
,
globals
())
manage_propertiesForm
=
HTMLFile
(
'OFS/properties'
)
manage_propertiesForm
=
HTMLFile
(
'properties'
,
globals
())
Blank_icon
=
ImageFile
(
'TreeDisplay/www/Blank_icon.gif'
)
Plus_icon
=
ImageFile
(
'TreeDisplay/www/Plus_icon.gif'
)
Minus_icon
=
ImageFile
(
'TreeDisplay/www/Minus_icon.gif'
)
manage_options
=
(
manage_options
=
(
{
'icon'
:
icon
,
'label'
:
'Objects'
,
{
'icon'
:
icon
,
'label'
:
'Objects'
,
...
@@ -455,6 +461,9 @@ class ObjectManager(Acquirer,Management,Persistent):
...
@@ -455,6 +461,9 @@ class ObjectManager(Acquirer,Management,Persistent):
##############################################################################
##############################################################################
#
#
# $Log: ObjectManager.py,v $
# $Log: ObjectManager.py,v $
# Revision 1.25 1997/12/18 16:45:41 jeffrey
# changeover to new ImageFile and HTMLFile handling
#
# Revision 1.24 1997/12/16 20:04:43 jim
# Revision 1.24 1997/12/16 20:04:43 jim
# Modified copying code to set validClipData in manage_main so that
# Modified copying code to set validClipData in manage_main so that
# the paste button shows up after copy.
# the paste button shows up after copy.
...
...
lib/python/OFS/SimpleItem.py
View file @
8a88b3fa
...
@@ -16,13 +16,13 @@ Aqueduct database adapters, etc.
...
@@ -16,13 +16,13 @@ Aqueduct database adapters, etc.
This module can also be used as a simple template for implementing new
This module can also be used as a simple template for implementing new
item types.
item types.
$Id: SimpleItem.py,v 1.
8 1997/12/12 21:49:44 brian
Exp $'''
$Id: SimpleItem.py,v 1.
9 1997/12/18 16:45:42 jeffrey
Exp $'''
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
import
Globals
import
Globals
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
CopySupport
import
CopySource
from
CopySupport
import
CopySource
from
ImageFile
import
ImageFile
class
Item
(
CopySource
):
class
Item
(
CopySource
):
...
@@ -30,7 +30,8 @@ class Item(CopySource):
...
@@ -30,7 +30,8 @@ class Item(CopySource):
# Name, relative to SOFTWARE_URL of icon used to display item
# Name, relative to SOFTWARE_URL of icon used to display item
# in folder listings.
# in folder listings.
icon
=
'App/arrow.jpg'
icon
=
'ItemIcon'
ItemIcon
=
ImageFile
(
'App/www/arrow.jpg'
)
# Meta type used for selecting all objects of a given type.
# Meta type used for selecting all objects of a given type.
meta_type
=
'simple item'
meta_type
=
'simple item'
...
@@ -38,6 +39,10 @@ class Item(CopySource):
...
@@ -38,6 +39,10 @@ class Item(CopySource):
# Default title.
# Default title.
title
=
''
title
=
''
# cute little tab images
tabs_rtab
=
ImageFile
(
'App/www/rtab.gif'
)
tabs_ltab
=
ImageFile
(
'App/www/ltab.gif'
)
manage_tabs
=
Globals
.
HTMLFile
(
'App/manage_tabs'
)
manage_tabs
=
Globals
.
HTMLFile
(
'App/manage_tabs'
)
manage_info
=
Globals
.
HTMLFile
(
'App/manage_info'
)
manage_info
=
Globals
.
HTMLFile
(
'App/manage_info'
)
manage_options
=
({
'icon'
:
''
,
'label'
:
'Manage'
,
manage_options
=
({
'icon'
:
''
,
'label'
:
'Manage'
,
...
@@ -76,7 +81,7 @@ class Item(CopySource):
...
@@ -76,7 +81,7 @@ class Item(CopySource):
def
tpValues
(
self
):
return
()
def
tpValues
(
self
):
return
()
_manage_editedDialog
=
Globals
.
HTMLFile
(
'
OFS/editedDialog'
)
_manage_editedDialog
=
Globals
.
HTMLFile
(
'
editedDialog'
,
globals
()
)
def
manage_editedDialog
(
self
,
REQUEST
,
**
args
):
def
manage_editedDialog
(
self
,
REQUEST
,
**
args
):
return
apply
(
self
.
_manage_editedDialog
,(
self
,
REQUEST
),
args
)
return
apply
(
self
.
_manage_editedDialog
,(
self
,
REQUEST
),
args
)
...
@@ -119,6 +124,9 @@ class Item_w__name__(Item):
...
@@ -119,6 +124,9 @@ class Item_w__name__(Item):
##############################################################################
##############################################################################
#
#
# $Log: SimpleItem.py,v $
# $Log: SimpleItem.py,v $
# Revision 1.9 1997/12/18 16:45:42 jeffrey
# changeover to new ImageFile and HTMLFile handling
#
# Revision 1.8 1997/12/12 21:49:44 brian
# Revision 1.8 1997/12/12 21:49:44 brian
# ui update
# ui update
#
#
...
...
lib/python/OFS/main.dtml
View file @
8a88b3fa
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<!--#/if title-->
<!--#/if title-->
</A>
</A>
<!--#if modified_in_session-->
<!--#if modified_in_session-->
<IMG SRC="
<!--#var SOFTWARE_URL-->/OFS/modified.g
if"
<IMG SRC="
Modified_G
if"
ALT="This item has been modified in a session">
ALT="This item has been modified in a session">
<!--#/if modified_in_session-->
<!--#/if modified_in_session-->
</TD>
</TD>
...
...
lib/python/Products/MailHost/MailHost.py
View file @
8a88b3fa
...
@@ -5,13 +5,14 @@ import Acquisition, sys, regex, string, types
...
@@ -5,13 +5,14 @@ import Acquisition, sys, regex, string, types
import
OFS.SimpleItem
import
OFS.SimpleItem
import
Globals
import
Globals
from
Scheduler.OneTimeEvent
import
OneTimeEvent
from
Scheduler.OneTimeEvent
import
OneTimeEvent
from
ImageFile
import
ImageFile
#$Id: MailHost.py,v 1.
19 1997/12/12 22:05:18 brian
Exp $
#$Id: MailHost.py,v 1.
20 1997/12/18 16:45:37 jeffrey
Exp $
__version__
=
"$Revision: 1.
19
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.
20
$"
[
11
:
-
2
]
smtpError
=
"SMTP Error"
smtpError
=
"SMTP Error"
MailHostError
=
"MailHost Error"
MailHostError
=
"MailHost Error"
addForm
=
HTMLFile
(
'
MailHost/addMailHost_form'
,
localhost
=
gethostname
())
addForm
=
HTMLFile
(
'
addMailHost_form'
,
globals
(),
localhost
=
gethostname
())
def
add
(
self
,
id
=
'aMailHost'
,
title
=
'Some mail thing'
,
smtp_host
=
None
,
def
add
(
self
,
id
=
'aMailHost'
,
title
=
'Some mail thing'
,
smtp_host
=
None
,
localhost
=
'localhost'
,
smtp_port
=
25
,
acl_type
=
'A'
,
acl_roles
=
[],
localhost
=
'localhost'
,
smtp_port
=
25
,
acl_type
=
'A'
,
acl_roles
=
[],
REQUEST
=
None
):
REQUEST
=
None
):
...
@@ -29,9 +30,10 @@ class MailHost(Persistent, Acquisition.Implicit, OFS.SimpleItem.Item,
...
@@ -29,9 +30,10 @@ class MailHost(Persistent, Acquisition.Implicit, OFS.SimpleItem.Item,
RoleManager
):
RoleManager
):
'a mailhost...?'
'a mailhost...?'
meta_type
=
'Mail Host'
meta_type
=
'Mail Host'
manage
=
manage_main
=
HTMLFile
(
'
MailHost/manageMailHost'
)
manage
=
manage_main
=
HTMLFile
(
'
manageMailHost'
,
globals
()
)
index_html
=
None
index_html
=
None
icon
=
"MailHost/MailHost_icon.gif"
icon
=
'MHIcon'
MHIcon
=
ImageFile
(
"www/MailHost_icon.gif"
,
globals
())
manage_options
=
({
'icon'
:
''
,
'label'
:
'Edit'
,
manage_options
=
({
'icon'
:
''
,
'label'
:
'Edit'
,
'action'
:
'manage_main'
,
'target'
:
'manage_main'
,
'action'
:
'manage_main'
,
'target'
:
'manage_main'
,
...
@@ -225,6 +227,9 @@ def decapitate(message, **kw):
...
@@ -225,6 +227,9 @@ def decapitate(message, **kw):
#$Log: MailHost.py,v $
#$Log: MailHost.py,v $
#Revision 1.20 1997/12/18 16:45:37 jeffrey
#changeover to new ImageFile and HTMLFile handling
#
#Revision 1.19 1997/12/12 22:05:18 brian
#Revision 1.19 1997/12/12 22:05:18 brian
#ui update
#ui update
#
#
...
...
lib/python/Products/OFSP/DraftFolder.py
View file @
8a88b3fa
...
@@ -14,16 +14,17 @@ Provide an area where people can work without others seeing their changes.
...
@@ -14,16 +14,17 @@ 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
A Draft folder is a surrogate for a folder. It get
\
'
s subobjects by
gettingthem from a session copy of a base folder.
gettingthem from a session copy of a base folder.
$Id: DraftFolder.py,v 1.
4 1997/12/12 21:49:42 brian
Exp $'''
$Id: DraftFolder.py,v 1.
5 1997/12/18 16:45:40 jeffrey
Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
import
time
,
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
Globals
import
time
,
SimpleItem
,
AccessControl
.
Role
,
Persistence
,
Acquisition
,
Globals
import
AccessControl.User
,
Session
import
AccessControl.User
,
Session
from
string
import
rfind
from
string
import
rfind
from
App.Management
import
Management
from
App.Management
import
Management
from
Globals
import
HTMLFile
from
Globals
import
HTMLFile
from
ImageFile
import
ImageFile
addForm
=
HTMLFile
(
'
OFS/draftFolderAdd'
)
addForm
=
HTMLFile
(
'
draftFolderAdd'
,
globals
()
)
def
add
(
self
,
id
,
baseid
,
title
=
''
,
REQUEST
=
None
):
def
add
(
self
,
id
,
baseid
,
title
=
''
,
REQUEST
=
None
):
"""Add a new Folder object"""
"""Add a new Folder object"""
...
@@ -54,7 +55,8 @@ class DraftFolder(Persistence.Persistent,
...
@@ -54,7 +55,8 @@ class DraftFolder(Persistence.Persistent,
):
):
meta_type
=
'Draft Folder'
meta_type
=
'Draft Folder'
icon
=
'OFS/DraftFolder.gif'
icon
=
'DraftFolderIcon'
DraftFolderIcon
=
ImageFile
(
'www/DraftFolder.gif'
,
globals
())
isPrincipiaFolderish
=
1
isPrincipiaFolderish
=
1
manage_options
=
(
manage_options
=
(
...
@@ -200,7 +202,7 @@ class DraftFolder(Persistence.Persistent,
...
@@ -200,7 +202,7 @@ class DraftFolder(Persistence.Persistent,
class
Supervisor
(
AccessControl
.
User
.
UserFolder
,
Session
.
Session
):
class
Supervisor
(
AccessControl
.
User
.
UserFolder
,
Session
.
Session
):
manage
=
manage_main
=
HTMLFile
(
'
OFS/DraftFolderSupervisor'
)
manage
=
manage_main
=
HTMLFile
(
'
DraftFolderSupervisor'
,
globals
()
)
manage_options
=
()
# This is a simple item
manage_options
=
()
# This is a simple item
...
@@ -210,6 +212,9 @@ class Supervisor(AccessControl.User.UserFolder, Session.Session):
...
@@ -210,6 +212,9 @@ class Supervisor(AccessControl.User.UserFolder, Session.Session):
##############################################################################
##############################################################################
#
#
# $Log: DraftFolder.py,v $
# $Log: DraftFolder.py,v $
# Revision 1.5 1997/12/18 16:45:40 jeffrey
# changeover to new ImageFile and HTMLFile handling
#
# Revision 1.4 1997/12/12 21:49:42 brian
# Revision 1.4 1997/12/12 21:49:42 brian
# ui update
# ui update
#
#
...
...
lib/python/TreeDisplay/TreeTag.py
View file @
8a88b3fa
...
@@ -9,8 +9,8 @@
...
@@ -9,8 +9,8 @@
# rights reserved.
# rights reserved.
#
#
############################################################################
############################################################################
__rcs_id__
=
'$Id: TreeTag.py,v 1.1
8 1997/12/11 15:28:24
jeffrey Exp $'
__rcs_id__
=
'$Id: TreeTag.py,v 1.1
9 1997/12/18 16:45:43
jeffrey Exp $'
__version__
=
'$Revision: 1.1
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
9
$'
[
11
:
-
2
]
from
DocumentTemplate.DT_Util
import
*
from
DocumentTemplate.DT_Util
import
*
from
DocumentTemplate.DT_String
import
String
from
DocumentTemplate.DT_String
import
String
...
@@ -463,9 +463,9 @@ def tpValuesIds(self, branches):
...
@@ -463,9 +463,9 @@ def tpValuesIds(self, branches):
return
r
return
r
icoSpace
=
'<IMG SRC="
%s/TreeDisplay/Blank_icon.gif" BORDER="0">'
%
SOFTWARE_URL
icoSpace
=
'<IMG SRC="
Blank_icon" BORDER="0">'
icoPlus
=
'<IMG SRC="
%s/TreeDisplay/Plus_icon.gif" BORDER="0">'
%
SOFTWARE_URL
icoPlus
=
'<IMG SRC="
Plus_icon" BORDER="0">'
icoMinus
=
'<IMG SRC="
%s/TreeDisplay/Minus_icon.gif" BORDER="0">'
%
SOFTWARE_URL
icoMinus
=
'<IMG SRC="
Minus_icon" BORDER="0">'
...
...
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