Commit b6b20d1a authored by Chris McDonough's avatar Chris McDonough

Changed things that use HTMLFile to DTMLFile.

parent dd50315d
...@@ -85,11 +85,11 @@ ...@@ -85,11 +85,11 @@
__doc__='''SQL Methods __doc__='''SQL Methods
$Id: SQL.py,v 1.15 2001/01/08 22:47:05 brian Exp $''' $Id: SQL.py,v 1.16 2001/01/11 19:52:54 chrism Exp $'''
__version__='$Revision: 1.15 $'[11:-2] __version__='$Revision: 1.16 $'[11:-2]
import Shared.DC.ZRDB.DA import Shared.DC.ZRDB.DA
from Globals import HTMLFile from Globals import DTMLFile
def SQLConnectionIDs(self): def SQLConnectionIDs(self):
"""Find SQL database connections in the current folder and above """Find SQL database connections in the current folder and above
...@@ -118,7 +118,7 @@ def SQLConnectionIDs(self): ...@@ -118,7 +118,7 @@ def SQLConnectionIDs(self):
ids.sort() ids.sort()
return ids return ids
manage_addZSQLMethodForm=HTMLFile('dtml/add', globals()) manage_addZSQLMethodForm=DTMLFile('dtml/add', globals())
def manage_addZSQLMethod(self, id, title, def manage_addZSQLMethod(self, id, title,
connection_id, arguments, template, connection_id, arguments, template,
REQUEST=None, submit=None): REQUEST=None, submit=None):
...@@ -190,5 +190,5 @@ class SQL(Shared.DC.ZRDB.DA.DA): ...@@ -190,5 +190,5 @@ class SQL(Shared.DC.ZRDB.DA.DA):
""" """
meta_type='Z SQL Method' meta_type='Z SQL Method'
manage_main=HTMLFile('dtml/edit', globals()) manage_main=DTMLFile('dtml/edit', globals())
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
import OFS.Folder import OFS.Folder
from HelpSys.HelpTopic import TextTopic from HelpSys.HelpTopic import TextTopic
from Globals import HTML, HTMLFile, MessageDialog from Globals import HTML, DTMLFile, MessageDialog
import DateTime import DateTime
import DocumentTemplate import DocumentTemplate
import StructuredText import StructuredText
...@@ -105,7 +105,7 @@ class TutorialTopic(TextTopic): ...@@ -105,7 +105,7 @@ class TutorialTopic(TextTopic):
text=str(StructuredText.HTML(text)) text=str(StructuredText.HTML(text))
self.obj=HTML(pre_pat.sub(clean_pre, text)) self.obj=HTML(pre_pat.sub(clean_pre, text))
index_html=HTMLFile('dtml/lessonView', globals()) index_html=DTMLFile('dtml/lessonView', globals())
def lessonURL(self, id, REQUEST): def lessonURL(self, id, REQUEST):
""" """
...@@ -158,10 +158,10 @@ onClick="javascript:window.open('%s/manage_main', 'manage_main').focus()" ...@@ -158,10 +158,10 @@ onClick="javascript:window.open('%s/manage_main', 'manage_main').focus()"
names[0], names[1], names[2]) names[0], names[1], names[2])
return '<a href="%s">API Documentation</a>' % url return '<a href="%s">API Documentation</a>' % url
tutorialNavigation=HTMLFile('dtml/tutorialNav', globals()) tutorialNavigation=DTMLFile('dtml/tutorialNav', globals())
addTutorialForm=HTMLFile('dtml/tutorialAdd', globals()) addTutorialForm=DTMLFile('dtml/tutorialAdd', globals())
def addTutorial(self, id, REQUEST=None, RESPONSE=None): def addTutorial(self, id, REQUEST=None, RESPONSE=None):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment