Creating RedNotebook files

Asked by WS Jones on 2016-10-13

I have a large amount of data in Lotus Organizer and I am considering moving some entries to RedNotebook. I can write a filter that reads and groups my original entries into files of physical months as mentioned in the help text (yyyy-mm.txt). From what I can tell I then have to encase my original text in a construct that looks like dd: {text: !!python/unicode 'text'} where dd is a two-digit date. The only gotcha I noticed was the need to double-up single quotes when they appear (eg. computer''s). So ... is this all I have to code for the transfer to be successful -- creating say 100 files named 2014-01.txt, 2014-02.txt, etc., each filled with a sequence of dd: lines? Are there other files I need to touch/update/create? And, is it sensible or foolish to go down this road? Thanks for the advice!

Question information

Language:
English Edit question
Status:
Answered
For:
RedNotebook Edit question
Assignee:
No assignee Edit question
Last query:
2016-10-13
Last reply:
2016-10-14
Jendrik Seipp (jendrikseipp) said : #1

Your solution sounds perfectly reasonable, though indeed it is easy to
mess up escaping characters. Therefore, I'd recommend to use a Python
script to write the YAML files, using the yaml module.

Can you help with this problem?

Provide an answer of your own, or ask WS Jones for more information if necessary.

To post a message you must log in.