Commit b268239b authored by 's avatar

Fixed Image editing

parent aab83e2a
......@@ -11,18 +11,19 @@
__doc__='''Application support
$Id: Application.py,v 1.8 1997/09/08 23:38:58 brian Exp $'''
__version__='$Revision: 1.8 $'[11:-2]
$Id: Application.py,v 1.9 1997/09/09 14:21:07 brian Exp $'''
__version__='$Revision: 1.9 $'[11:-2]
import Folder, regex
import Globals
import Globals,Folder,regex
from string import lower, find
from AccessControl.User import UserFolder
class Application(Folder.Folder):
web__form__method='GET'
title='Site Studio'
id =title
web__form__method='GET'
manage_options=(
{'icon':'OFS/Folder_icon.gif', 'label':'Contents',
......@@ -31,7 +32,7 @@ class Application(Folder.Folder):
'action':'manage_propertiesForm', 'target':'manage_main'},
{'icon':'AccessControl/AccessControl_icon.gif', 'label':'Access Control',
'action':'manage_rolesForm', 'target':'manage_main'},
{'icon':'OFS/Help_icon.gif', 'label':'Control Panel',
{'icon':'OFS/ControlPanel_icon.gif', 'label':'Control Panel',
'action':'app/manage', 'target':'_top'},
{'icon':'OFS/Help_icon.gif', 'label':'Help',
'action':'manage_help', 'target':'_new'},
......@@ -144,6 +145,9 @@ if __name__ == "__main__": main()
##############################################################################
#
# $Log: Application.py,v $
# Revision 1.9 1997/09/09 14:21:07 brian
# Fixed Image editing
#
# Revision 1.8 1997/09/08 23:38:58 brian
# Style mods
#
......
"""Document object"""
__version__='$Revision: 1.11 $'[11:-2]
__version__='$Revision: 1.12 $'[11:-2]
from Globals import HTML
from Globals import HTMLFile
......@@ -19,6 +19,8 @@ class Document(HTML, RoleManager):
title=''
icon ='OFS/Document_icon.gif'
manage_options=()
__state_names__=HTML.__state_names__+('title','__roles__')
_formhead="""
......
"""Image object"""
__version__='$Revision: 1.3 $'[11:-2]
__version__='$Revision: 1.4 $'[11:-2]
from Persistence import Persistent
from Globals import HTMLFile
......@@ -8,14 +8,17 @@ from AccessControl.Role import RoleManager
class Image(Persistent,RoleManager):
"""Image object"""
meta_type ='Image'
title=''
icon ='OFS/Image_icon.gif'
meta_type='Image'
title =''
icon ='OFS/Image_icon.gif'
manage_editForm=HTMLFile('OFS/imageEdit')
manage =manage_editForm
manage_editForm =HTMLFile('OFS/imageEdit')
manage=manage_main=manage_editForm
manage_options=()
def manage_edit(self,file,title,content_type='',acl_type='A',acl_roles=[]):
""" """
try: headers=file.headers
except: headers=None
......
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