summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Vagelpohl <jens@netz.ooo>2002-01-07 15:09:02 +0000
committerJens Vagelpohl <jens@netz.ooo>2002-01-07 15:09:02 +0000
commitfa8ea10d329ff719ede095bd51bfd6c499453bc1 (patch)
treee2e1fc4b3dfc014af29484a2f14bd0143c5658dc
parentbe1bacc86d1285c401091d9b3cd5bb257b13c44d (diff)
downloadJClassified-fa8ea10d329ff719ede095bd51bfd6c499453bc1.zip
JClassified-fa8ea10d329ff719ede095bd51bfd6c499453bc1.tar.gz
Death to MessageDialog!
-rw-r--r--JClassified.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/JClassified.py b/JClassified.py
index 8c2d409..d5e9337 100644
--- a/JClassified.py
+++ b/JClassified.py
@@ -3,7 +3,7 @@
#
# Imports
-from Globals import package_home, DTMLFile, MessageDialog, InitializeClass
+from Globals import package_home, DTMLFile, InitializeClass
from OFS.DTMLDocument import DTMLDocument
from OFS.SimpleItem import SimpleItem
from OFS.Folder import Folder, manage_addFolder
@@ -335,10 +335,12 @@ class JClassified( SimpleItem ):
else:
self.attr_dict[key] = REQUEST.get(key)
- if REQUEST is not None: return MessageDialog(
- title = 'Success!',
- message = 'The Classified Ad has been changed.',
- action = 'manage_main')
+ if REQUEST is not None:
+ msg = 'The Classified Ad has been changed.'
+ return self.manage_main( self
+ , REQUEST
+ , manage_tabs_message=msg
+ )
security.declareProtected('Change JClassifieds',