Marc Irlandez wrote:
> Chris,
> 
> Here are a some pointers to get you started:
> 

<snip>

> You can call these very same methods in the zendmd. To retrieve some of
> the objects you'll be using in the zendmd, use these commands:
> 
> user = zport.dmd.ZenUsers.MY_USERNAME
> alertingRule = user.MY_ALERTING_RULE
> 
> To enable/disable your alerting rule:
> 
> alertingRule.enabled=True
> 

This all worked lovely... once I realised that I needed to commit the
transaction with:

import transaction
trans = transaction.get()
trans.commit()

Many thanks to one and all :)

Chris
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to