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
06250c43
Commit
06250c43
authored
Nov 16, 1999
by
Jeffrey Shell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated to use the manage_tabs_message instead of messageDialog
parent
44ea539f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
lib/python/OFS/Image.py
lib/python/OFS/Image.py
+4
-5
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+7
-4
No files found.
lib/python/OFS/Image.py
View file @
06250c43
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Image object"""
__version__
=
'$Revision: 1.
89
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
90
$'
[
11
:
-
2
]
import
Globals
,
string
,
struct
,
content_types
from
OFS.content_types
import
guess_content_type
...
...
@@ -232,10 +232,9 @@ class File(Persistent,Implicit,PropertyManager,
self
.
content_type
=
content_type
if
precondition
:
self
.
precondition
=
precondition
elif
self
.
precondition
:
del
self
.
precondition
if
REQUEST
:
return
MessageDialog
(
title
=
'Success!'
,
message
=
'Your changes have been saved'
,
action
=
'manage_main'
)
if
REQUEST
:
message
=
"Your changes have been saved"
return
self
.
manage_main
(
self
,
REQUEST
,
manage_tabs_message
=
message
)
def
manage_upload
(
self
,
file
=
''
,
REQUEST
=
None
):
"""
...
...
lib/python/Shared/DC/ZRDB/DA.py
View file @
06250c43
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.7
4 1999/11/03 16:22:22 brian
Exp $'''
__version__
=
'$Revision: 1.7
4
$'
[
11
:
-
2
]
$Id: DA.py,v 1.7
5 1999/11/16 20:19:52 jeffrey
Exp $'''
__version__
=
'$Revision: 1.7
5
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Aqueduct
,
RDB
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
Acquisition
,
os
...
...
@@ -224,7 +224,8 @@ class DA(
if
REQUEST
:
if
SUBMIT
==
'Change and Test'
:
return
self
.
manage_testForm
(
REQUEST
)
return
self
.
manage_editedDialog
(
REQUEST
)
message
=
'ZSQL Method content changed'
return
self
.
manage_main
(
self
,
REQUEST
,
manage_tabs_message
=
message
)
return
''
...
...
@@ -267,7 +268,9 @@ class DA(
self
.
_v_brain
=
getBrain
(
self
.
class_file_
,
self
.
class_name_
,
1
)
self
.
allow_simple_one_argument_traversal
=
direct
if
REQUEST
is
not
None
:
return
self
.
manage_editedDialog
(
REQUEST
)
m
=
"ZSQL Method advanced settings have been set"
return
self
.
manage_advancedForm
(
self
,
REQUEST
,
manage_tabs_message
=
m
)
## return self.manage_editedDialog(REQUEST)
#def getFindContent(self):
# """Return content for use by the Find machinery."""
...
...
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