[Zope-CMF] Re: Bug with CMFUid content when copied indirectly and some confusion.

yuppie y.2004_ at wcm-solutions.de
Thu Aug 26 06:22:06 EDT 2004


Hi!


Gregoire Weber wrote:
>>Writing that, I wonder why you have to use 'register' to make sure you get an UID. Wouldn't it be better if 'getUid' registers objects if necessary?
> 
> 
> It is the easiest way to get an uid if it not yet exists.
> The proper solution would be to attach uids after they have been added
> and then ask for the uid with the get/query methods.

Currently the framework doesn't make sure that all objects have an UID. 
So the default way to get an UID is calling 'register'. The examples you 
implemented in CMFDefault don't use the get/query methods.

While the "proper solution" might be nice, people can't use it.


Cheers,
	Yuppie




More information about the Zope-CMF mailing list