[Zope-dev] Re: Zope 2.7: OrderSupport for ObjectManager

Yuppie schubbe@web.de
Tue, 06 May 2003 12:23:10 +0200


Hi Stefan!


Stefan H. Holek wrote:
> --On Montag, 05. Mai 2003 20:41 +0200 Yuppie <schubbe@web.de> wrote:
> 
>> Stefan H. Holek wrote:
>>
>>> <http://mail.zope.org/pipermail/zope-dev/2002-July/016913.html>
>>
>>
>> I did that on request of Florent and thought it would be a no-brainer.
>> <http://mail.zope.org/pipermail/zope-checkins/2003-April/022598.html>
>>
>> But apparently I did it wrong. Would it be ok to change it to:
>>
>>      def __init__(id=None):
>>          if id is not None:
>>              self.id = str(id)
>>
>> Or should I revert that change completely?
>>
> 
> Why not add the title as well? It seems common for constructors that 
> accept an id parameter to also accept a title.

ZopePageTemplate and PythonScript constructors don't accept title. 
Florent just asked for id.
But I can live with both solutions.


Cheers,

Yuppie