[ZPT] CVS: Products/PageTemplates - PageTemplateFile.py:1.18

Albertas Agejevas alga@codeworks.lt
Sun, 21 Jul 2002 20:09:47 -0400


Update of /cvs-repository/Products/PageTemplates
In directory cvs.zope.org:/tmp/cvs-serv3027

Modified Files:
	PageTemplateFile.py 
Log Message:
Import StorageException from ZODB when needed


=== Products/PageTemplates/PageTemplateFile.py 1.17 => 1.18 ===
     __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__)
-
-class StorageError(Exception):
-    pass