Browse Source

Merge branch 'master' of github.com:tracim/tracim

Skylsmoi 7 years ago
parent
commit
f8e4a0d3f4

+ 6 - 1
README.md View File

118
 
118
 
119
     sudo apt install git realpath redis-server \
119
     sudo apt install git realpath redis-server \
120
                      python3 python-virtualenv python3-dev python-pip  python-lxml \
120
                      python3 python-virtualenv python3-dev python-pip  python-lxml \
121
-                     build-essential libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev
121
+                     build-essential libxml2-dev libxslt1-dev zlib1g-dev libjpeg-dev \
122
+                     libmagickwand-6.q16-3
122
 
123
 
123
 ## Get the source ##
124
 ## Get the source ##
124
 
125
 
159
 
160
 
160
     source tg2env/bin/activate
161
     source tg2env/bin/activate
161
 
162
 
163
+Ensure latest `pip`/`setuptools` versions are installed:
164
+
165
+    pip install --upgrade pip setuptools
166
+
162
 Install Tracim and its dependencies:
167
 Install Tracim and its dependencies:
163
 
168
 
164
     cd tracim/
169
     cd tracim/

+ 5 - 5
install/requirements.txt View File

19
 backlash==0.0.7
19
 backlash==0.0.7
20
 beautifulsoup4==4.4.0
20
 beautifulsoup4==4.4.0
21
 caldav==0.4.0
21
 caldav==0.4.0
22
-cliff==1.8.0
22
+cliff==2.9.1
23
 cmd2==0.6.9
23
 cmd2==0.6.9
24
 coverage==4.4.1
24
 coverage==4.4.1
25
 crank==0.7.3
25
 crank==0.7.3
30
 ldap3==1.3.1
30
 ldap3==1.3.1
31
 lxml==3.6.0
31
 lxml==3.6.0
32
 nose==1.3.4
32
 nose==1.3.4
33
-pbr==0.10.0
33
+pbr==3.1.1
34
 prettytable==0.7.2
34
 prettytable==0.7.2
35
 py4j==0.10.1
35
 py4j==0.10.1
36
 pyasn1==0.1.9
36
 pyasn1==0.1.9
37
-pyparsing==2.0.3
37
+pyparsing==2.1.0
38
 python-dateutil==2.5.3
38
 python-dateutil==2.5.3
39
 python-editor==1.0.1
39
 python-editor==1.0.1
40
 python-ldap-test==0.2.1
40
 python-ldap-test==0.2.1
41
 repoze.lru==0.7
41
 repoze.lru==0.7
42
 repoze.who==2.3
42
 repoze.who==2.3
43
 requests==2.10.0
43
 requests==2.10.0
44
-six==1.8.0
44
+six==1.9.0
45
 speaklater==1.3
45
 speaklater==1.3
46
 sprox==0.9.4
46
 sprox==0.9.4
47
-stevedore==1.1.0
47
+stevedore==1.20.0
48
 tg.devtools==2.3.7
48
 tg.devtools==2.3.7
49
 tgapp-resetpassword==0.2.0
49
 tgapp-resetpassword==0.2.0
50
 tgext.admin==0.6.4
50
 tgext.admin==0.6.4

+ 1 - 1
tracim/tracim/i18n/fr/LC_MESSAGES/tracim.po View File

1564
 #: tracim/templates/thread/toolbar.mak:53
1564
 #: tracim/templates/thread/toolbar.mak:53
1565
 #: tracim/templates/thread/toolbar.mak:57
1565
 #: tracim/templates/thread/toolbar.mak:57
1566
 msgid "Restore"
1566
 msgid "Restore"
1567
-msgstr ""
1567
+msgstr "Restaurer"
1568
 
1568
 
1569
 #: tracim/templates/folder/forms.mak:12
1569
 #: tracim/templates/folder/forms.mak:12
1570
 msgid "New Folder"
1570
 msgid "New Folder"

+ 1 - 0
tracim/tracim/model/serializers.py View File

979
         id = workspace.workspace_id,
979
         id = workspace.workspace_id,
980
         label = workspace.label,  # FIXME - 2015-08-20 - remove this property
