anthonyclark wrote:
> I've got a nice event list/edit script written in python, but I can't get it 
> to save any changes!
> 
> 
> Code:
> 
>             event.summary = EventSummary + " - REMEDY ID: " + m.append
>             trans = transaction.get()
>             trans.commit()
> 
> 
> 
> 
> I'm importing transaction fine at the top of the script, and can list/search 
> events just fine.  Is there anything I need to pass to ZenScriptBase to get 
> it to connect read/write?
> 
> I'm so close to finishing up this urgent task and I'm foiled at the last 
> hurdle (to mix metaphors!)
> 
> Please help!


   If you're in zendmd, IIRC you don't need to import transaction as I believe 
that it's already done for you.  Have you tried:



Code:

            event.summary = EventSummary + " - REMEDY ID: " + m.append
            commit()





kells




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=27051#27051

-------------------- m2f --------------------



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

Reply via email to