You're using all sorts of new-fangled stuff that makes your plone website a lot faster. ResourceRegistries (portal_css and portal_javascripts) combine your stylesheets and spreadsheets into one file, which is handy for caching. You've set up cachefu and squid just right, making your customer very happy.
Now you continue working on the site and want to make some css improvements. Suddenly you have to bang up your keyboard, sacrifice your kitten and do a little rain dance just to get your css files to refresh. Darn resource registry! Darn cachefu! Darn squid that's not in front of my local development instance on my laptop!
Of course, you can uninstall cachefu and put resource registries into debug mode. But I'm testing locally with the customer database, which has all those for-production settings. And the generic setup profile also, of course, sets the production settings.
The solution: have a product set all those developer settings for you and install it only on your development machine. Fine. Time to get cracking. I created a bundle to do the following:
Some products are installed that you normally don't want on your production site:
You can do an svn checkout of the bundle at https://svn.plone.org/svn/collective/developerconfig/bundles/plone25develop.
Maurits added a setting to instancemanager (for instancemanager, also see my posts). Set development_machine = True in your userdefaults.py on your development machine. Next, add the developer config bundle to your project's bundles, but mark it as for-development-only:
symlinkbundle_sources = [ 'preu/externalproducts', 'preu/products', {'source': 'preu/plone25develop', 'develop': True}, ]
It is that last dictionary that does the trick. Items with develop=True will only get installed on development machines.
Instancemanager is not really needed, but it can make life much easier in this case.
My name is Reinout van Rees and I program in Python, I live in the Netherlands, I cycle recumbent bikes and I have a model railway.
Most of my website content is in my weblog. You can keep up to date by subscribing to the automatic feeds (for instance with Google reader):