Category: Tech


Write a Plone CLI maintenance script

  Published on 2013/07/31

  Last updated on 2015/10/13

 By Peter Lamut

This is a quick tip on how to write your own command line maintenance scripts for your Plone application. Recently one of our clients expressed a need for a maintenance script which would walk the database of a Plone application and, for every object, print out all the roles users have assigned on that object. […]

Read more

Load overrides.zcml in plone.app.testing

  Published on 2013/03/08

  Last updated on 2015/10/13

 By Neyts Zupan

Today I was working on a project where we use overrides.zcml to easily override some default Plone behavior. All was working fine (in the browser, that is) until I started writing tests for our custom behavior. First thing I noticed was that the overrides.zcml was not loaded in our test layer. “Doh, I need to […]

Read more

Dexterity vs. Archetypes

  Published on 2013/02/16

  Last updated on 2015/10/13

 By Neyts Zupan

TL;DR: migrating your Archetypes content to Dexterity shrinks your Data.fs considerably! I’ve started looking into migrating Archetypes content in one of the sites we’re running to Dexterity. But before I started coding I wanted to make sure that the juice is worth the squeeze. The site contains roughly 130k content objects. Most of them are […]

Read more

Raspberry PI boot to browser

  Published on 2013/01/22

  Last updated on 2015/10/13

 By Neyts Zupan

Here at NiteoWeb, we use various SaaS monitoring and logging providers such as Librato Metrics and Papertrail to keep on top of our Plone and Pyramid projects. Hence the need to have a wall-mounted screen to display various graphs and outputs these services. What better way to drive the screen than a Raspberry Pi! Getting […]

Read more

Convert z3c.form field desc. to tooltip

  Published on 2012/12/14

  Last updated on 2015/10/13

 By Peter Lamut

Let’s say you have a typical form with some input fields. By default z3c.form displays a description (if provided in form definition) above each form field, like in the screenshot below for example: Sometimes however, you might want to make things a little bit different. Perhaps you want to save some screen space by hiding […]

Read more

How to change element’s ID with Diazo?

  Published on 2012/12/13

  Last updated on 2015/10/13

 By Peter Lamut

A common scenario: on your website all subpages share a common header, but you want a different header on the front page. Let’s say you differentiate between both header versions by their ID attribute and define two different sets of CSS rules for each version. When applying Diazo rules to a theme file, you therefore […]

Read more

Robot on Travis – uploading results to S3

  Published on 2012/11/15

  Last updated on 2015/10/13

 By Neyts Zupan

This is a walkthrough of how one could upload to Amazon S3 screenshots and other output files produced by Robot framework ran in a Travis CI build. The reason why we want to do this is to be able to inspect what Robot sees and have more information when a test fails. It’s written with some […]

Read more

10 days to sprint in Antwerp!

  Published on 2012/06/28

  Last updated on 2015/10/13

 By Neyts Zupan

The Belgian Beer Sprint is nearing ever so closer! Only a bit over a week is left until we start this year’s EESTEC Plone sprint. Like last years we invited Electrical Engineering students from around Europe for a week-long introduction to Plone. In the meantime we will have members of the Plone community sprinting on […]

Read more

Testing log output

  Published on 2012/06/03

  Last updated on 2015/10/13

 By Neyts Zupan

ATTRIBUTION: This post was inspired by Domen’s Mocking logging module for unittests post back from 2009. Most of the code below is from him, with some added Plone specific bits and pieces. I was recently debugging an installation of our niteoweb.click2sell and had the need for more verbose error handling. After adding support for it […]

Read more

Fixing unresolved dependencies error

  Published on 2012/03/23

  Last updated on 2015/10/13

 By Neyts Zupan

For a while now we’ve been getting the following errors on one of our sites: WARNING GenericSetup There are unresolved or circular dependencies. Graphviz diagram:: digraph dependencies {“typeinfo” -> “toolset”; “tinymce_settings” -> “componentregistry”; “transmogrifier” -> “toolset”; “kss_mimetype” -> “mimetypes-registry-various”; “pleonformgen” -> “toolset”; “pleonformgen” -> “propertiestool”; “pleonformgen” -> “typeinfo”; “atcttool” -> “catalog”; “atcttool” -> “componentregistry”; “actions” […]

Read more