@@ -654,7 +654,8 @@ def get_repository(self):
654654 """
655655 return self ._repository
656656
657- def create_section (self , name , type = "n.s." , oid = None ):
657+ def create_section (self , name = None , type = "n.s." , oid = None , definition = None ,
658+ reference = None , repository = None , link = None , include = None ):
658659 """
659660 Creates a new subsection that is a child of this section.
660661
@@ -666,11 +667,18 @@ def create_section(self, name, type="n.s.", oid=None):
666667 'n.s.' by default.
667668 :param oid: object id, UUID string as specified in RFC 4122. If no id
668669 is provided, an id will be generated and assigned.
670+ :param definition: String describing the definition of the Section.
671+ :param reference: A reference (e.g. an URL) to an external definition
672+ of the Section.
673+ :param repository: URL to a repository where this Section can be found.
674+ :param link: Specifies a soft link, i.e. a path within the document.
675+ :param include: Specifies an arbitrary URL. Can only be used if *link* is not set.
669676
670677 :return: The new section.
671678 """
672679 from odml .section import BaseSection
673- sec = BaseSection (name = name , type = type , oid = oid )
680+ sec = BaseSection (name = name , type = type , definition = definition , reference = reference ,
681+ repository = repository , link = link , include = include , oid = oid )
674682 sec .parent = self
675683
676684 return sec
0 commit comments