diff options
author | Matthias Baumgartner <dev@igsor.net> | 2022-12-18 13:53:34 +0100 |
---|---|---|
committer | Matthias Baumgartner <dev@igsor.net> | 2022-12-18 13:53:34 +0100 |
commit | ebc3ccb5fdce950649bfcbf18f88ecb4a9dbcad0 (patch) | |
tree | 1815e3b4c10b6ffdd012650b0e768e4659b996e6 /bsfs/graph/ac/null.py | |
parent | 1b570e45a4e99a4e7f9ad9d01b4fa93e38fbff38 (diff) | |
download | bsfs-ebc3ccb5fdce950649bfcbf18f88ecb4a9dbcad0.tar.gz bsfs-ebc3ccb5fdce950649bfcbf18f88ecb4a9dbcad0.tar.bz2 bsfs-ebc3ccb5fdce950649bfcbf18f88ecb4a9dbcad0.zip |
import fixes
Diffstat (limited to 'bsfs/graph/ac/null.py')
-rw-r--r-- | bsfs/graph/ac/null.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bsfs/graph/ac/null.py b/bsfs/graph/ac/null.py index a39b7b9..288a0da 100644 --- a/bsfs/graph/ac/null.py +++ b/bsfs/graph/ac/null.py @@ -8,7 +8,7 @@ Author: Matthias Baumgartner, 2022 import typing # bsfs imports -from bsfs import schema as _schema +from bsfs import schema from bsfs.namespace import ns from bsfs.utils import URI @@ -27,26 +27,26 @@ class NullAC(base.AccessControlBase): """ """ - def is_protected_predicate(self, pred: _schema.Predicate) -> bool: + def is_protected_predicate(self, pred: schema.Predicate) -> bool: """Return True if a predicate cannot be modified manually.""" return pred.uri == ns.bsm.t_created - def create(self, node_type: _schema.Node, guids: typing.Iterable[URI]): + def create(self, node_type: schema.Node, guids: typing.Iterable[URI]): """Perform post-creation operations on nodes, e.g. ownership information.""" - def link_from_node(self, node_type: _schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]: + def link_from_node(self, node_type: schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]: """Return nodes for which outbound links can be written.""" return guids - def link_to_node(self, node_type: _schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]: + def link_to_node(self, node_type: schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]: """Return nodes for which inbound links can be written.""" return guids - def write_literal(self, node_type: _schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]: + def write_literal(self, node_type: schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]: """Return nodes to which literals can be attached.""" return guids - def createable(self, node_type: _schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]: + def createable(self, node_type: schema.Node, guids: typing.Iterable[URI]) -> typing.Iterable[URI]: """Return nodes that are allowed to be created.""" return guids |