Skip to content

Instantly share code, notes, and snippets.

View tisto's full-sized avatar

Timo Stollenwerk tisto

View GitHub Profile
@tisto
tisto / gist:3766288
Created September 22, 2012 14:12
p.a.toolbar act
*** Settings ***
Resource plone/act/keyword.txt
*** Test cases ***
Anonymous shouldn't see toolbar
Log out
Page Should Not Contain Element id=plone-toolbar
Logged in should see toolbar
@tisto
tisto / pre-commit
Created August 17, 2012 06:30
Git pre-commit hook for Plone development
#!/usr/bin/python
# http://tech.yipit.com/2011/11/16/183772396/
import os
import re
import subprocess
import sys
modified = re.compile('^(?:M|A)(\s+)(?P<name>.*)')