[Betternestedset-talk] Virtual roots
Mikel Lindsaar
raasdnil at gmail.com
Thu Jul 5 18:42:21 EDT 2007
Wow, thanks for all you fast replies! Great list :)
Jon, that would be great :) Maybe we could wrap it up better and add
it into better nested set?
Regards
Mikel
On 7/5/07, Jonathan Mischo <jmischo at quagility.com> wrote:
> Hey all,
>
> This behavior was fixed in my code by a combination of the patch I emailed
> out a while ago and a very simple conditional check. If you move a node up
> to be its parent's peer, you can then make the former parent a subordinate
> value of its subtree. That is the case in which you generally get the error
> below. I have code that actually allows you to directly set a parent to be
> a child of one of its children...this code promotes all of the parent's
> children to be its peers, and then moves the parent node into the target
> subtree. It works very well, no errors, etc.
>
> I'd be happy to demonstrate, but I've got places to be today. Perhaps
> tomorrow evening, if this is of interest?
>
> -Jon
>
> -----Original Message-----
> From: betternestedset-talk-bounces at rubyforge.org
> [mailto:betternestedset-talk-bounces at rubyforge.org] On Behalf Of
> Jean-Christophe Michel
> Sent: Thursday, July 05, 2007 7:32 AM
> To: betternestedset-talk at rubyforge.org
> Subject: Re: [Betternestedset-talk] Virtual roots
>
> Hi,
>
>
> Le 5 juil. 07 à 11:09, Mikel Lindsaar a écrit :
> > However, if I try to move a root to the child of another node, I get
> > the following error (pasted below).
> >
> > Is this correct behaviour? Does this mean once you create a node, it
> > can not move into another tree?
> >
> > If this is the case... does that mean the only way to move a node into
> > another tree is to delete and re-create it?
>
> Seems that scope is ignored when preventing move of nodes ;-)
>
> Jean-Christophe Michel
> --
> symetrie.com
>
> Better Nested Set for rails:
> http://opensource.symetrie.com/trac/better_nested_set
>
>
> _______________________________________________
> Betternestedset-talk mailing list
> Betternestedset-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/betternestedset-talk
>
> _______________________________________________
> Betternestedset-talk mailing list
> Betternestedset-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/betternestedset-talk
>
More information about the Betternestedset-talk
mailing list