Browse Source

allow get deleted or archived content for all folder endpoints

Guénaël Muller 6 years ago
parent
commit
3143b6d430
1 changed files with 8 additions and 0 deletions
  1. 8 0
      backend/tracim_backend/views/contents_api/folder_controller.py

+ 8 - 0
backend/tracim_backend/views/contents_api/folder_controller.py View File

45
         """
45
         """
46
         app_config = request.registry.settings['CFG']
46
         app_config = request.registry.settings['CFG']
47
         api = ContentApi(
47
         api = ContentApi(
48
+            show_archived=True,
49
+            show_deleted=True,
48
             current_user=request.current_user,
50
             current_user=request.current_user,
49
             session=request.dbsession,
51
             session=request.dbsession,
50
             config=app_config,
52
             config=app_config,
68
         """
70
         """
69
         app_config = request.registry.settings['CFG']
71
         app_config = request.registry.settings['CFG']
70
         api = ContentApi(
72
         api = ContentApi(
73
+            show_archived=True,
74
+            show_deleted=True,
71
             current_user=request.current_user,
75
             current_user=request.current_user,
72
             session=request.dbsession,
76
             session=request.dbsession,
73
             config=app_config,
77
             config=app_config,
110
         """
114
         """
111
         app_config = request.registry.settings['CFG']
115
         app_config = request.registry.settings['CFG']
112
         api = ContentApi(
116
         api = ContentApi(
117
+            show_archived=True,
118
+            show_deleted=True,
113
             current_user=request.current_user,
119
             current_user=request.current_user,
114
             session=request.dbsession,
120
             session=request.dbsession,
115
             config=app_config,
121
             config=app_config,
136
         """
142
         """
137
         app_config = request.registry.settings['CFG']
143
         app_config = request.registry.settings['CFG']
138
         api = ContentApi(
144
         api = ContentApi(
145
+            show_archived=True,
146
+            show_deleted=True,
139
             current_user=request.current_user,
147
             current_user=request.current_user,
140
             session=request.dbsession,
148
             session=request.dbsession,
141
             config=app_config,
149
             config=app_config,