Lang: python
Get the source!
Actions
Recent Pastes
forget about it (Wu septiembre 02, 2010 at 18:04)
a traceback of a django error (Wu agosto 20, 2010 at 17:54)
some magic ACL code (Wu agosto 17, 2010 at 17:45)
some django models diff (Wu agosto 16, 2010 at 18:39)
some django-south tests (Wu agosto 16, 2010 at 18:42)
django add/edit revisited (Wu agosto 13, 2010 at 10:39)
django edd/edit (rsk agosto 13, 2010 at 10:40)
django model revisited (Wu agosto 12, 2010 at 20:15)
django (rs agosto 12, 2010 at 20:02)
rebuilding a GEOM mirror (Wu agosto 12, 2010 at 17:53)
About
This is the paste site from e-shell.org, my personal website. It is an instance of the CodeSharingZ Zope Product (just take a look at http://zopecode.codigo23.net/wiki/CodeSharingZ to learn more about it). Feel free to paste whatever you want, but notice that all the pastes in here are deleted in a regular basis.
Links
L python
(http://www.python.org)

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)