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
b268239b
Commit
b268239b
authored
Sep 09, 1997
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Image editing
parent
aab83e2a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
13 deletions
+22
-13
lib/python/OFS/Application.py
lib/python/OFS/Application.py
+10
-6
lib/python/OFS/Document.py
lib/python/OFS/Document.py
+3
-1
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+9
-6
lib/python/OFS/www/ControlPanel_icon.gif
lib/python/OFS/www/ControlPanel_icon.gif
+0
-0
No files found.
lib/python/OFS/Application.py
View file @
b268239b
...
...
@@ -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
#
...
...
lib/python/OFS/Document.py
View file @
b268239b
"""Document object"""
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
2
$'
[
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
=
"""
...
...
lib/python/OFS/Image.py
View file @
b268239b
"""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
...
...
lib/python/OFS/www/ControlPanel_icon.gif
0 → 100644
View file @
b268239b
897 Bytes
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