Log message for revision 73991:
  Use the requestmethod decorator generator (better documentation)

Changed:
  U   Zope/trunk/lib/python/App/ApplicationManager.py

-=-
Modified: Zope/trunk/lib/python/App/ApplicationManager.py
===================================================================
--- Zope/trunk/lib/python/App/ApplicationManager.py     2007-04-03 12:52:55 UTC 
(rev 73990)
+++ Zope/trunk/lib/python/App/ApplicationManager.py     2007-04-03 15:38:16 UTC 
(rev 73991)
@@ -30,7 +30,7 @@
 from version_txt import version_txt
 from cStringIO import StringIO
 from AccessControl import getSecurityManager
-from AccessControl.requestmethod import postonly
+from AccessControl.requestmethod import requestmethod
 from zExceptions import Redirect
 from Products.PageTemplates.PageTemplateFile import PageTemplateFile
 from cgi import escape
@@ -389,7 +389,7 @@
 
     if os.environ.has_key('ZMANAGED'):
         manage_restartable=1
-        @postonly
+        @requestmethod('POST')
         def manage_restart(self, URL1, REQUEST=None):
             """Shut down the application"""
             try:
@@ -405,7 +405,7 @@
             <body>Zope is restarting</body></html>
             """ % escape(URL1, 1)
 
-    @postonly
+    @requestmethod('POST')
     def manage_shutdown(self, REQUEST=None):
         """Shut down the application"""
         try:
@@ -421,7 +421,7 @@
         <body>Zope is shutting down</body></html>
         """
 
-    @postonly
+    @requestmethod('POST')
     def manage_pack(self, days=0, REQUEST=None):
         """Pack the database"""
 
@@ -476,7 +476,7 @@
             r.append({'id': v})
         return r
 
-    @postonly
+    @requestmethod('POST')
     def manage_saveVersions(self, versions, REQUEST=None):
         "Commit some versions"
         db=self._p_jar.db()
@@ -485,7 +485,7 @@
         if REQUEST is not None:
             REQUEST['RESPONSE'].redirect(REQUEST['URL1']+'/manage_main')
 
-    @postonly
+    @requestmethod('POST')
     def manage_discardVersions(self, versions, REQUEST=None):
         "Discard some versions"
         db=self._p_jar.db()

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to