[twdev] Re: TW5 modify a tiddler from a plugin

2014-04-03 Thread BJ
HI Danielo, with the tw5 code, the Tiddler object is like a house that the actual 'tiddler' ocupies. the actual 'tiddler' is known by it name, stored in title field. When the 'tiddler' changes in some way it need to change its house. the call to new $tw.Tiddler() get a new house for the

[twdev] TW5 how crypto module works?

2014-04-03 Thread Danielo Rodríguez
Hello, I'm investigating the Crypto module of TW5 and I'm getting loss. How does the flow exactly works? I tried with very simple things as vr Ctext=$tw.utils.encrypt(My text,pass) $tw.utils.decrypt(Ctext,pass) But I get all kind of errors. I tried JSON decoding/encoding the resulted object

[twdev] Re: TW5 how crypto module works?

2014-04-03 Thread Danielo Rodríguez
Ok... I tried with another path Create a new crypto object var Ct=new $tw.utils.Crypto And use that object. After that everything works. I need to investigate further :P El jueves, 3 de abril de 2014 17:31:48 UTC+2, Danielo Rodríguez escribió: Hello, I'm investigating the Crypto

Re: [twdev] Re: TW5 modify a tiddler from a plugin

2014-04-03 Thread Jeremy Ruston
Hi Danielo In TiddlyWiki, tiddler objects are immutable; once one has been created the values of the fields cannot be changed. In 5.0.9, that restriction is enforced, but at the moment there's nothing to stop erroneous code modifying a tiddler object. To modify a tiddler, one instead overwrites

Re: [twdev] [TW5] Transclusion: {{tiddler||template}} - Why || and not |?

2014-04-03 Thread Stephan Hradek
Am Donnerstag, 3. April 2014 19:22:47 UTC+2 schrieb Jeremy Ruston: Hi Stephan Why do we have double pipes for seperating the tiddler title from the template in the transclusion rule? Because I used the single pipe to separate ??? Is there something missing? This sentence does not

Re: [twdev] [TW5] Transclusion: {{tiddler||template}} - Why || and not |?

2014-04-03 Thread Jeremy Ruston
Sorry Stephan I pressed send too early - still drafting the rest of the reply :) Best wishes Jeremy On Thu, Apr 3, 2014 at 6:29 PM, Stephan Hradek stephan.hra...@gmail.comwrote: Am Donnerstag, 3. April 2014 19:22:47 UTC+2 schrieb Jeremy Ruston: Hi Stephan Why do we have double pipes

Re: [twdev] [TW5] Transclusion: {{tiddler||template}} - Why || and not |?

2014-04-03 Thread Jeremy Ruston
Hi Stephan Why do we have double pipes for seperating the tiddler title from the template in the transclusion rule? Because originally I used the single pipe to separate a tooltip, copying from the TWC image syntax which also marks a tooltip with a pipe. The idea was to be able to apply a

Re: [twdev] [TW5] Transclusion: {{tiddler||template}} - Why || and not |?

2014-04-03 Thread Stephan Hradek
Am Donnerstag, 3. April 2014 19:33:14 UTC+2 schrieb Jeremy Ruston: Given that the tiddler you're transcluding is a macro definition and associated macro call, this looks a lot like a use-case for global macros. The rough plan there is to allow macros to be included with an `\include

Re: [twdev] [TW5] Transclusion: {{tiddler||template}} - Why || and not |?

2014-04-03 Thread Jeremy Ruston
Hi Stephan Am Donnerstag, 3. April 2014 19:33:14 UTC+2 schrieb Jeremy Ruston: Given that the tiddler you're transcluding is a macro definition and associated macro call, this looks a lot like a use-case for global macros. The rough plan there is to allow macros to be included with an