[Zope3-dev] interface conventions: default=_RAISE_ERROR
Gary Poster
garyposter@earthlink.net
Thu, 23 May 2002 11:24:28 -0400
Sounds fine to me. If I can find the time I'll help switching things over
once you give the go-ahead.
Gary
-----Original Message-----
From: zope3-dev-admin@zope.org [mailto:zope3-dev-admin@zope.org]On
Behalf Of Jim Fulton
<snip>
I suggest the following accessor style, which I'll write up in a
separate proposal:
getXXX(parm1, ..., parmn)
Get an XXX. If XXX is not found, raise an error.
queryXXX(parm1, ..., parmn, default=None)
Get an XXX is there is one, otherwise return the default, which
defaults to None.