[Zope-Coders] RFC: Death to string exceptions

Florent Guillaume fg at nuxeo.com
Tue Nov 18 07:55:11 EST 2003


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.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg at nuxeo.com



More information about the Zope-Coders mailing list