Created
August 11, 2009 15:43
-
-
Save rincewind/165914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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