Skip to content

Instantly share code, notes, and snippets.

Available for training, coaching and trouble-shooting (as usual)..

Jens W. Klein jensens

Available for training, coaching and trouble-shooting (as usual)..
Block or report user

Report or block jensens

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jensens / email.txt
Created Apr 10, 2020
Simon von der LUGT hat beim Roten Kreuz nachgefragt (08.04.20 17:27)
View email.txt
Ich habe beim Roten Kreuz nachgefragt - sie werden den Source Code der
App offenlegen - Fahrplan dazu habe ich aber keinen bekommen (siehe
Auszug aus dem Mail unten).
jensens / pyproject.toml
Created Nov 29, 2018
Plone style Black and Isort cfg
View pyproject.toml
line-length = 79
# skip-string-normalization = true
jensens / INSTALL.rst
Last active Apr 13, 2019
sentry setup with docker-compose
View INSTALL.rst

In order to run this image do: docker-compose up -d to get all up. On first run DB initialization and initial user setup is done like so:

First start a bash in the container: docker-compose exec sentry /bin/bash. Then, inside bash, do sentry upgrade wait until it asks you for an inital user. When finished exit the bash.

When in doubt check with docker-compose ps if all went fine.

jensens /
Created Oct 16, 2017
Show Event Start-End with Zope Content Provider usage
<time class="datum"
tal:define="result python:view.datedict"
case 1: whole day, same day
Mo, 21.01.2015
jensens / buildout.cfg
Created Aug 13, 2018
Sentry on Docker to monitor Zope (for Andreas)
View buildout.cfg
eggs +=
event-log-custom =
%import raven.contrib.zope
jensens /
Created Jul 2, 2018
Simple percentage report of end of tests output.
Simple percentage report of end of tests output. Copy the line from there and pass to script:
usage: $./ 9372 tests, 180 failures, 324 errors and 266 skipped in 22 minutes 25.188 seconds
green : 91.784%
failures: 1.921%
jensens / configure.zcml
Created Jun 19, 2018
Plone Registry Exporter (parts only)
View configure.zcml
<!-- ADMIN -->
View config
# jensens i3wm config
set $mainscreen LVDS1
set $sidescreen VGA1
# i3 config file (v4)
# Please see for a complete reference!
set $mod Mod4
jensens /
Created Aug 29, 2012
Plone action menu enable feature by setting marker interface
from zope.interface import Interface
from zope.interface import directlyProvides
from zope.interface import noLongerProvides
from Products.Five.browser import BrowserView
from Products.CMFPlone import PloneMessageFactory as _
class ISomeFeatureTarget(Interface):
class IPossibleSomeFeatureTarget(Interface):
jensens /
Created Sep 19, 2017
cornerribbon tile Plone
<!DOCTYPE html>
<html lang="en" xml:lang="en" xmlns="" xmlns:tal="" xmlns:i18n="" i18n:domain="">
<style tal:condition="view/show">
/* The ribbons */
position: fixed;
top: 25px;
left: -50px;
width: 200px;
You can’t perform that action at this time.