Commit 22e49866 authored by Albertas Agejevas's avatar Albertas Agejevas

Fixed a NameError in raise

parent 08d3e56f
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
Zope object encapsulating a Page Template from the filesystem. Zope object encapsulating a Page Template from the filesystem.
""" """
__version__='$Revision: 1.14 $'[11:-2] __version__='$Revision: 1.15 $'[11:-2]
import os, AccessControl, Acquisition, sys import os, AccessControl, Acquisition, sys
from Globals import package_home, DevelopmentMode from Globals import package_home, DevelopmentMode
...@@ -138,3 +138,5 @@ class PageTemplateFile(Script, PageTemplate, Traversable): ...@@ -138,3 +138,5 @@ class PageTemplateFile(Script, PageTemplate, Traversable):
def __getstate__(self): def __getstate__(self):
raise StorageError, ("Instance of AntiPersistent class %s " raise StorageError, ("Instance of AntiPersistent class %s "
"cannot be stored." % self.__class__.__name__) "cannot be stored." % self.__class__.__name__)
StorageError = "StorageError"
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