No idea what DateTime was doing in there... It certainly doesn't belong there.

parent 8e4a6017
...@@ -87,7 +87,6 @@ class PageTemplateFile(SimpleItem, Script, PageTemplate, Traversable): ...@@ -87,7 +87,6 @@ class PageTemplateFile(SimpleItem, Script, PageTemplate, Traversable):
def pt_getContext(self): def pt_getContext(self):
root = self.getPhysicalRoot() root = self.getPhysicalRoot()
context = self._getContext() context = self._getContext()
from DateTime.DateTime import DateTime
c = {'template': self, c = {'template': self,
'here': context, 'here': context,
'context': context, 'context': context,
...@@ -95,7 +94,6 @@ class PageTemplateFile(SimpleItem, Script, PageTemplate, Traversable): ...@@ -95,7 +94,6 @@ class PageTemplateFile(SimpleItem, Script, PageTemplate, Traversable):
'nothing': None, 'nothing': None,
'options': {}, 'options': {},
'root': root, 'root': root,
'DateTime' : DateTime,
'request': getattr(root, 'REQUEST', None), 'request': getattr(root, 'REQUEST', None),
'modules': SecureModuleImporter, 'modules': SecureModuleImporter,
} }
......
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