|
@@ -204,6 +204,7 @@ class ActionDescription(object):
|
204
|
204
|
- closed-deprecated
|
205
|
205
|
"""
|
206
|
206
|
|
|
207
|
+ COPY = 'copy'
|
207
|
208
|
ARCHIVING = 'archiving'
|
208
|
209
|
COMMENT = 'content-comment'
|
209
|
210
|
CREATION = 'creation'
|
|
@@ -225,7 +226,8 @@ class ActionDescription(object):
|
225
|
226
|
'status-update': 'fa-random',
|
226
|
227
|
'unarchiving': 'fa-file-archive-o',
|
227
|
228
|
'undeletion': 'fa-trash-o',
|
228
|
|
- 'move': 'fa-arrows'
|
|
229
|
+ 'move': 'fa-arrows',
|
|
230
|
+ 'copy': 'fa-files-o',
|
229
|
231
|
}
|
230
|
232
|
|
231
|
233
|
_LABELS = {
|
|
@@ -238,7 +240,8 @@ class ActionDescription(object):
|
238
|
240
|
'status-update': l_('New status'),
|
239
|
241
|
'unarchiving': l_('Item unarchived'),
|
240
|
242
|
'undeletion': l_('Item undeleted'),
|
241
|
|
- 'move': l_('Item moved')
|
|
243
|
+ 'move': l_('Item moved'),
|
|
244
|
+ 'copy': l_('Item copied'),
|
242
|
245
|
}
|
243
|
246
|
|
244
|
247
|
def __init__(self, id):
|
|
@@ -259,7 +262,9 @@ class ActionDescription(object):
|
259
|
262
|
cls.STATUS_UPDATE,
|
260
|
263
|
cls.UNARCHIVING,
|
261
|
264
|
cls.UNDELETION,
|
262
|
|
- cls.MOVE]
|
|
265
|
+ cls.MOVE,
|
|
266
|
+ cls.COPY,
|
|
267
|
+ ]
|
263
|
268
|
|
264
|
269
|
|
265
|
270
|
class ContentStatus(object):
|
|
@@ -514,6 +519,11 @@ class ContentChecker(object):
|
514
|
519
|
return False
|
515
|
520
|
return True
|
516
|
521
|
|
|
522
|
+ # TODO - G.M - 15-03-2018 - Choose only correct Content-type for origin
|
|
523
|
+ # Only content who can be copied need this
|
|
524
|
+ if item.type == ContentType.Any:
|
|
525
|
+ if 'origin' in properties.keys():
|
|
526
|
+ return True
|
517
|
527
|
raise NotImplementedError
|
518
|
528
|
|
519
|
529
|
@classmethod
|