Entries For: April 2008
2008-04-15
In case you're having problems installing ssl-for-setuptools...
I've stumbled on this error when trying to install a easyshop buildout:
Exception: No SSL support found
An error occured when trying to install ssl-for-setuptools 1.10.Look above this message for any errors thatwere output by easy_install.
While:
Installing instance.
Getting distribution for 'ssl-for-setuptools'.
Error: Couldn't install: ssl-for-setuptools 1.10
After scratching my head for a while, I've found the solution:
# apt-get install libssl-dev
2008-04-08
A tip on debugging Zope 2 with ZEO
I'm having some troubles with CacheFu, and I've resorted to deleting some objects from a debug prompt, which is very easy to get at if one runs the Zope under ZEO. Still, I couldn't delete the objects because I was getting Unauthorized errors. Luckily, there is #plone, from which I got the following tip:
<naro> from AccessControl.SecurityManagement import newSecurityManager
<naro> user = app.acl_users.getUser('admin')
<naro> newSecurityManager(None, user)
Thanks, naro!
Update: I realize now that I didn't write how to connect to ZEO:
#bin/instance debug
or
#bin/zopectl debug
This will connect the ZEO client and drop you in a python shell