Losing edits with Event Actions

2 views
Skip to first unread message

Mike Pitzrick

unread,
Dec 7, 2008, 3:18:00 PM12/7/08
to xbat-...@googlegroups.com
Howdy,

I just made an event action that adds something to log.event().tags for selected events. It seems to work fine, except that all the edits I've made to the log since it was last open disappear. For example, when I run the action all events I've deleted since opening the log reappear. Also, any tags I've added using the "Tags" field in the Event palette disappear.

I suspect that the manner in which I acquire the log, "get_library_logs", is the problem. It is apparently copying the version of the log on the hard drive, and is ignoring changes not yet written to the log. How can I get a copy of the log which includes all the edits made since the log was last opened?

-Mike


--
Either we have hope within us or we don't.  It is a dimension of the soul, and it's not essentially dependent on some particular observation about the world or estimate of the situation.  Hope, in this deep and powerful sense, is not the same as joy that things are going well or willingness to invest in enterprises that are obviously headed for early success, but rather its ability to work for something because it is good, not just because it stands a chance to succeed.  Hope is definitely not the same things as optimism. It is not the conviction that something will turn out well, but the certainty that something makes sense no matter how it turns out.     --Vaclav Havel  (http://en.wikipedia.org/wiki/Vaclav_Havel)
Reply all
Reply to author
Forward
0 new messages