[Checkins] SVN: grokui.admin/branches/js-pack-zodb/src/grokui/admin/ Really set sensible defaults; document db packing using cron and curl

Jasper Spaans jspaans at thehealthagency.com
Wed Dec 3 15:31:21 EST 2008


Log message for revision 93591:
  Really set sensible defaults; document db packing using cron and curl

Changed:
  U   grokui.admin/branches/js-pack-zodb/src/grokui/admin/README.txt
  U   grokui.admin/branches/js-pack-zodb/src/grokui/admin/view.py

-=-
Modified: grokui.admin/branches/js-pack-zodb/src/grokui/admin/README.txt
===================================================================
--- grokui.admin/branches/js-pack-zodb/src/grokui/admin/README.txt	2008-12-03 20:22:15 UTC (rev 93590)
+++ grokui.admin/branches/js-pack-zodb/src/grokui/admin/README.txt	2008-12-03 20:31:21 UTC (rev 93591)
@@ -66,8 +66,12 @@
   was started in 'foreground mode' (with 'zopectl fg').
 
 * Pack the ZODB. This removes old data from the database, freeing up
-  disk space.
+  disk space. In a production environment, you might want to pack the
+  ZODB automatically from `cron`. This can be done using a command
+  like the following::
 
+    curl -q -s -u admin:admin "http://localhost:8080/server?pack=1&submitted=1"
+
 * Get basic information about the running Zope system.
 
 * Enter a message to be displayed on top. You can, for example, leave

Modified: grokui.admin/branches/js-pack-zodb/src/grokui/admin/view.py
===================================================================
--- grokui.admin/branches/js-pack-zodb/src/grokui/admin/view.py	2008-12-03 20:22:15 UTC (rev 93590)
+++ grokui.admin/branches/js-pack-zodb/src/grokui/admin/view.py	2008-12-03 20:31:21 UTC (rev 93591)
@@ -460,7 +460,7 @@
 
     def update(self, time=None, restart=None, shutdown=None,
                admin_message=None, submitted=False,
-               dbName=None, pack=None, days=None):
+               dbName="", pack=None, days=0):
         if not submitted:
             return
         # Admin message control



More information about the Checkins mailing list