Browse Source

add comment for future cleanup

Guénaël Muller 7 years ago
parent
commit
fa3426fc78

+ 1 - 1
tracim/tests/views/test_example.py View File

@@ -1,5 +1,5 @@
1 1
 # -*- coding: utf-8 -*-
2
-# TODO - G.M - [Cleanup] Drop this file
2
+# TODO - G.M - [Cleanup][tempExample] Drop this file
3 3
 # import unittest
4 4
 # import transaction
5 5
 #

+ 17 - 0
tracim/views/default/default_controller.py View File

@@ -34,6 +34,7 @@ class DefaultController(Controller):
34 34
             response = HTTPForbidden()
35 35
         return response
36 36
 
37
+    # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this method
37 38
     @classmethod
38 39
     def test_config(cls, request):
39 40
         try:
@@ -43,6 +44,7 @@ class DefaultController(Controller):
43 44
             return Response(e, content_type='text/plain', status=500)
44 45
         return {'project': project}
45 46
 
47
+    # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this method
46 48
     @classmethod
47 49
     def test_contributor_page(cls, request):
48 50
         try:
@@ -52,6 +54,7 @@ class DefaultController(Controller):
52 54
             return Response(e, content_type='text/plain', status=500)
53 55
         return {'project': project}
54 56
 
57
+    # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this method
55 58
     @classmethod
56 59
     def test_admin_page(cls, request):
57 60
         try:
@@ -61,6 +64,7 @@ class DefaultController(Controller):
61 64
             return Response(e, content_type='text/plain', status=500)
62 65
         return {'project': project}
63 66
 
67
+    # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this method
64 68
     @classmethod
65 69
     def test_manager_page(cls, request):
66 70
         try:
@@ -70,6 +74,7 @@ class DefaultController(Controller):
70 74
             return Response(e, content_type='text/plain', status=500)
71 75
         return {'project': project}
72 76
 
77
+    # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this method
73 78
     @classmethod
74 79
     def test_user_page(cls, request):
75 80
         try:
@@ -80,13 +85,17 @@ class DefaultController(Controller):
80 85
         return {'project': project}
81 86
 
82 87
     def bind(self, configurator: Configurator):
88
+        # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop static files
83 89
         configurator.add_static_view('static', 'static', cache_max_age=3600)
90
+        # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Do not rely
91
+        # on static file for 404 view
84 92
         configurator.add_view(
85 93
             self.notfound_view,
86 94
             renderer='tracim:templates/404.jinja2',
87 95
             context=NotFound,
88 96
         )
89 97
 
98
+        # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this method
90 99
         configurator.add_route('test_config', '/')
91 100
         configurator.add_view(
92 101
             self.test_config,
@@ -94,6 +103,7 @@ class DefaultController(Controller):
94 103
             renderer='tracim:templates/mytemplate.jinja2',
95 104
         )
96 105
 
106
+        # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this method
97 107
         configurator.add_route('test_contributor', '/test_contributor')
98 108
         configurator.add_view(
99 109
             self.test_contributor_page,
@@ -101,6 +111,8 @@ class DefaultController(Controller):
101 111
             renderer='tracim:templates/mytemplate.jinja2',
102 112
             permission=CONTRIBUTE_PERM,
103 113
         )
114
+
115
+        # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this method
104 116
         configurator.add_route('test_admin', '/test_admin')
105 117
         configurator.add_view(
106 118
             self.test_admin_page,
@@ -108,6 +120,8 @@ class DefaultController(Controller):
108 120
             renderer='tracim:templates/mytemplate.jinja2',
109 121
             permission=ADMIN_PERM,
110 122
         )
123
+
124
+        # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this method
111 125
         configurator.add_route('test_manager', '/test_manager')
112 126
         configurator.add_view(
113 127
             self.test_user_page,
@@ -115,6 +129,8 @@ class DefaultController(Controller):
115 129
             renderer='tracim:templates/mytemplate.jinja2',
116 130
             permission=MANAGE_GLOBAL_PERM,
117 131
         )
132
+
133
+        # TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this method
118 134
         configurator.add_route('test_user', '/test_user')
119 135
         configurator.add_view(
120 136
             self.test_user_page,
@@ -122,4 +138,5 @@ class DefaultController(Controller):
122 138
             renderer='tracim:templates/mytemplate.jinja2',
123 139
             permission=USER_PERM,
124 140
         )
141
+
125 142
         configurator.add_forbidden_view(self.forbidden_view)

+ 1 - 0
tracim/views/example_api/example_api_controller.py View File

@@ -1,4 +1,5 @@
1 1
 # -*- coding: utf-8 -*-
2
+# TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this file
2 3
 from datetime import datetime
3 4
 
4 5
 from pyramid.config import Configurator

+ 1 - 0
tracim/views/example_api/schema.py View File

@@ -1,4 +1,5 @@
1 1
 # -*- coding: utf-8 -*-
2
+# TODO - G.M - 10-04-2018 - [cleanup][tempExample] - Drop this file
2 3
 import marshmallow
3 4
 
4 5