Skip to content

Commit 29772bf

Browse files
author
adam-t-shaw
committed
Docstrings
1 parent 118ac42 commit 29772bf

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

maproulette/models/cooperative_work.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class CooperativeWorkModel:
99

1010
@property
1111
def version(self):
12-
""""""
12+
"""The version of maproulette cooperative work format to be processed
13+
(currently, only version 2 is supported)"""
1314
return self._version
1415

1516
@version.setter
@@ -18,7 +19,8 @@ def version(self, value):
1819

1920
@property
2021
def type(self):
21-
""""""
22+
"""The type of cooperative work operation (either 1 for tag fix or 2 for change file)
23+
to be contained in the model"""
2224
return self._type
2325

2426
@type.setter
@@ -30,7 +32,7 @@ def type(self, value):
3032

3133
@property
3234
def parent_operations(self):
33-
""""""
35+
"""A dict containing parent operation details which follows the parent_operation model"""
3436
return self.parent_operations
3537

3638
@parent_operations.setter
@@ -39,7 +41,7 @@ def parent_operations(self, value):
3941

4042
@property
4143
def content(self):
42-
""""""
44+
"""A base64-encoded osc changefile to be used in type 2 cooperative work operations"""
4345
return self.content
4446

4547
@content.setter
@@ -48,7 +50,8 @@ def content(self, value):
4850

4951
@property
5052
def file_type(self):
51-
""""""
53+
"""The type of changefile to be used in type 2 cooperative work
54+
(currently, only xml files are supported"""
5255
return self.file_type
5356

5457
@file_type.setter
@@ -57,7 +60,8 @@ def file_type(self, value):
5760

5861
@property
5962
def file_format(self):
60-
""""""
63+
"""The format of changefile to be used in type 2 cooperative work
64+
(currently, only osc files are supported"""
6165
return self.file_format
6266

6367
@file_format.setter
@@ -66,7 +70,8 @@ def file_format(self, value):
6670

6771
@property
6872
def encoding(self):
69-
""""""
73+
"""The type of encoding used in the changefile for type 2 cooperative work
74+
(currently, only base64 encoding is supported)"""
7075
return self.encoding
7176

7277
@encoding.setter

maproulette/models/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def mapillary_images(self, value):
155155

156156
@property
157157
def cooperative_work(self):
158-
""""""
158+
"""A dict containing cooperative work information which follows the cooperative_work model"""
159159
return self._cooperative_work
160160

161161
@cooperative_work.setter

0 commit comments

Comments
 (0)