def __init__(self, *args, **kwargs):
        """
        Constructor.

        Args:
            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?

        Raises:
            ValueError: In case that `name` is not set, or `sub_trees` or
                        `sub_publications` is not list/tuple.
        """
        super(self.__class__, self).__init__(*args, **kwargs)

        # type checks
        if not self.name.strip():
            raise ValueError(".name property must be set!")
        if type(self.sub_trees) not in [list, tuple]:
            raise ValueError(".sub_trees property must contain list/tuple!")
        if type(self.sub_publications) not in [list, tuple]:
            raise ValueError(".sub_trees property must contain list/tuple!")

        if not self.path:
            self.path = self.name

        for sub_tree in self.sub_trees:
            sub_tree.path = os.path.join(self.path, sub_tree.name)
def __init__ ( self , * args , ** kwargs ) : super ( self . __class__ , self ) . __init__ ( * args , ** kwargs ) if not self . name . strip ( ) : raise ValueError ( ".name property must be set!" ) if type ( self . sub_trees ) not in [ list , tuple ] : raise ValueError ( ".sub_trees property must contain list/tuple!" ) if type ( self . sub_publications ) not in [ list , tuple ] : raise ValueError ( ".sub_trees property must contain list/tuple!" ) if not self . path : self . path = self . name for sub_tree in self . sub_trees : sub_tree . path = os . path . join ( self . path , sub_tree . name )
Constructor.

        Args:
            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?

        Raises:
            ValueError: In case that `name` is not set, or `sub_trees` or
                        `sub_publications` is not list/tuple.