On Wed, 13 Jan 2010, Jaap Karssenberg wrote:
> Ok, now I get it. Pre-requisite for this is that we always have a local
> couchdb to store updates immediately. If I understand correctly this is
> the idea behind desktop-couchdb.
Right.
> So the shopping list becomes:
Looks OK from here.
> 1) store class to interface with couchdb
> a) get / set pages
> b) get / set attachments
> - for interface with zim need to fake a directory with attachments, or use a tmp directory to access them
I think a tmp directory in .cache/zim/<notebook name>/ is ok for this
purpose.
Potential problem: I'm not quite sure how well binary blob are supported in the
python-couchdb/python-desktop-couch interface.
> 2) user interface to configure zim to use couchdb
> 3) user interface to resolve conflicts
> - show some warning for pages that contain conflicts
> - dialog to compare conflicting pages and resolve manually
> - some way to get a list of conflicts (popup when opening a notebook with conflicts)
Maybe some integration with the index view to attract the attention of the
user on conflicting pages.
On Wed, 13 Jan 2010, Jaap Karssenberg wrote:
> Ok, now I get it. Pre-requisite for this is that we always have a local
> couchdb to store updates immediately. If I understand correctly this is
> the idea behind desktop-couchdb.
Right.
> So the shopping list becomes:
Looks OK from here.
> 1) store class to interface with couchdb
> a) get / set pages
> b) get / set attachments
> - for interface with zim need to fake a directory with attachments, or use a tmp directory to access them
I think a tmp directory in .cache/ zim/<notebook name>/ is ok for this
purpose.
Potential problem: I'm not quite sure how well binary blob are supported in the couchdb/ python- desktop- couch interface.
python-
> 2) user interface to configure zim to use couchdb
> 3) user interface to resolve conflicts
> - show some warning for pages that contain conflicts
> - dialog to compare conflicting pages and resolve manually
> - some way to get a list of conflicts (popup when opening a notebook with conflicts)
Maybe some integration with the index view to attract the attention of the
user on conflicting pages.
Cheers,
--
Raphaël Hertzog