-----BEGIN PGP SIGNED MESSAGE-----
Florent Guillaume wrote:
> Florent Guillaume <[EMAIL PROTECTED]> wrote:
>>>>Unauthorized in getObject is out of the question, that would be new
>>>Well, in 2.8, new behaviour is expected, right?
>>>I really passionately believe that we should not be returnining None in
>>>Zope 2.8, and since 2.8 hasn't quite hit beta yet I'm very keen to see
>>>it fixed asap.
>>I'm ok for 2.8. I'll look at it.
> Is everyone ok with returning
> - the object if it can be accessed
> - raise Unauthorized if it can't be accessed
> - raise NotFound if it's not there
> and never return None ?
> I'll change that before tomorrow, for 2.8a2.
> (I'll change NotFound in Traversal.py to a real exception instead of a
> string too, I thought we'd killed those.)
We really need to follow a deprecation-style model here: the risk of
breaking major third party components is pretty high.
Could we use a module-scope global, settable from zope.conf, to indicate
which strategy to use? It should (for 2.8) default to raising, but we
need to be prepared for an onslaught of breakage reports.
The CHANGELOG should highlight the change, and include the zope.conf
snippet required to restore the old behavior. We could add a
deprecation warning (if that entry is activated), that the old-style
option would be removed in 2.10.
Tres Seaver [EMAIL PROTECTED]
Zope Corporation "Zope Dealers" http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Zope-Dev maillist - Zope-Dev@zope.org
** No cross posts or HTML encoding! **
(Related lists -