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
57a998ef
Commit
57a998ef
authored
Jan 10, 2000
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added online help for Images and Files.
parent
e9e63a38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
12 deletions
+24
-12
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+22
-12
lib/python/OFS/imageAdd.dtml
lib/python/OFS/imageAdd.dtml
+2
-0
No files found.
lib/python/OFS/Image.py
View file @
57a998ef
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Image object"""
__version__
=
'$Revision: 1.9
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.9
3
$'
[
11
:
-
2
]
import
Globals
,
string
,
struct
,
content_types
from
OFS.content_types
import
guess_content_type
...
...
@@ -134,11 +134,16 @@ class File(Persistent,Implicit,PropertyManager,
manage_uploadForm
=
HTMLFile
(
'imageUpload'
,
globals
(),
Kind
=
'File'
,
kind
=
'file'
)
manage
=
manage_main
=
manage_editForm
manage_options
=
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'Upload'
,
'action'
:
'manage_uploadForm'
},
{
'label'
:
'Properties'
,
'action'
:
'manage_propertiesForm'
},
{
'label'
:
'View'
,
'action'
:
''
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
manage_options
=
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
,
'help'
:(
'OFSP'
,
'File_Edit.dtml'
)},
{
'label'
:
'Upload'
,
'action'
:
'manage_uploadForm'
,
'help'
:(
'OFSP'
,
'File_Upload.dtml'
)},
{
'label'
:
'Properties'
,
'action'
:
'manage_propertiesForm'
,
'help'
:(
'OFSP'
,
'File_Properties.dtml'
)},
{
'label'
:
'View'
,
'action'
:
''
,
'help'
:(
'OFSP'
,
'File_View.dtml'
)},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
,
'help'
:(
'OFSP'
,
'File_Security.dtml'
)},
)
__ac_permissions__
=
(
...
...
@@ -362,7 +367,7 @@ class File(Persistent,Implicit,PropertyManager,
def
__str__
(
self
):
return
str
(
self
.
data
)
def
__len__
(
self
):
return
1
manage_FTPget
=
index_html
...
...
@@ -406,11 +411,16 @@ class Image(File):
{
'id'
:
'width'
,
'type'
:
'string'
},
)
manage_options
=
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
},
{
'label'
:
'Upload'
,
'action'
:
'manage_uploadForm'
},
{
'label'
:
'Properties'
,
'action'
:
'manage_propertiesForm'
},
{
'label'
:
'View'
,
'action'
:
'view_image_or_file'
},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
},
manage_options
=
({
'label'
:
'Edit'
,
'action'
:
'manage_main'
,
'help'
:(
'OFSP'
,
'Image_Edit.dtml'
)},
{
'label'
:
'Upload'
,
'action'
:
'manage_uploadForm'
,
'help'
:(
'OFSP'
,
'Image_Upload.dtml'
)},
{
'label'
:
'Properties'
,
'action'
:
'manage_propertiesForm'
,
'help'
:(
'OFSP'
,
'Image_Properties.dtml'
)},
{
'label'
:
'View'
,
'action'
:
'view_image_or_file'
,
'help'
:(
'OFSP'
,
'Image_View.dtml'
)},
{
'label'
:
'Security'
,
'action'
:
'manage_access'
,
'help'
:(
'OFSP'
,
'Image_Security.dtml'
)},
)
manage_editForm
=
HTMLFile
(
'imageEdit'
,
globals
(),
Kind
=
'Image'
,
kind
=
'image'
)
...
...
lib/python/OFS/imageAdd.dtml
View file @
57a998ef
...
...
@@ -6,6 +6,8 @@
<BODY
BGCOLOR=
"#FFFFFF"
LINK=
"#000099"
VLINK=
"#555555"
>
<H2>
Add
<dtml-var
Kind
></H2>
<dtml-var
"
HelpSys
.
HelpButton
(
Kind
+
'
_Add
.
dtml
')"
>
<P>
You can create a new
<dtml-var
kind
>
in the system using the form below.
Select an
<dtml-var
kind
>
from your local computer by clicking the
...
...
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