Archive for October, 2006

easy_install considered harmful

Don’t get me wrong - ‘easy_install’ (and ‘zc.buildout’) is the way to go. But a weak setup can bite you quite a bit sometimes.
A few days ago i had a typical issue - installing ‘zope.schema’ to check, if and how it could be used standalone.
d2m@zaphod:~$ sudo easy_install –find-links \
   http://download.zope.org/distribution zope.schema
This installed ok, but immediately broke my zope3 checkout.
Now ‘bin/zopectl […]

Look ma, no hands!

Problem: Sometimes you want to be sure your Zope3 application is working independent of any objects already stored in the ZODB.
Solution: You replace the ZODB on filesystem with a mapping storage entirely in RAM.
In your ‘zope.conf‘ file replace
<zodb>
 <filestorage>
  path Data.fs
 </filestorage>
</zodb>
with
<zodb>
 <mappingstorage>
  name AnyNameOrId
 </mappingstorage>
</zodb>
Startup Zope3 as usual, add and remove some objects.
Watch the transaction log: it is empty, nothing […]


About

You are currently browsing the d2m weblog archives for the month October, 2006.

Longer entries are truncated. Click the headline of an entry to read it in its entirety.


Categories