|
@@ -85,11 +85,11 @@ class ContentStatusList(object):
|
85
|
85
|
return item
|
86
|
86
|
raise ContentStatusNotExist()
|
87
|
87
|
|
88
|
|
- def allowed_slugs_values(self) -> typing.List[str]:
|
|
88
|
+ def get_all_slugs_values(self) -> typing.List[str]:
|
89
|
89
|
""" Get alls slugs"""
|
90
|
90
|
return [item.slug for item in self._content_status]
|
91
|
91
|
|
92
|
|
- def allowed(self) -> typing.List[ContentStatus]:
|
|
92
|
+ def get_all(self) -> typing.List[ContentStatus]:
|
93
|
93
|
""" Get all status"""
|
94
|
94
|
return [item for item in self._content_status]
|
95
|
95
|
|
|
@@ -137,7 +137,7 @@ thread_type = ContentType(
|
137
|
137
|
hexcolor=thread.hexcolor,
|
138
|
138
|
label='Thread',
|
139
|
139
|
creation_label='Discuss about a topic',
|
140
|
|
- available_statuses=CONTENT_STATUS.allowed(),
|
|
140
|
+ available_statuses=CONTENT_STATUS.get_all(),
|
141
|
141
|
)
|
142
|
142
|
|
143
|
143
|
file_type = ContentType(
|
|
@@ -146,7 +146,7 @@ file_type = ContentType(
|
146
|
146
|
hexcolor=_file.hexcolor,
|
147
|
147
|
label='File',
|
148
|
148
|
creation_label='Upload a file',
|
149
|
|
- available_statuses=CONTENT_STATUS.allowed(),
|
|
149
|
+ available_statuses=CONTENT_STATUS.get_all(),
|
150
|
150
|
)
|
151
|
151
|
|
152
|
152
|
markdownpluspage_type = ContentType(
|
|
@@ -155,7 +155,7 @@ markdownpluspage_type = ContentType(
|
155
|
155
|
hexcolor=markdownpluspage.hexcolor,
|
156
|
156
|
label='Rich Markdown File',
|
157
|
157
|
creation_label='Create a Markdown document',
|
158
|
|
- available_statuses=CONTENT_STATUS.allowed(),
|
|
158
|
+ available_statuses=CONTENT_STATUS.get_all(),
|
159
|
159
|
)
|
160
|
160
|
|
161
|
161
|
html_documents_type = ContentType(
|
|
@@ -164,7 +164,7 @@ html_documents_type = ContentType(
|
164
|
164
|
hexcolor=html_documents.hexcolor,
|
165
|
165
|
label='Text Document',
|
166
|
166
|
creation_label='Write a document',
|
167
|
|
- available_statuses=CONTENT_STATUS.allowed(),
|
|
167
|
+ available_statuses=CONTENT_STATUS.get_all(),
|
168
|
168
|
slug_alias=['page']
|
169
|
169
|
)
|
170
|
170
|
|
|
@@ -175,7 +175,7 @@ folder_type = ContentType(
|
175
|
175
|
hexcolor=thread.hexcolor,
|
176
|
176
|
label='Folder',
|
177
|
177
|
creation_label='Create collection of any documents',
|
178
|
|
- available_statuses=CONTENT_STATUS.allowed(),
|
|
178
|
+ available_statuses=CONTENT_STATUS.get_all(),
|
179
|
179
|
)
|
180
|
180
|
|
181
|
181
|
|
|
@@ -186,7 +186,7 @@ event_type = ContentType(
|
186
|
186
|
hexcolor=thread.hexcolor,
|
187
|
187
|
label='Event',
|
188
|
188
|
creation_label='Event',
|
189
|
|
- available_statuses=CONTENT_STATUS.allowed(),
|
|
189
|
+ available_statuses=CONTENT_STATUS.get_all(),
|
190
|
190
|
)
|
191
|
191
|
|
192
|
192
|
# TODO - G.M - 31-05-2018 - Set Better Event params
|
|
@@ -196,7 +196,7 @@ comment_type = ContentType(
|
196
|
196
|
hexcolor=thread.hexcolor,
|
197
|
197
|
label='Comment',
|
198
|
198
|
creation_label='Comment',
|
199
|
|
- available_statuses=CONTENT_STATUS.allowed(),
|
|
199
|
+ available_statuses=CONTENT_STATUS.get_all(),
|
200
|
200
|
)
|
201
|
201
|
|
202
|
202
|
|