Browse Source

comments + clean

Guénaël Muller 6 years ago
parent
commit
25d0076c4d

+ 0 - 1
tracim/lib/core/group.py View File

@@ -17,7 +17,6 @@ class GroupApi(object):
17 17
             session: Session,
18 18
             current_user: typing.Optional[User],
19 19
             config: CFG
20
-
21 20
     ):
22 21
         self._user = current_user
23 22
         self._session = session

+ 1 - 1
tracim/models/applications.py View File

@@ -25,7 +25,6 @@ class Application(object):
25 25
         self.main_route = main_route
26 26
 
27 27
 
28
-# TODO - G.M - 21-05-2018 Do not rely on hardcoded app list
29 28
 # default apps
30 29
 calendar = Application(
31 30
     label='Calendar',
@@ -77,6 +76,7 @@ pagehtml = Application(
77 76
     config={},
78 77
     main_route='/#/workspaces/{workspace_id}/contents?type=pagehtml',
79 78
 )
79
+# TODO - G.M - 08-06-2018 - This is hardcoded lists of app, make this dynamic.
80 80
 # List of applications
81 81
 applications = [
82 82
     pagehtml,

+ 2 - 2
tracim/models/workspace_menu_entries.py View File

@@ -24,7 +24,6 @@ class WorkspaceMenuEntry(object):
24 24
         self.hexcolor = hexcolor
25 25
         self.icon = icon
26 26
 
27
-
28 27
 dashboard_menu_entry = WorkspaceMenuEntry(
29 28
   slug='dashboard',
30 29
   label='Dashboard',
@@ -40,7 +39,8 @@ all_content_menu_entry = WorkspaceMenuEntry(
40 39
   icon="",
41 40
 )
42 41
 
43
-
42
+# TODO - G.M - 08-06-2018 - This is hardcoded default menu entry,
43
+#  of app, make this dynamic (and loaded from application system)
44 44
 def default_workspace_menu_entry(
45 45
     workspace: Workspace,
46 46
 )-> typing.List[WorkspaceMenuEntry]:

+ 2 - 2
tracim/views/core_api/workspace_controller.py View File

@@ -79,8 +79,8 @@ class WorkspaceController(Controller):
79 79
 
80 80
     def bind(self, configurator: Configurator) -> None:
81 81
         """
82
-        Create all routes and views using pyramid configurator
83
-        for this controller
82
+        Create all routes and views using
83
+        pyramid configurator for this controller
84 84
         """
85 85
 
86 86
         # Applications