[Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/src/zope/
Massive style cleanup: Move to new raise exception style;
for motivation, see:
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Aug 30 18:17:06 EDT 2005
On Tuesday 30 August 2005 18:10, Benji York wrote:
> > class StateNamesVocabulary(SimpleVocabulary):
> > """Vocabulary providing the names of states in a local process
> > definition. """
> > @@ -61,7 +65,7 @@
> > for obj in zapi.getParents(context):
> > if IStatefulProcessDefinition.providedBy(obj):
> > return obj.getStateNames()
> > - raise 'NoLocalProcessDefinition', 'No local process definition
> > found.' + raise NoLocalProcessDefinition('No local process
> > definition found.')
>
> I'm not sure it's worth worrying about (and I definitely prefer the new
> version better), but these type conversions are not backward compatible.
> Of course it's only a problem if anyone is trying to catch the
> string version of the exception.
This code has never been released as part of Zope 3.0 (but separately) is not
in 3.1 and does not even work in the latter.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-dev
mailing list