/usr/share/pyshared/zope/app/applicationcontrol/browser/tests/zodb.txt is in python-zope.app.applicationcontrol 3.5.10-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | =================
ZODB Control View
=================
We provide default views which are relevant for administering mount points.
>>> from zope.testbrowser.testing import Browser
>>> browser = Browser()
>>> browser.addHeader('Authorization','Basic mgr:mgrpw')
>>> browser.handleErrors = False
>>> browser.open('http://localhost/++etc++process/@@ZODBControl.html')
All registered databases are displayed. Each database can be packed by
selecting the according checkbox. Let us select the second database now:
>>> browser.getControl(name='dbs:list').value=['2']
Now we define to pack the database back to 7 days:
>>> browser.getControl(name='days').value='7'
Finally let's submit the form and start packing the database:
>>> browser.getControl(name='PACK').click()
>>> 'ZODB "2" successfully packed.' in browser.contents
True
|