-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmodels.py
More file actions
31 lines (25 loc) · 921 Bytes
/
models.py
File metadata and controls
31 lines (25 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
Data modelling classes
"""
class OrbResource(object):
def __init__(
self, id=None, title=None, description=None, study_time_number=0, study_time_unit=None, attribution=None):
self.id = id
self.title = title
self.description = description
self.study_time_number = study_time_number
self.study_time_unit = study_time_unit
self.attribution = attribution
class OrbResourceFile(object):
def __init__(self, file='', title='', description='', order_by=0):
self.file = file
self.title = title
self.description = description
self.order_by = order_by
class OrbResourceURL(object):
def __init__(self, url='', title='', description='', order_by=0, file_size=0):
self.url = url
self.title = title
self.description = description
self.order_by = order_by
self.file_size = file_size