Skip to content

Commit f941a3c

Browse files
committed
[base] Rename sectionable to Sectionable
1 parent a1038dc commit f941a3c

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

odml/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def append(self, *obj_tuple):
160160

161161

162162
@allow_inherit_docstring
163-
class sectionable(BaseObject):
163+
class Sectionable(BaseObject):
164164
def __init__(self):
165165
from odml.section import BaseSection
166166
self._sections = SmartList(BaseSection)
@@ -558,7 +558,7 @@ def clone(self, children=True):
558558
to another document
559559
"""
560560
from odml.section import BaseSection
561-
obj = super(sectionable, self).clone(children)
561+
obj = super(Sectionable, self).clone(children)
562562
obj._parent = None
563563
obj._sections = SmartList(BaseSection)
564564
if children:

odml/doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
@allow_inherit_docstring
12-
class BaseDocument(base.sectionable):
12+
class BaseDocument(base.Sectionable):
1313
"""
1414
A representation of an odML document in memory.
1515
Its odml attributes are: *author*, *date*, *version* and *repository*.

odml/section.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515
@allow_inherit_docstring
16-
class BaseSection(base.sectionable):
16+
class BaseSection(base.Sectionable):
1717
""" An odML Section """
1818
type = None
1919
# id = None
@@ -239,9 +239,9 @@ def get_repository(self):
239239
return self.parent.get_repository()
240240
return super(BaseSection, self).repository
241241

242-
@base.sectionable.repository.setter
242+
@base.Sectionable.repository.setter
243243
def repository(self, url):
244-
base.sectionable.repository.fset(self, url)
244+
base.Sectionable.repository.fset(self, url)
245245

246246
@inherit_docstring
247247
def get_terminology_equivalent(self):

0 commit comments

Comments
 (0)