Re: [tw] (att: TSpace) Identifying missing source for copied macro calls.

2010-08-13 Thread FND
 A problem when including/copying a limited set of tiddlers that
 contain macro calls is that you might not have included the tiddlers
 with the macro definitions and this causes errors.

While it's tempting to create a technical solution for this kind of
issue, I'm not sure that's the right approach.

I'd regard this of more of a social issue, to be addressed through
communication between author and consumer (e.g. via documentation or
conversation) and/or more explicit attention by the consumer.

  safety risk being on the server side, if I understand it right
  The idea is to let the user take the risk locally

It's actually the client-side we have to worry about. Plugins are
executed in the context of the respective document, with full access to
its data and thus the potential to wreak havoc (e.g. deleting tiddlers
or exposing sensitive data).

 A plugin, in your own space, could(?) save the names of the missing
 macros and crawl/spider through F to locate the tiddler names where
 these macros are defined. This is the identification part.

Programmatically identifying the plugin which provides a given macro is
not easy.


-- F.

-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlyw...@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.



[tw] (att: TSpace) Identifying missing source for copied macro calls.

2010-08-12 Thread twgrp
A problem when including/copying a limited set of tiddlers that
contain macro calls is that you might not have included the tiddlers
with the macro definitions and this causes errors.

Here's an idea for this, particularly for something like TiddlySpace,
where there's talk about not including plugins by default due to risk
of malicious code (i.e safety risk being on the server side, if I
understand it right):

The idea is to let the user take the risk locally;

Say you include a foreign space (F) and get errors per above. A
plugin, in your own space, could(?) save the names of the missing
macros and crawl/spider through F to locate the tiddler names where
these macros are defined. This is the identification part. If the
server doesn't have a safety issue then it's obviously just a matter
to include that plugin also.

Otherwise, such as for TSpace, the user can choose to import F or only
those particular plugins to his *local* computer, into a TW designated
to carry such risky tiddlers.

I'm wondering if there is a way to then have the TSpace macro call
tiddler fetch info from that local file or if that would be a safety
issue again. It would at least prevent plugins from running on
initialization but would it pose a (big enough) threat even if it just
processed macro calls externally?

(Or maybe my thougths don't make sense at all. I'm no programmer.)

:-)


-- 
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlyw...@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.