You are not logged in Log in Join
You are here: Home » Members » Jfarr's Zope Page » Patches » Archived Patches » dtml-in-sv-2.1.6-patch.diff

Log in
Name

Password

 

dtml-in-sv-2.1.6-patch.diff

File details
Size
1 K
File type
text/plain

File contents

? dt_insv.patch
Index: DT_InSV.py
===================================================================
RCS file: /cvs-repository/Zope2/lib/python/DocumentTemplate/DT_InSV.py,v
retrieving revision 1.17
diff -u -r1.17 DT_InSV.py
--- DT_InSV.py	2000/05/12 18:36:39	1.17
+++ DT_InSV.py	2000/05/26 22:11:33
@@ -88,7 +88,7 @@
 $Id: DT_InSV.py,v 1.17 2000/05/12 18:36:39 tseaver Exp $'''
 __version__='$Revision: 1.17 $'[11:-2]
 
-from string import lower, rfind, split, join
+from string import lower, rfind, split, join, replace
 from math import sqrt
 TupleType=type(())
 try:
@@ -380,6 +380,8 @@
                     special_prefixes=special_prefixes,
                     special_prefix=special_prefixes.has_key
                     ):
+        key=replace(key, '_', '-')
+        
         data=self.data
         if data.has_key(key): return data[key]