[tryton-debian-vcs] tryton-modules-calendar-todo branch upstream-3.4 updated. upstream/3.4.1-1-g4f6e45d

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Sun May 24 12:18:02 UTC 2015


The following commit has been merged in the upstream-3.4 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-calendar-todo.git;a=commitdiff;h=upstream/3.4.1-1-g4f6e45d

commit 4f6e45d5249ac2e0adab2dd38e766b6a872f3d38
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sat May 23 21:07:22 2015 +0200

    Adding upstream version 3.4.2.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/CHANGELOG b/CHANGELOG
index 5945e8c..a80b57f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.4.2 - 2015-05-22
+* Bug fixes (see mercurial logs for details)
+
 Version 3.4.1 - 2015-03-01
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index 29300b5..b910cb1 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_calendar_todo
-Version: 3.4.1
+Version: 3.4.2
 Summary: Tryton module to add TODO on CalDAV
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/todo.py b/todo.py
index d5043ea..59c402b 100644
--- a/todo.py
+++ b/todo.py
@@ -133,13 +133,14 @@ class Todo(ModelSQL, ModelView):
         # Migrate from 1.4: remove classification_public
         ModelData = pool.get('ir.model.data')
         Rule = pool.get('ir.rule')
-        models_data = ModelData.search([
-            ('fs_id', '=', 'rule_group_read_todo_line3'),
-            ('module', '=', module_name),
-            ], limit=1)
-        if models_data:
-            model_data, = models_data
-            Rule.delete([Rule(model_data.db_id)])
+        with Transaction().set_user(0):
+            models_data = ModelData.search([
+                ('fs_id', '=', 'rule_group_read_todo_line3'),
+                ('module', '=', module_name),
+                ], limit=1)
+            if models_data:
+                model_data, = models_data
+                Rule.delete([Rule(model_data.db_id)])
         super(Todo, cls).__register__(module_name)
 
     @staticmethod
@@ -226,7 +227,7 @@ class Todo(ModelSQL, ModelView):
                             if x.status != 'declined'
                             and x.email != todo.parent.organizer]
                 if attendee_emails:
-                    with Transaction().set_context(_check_access=False):
+                    with Transaction().set_user(0):
                         calendars = Calendar.search([
                             ('owner.email', 'in', attendee_emails),
                             ])
@@ -336,7 +337,7 @@ class Todo(ModelSQL, ModelView):
                                 if x.status != 'declined'
                                 and x.email != todo.parent.organizer]
                     if attendee_emails:
-                        with Transaction().set_context(_check_access=False):
+                        with Transaction().set_user(0):
                             todo2s = cls.search([
                                 ('uuid', '=', todo.uuid),
                                 ('calendar.owner.email', 'in', attendee_emails),
@@ -346,10 +347,10 @@ class Todo(ModelSQL, ModelView):
                         for todo2 in todo2s:
                             if todo2.calendar.owner.email in attendee_emails:
                                 attendee_emails.remove(todo2.calendar.owner.email)
-                        with Transaction().set_context(_check_access=False):
+                        with Transaction().set_user(0):
                             cls.write(todos, todo._todo2update())
                     if attendee_emails:
-                        with Transaction().set_context(_check_access=False):
+                        with Transaction().set_user(0):
                             calendars = Calendar.search([
                                 ('owner.email', 'in', attendee_emails),
                                 ])
@@ -402,7 +403,7 @@ class Todo(ModelSQL, ModelView):
                     attendee_emails = [x.email for x in todo.parent.attendees
                             if x.email != todo.parent.organizer]
                 if attendee_emails:
-                    with Transaction().set_context(_check_access=False):
+                    with Transaction().set_user(0):
                         todos_delete = cls.search([
                             ('uuid', '=', todo.uuid),
                             ('calendar.owner.email', 'in', attendee_emails),
@@ -416,7 +417,7 @@ class Todo(ModelSQL, ModelView):
                     organizer = todo.organizer
                 else:
                     organizer = todo.parent.organizer
-                with Transaction().set_context(_check_access=False):
+                with Transaction().set_user(0):
                     todo2s = cls.search([
                         ('uuid', '=', todo.uuid),
                         ('calendar.owner.email', '=', organizer),
@@ -1073,7 +1074,7 @@ class TodoAttendee(AttendeeMixin, ModelSQL, ModelView):
                     attendee_emails = [x.email for x in todo.parent.attendees
                             if x.email != todo.parent.organizer]
                 if attendee_emails:
-                    with Transaction().set_context(_check_access=False):
+                    with Transaction().set_user(0):
                         todos = Todo.search([
                             ('uuid', '=', todo.uuid),
                             ('calendar.owner.email', 'in', attendee_emails),
@@ -1122,7 +1123,7 @@ class TodoAttendee(AttendeeMixin, ModelSQL, ModelView):
                     attendee_emails = [x.email for x in todo.parent.attendees
                             if x.email != todo.parent.organizer]
                 if attendee_emails:
-                    with Transaction().set_context(_check_access=False):
+                    with Transaction().set_user(0):
                         attendees2 = cls.search([
                                 ('todo.uuid', '=', todo.uuid),
                                 ('todo.calendar.owner.email', 'in',
@@ -1157,7 +1158,7 @@ class TodoAttendee(AttendeeMixin, ModelSQL, ModelView):
                     attendee_emails = [x.email for x in todo.attendees
                             if x.email != todo.parent.organizer]
                 if attendee_emails:
-                    with Transaction().set_context(_check_access=False):
+                    with Transaction().set_user(0):
                         attendees = cls.search([
                             ('todo.uuid', '=', todo.uuid),
                             ('todo.calendar.owner.email', 'in',
@@ -1175,7 +1176,7 @@ class TodoAttendee(AttendeeMixin, ModelSQL, ModelView):
                     organizer = todo.organizer
                 else:
                     organizer = todo.parent.organizer
-                with Transaction().set_context(_check_access=False):
+                with Transaction().set_user(0):
                     attendees = cls.search([
                         ('todo.uuid', '=', todo.uuid),
                         ('todo.calendar.owner.email', '=', organizer),
diff --git a/tryton.cfg b/tryton.cfg
index febb018..f780c0a 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.4.1
+version=3.4.2
 depends:
     calendar
     ir
diff --git a/trytond_calendar_todo.egg-info/PKG-INFO b/trytond_calendar_todo.egg-info/PKG-INFO
index 95d0801..a0a3943 100644
--- a/trytond_calendar_todo.egg-info/PKG-INFO
+++ b/trytond_calendar_todo.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-calendar-todo
-Version: 3.4.1
+Version: 3.4.2
 Summary: Tryton module to add TODO on CalDAV
 Home-page: http://www.tryton.org/
 Author: Tryton
-- 
tryton-modules-calendar-todo



More information about the tryton-debian-vcs mailing list