Store question in text format (to use git for versioning)

Asked by Thomas Guettler

Is it possible to store the questions in text format?

I want to keep the files in git. Of course git can handle binaries, but you can't use diff to compare versions.

Question information

Language:
English Edit question
Status:
Answered
For:
OpenTeacher Edit question
Assignee:
Marten de Vries Edit question
Last query:
Last reply:
Revision history for this message
Marten de Vries (marten-de-vries) said :
#1

Nice question!

As long as you don't care about comments & test results, you can just save and load .csv files. (Or maybe even .txt, didn't try that but I think it should work.)

We also support some xml based formats that might work: .ot, .kvtml, .t2k and .wrts e.g.

Last, you could write a few small zip/unzip scripts since .otwd files are just zip files. There's probably some way to integrate that into git. :)

Converting existing files on the fly can be done via our command line interface (openteacher -p cli +h or python openteacher.py -p cli +h for the supported options, depending on if you're running from an installed version or from source.)

Hope that helps.

Can you help with this problem?

Provide an answer of your own, or ask Thomas Guettler for more information if necessary.

To post a message you must log in.