[Zope] Pb with zclass and permission.(Zope1_11_0pr1)

Gilles lavaux Gilles lavaux" <gilles.lavaux@esrin.esa.it
Mon, 7 Jun 1999 15:25:10 +0200


Hello

I have another problem with Zope1_11_0pr1:

I have done the zclass like the CD exemple, just it's called 'Shipment' and
has a lot of properties in a sheet called Shipment_Info.
My problem is that only the superuser (or a user with manage role) can
modify the properties of the newly created class instance.

My 'addForm' method call a 'Create' method like:

Creating request...<br>
<!--#with "Shipment(REQUEST['id'],REQUEST)"-->
  Filling values...<br>
  <!--#call "REQUEST.set('Status','New')"-->
  <!--#call Update-->
<!--#/with-->
Done...

The 'Update' method is a class method like:
<!--#call "propertysheets.Shipment_Info.manage_changeProperties({
           'Status'  : REQUEST['Status'],
})"-->

My AccessControl python files are now up to date and handle nicely the added
user-folders.
I have try adding all the possible permissions to the zclass, I all the time
end up with the login+password prompt windows.If I cancel it, Zope says:'You
are not authorized to access manage_changeProperties.'

The security settings for the properties-sheets is set to allow 'Anonymous'
and my user Role ('Test').
My zclass methos 'Update' security has the 'Manage properties' permission
mapped to 'Manage properties', the same for 'Access contents
information','view','View management screens'.
My zclass has all the permission on for anonymous and the 'test' user.
I have also try to add local roles to my test user: no luck, also adding
manage role.

Another remark: the instances are created with default permission : just the
'Acquire permission settings?' is checked. If I un-check them and check all
the permissions for anonymous or my user, still only the superuser can
change the properties.


So: am I the only one with this problem? Has someone a solution?

NB: also has someone solved the request timeout with IE?? I have also the
'to many open file problem', the python process get one more open file at
every site access, until the OS limit: 256 in my case (linus 5.1)


Thanks for any help.

Gilles