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

R. David Murray bitz@bitdance.com
Mon, 22 Jul 2002 12:45:06 -0400 (EDT)


On Sun, 21 Jul 2002, Chris Withers wrote:
> Albertas Agejevas wrote:
> > === Products/PageTemplates/PageTemplateFile.py 1.16 => 1.17 ===
> >          raise StorageError, ("Instance of AntiPersistent class %s "
> >                               "cannot be stored." % self.__class__.__name__)
> >
> > -StorageError = "StorageError"
> > +class StorageError(Exception):
> > +    pass
>
> Any chance you could fix itthe way Evan suggested?

If you don't, someone using Zope and importing StorageError from
its real home will fail to trap a StorageError resulting from
PageTemplates, and will get *very* confused <grin>.

--RDM