Closed yugangzhang closed 8 years ago
Adding new stuff would be a new entry. Instead, you can retrieve a log object, modify it to create a log entry.
More specifically:
SimpleOlogClient.find()
returns a list of dicts. You can add what you desire to any of these returned dicts and log them using SimpleOlogClient.log(**my_dict)
.
@arkilic Thanks! This was what I did. I search the entry first and update by updateLog. But, I found this function overwrite all the old contents, including text and attachments. We would like to just add some new text or new attachments to the existing ones.
Let's get together on Monday. Please put something on my calendar at your availability. It is a bit tricky but totally possible to do what you are asking.
@arkilic Great! I will find your available calendar.
In pyOlog package/OlogClient.py
Can we modify the function/method updateLog to just add new stuff (text/attachment) without overwrite the old ones?