"Itamar S.-T." wrote:
Rob Page wrote:
If you distribute a ZClass definition and then upgrade it it will still have the same id. As a result, when you overwrite the new ZClass definition over the older one, it also will have the same class definition. Restarting Zope will cause the new ZClass definition to be loaded and the instances get the new behavior... Pretty cool...
What happens if two different people create ZClasses with the same IDs?
For example: Alice creates ZClass Foo. It gets an ID of 2. Bob creates ZClass Bar. It also gets an ID of 2.
Bob imports Foo. Since its ID is already used, I assumes it gets assigned a new one, lets say 3.
Bob will get an error when he tries to import foo, and he will complain to Alice for using such a silly ID. (Of course, he won't mention to her what a silly ID he picked.) As others have pointed out, the ids generated by ZClasses have an extremely low chance of collision. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats.