Commit e935a6cd authored by André Anjos's avatar André Anjos 💬

Merge branch 'super' into 'master'

Call the init of super class in File

See merge request !36
parents d20f14fd dbcd1d48
Pipeline #15147 canceled with stages
......@@ -13,7 +13,7 @@ class File(object):
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."""
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment