Merge lp:~unifield-team/unifield-server/us-1537 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 3910
Proposed branch: lp:~unifield-team/unifield-server/us-1537
Merge into: lp:unifield-server
Diff against target: 72 lines (+26/-0) (has conflicts)
2 files modified
bin/addons/msf_profile/i18n/fr_MF.po (+9/-0)
bin/addons/sync_client/sync_client.py (+17/-0)
Text conflict in bin/addons/msf_profile/i18n/fr_MF.po
To merge this branch: bzr merge lp:~unifield-team/unifield-server/us-1537
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+302430@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bin/addons/msf_profile/i18n/fr_MF.po'
--- bin/addons/msf_profile/i18n/fr_MF.po 2016-08-04 14:54:20 +0000
+++ bin/addons/msf_profile/i18n/fr_MF.po 2016-08-09 15:13:26 +0000
@@ -73840,6 +73840,7 @@
73840#, python-format73840#, python-format
73841msgid "The value in the field \"Repeat\" must be greater than 0!"73841msgid "The value in the field \"Repeat\" must be greater than 0!"
73842msgstr "La valeur dans le champ \"Périodicité\" doit être supérieure à 0 !"73842msgstr "La valeur dans le champ \"Périodicité\" doit être supérieure à 0 !"
73843<<<<<<< TREE
7384373844
73844#. modules: account_override, account73845#. modules: account_override, account
73845#: code:addons/account_override/account.py:073846#: code:addons/account_override/account.py:0
@@ -73853,3 +73854,11 @@
73853#, python-format73854#, python-format
73854msgid "The entry must be balanced."73855msgid "The entry must be balanced."
73855msgstr "L'écriture doit être équilibrée."73856msgstr "L'écriture doit être équilibrée."
73857=======
73858
73859#. module: sync_client
73860#: code:addons/sync_client/sync_client.py:56
73861#, python-format
73862msgid "PatchFailed: A script during upgrade has failed. Synchronization is forbidden. Please contact your administrator"
73863msgstr "PatchFailed: Un script a échoué pendant la mise à jour. La synchronizsation est désactivée. Veuillez contacter votre administrateur"
73864>>>>>>> MERGE-SOURCE
7385673865
=== modified file 'bin/addons/sync_client/sync_client.py'
--- bin/addons/sync_client/sync_client.py 2016-08-04 14:38:59 +0000
+++ bin/addons/sync_client/sync_client.py 2016-08-09 15:13:26 +0000
@@ -51,6 +51,13 @@
51MAX_EXECUTED_MESSAGES = 50051MAX_EXECUTED_MESSAGES = 500
5252
5353
54def check_patch_scripts(cr, uid, context=None):
55 if pooler.get_pool(cr.dbname).get('patch.scripts').search(cr, uid, [('run', '=', False)], limit=1, context=context):
56 return _('PatchFailed: A script during upgrade has failed. Synchronization is forbidden. Please contact your administrator')
57 else:
58 return ''
59
60
54class SkipStep(StandardError):61class SkipStep(StandardError):
55 pass62 pass
5663
@@ -67,6 +74,9 @@
67 chk_tz_msg = check_tz()74 chk_tz_msg = check_tz()
68 if chk_tz_msg:75 if chk_tz_msg:
69 raise osv.except_osv(_('Error'), chk_tz_msg)76 raise osv.except_osv(_('Error'), chk_tz_msg)
77 patch_failed = check_patch_scripts(cr, uid, context=context)
78 if patch_failed:
79 raise osv.except_osv(_('Error'), patch_failed)
70 entity = pool.get('sync.client.entity')80 entity = pool.get('sync.client.entity')
71 # Lookup method to call81 # Lookup method to call
72 self.call_method = getattr(entity, method)82 self.call_method = getattr(entity, method)
@@ -134,6 +144,10 @@
134 chk_tz_msg = check_tz()144 chk_tz_msg = check_tz()
135 if chk_tz_msg:145 if chk_tz_msg:
136 raise BaseException(chk_tz_msg)146 raise BaseException(chk_tz_msg)
147 patch_failed = check_patch_scripts(cr, uid, context=context)
148 if patch_failed:
149 raise BaseException(patch_failed)
150
137 res = fn(self, self.sync_cursor, uid, *args, **kwargs)151 res = fn(self, self.sync_cursor, uid, *args, **kwargs)
138 except osv.except_osv, e:152 except osv.except_osv, e:
139 logger.switch(step, 'failed')153 logger.switch(step, 'failed')
@@ -170,6 +184,9 @@
170 chk_tz_msg = check_tz()184 chk_tz_msg = check_tz()
171 if chk_tz_msg:185 if chk_tz_msg:
172 raise osv.except_osv(_('Error'), chk_tz_msg)186 raise osv.except_osv(_('Error'), chk_tz_msg)
187 patch_failed = check_patch_scripts(cr, uid, context=kwargs.get('context', {}))
188 if patch_failed:
189 raise osv.except_osv(_('Error'), patch_failed)
173 # First, check if we can acquire the lock or return False190 # First, check if we can acquire the lock or return False
174 sync_lock = self.sync_lock191 sync_lock = self.sync_lock
175 if not sync_lock.acquire(blocking=False):192 if not sync_lock.acquire(blocking=False):

Subscribers

People subscribed via source and target branches

to all changes: