Bläddra i källkod

comments + clean

Guénaël Muller 6 år sedan
förälder
incheckning
25d0076c4d

+ 0 - 1
tracim/lib/core/group.py Visa fil

17
             session: Session,
17
             session: Session,
18
             current_user: typing.Optional[User],
18
             current_user: typing.Optional[User],
19
             config: CFG
19
             config: CFG
20
-
21
     ):
20
     ):
22
         self._user = current_user
21
         self._user = current_user
23
         self._session = session
22
         self._session = session

+ 1 - 1
tracim/models/applications.py Visa fil

25
         self.main_route = main_route
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
 # default apps
28
 # default apps
30
 calendar = Application(
29
 calendar = Application(
31
     label='Calendar',
30
     label='Calendar',
77
     config={},
76
     config={},
78
     main_route='/#/workspaces/{workspace_id}/contents?type=pagehtml',
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
 # List of applications
80
 # List of applications
81
 applications = [
81
 applications = [
82
     pagehtml,
82
     pagehtml,

+ 2 - 2
tracim/models/workspace_menu_entries.py Visa fil

24
         self.hexcolor = hexcolor
24
         self.hexcolor = hexcolor
25
         self.icon = icon
25
         self.icon = icon
26
 
26
 
27
-
28
 dashboard_menu_entry = WorkspaceMenuEntry(
27
 dashboard_menu_entry = WorkspaceMenuEntry(
29
   slug='dashboard',
28
   slug='dashboard',
30
   label='Dashboard',
29
   label='Dashboard',
40
   icon="",
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
 def default_workspace_menu_entry(
44
 def default_workspace_menu_entry(
45
     workspace: Workspace,
45
     workspace: Workspace,
46
 )-> typing.List[WorkspaceMenuEntry]:
46
 )-> typing.List[WorkspaceMenuEntry]:

+ 2 - 2
tracim/views/core_api/workspace_controller.py Visa fil

79
 
79
 
80
     def bind(self, configurator: Configurator) -> None:
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
         # Applications
86
         # Applications