Hello Jean,

I don't think this is a problem with the adapter itself but the way you are 
using couch-db. Could you clarify me some points?

> 2. I save the tiddler and upload an attachment to the corresponding 
> document in couchdb

What is the corresponding document? The tiddler you just have created? If 
so, that may be the problem. I don't know how editing a document will 
affect to its attachments, I have to investigate it.

Anyway, why don't you just create a image tiddler? Like normal drag and 
drop? I'm not forcing you to do it that way, I want to know which 
advantages you see with your method.


El jueves, 21 de mayo de 2015, 16:52:34 (UTC+2), Jean-Philippe Rutault 
escribió:
>
> Still playing and have a new little problem. Perhaps you can explain to me 
> if it's a normal or if it's a sync bug.
>
> 1. First I create a tiddler called TestJpeg for example with the type 
> image/jpeg and the empty field _canonical_uri
> 2. I save the tiddler and upload an attachment to the corresponding 
> document in couchdb.
> 3. I edit my TestJpeg tiddler and add the full url of the uploaded 
> attachment in _canonical_uri field then save and all works well. I can now 
> transcluide my tiddler image as a normal tiddler image, but...
>
> If I edit my Tiddler, even if I make no modifications, save or cancel the 
> editing, the document in couchdb looses its attachment. It now appears as 
> _attachments [object object] and anew field _attachments with [object 
> object] appears in my tiddler. No more transclusion, no more attachment in 
> my tiddler.
>
> Thanks in advance
>
> Le mercredi 20 mai 2015 17:43:29 UTC+2, Danielo Rodríguez a écrit :
>>
>> Hello Jean.Philippe,
>>
>> El miércoles, 20 de mayo de 2015, 15:02:59 (UTC+2), Jean-Philippe Rutault 
>> escribió:
>>>
>>> Very light usage, still testing and investigating this architecture. I 
>>> have TW5 opens on two computers. I just do basic editing on one, then 
>>> refresh the wiki on the other. I ended up with Draft tiddler with sync 
>>> problem and was unable to remove them. I add to go to the couchdb interface 
>>> to remove the corresponding document (Draft of New Tiddler).
>>>
>>
>> Do you let the Draft of New Tiddler be saved on both wikis? Probably the 
>> problem is that the Draft Exist already on the database, and then you tried 
>> to create a new Draft on another wiki. Normally when you finish editing a 
>> draft it is removed from the DB. As you leaved the draft in draft mode you 
>> have ended with it permanently stored on the DB. Because it is a generic 
>> Draft, TW does not tries to load it from the database, so the revision is 
>> never updated. It's a small problem, but fixable. Thanks for reporting.
>>
>>  
>>
>>>
>>> Indeed, I can't install any plugins, neither via drag'n'drop of the 
>>> plugins tiddlers, nor via the new control panel menu. It ends up asking 
>>> indefinitely to reload the wiki to have the new plugin to take effect. Add 
>>> to remove manually the corresponding tiddler.
>>>
>>
>> This is a known issue. It's better if you do it the other way round: 
>>
>>    1. pick an empty tw, 
>>    2. install all the plugins you want/need
>>    3. Reload TW
>>    4. Add the couchdb plugin, 
>>    5. use that TW (upload it to your database if necessary)
>>    
>>
>> Maybe we can provide a mechanism in the plugin to upload the modified 
>> version of the wiki (without any tiddler, just plugins) to the DB.
>>  
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/db7fa5bf-af3b-4367-a92b-4a7d9a5322c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to