[tw] Re: Whats exactly happens when you include a space?

2010-10-28 Thread colmjude
Hi passingby,

There is one other characteristic of inclusion that you need to be
aware of. It is a trap I have fallen down too often :)

There is a space called 'A', this includes 'B' and 'C'

You have a space ('yourspace') and you include 'A', due to the
cascading nature of inclusion 'yourspace' now includes 'A', 'B' and
'C' as intended.
However the author of 'A' then includes space 'D'. You would assume
that 'yourspace' now includes 'D', this is not the case. This
inclusion is not reflected. This is because on including a space the
system copies[1] the space's inclusion tree at that moment in time. It
is a copy as oppose to a reference.

Hope that helps

Colm

[1] - in tiddlyweb terms it actually edits your space's recipe by
including the bags from the space you are including. You can read more
about bags and recipes at http://tiddlyweb.com

-- 
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] Re: Whats exactly happens when you include a space?

2010-10-24 Thread Tobias Beer
 # Does it mean that public tiddlers from the other space get included
 into your space?
One would think so ;o)

 # If I have a tiddler named foo in my space and the included space
 also has a tiddler by the same name, would the included foo tiddler
 override the original foo?
Tiddlers in your own space are always dominant over included ones.
However, if you have multiple inclusions and want the one from a
particular included space to be dominant over that of another, you
might want to delete and reinclude the one that you want to be
dominant... or (temporarily) include the inclusionsort space and then
rearange your inclusions via drag and drop.

With that respect, I think it were really great if spaces like
inclusionsort could be loaded on the fly and only for a current
session.

 # What if I want to block a particular tiddler from the included
 space? Is that possible too?
So far and for as long as inclusion of individual tiddlers is not
implemented you can only create an empty version of it in your own
space and thus overwrite the one being included.

Cheers, Tobias.

-- 
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] Re: Whats exactly happens when you include a space?

2010-10-24 Thread passingby
Thanks a lot Tobi!

On Oct 24, 3:00 pm, Tobias Beer beertob...@googlemail.com wrote:
  # Does it mean that public tiddlers from the other space get included
  into your space?

 One would think so ;o)

  # If I have a tiddler named foo in my space and the included space
  also has a tiddler by the same name, would the included foo tiddler
  override the original foo?

 Tiddlers in your own space are always dominant over included ones.
 However, if you have multiple inclusions and want the one from a
 particular included space to be dominant over that of another, you
 might want to delete and reinclude the one that you want to be
 dominant... or (temporarily) include the inclusionsort space and then
 rearange your inclusions via drag and drop.

 With that respect, I think it were really great if spaces like
 inclusionsort could be loaded on the fly and only for a current
 session.

  # What if I want to block a particular tiddler from the included
  space? Is that possible too?

 So far and for as long as inclusion of individual tiddlers is not
 implemented you can only create an empty version of it in your own
 space and thus overwrite the one being included.

 Cheers, Tobias.

-- 
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.