the mapper/session extensions can be swapped for event listeners almost directly.
On Feb 21, 2013, at 3:04 PM, Grzegorz Śliwiński <fi...@fizyk.net.pl> wrote: > Hmm.. I had rather narrow search spectrum, as I search rather for "nested > set" term rather... > Although it's based mostly on Mapper and Session extensions, which are being > deprecated. > > I'll have a look at the codebase though, maybe I'll get some idea what I made > wrong.... > > W dniu czwartek, 21 lutego 2013 19:25:16 UTC+1 użytkownik Michael Bayer > napisał: > nested sets is pretty tough with the ORM as it requires a mode of operation > that resists the ORM's natural state of batching. > > Have you looked at an existing package like > https://pypi.python.org/pypi/SQLAlchemy-ORM-tree/ ? > > > On Feb 21, 2013, at 10:19 AM, Grzegorz Śliwiński <fi...@fizyk.net.pl> wrote: > >> Some time ago I created a NestedSet listeners for sqlalchemy. >> >> They utilise left/right reaches along with depth and parent_id fields. It >> works almost as expected, however I still have some issues especially in the >> updating, and can't seem to pinpoint the source, where I'm getting different >> than expected results. >> >> The source for listeners can be found here: >> >> https://gist.github.com/fizyk/4757230 >> >> >> It contains also test I created so far (but all of them passes). >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sqlalchemy" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sqlalchemy+...@googlegroups.com. >> To post to this group, send email to sqlal...@googlegroups.com. >> Visit this group at http://groups.google.com/group/sqlalchemy?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sqlalchemy+unsubscr...@googlegroups.com. > To post to this group, send email to sqlalchemy@googlegroups.com. > Visit this group at http://groups.google.com/group/sqlalchemy?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy?hl=en. For more options, visit https://groups.google.com/groups/opt_out.