[Zope] Deleting a DataSkin propertysheet?

Jean Jordaan jean@upfrontsystems.co.za
Wed, 26 Sep 2001 15:31:44 +0200


Hi all

I have code like this::

 for user in users:
     if getattr(user.propertysheets, 'CommonProperties', None):
         user.propertysheets.manage_delPropertySheet('CommonProperties')
         user_ids.append(user.id)

It doesn't look as if the 'manage_delPropertySheet' call is doing
anything. The propertysheet 'CommonProperties' is::

 DataSkin Attribute Property Sheet at
=A0/Control_Panel/Products/FekoWeb/FekoUser/propertysheets/common/CommonP=
roper
ties

When the code executes, 'user_ids' is a list of all users who
had 'CommonProperties'. However, 'CommonProperties' is not
deleted. I can run the script over and over, and keep getting
the same list in 'user_ids'. No errors are raised, and I have
Manager and Owner roles with all permissions.

Is there anything obvious I'm doing wrong?

Regards,
Jean