Tree structure¶
Communication structure used by AMQP.
-
class
storage.structures.comm.tree.
Tree
(*args, **kwargs)¶ Bases:
storage.structures.comm.tree.Tree
Communication structure used to sent data to storage subsystem over AMQP.
-
name
¶ str – Name of the periodical.
-
sub_trees
¶ list – List of other trees.
-
sub_publications
¶ list – List of sub-publication UUID’s.
-
aleph_id
¶ str – ID used in aleph.
-
issn
¶ str – ISSN given to the periodical.
-
is_public
¶ bool – Is the tree public?
-
path
¶ str, default “” – Path in the periodical structures.
Constructor.
Parameters: Raises: ValueError
– In case that name is not set, or sub_trees or sub_publications is not list/tuple.-
path
-
indexes
¶ Return list of property names, which may be used for indexing in DB.
Returns: List of strings. Return type: list
-
collect_publications
()¶ Recursively collect list of all publications referenced in this tree and all sub-trees.
Returns: List of UUID strings. Return type: list
-