Skip to content

Instantly share code, notes, and snippets.

View rincewind's full-sized avatar

Peter Quade rincewind

  • Fröndenberg, Germany
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rincewind on github.
  • I am rincewind (https://keybase.io/rincewind) on keybase.
  • I have a public key whose fingerprint is 7A9B B8A4 B755 26F3 4241 5505 CAA4 2AEB F8FB 4294

To claim this, I am signing this object:

#!/bin/bash
set -e
set -u
start=1
if [ $# -eq 2 ]
then
start=$2
fi
@rincewind
rincewind / version.py
Created June 14, 2011 23:22 — forked from dcreager/version.py
Extract a setuptools version from the git repository
# -*- coding: utf-8 -*-
# Author: Douglas Creager <dcreager@dcreager.net>
# This file is placed into the public domain.
# Calculates the current version number. If possible, this is the
# output of “git describe”, modified to conform to the versioning
# scheme that setuptools uses. If “git describe” returns an error
# (most likely because we're in an unpacked copy of a release tarball,
# rather than in a git working copy), then we fall back on reading the
# contents of the RELEASE-VERSION file.
{{anrede}},
vielen Dank für Ihre Registrierung in der Deichmann+Fuchs Online-Bibliothek.
Dies sind Ihre Zugangsdaten:
E-Mail-Adresse (Benutzername): {{login}}
Passwort: {{passwort}}
diff --git a/neun/src/neun/Web/WebTextDB/utils.py b/neun/src/neun/Web/WebTextDB/utils.py
index 20e4644..7598ece 100644
--- a/neun/src/neun/Web/WebTextDB/utils.py
+++ b/neun/src/neun/Web/WebTextDB/utils.py
@@ -109,7 +109,8 @@ def resolve_link(url, srcsection=None, markstw=None, sectionfilter=None):
return {'href': link.Other()}
else:
return {'href': link.Other(), 'target':'_blank'}
- elif link.Class() == "tth-produkt":
+ elif link.Class() == "tth-produkt" and app.check("tth", 0):
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>innerHTML demo</title>
</head>
<body>
<h1 id="withnbsp">This has an en&nbsp;be&nbsp;es&nbsp;p</h1>
<h2 id="withoutnbsp">This does not use en be es pe (uses the \xa0 character)</h2>