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