plone's zeopack
1 #!/usr/local/bin/python2.4
2
3 import sys
4 sys.path[0:0] = [
5 '/usr/local/www/plone/mangosta_buildout_new/eggs/plone.recipe.zope2zeoserver-1.4-py2.4.egg',
6 '/usr/local/www/plone/mangosta_buildout_new/eggs/zc.recipe.egg-1.2.2-py2.4.egg',
7 '/usr/local/www/plone/mangosta_buildout_new/eggs/distribute-0.6.10-py2.4.egg',
8 '/usr/local/www/plone/mangosta_buildout_new/eggs/zc.buildout-1.4.2-py2.4.egg',
9 '/usr/local/www/plone/mangosta_buildout_new/parts/zope2/lib/python',
10 '/usr/local/www/plone/mangosta_buildout_new/eggs/plone.recipe.zope2zeoserver-1.4-py2.4.egg',
11 '/usr/local/www/plone/mangosta_buildout_new/eggs/zc.buildout-1.4.2-py2.4.egg',
12 '/usr/local/www/plone/mangosta_buildout_new/eggs/zc.recipe.egg-1.2.2-py2.4.egg',
13 ]
14
15 username = None
16 blob_dir = None
17 realm = None
18 days = "1"
19 unix = None
20 host = "127.0.0.1"
21 password = None
22 port = "8100"
23 import getopt; opts = getopt.getopt(sys.argv[1:], 'S:W1')[0]; storage = opts and opts[0][1] or '1'
24
25 import plone.recipe.zope2zeoserver.pack
26
27 if __name__ == '__main__':
28 plone.recipe.zope2zeoserver.pack.main(host, port, unix, days, username, password, realm, blob_dir, storage)
Pasted by Wu on
junio 22, 2010 at 11:39 |
Lang: python |
(28 lines of code)