980
         label = workspace.label,  # FIXME - 2015-08-20 - remove this property
981
         name = workspace.label,  # use name instead of label
981
         name = workspace.label,  # use name instead of label
982
+        is_deleted=workspace.is_deleted,
982
         url = context.url('/workspaces/{}'.format(workspace.workspace_id))
983
         url = context.url('/workspaces/{}'.format(workspace.workspace_id))
983
     )
984
     )
984
     return result
985
     return result

+ 2 - 0
tracim/tracim/templates/admin/user_getone.mak View File

75
                         </tr>
75
                         </tr>
76
                     </thead>
76
                     </thead>
77
                     % for role in result.user.roles:
77
                     % for role in result.user.roles:
78
+                        % if not role.workspace.is_deleted:
78
                         <%
79
                         <%
79
                             enable_link = '/admin/users/{user}/workspaces/{workspace}/enable_notifications?next_url=/admin/users/{user}'
80
                             enable_link = '/admin/users/{user}/workspaces/{workspace}/enable_notifications?next_url=/admin/users/{user}'
80
                             disable_link = '/admin/users/{user}/workspaces/{workspace}/disable_notifications?next_url=/admin/users/{user}'
81
                             disable_link = '/admin/users/{user}/workspaces/{workspace}/disable_notifications?next_url=/admin/users/{user}'
81
                         %>
82
                         %>
82
                         ${TABLE_ROW.USER_ROLE_IN_WORKSPACE(fake_api.current_user, role, show_id=True, enable_link=enable_link, disable_link=disable_link)}
83
                         ${TABLE_ROW.USER_ROLE_IN_WORKSPACE(fake_api.current_user, role, show_id=True, enable_link=enable_link, disable_link=disable_link)}
84
+                        % endif
83
                     % endfor
85
                     % endfor
84
                 </table>
86
                 </table>
85
             % endif
87
             % endif

+ 21 - 21
tracim/tracim/tests/library/test_resetpassword.py View File

16
     # [1] no admin calendar: https://github.com/tracim/tracim/issues/274
16
     # [1] no admin calendar: https://github.com/tracim/tracim/issues/274
17
     # Deactivating it solves this odd issue, probably due to improper
17
     # Deactivating it solves this odd issue, probably due to improper
18
     # individual test environment setup in tests sequence.
18
     # individual test environment setup in tests sequence.
19
-    def deactivated_test_unit__plain_send_mail__ok(self):
20
-        if sys.version_info >= (3, 5):
21
-            from smtplib import SMTPNotSupportedError
19
+    #def deactivated_test_unit__plain_send_mail__ok(self):
20
+    #    if sys.version_info >= (3, 5):
21
+    #        from smtplib import SMTPNotSupportedError
22
 
22
 
23
-            assert_raises(
24
-                (ConnectionRefusedError, SMTPNotSupportedError),
25
-                _plain_send_mail,
26
-                'Name of sender <email@sender.local>',
27
-                'Recipient name <recipient@recipient.local>',
28
-                'hello',
29
-                'How are you ?',
30
-            )
31
-        else:
32
-            from smtplib import SMTPException
33
-            assert_raises(
34
-                (SMTPException, ConnectionRefusedError),
35
-                _plain_send_mail,
36
-                'Name of sender <email@sender.local>',
37
-                'Recipient name <recipient@recipient.local>',
38
-                'hello',
39
-                'How are you ?',
40
-            )
23
+    #        assert_raises(
24
+    #            (ConnectionRefusedError, SMTPNotSupportedError),
25
+    #            _plain_send_mail,
26
+    #            'Name of sender <email@sender.local>',
27
+    #            'Recipient name <recipient@recipient.local>',
28
+    #            'hello',
29
+    #            'How are you ?',
30
+    #        )
31
+    #    else:
32
+    #        from smtplib import SMTPException
33
+    #        assert_raises(
34
+    #            (SMTPException, ConnectionRefusedError),
35
+    #            _plain_send_mail,
36
+    #            'Name of sender <email@sender.local>',
37
+    #            'Recipient name <recipient@recipient.local>',
38
+    #            'hello',
39
+    #            'How are you ?',
40
+    #        )