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
1=== modified file 'base_calendar/base_calendar.py'
2--- base_calendar/base_calendar.py 2013-09-17 09:39:06 +0000
3+++ base_calendar/base_calendar.py 2013-12-06 19:17:31 +0000
4@@ -86,7 +86,10 @@
5 return (int(real_id), real_date, end.strftime("%Y-%m-%d %H:%M:%S"))
6 return int(real_id)
7
8- return base_calendar_id and int(base_calendar_id) or base_calendar_id
9+ return int(base_calendar_id)
10+
11+ return base_calendar_id
12+
13
14 def get_real_ids(ids):
15 if isinstance(ids, (str, int, long)):