ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-Dev
zope-Dev
Re: [Zope-dev] Why is it _setObject(), and why is it undocumented
by Lennart Regebro other posts by this author
Feb 1 2003 2:48PM 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
From: "Max M" <maxm@[...].dk> 
>  Sorry but I don't see that. How on earth are you suposed to add an
>  object to an objectmanager, if you don't use _setObject() ??

You use another method that in turn calls _setObject.

Now you may argue that there should be a public method that does the same,
but that is strictly another question.

>  Every time you make an object that subclasses ObjectManager, wich is
>  often, you need to use that function. That can hardly be called private.

It depends on what you define as "private". I have never seen the use of
shielding a method from future subclasses of a class. It only causes
problems and unessecary restrictions. For me, private means that you shield
it from use outside of the object, not from your subclasses.



_______________________________________________
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved