Skip to content
Snippets Groups Projects
Commit e935a6cd authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Merge branch 'super' into 'master'

Call the init of super class in File

See merge request !36
parents d20f14fd dbcd1d48
No related branches found
No related tags found
1 merge request!36Call the init of super class in File
Pipeline #
......@@ -13,7 +13,7 @@ class File(object):
properties.
"""
def __init__(self, path, file_id=None):
def __init__(self, path, file_id=None, **kwargs):
"""**Constructor Documentation**
Initialize the File object with the minimum required data.
......@@ -53,6 +53,8 @@ class File(object):
"'id' member variable in the derived class that is automatically "
"determined (e.g. by SQLite)")
super(File, self).__init__(**kwargs)
def __lt__(self, other):
"""This function defines the order on the File objects. File objects are
always ordered by their ID, in ascending order."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment