Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Versions releases 0.2.x & above
###############################

0.6.0 (Unreleased)
==================

see issues #109 & #111

- Add support for SQLAlchemy 2.0.
- Remove examples of defunct features from the documentation.

0.5.0 (2025-11-18)
==================

Expand Down
24 changes: 0 additions & 24 deletions docs/tut_flask.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,40 +268,31 @@ Returns a list containing the ancestors and the node itself in tree order.

for item in categories:
print(item)
print(item.path_to_root()[-1]) # get root
# last element in list
pprint(item.path_to_root().all())
print()

.. testoutput::
:options: +NORMALIZE_WHITESPACE

<Category root>
<Category root>
[<Category root>]

<Category foo>
<Category root>
[<Category foo>, <Category root>]

<Category bar>
<Category root>
[<Category bar>, <Category foo>, <Category root>]

<Category baz>
<Category root>
[<Category baz>, <Category bar>, <Category foo>, <Category root>]

<Category foo1>
<Category root>
[<Category foo1>, <Category root>]

<Category bar1>
<Category root>
[<Category bar1>, <Category foo1>, <Category root>]

<Category baz1>
<Category root>
[<Category baz1>, <Category foo1>, <Category root>]

Full code
Expand Down Expand Up @@ -423,37 +414,29 @@ Full code

for item in categories:
print(item)
print(item.path_to_root()[-1])
pprint(item.path_to_root().all())
print()

'''
<Category root>
<Category root>
[<Category root>]

<Category foo>
<Category root>
[<Category foo>, <Category root>]

<Category bar>
<Category root>
[<Category bar>, <Category foo>, <Category root>]

<Category baz>
<Category root>
[<Category baz>, <Category bar>, <Category foo>, <Category root>]

<Category foo1>
<Category root>
[<Category foo1>, <Category root>]

<Category bar1>
<Category root>
[<Category bar1>, <Category foo1>, <Category root>]

<Category baz1>
<Category root>
[<Category baz1>, <Category foo1>, <Category root>]
'''

Expand Down Expand Up @@ -491,30 +474,23 @@ Full code
<Category baz1>
[{'node': <Category baz1>}]

<Category root>
<Category root>
[<Category root>]

<Category foo>
<Category root>
[<Category foo>, <Category root>]

<Category bar>
<Category root>
[<Category bar>, <Category foo>, <Category root>]

<Category baz>
<Category root>
[<Category baz>, <Category bar>, <Category foo>, <Category root>]

<Category foo1>
<Category root>
[<Category foo1>, <Category root>]

<Category bar1>
<Category root>
[<Category bar1>, <Category foo1>, <Category root>]

<Category baz1>
<Category root>
[<Category baz1>, <Category foo1>, <Category root>]