Re: [Zope-CMF] TypesTool and contruction permissions
Godefroid Chapelle wrote: > I always thought I could register two portal types based on the same > class with different add permissions. > > I read TypesTool code today. If I understand well, when using new style > ZTK factories, construction permissions are looked up in meta_types > registration. > > I came to the following conclusion : > > to register separate portal_types that share class implementation but > have different contruction permissions, I need to register meta_types > with separate permissions then use those meta_types in the FTIs to > relate the permissions and the portal_types. > > Is this correct ? I'm afraid you can use five:registerClass only once per class. The directive modifies the class. meta_type to class is a 1:1 relationship. Cheers, Yuppie ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests
[Zope-CMF] TypesTool and contruction permissions
Hello, I always thought I could register two portal types based on the same class with different add permissions. I read TypesTool code today. If I understand well, when using new style ZTK factories, construction permissions are looked up in meta_types registration. I came to the following conclusion : to register separate portal_types that share class implementation but have different contruction permissions, I need to register meta_types with separate permissions then use those meta_types in the FTIs to relate the permissions and the portal_types. Is this correct ? -- Godefroid Chapelle (aka __gotcha) http://bubblenet.be ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests
[Zope-CMF] CMF Tests: 7 OK
Summary of messages to the cmf-tests list. Period Mon Jan 24 12:00:00 2011 UTC to Tue Jan 25 12:00:00 2011 UTC. There were 7 messages: 7 from CMF Tests. Tests passed OK --- Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.6 : Linux From: CMF Tests Date: Tue Jan 25 01:28:53 EST 2011 URL: http://mail.zope.org/pipermail/cmf-tests/2011-January/014200.html Subject: OK : CMF-2.1 Zope-2.11 Python-2.4.6 : Linux From: CMF Tests Date: Tue Jan 25 01:30:53 EST 2011 URL: http://mail.zope.org/pipermail/cmf-tests/2011-January/014201.html Subject: OK : CMF-2.2 Zope-2.12 Python-2.6.5 : Linux From: CMF Tests Date: Tue Jan 25 01:32:53 EST 2011 URL: http://mail.zope.org/pipermail/cmf-tests/2011-January/014202.html Subject: OK : CMF-2.2 Zope-2.13 Python-2.6.5 : Linux From: CMF Tests Date: Tue Jan 25 01:34:53 EST 2011 URL: http://mail.zope.org/pipermail/cmf-tests/2011-January/014203.html Subject: OK : CMF-trunk Zope-2.12 Python-2.6.5 : Linux From: CMF Tests Date: Tue Jan 25 01:36:53 EST 2011 URL: http://mail.zope.org/pipermail/cmf-tests/2011-January/014204.html Subject: OK : CMF-trunk Zope-2.13 Python-2.6.5 : Linux From: CMF Tests Date: Tue Jan 25 01:38:53 EST 2011 URL: http://mail.zope.org/pipermail/cmf-tests/2011-January/014205.html Subject: OK : CMF-trunk Zope-trunk Python-2.6.5 : Linux From: CMF Tests Date: Tue Jan 25 01:40:53 EST 2011 URL: http://mail.zope.org/pipermail/cmf-tests/2011-January/014206.html ___ Zope-CMF maillist - Zope-CMF@zope.org https://mail.zope.org/mailman/listinfo/zope-cmf See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests