[Zope-CMF] 8) checkins - ActionNotFound(Exception)

Florent Guillaume fg@nuxeo.com
Mon, 29 Jul 2002 15:08:23 +0000 (UTC)


alan runyan <runyaga@runyaga.com> wrote:
> I found that if you pass a invalid action id into
> o.getTypeInfo().getActionById('some nonexistent id') it throws
> a Type Exception of some kind.  Shouldnt it be a ActionNotFound(Exception) ?

A KeyError should be enough.

Florent

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