Le lundi 05 novembre 2007 à 12:35 +0100, Lorenzo Gil Sanchez a écrit :
> Oh, that's true indeed. It's a shame IOrderedContainer is defined as
> inheriting from IContainer because I can't declare a permission for the
> updateOrder method in an independent way. Something like: I want Public
> permission for reading an ordered folder and I want ManageContent
> permission for writing *and* changing the folder order.

I've done this configuration, which seems OK for me until now :

<class class=".MyOrderedContainer">
    <implements
        interface="zope.annotation.interfaces.IAttributeAnnotatable" />
    <require
        interface="zope.app.container.interfaces.IReadContainer"
        permission="zope.View" />
    <require
        interface="zope.app.container.interfaces.IWriteContainer"
        attributes="updateOrder"
        permission="zope.ManageContent" />
</class>


  Thierry Florac
-- 
  Chef de projet intranet/internet
  Office National des Forêts - Département Informatique
  2, Avenue de Saint-Mandé
  75570 PARIS Cedex 12
  Mél : [EMAIL PROTECTED]
  Tél. : +33 01.40.19.59.64
  Fax. : +33 01.40.19.59.85

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to