[ZPatterns] Deleting a DataSkin propertysheet?

Jean Jordaan jean@upfrontsystems.co.za
Thu, 27 Sep 2001 09:13:53 +0200


Hi all

I have code like this in a Python Script::

 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

/Control_Panel/Products/FekoWeb/FekoUser/propertysheets/common/CommonPropert
ies

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