[Zope-Coders] RFC: Death to string exceptions
Tres Seaver
tseaver at zope.com
Tue Nov 18 07:59:36 EST 2003
On Tue, 2003-11-18 at 07:55, Florent Guillaume wrote:
> In article <1069094099.2027.100.camel at localhost.localdomain> you write:
> > > NuxCPS/skins/folder_retitle.py: except 'Unauthorized': # Unauthorized, object must be locked
> > > NuxWorkgroup/skins/workgroup_retitle.py: except 'Unauthorized': # Unauthorized, object must be
> > > locked
> > > mxmRelations/mxmRelations.py: except 'Unauthorized':
> >
> > As with content_status_modify, should be catching
> > zExceptions.Unauthorized.
>
> Yeah but we also have to be compatible with CMF here, which still has
> a bunch of
> raise 'Unauthorized'
> or
> Unauthorized = 'Unauthorized'
> raise Unauthorized
> (in CMFCore, CMFDefault and DCWorkflow. And CMFCollector.)
>
> Also we'll have to be backward compatible with older versions.
Right. Going forward, we should remove the raising of strings from CMF
and other add-on products; backward compatibility with older Zopes (or
older CMFs) will have to be juggled.
Tres.
--
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
More information about the Zope-Coders
mailing list