Skip to content

Instantly share code, notes, and snippets.

@rincewind
Created August 11, 2009 15:43
Show Gist options
  • Save rincewind/165914 to your computer and use it in GitHub Desktop.
Save rincewind/165914 to your computer and use it in GitHub Desktop.
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):
+
tthzahl = link.Text().strip()
text = app.tth.ladeLinkLZ(tthzahl)
if text:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment