[ZPT] CVS: Zope27/lib/python/Products/PageTemplates - PageTemplateFile.py:1.14.18.3

Florent Guillaume fg@nuxeo.com
Sun, 15 Sep 2002 13:20:16 -0400


Update of /cvs-repository/Zope27/lib/python/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv25944

Modified Files:
      Tag: Zope-2_7-development-branch
	PageTemplateFile.py 
Log Message:
Port from HEAD:
Import StorageException from ZODB when needed


=== Zope27/lib/python/Products/PageTemplates/PageTemplateFile.py 1.14.18.2 => 1.14.18.3 ===
--- Zope27/lib/python/Products/PageTemplates/PageTemplateFile.py:1.14.18.2	Sun Sep  8 14:47:50 2002
+++ Zope27/lib/python/Products/PageTemplates/PageTemplateFile.py	Sun Sep 15 13:20:15 2002
@@ -140,5 +140,6 @@
     __roles__ = ComputedAttribute(_get__roles__, 1)
 
     def __getstate__(self):
+        from ZODB.POSException import StorageError
         raise StorageError, ("Instance of AntiPersistent class %s "
                              "cannot be stored." % self.__class__.__name__)