@@ -654,7 +654,8 @@ def get_repository(self):
654
654
"""
655
655
return self ._repository
656
656
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 ):
658
659
"""
659
660
Creates a new subsection that is a child of this section.
660
661
@@ -666,11 +667,18 @@ def create_section(self, name, type="n.s.", oid=None):
666
667
'n.s.' by default.
667
668
:param oid: object id, UUID string as specified in RFC 4122. If no id
668
669
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.
669
676
670
677
:return: The new section.
671
678
"""
672
679
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 )
674
682
sec .parent = self
675
683
676
684
return sec
0 commit comments