aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/graph/ac/null.py
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2023-03-02 12:19:58 +0100
committerMatthias Baumgartner <dev@igsor.net>2023-03-02 12:19:58 +0100
commit87f437380c1dd8f420437cddc028c0f3174ee1c9 (patch)
treeacebd2de636477cf6b498256a67f6863abd5a9c1 /bsfs/graph/ac/null.py
parentd70e78bbdd9d9b5727f18a82fce08f20bdbbba19 (diff)
downloadbsfs-87f437380c1dd8f420437cddc028c0f3174ee1c9.tar.gz
bsfs-87f437380c1dd8f420437cddc028c0f3174ee1c9.tar.bz2
bsfs-87f437380c1dd8f420437cddc028c0f3174ee1c9.zip
Node getters in bsfs.Graph:
* Empty nodes instance (Graph.empty) * Order-preserving get query (Graph.sorted) * Collect common code in private Graph.__get * Empty query in Graph.get * Empty query in Graph.resolve.Filter * Empty query in AC: filter_read
Diffstat (limited to 'bsfs/graph/ac/null.py')
-rw-r--r--bsfs/graph/ac/null.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bsfs/graph/ac/null.py b/bsfs/graph/ac/null.py
index 6a923a5..e67b55d 100644
--- a/bsfs/graph/ac/null.py
+++ b/bsfs/graph/ac/null.py
@@ -50,7 +50,11 @@ class NullAC(base.AccessControlBase):
"""Return nodes that are allowed to be created."""
return guids
- def filter_read(self, node_type: schema.Node, query: ast.filter.FilterExpression) -> ast.filter.FilterExpression:
+ def filter_read(
+ self,
+ node_type: schema.Node,
+ query: typing.Optional[ast.filter.FilterExpression]
+ ) -> typing.Optional[ast.filter.FilterExpression]:
"""Re-write a filter *query* to get (i.e., read) *node_type* nodes."""
return query