Author Archives: Wolfgang Schnerring

About Wolfgang Schnerring

Wolfgang is a software developer working at gocept.

developer & admin BBQ IV

Our fourth BBQ (invitation post) had the most participants so far, almost 20 people were here to talk shop, exchange ideas and brave the unfortunately slightly rainy weather (the grilled goods were delicious regardless). We’re especially glad that the ratio … Continue reading

Posted in Uncategorized | Leave a comment

Upcoming talks at PyCon DE 2012

Most of gocept is headed towards the German PyCon next week! We’re excited and look forward to meeting people, exchanging ideas and learning new things. We have prepared several talks to share some of the experiences we gained over the … Continue reading

Posted in en | Leave a comment

Autumn Developer BBQ

Our second meet/talk/barbecue event was last week, and we think it was even better than the first one. In the unconference part, these were the topics we talked about: Demo of batou, the deployment tool Django Sentry: centralized error-logging DRBD … Continue reading

Posted in en | 2 Comments

Our first developer BBQ

We invited developers and sysadmins to join us for talking shop and barbecuing last Friday. Even though several people had signed up and said they wanted to come, at first none of the guests seemed to arrive. But after an hour … Continue reading

Posted in en | 1 Comment

Profiling class-based views

Just a quick note for profiling e.g. Zope views: class MyView(object):     def __call__(self):         result = {}         cProfile.runctx(‘result["x"] = super(Body, self).__call__()’,                         globals(), locals(), ‘/tmp/viewprofile’)         return result['x'] Even though “exec ‘result = super(…) in globals(), locals()’ works, … Continue reading

Posted in en | Leave a comment

Sprint fruits: gocept.exttest and gocept.package

The whole company spent three days in Kloster Drübeck sprinting on internal tools and topics. We overhauled our workflow for generating invoices and identified steps that we could automate. We polished and released gocept.exttest, which integrates for example JavaScript unittest … Continue reading

Posted in en | Tagged | Leave a comment

Getting sys.path out of buildout

A wrinkly part of buildout‘s design is that the PYTHONPATH is not easily available outside of scripts generated by buildout itself. I’ve been using the following workaround in some of my development tools for a while and found it quite … Continue reading

Posted in en | Leave a comment

Assertion helper for zope.testbrowser and unittest

zope.testbrowser is a valuable tool for integration tests. Historically,  the Zope community used to write quite a lot of doctests, but we at gocept have found them to be rather clumsy and too often yielding neither good tests nor good … Continue reading

Posted in en | Leave a comment

Shutting down an HTTPServer

For integration tests it can be helpful to have a fake HTTP server whose behaviour the tests can control. All necessary building blocks are even included in Python standard library. However, the BaseHTTPServer is surprisingly hard to shut down properly, … Continue reading

Posted in en | Leave a comment

How-To: Undo a transaction with the ZODB

Suppose you’ve written a script to “fix something real quick” and unleashed it upon your live database. Five minutes later, you discover your script had a bug, and now you’ve wrecked quite a bit of production data. Ouch. You might … Continue reading

Posted in en | 1 Comment