Posts by 'davidjb' – Page 8

Buildout: the biggest problems have the simplest answers…

..and how true that is.  Today’s time consumer is directly related to just 1 misplaced line of a buildout configuration (and presumably something that’s changed somewhere else).

The result

After much hunting and hunting, it turns out my Zope2 Fake Eggs weren’t being generated.

On my long quest I had to go through downloading new packages and trying to find something that had changed and even trying to establish new virtual environments on different VMs.  Nothing would fix the problem. To rub salt in the wound, my desktop Ubuntu ran the buildout fine, so methinks the underlying …

Deliver me from … Deliverance?

Always one for being on and beyond the bleeding edge of new technology, I’ve (with the help of colleagues) been setting up a new technology for applying themes to web sites.  In particular, I’m applying Deliverance to Plone and whilst I’m not the first one to venture out into the wilderness this way, I’ve got to be thinking that I could be one of the few people documenting their experience.  Ah, but where to begin?

The proxy

Ah yes, the proxy.  Deliverance is very kind to us in that it operates it’s own proxy.  This …

Migration complete (mostly)

Well, that’s always a good reason to let out a sigh of relief: I’ve managed to migrate most of the content from my previous blog over at Wikidot (which wasn’t really a blog so much as it was a hacked wiki). So, you’ll find a lot more content here than before, which is good, because it makes me look like I’m actually dedicated to creating content ;-)

I’ve also relaxed restrictions on comments (and added CAPTCHA security) so comment away people, if you’re reading this.  Just don’t expect much love if you spam …

Plone: Re-ordering Viewlets

Just responded to a post on the Plone Nabble forums (here) about how to re-order viewlets.  In particular, this one is little different (but not terribly so) because the original poster wanted to put the breadcrumbs above the global sections (global tabs in Plone).  Normally, this is straight forward because you just use a Generic Setup profile (viewlets.xml) and use an order manager to move your viewlet.  This, however, is a teeny bit more complicated because you’ve got one viewlet that’s outside of another viewlet manager.

Without further ado, my post from the forums:

Check out http …

Creating & distributing a new Plone/PyPI product

It’s amazing to see how technologies can be so smoothly integrated these days.  I’m talking, at least in this instance, about how setuptools works with PyPI (and then Plone.org’s Products section) and allows you to distribute your product(s) to the world.  So far, I’ve just got the one — collective.portlet.googleapps — but I’m sure time will pass and I’ll have some more useful things to contribute. Here’s a summary of what I did:

  1. Create the product.  ZopeSkel is a wonderful help here for Plone products. [I lie a little bit in …

Virtualenv, Plone, and Centos 5.x

EDIT: Watch out for python-ldap 2.3.10, the latest version at time of writing. Seems like there’s an issue with it and Centos 5.4. Forcing python-ldap to be version 2.3.8 works, though. (easy_install python-ldap==2.3.8)

Previously, you might have read about setting up a Virtualenv on Ubuntu Jaunty. Now, that was reasonably painless since python-virtualenv and python-setuptools is in the Ubuntu repo. Whether it’s my Centos servers and their misguided repos or me just not being able to find such a related rpm packages, Centos just needs little more love to get …

VLC Has Turned 1!

I may well be late to the party and a little late to celebrate, but I’ve just made the startling discovery that VLC 1.0.0 has now been released.

I’ve been using VLC since (before, actually) I thought there had to more to playing videos than needing extravagent codec packs like K-lite or anything similar to be installed on your system.  It’s been that long that the first version I used, if I remember correctly, wasn’t actually being specifically used for client-side file playback and was supposed to be geared towards video streaming over a …

Find and replace across files - Linux command line

Today’s interesting post concerns finding and replacing terms across multiple files via a simple command.  Thanks to this great blog post, it all comes down to one single line.  I had found a previously-useful line of code, but the problem with that one was the fact that it used the find command.  The problem with that is that if you do a wildcard search for * in a directory, it’ll give you back ‘.’ as a result.  Trying to work with that just wasn’t happening.

So, without further ado, the command (replacing ‘search’ with your search term and ‘target …

plone.app.blob and Failed Migrations

Another fun-and-games style problem I’ve come across when using plone.app.blob: sometimes migrations won’t work when converting a standard site’s files over to blobs.

That’s a pretty ambiguious description, but essentially, the error you might see will have a semi-normal traceback to start, and then garbage (contents of a file, presumably) - which, depending on the file size might hurt your browser.  The last part of the (normal) traceback reads thus:

File "/home/buildout/instance/eggs/plone.app.linkintegrity-1.0.11-py2.4.egg/ plone/app/linkintegrity/handlers.py", line 158, in referencedObjectRemoved raise LinkIntegrityNotificationException, obj LinkIntegrityNotificationException …

User-selectable Themes In Plone

It’s something I came across a while ago, but wasn’t exactly something that stayed in the fore-front of my mind: how to let users choose or select a theme (arbitrarily) on a Plone site.  Normally, I stick to having one theme per site for continuity but a new theme-test site for clients is an exception.

If you were to search Google for the right terms, you’ll find out how to let this happen, but I ended up having to go hunt it down myself. Hopefully this entry will help people (if I go and include as many …