Commit 06250c43 authored by Jeffrey Shell's avatar Jeffrey Shell

Updated to use the manage_tabs_message instead of messageDialog

parent 44ea539f
......@@ -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):
"""
......
......@@ -85,8 +85,8 @@
__doc__='''Generic Database adapter
$Id: DA.py,v 1.74 1999/11/03 16:22:22 brian Exp $'''
__version__='$Revision: 1.74 $'[11:-2]
$Id: DA.py,v 1.75 1999/11/16 20:19:52 jeffrey Exp $'''
__version__='$Revision: 1.75 $'[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."""
......
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