Merge lp:~hirt/ocb-addons/7.0_calendar_fix_id2real_id into lp:ocb-addons

Proposed by Etienne Hirt
Status: Merged
Merged at revision: 9815
Proposed branch: lp:~hirt/ocb-addons/7.0_calendar_fix_id2real_id
Merge into: lp:ocb-addons
Diff against target: 15 lines (+4/-1)
1 file modified
base_calendar/base_calendar.py (+4/-1)
To merge this branch: bzr merge lp:~hirt/ocb-addons/7.0_calendar_fix_id2real_id
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) code review Approve
Pedro Manuel Baeza Approve
Review via email: mp+198117@code.launchpad.net

Description of the change

Same as for 6.1-ocb

To post a comment you must log in.
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Thanks for the patch!

review: Approve
Revision history for this message
Holger Brunn (Therp) (hbrunn) :
review: Approve (code review)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'base_calendar/base_calendar.py'
--- base_calendar/base_calendar.py 2013-09-17 09:39:06 +0000
+++ base_calendar/base_calendar.py 2013-12-06 19:17:31 +0000
@@ -86,7 +86,10 @@
86 return (int(real_id), real_date, end.strftime("%Y-%m-%d %H:%M:%S"))86 return (int(real_id), real_date, end.strftime("%Y-%m-%d %H:%M:%S"))
87 return int(real_id)87 return int(real_id)
8888
89 return base_calendar_id and int(base_calendar_id) or base_calendar_id89 return int(base_calendar_id)
90
91 return base_calendar_id
92
9093
91def get_real_ids(ids):94def get_real_ids(ids):
92 if isinstance(ids, (str, int, long)):95 if isinstance(ids, (str, int, long)):