Re: [Zope-dev] Why is it _setObject(), and why is it undocumented
by Florent Guillaume other posts by this author
Feb 1 2003 7:19PM messages near this date
Re: [Zope-dev] Why is it _setObject(), and why is it undocumented
|
Re: [Zope-dev] Why is it _setObject(), and why is it undocumented
maxm <maxm@[...].dk> wrote:
> I have a few tutorials / How_to's on zope.org. And sometimes I get some
> interresting mails because of that.
>
> Somebody asked me today why _setObject() has that name, as it is used in
> many products, and thus ought to be an interface method. And called
> something like "setObject()" or "manage_setObject()" And also he didn't
> understand why it wasn't documented anywhere.
>
> So why is that? does anybody know?
The weight of history I guess. I agree that there should be a
setObject() method, it's a fundamental API of ObjectManagers.
Same thing for _getOb(), even if __getitem__ often is enough (it has
some WebDAV magic though).
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@[...].com
_______________________________________________
Zope-Dev maillist - Zope-Dev@[...].org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )
Thread:
maxm
Florent Guillaume
Florent Guillaume
Lennart Regebro
Dieter Maurer
Lennart Regebro
Max M
Leonardo Rochael Almeida
Dieter Maurer
maxm
Dieter Maurer
|