Commit d02fcc34 authored by Chris McDonough's avatar Chris McDonough

Changed things which used HTMLFile to use DTMLFile.

parent c32389f0
...@@ -134,7 +134,7 @@ class ProductFolder(Folder): ...@@ -134,7 +134,7 @@ class ProductFolder(Folder):
def _product(self, name): return getattr(self, name) def _product(self, name): return getattr(self, name)
manage_addProductForm=Globals.HTMLFile('dtml/addProduct',globals()) manage_addProductForm=Globals.DTMLFile('dtml/addProduct',globals())
def manage_addProduct(self, id, title, REQUEST=None): def manage_addProduct(self, id, title, REQUEST=None):
' ' ' '
i=Product(id, title) i=Product(id, title)
...@@ -190,7 +190,7 @@ class Product(Folder, PermissionManager): ...@@ -190,7 +190,7 @@ class Product(Folder, PermissionManager):
) )
) )
manage_distributionView=Globals.HTMLFile( manage_distributionView=Globals.DTMLFile(
'dtml/distributionView',globals()) 'dtml/distributionView',globals())
_properties=Folder._properties+( _properties=Folder._properties+(
...@@ -199,7 +199,7 @@ class Product(Folder, PermissionManager): ...@@ -199,7 +199,7 @@ class Product(Folder, PermissionManager):
_reserved_names=('Help',) _reserved_names=('Help',)
manage_addPrincipiaFactoryForm=Globals.HTMLFile( manage_addPrincipiaFactoryForm=Globals.DTMLFile(
'dtml/addFactory',globals()) 'dtml/addFactory',globals())
def manage_addPrincipiaFactory( def manage_addPrincipiaFactory(
self, id, title, object_type, initial, permission=None, REQUEST=None): self, id, title, object_type, initial, permission=None, REQUEST=None):
...@@ -316,8 +316,8 @@ class Product(Folder, PermissionManager): ...@@ -316,8 +316,8 @@ class Product(Folder, PermissionManager):
Distributions=Distributions() Distributions=Distributions()
manage_traceback=Globals.HTMLFile('dtml/traceback',globals()) manage_traceback=Globals.DTMLFile('dtml/traceback',globals())
manage_readme=Globals.HTMLFile('dtml/readme',globals()) manage_readme=Globals.DTMLFile('dtml/readme',globals())
def manage_get_product_readme__(self): def manage_get_product_readme__(self):
try: try:
return open(os.path.join(self.home, 'README.txt')).read() return open(os.path.join(self.home, 'README.txt')).read()
......
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