Browse Source

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

Skylsmoi 7 years ago
parent
commit
f8e4a0d3f4

+ 6 - 1
README.md View File

@@ -118,7 +118,8 @@ You'll need to install the following packages :
118 118
 
119 119
     sudo apt install git realpath redis-server \
120 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 124
 ## Get the source ##
124 125
 
@@ -159,6 +160,10 @@ Activate it in your terminal session (**all tracim command execution must be exe
159 160
 
160 161
     source tg2env/bin/activate
161 162
 
163
+Ensure latest `pip`/`setuptools` versions are installed:
164
+
165
+    pip install --upgrade pip setuptools
166
+
162 167
 Install Tracim and its dependencies:
163 168
 
164 169
     cd tracim/

+ 5 - 5
install/requirements.txt View File

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

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

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

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

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

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

@@ -75,11 +75,13 @@
75 75
                         </tr>
76 76
                     </thead>
77 77
                     % for role in result.user.roles:
78
+                        % if not role.workspace.is_deleted:
78 79
                         <%
79 80
                             enable_link = '/admin/users/{user}/workspaces/{workspace}/enable_notifications?next_url=/admin/users/{user}'
80 81
                             disable_link = '/admin/users/{user}/workspaces/{workspace}/disable_notifications?next_url=/admin/users/{user}'
81 82
                         %>
82 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 85
                     % endfor
84 86
                 </table>
85 87
             % endif

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

@@ -16,25 +16,25 @@ class TestResetPassword(TestStandard):
16 16
     # [1] no admin calendar: https://github.com/tracim/tracim/issues/274
17 17
     # Deactivating it solves this odd issue, probably due to improper
18 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
+    #        )