Ok, I have had a quick look at upload.
I wrote TiddlerEncryptionPlugin (TEP) quite a while ago.

TEP overrides store.getSaver().externalizeTiddler and saveChanges().

saveChanges() is the code that is executed when you click the 'save
changes' button.

The Upload plugin does not override the save changes mechanism nor
does it utilise the externalizeTiddler() function.

A special version of TiddlerEncryptionPlugin would need to override
the config.macros.upload.handler.

Alternatively, it would be nice if the upload plugin actually overrode
the save code.

I am a bit busy tonight, but sometime over the next few days I may get
motivated to whip up an enhancement such that TiddlerEncryptionPlugin
will 'override' Upload plugin to allow encryption of tiddlers prior to
upload.

Unless, of course, someone beats me to it and sends me the update :-)

...Lyall

On Nov 10, 6:50 pm, Alexander Tsvetkov <egalitar...@gmail.com> wrote:
> Thanks for the suggestion. Just tried it but there's no change - it's
> still not encrypting anything on save.
> On Nov 10, 1:17 am, Lyall <lyall.pea...@gmail.com> wrote:
>
> > Maybe, if you renamed TiddlerEncryptionPlugin to
> > 'ZTiddlerEncryptionPlugin', so that it loads after
> > UploadTiddlerPlugin, that way, when TiddlerEncryptionPlugin overrides
> > the 'save', it overrides the 'UploadTiddlerPlugin' save, not the other
> > way around.
>
> > ...Lyall
>
> > On Nov 10, 5:18 am, Alexander Tsvetkov <egalitar...@gmail.com> wrote:
>
> > > When I use it locally I create a tiddler I want to encrypt, tag it
> > > Encrypt(something) and when I click save it asks me for the password
> > > of (something) and encrypts it. So when I reopen that TW and click
> > > decrypt it will ask me for that password.
> > > When I use it online thou when I create a tiddler and tag it Encrypt
> > > (something) it still asks for a password but never encrypts anything
> > > on upload. I think it has to do something with EncryptionPlugin
> > > working only on save and UploadPlugin saving the TW in some other way.
> > > On Nov 9, 12:07 pm, FND <f...@gmx.net> wrote:
>
> > > > > EncryptionPlugin is wokring fine in my TW locally but not when
> > > > > used along with UploadTiddlerPlugin.
>
> > > > What happens, exactly*?
>
> > > > I'm not intimately familiar with the internals of either plugin, but
> > > > don't see why the TiddlerEncryptionPlugin would interfere (it's all just
> > > > data after all).
>
> > > > -- F.
>
> > > > * cf.http://www.tiddlywiki.org/wiki/Troubleshooting
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to