Mercurial > public > sg101
diff gpp/gcalendar/calendar.py @ 228:d77e0dc772ad
Implement #88; add option to create a new forum thread from a new calendar entry.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 11 Jul 2010 21:03:41 +0000 |
parents | 9c18250972d5 |
children | 9a4bffdf37c3 |
line wrap: on
line diff
--- a/gpp/gcalendar/calendar.py Tue Jul 06 03:02:20 2010 +0000 +++ b/gpp/gcalendar/calendar.py Sun Jul 11 21:03:41 2010 +0000 @@ -72,11 +72,14 @@ error = False if qs[i].status == Event.NEW_APRV or qs[i].status == Event.EDIT_APRV: - if (code == 201 and qs[i].status == Event.NEW_APRV) or \ - (code == 200 and qs[i].status == Event.EDIT_APRV): + if (code == 201 and qs[i].status == Event.NEW_APRV) or ( + code == 200 and qs[i].status == Event.EDIT_APRV): qs[i].google_id = entry.id.text + qs[i].google_url = entry.GetHtmlLink().href qs[i].status = Event.ON_CAL qs[i].save() + if code == 201: + qs[i].notify_on_calendar() else: error = True elif qs[i].status == Event.DEL_APRV: