comparison gpp/gcalendar/calendar.py @ 124:9c18250972d5

Refactored the markdown/smiley logic. Created classes for Markdown and Smilify. No longer call render_to_string() in models.py for various models.
author Brian Neal <bgneal@gmail.com>
date Sat, 14 Nov 2009 04:32:32 +0000
parents cce1fc3f8752
children d77e0dc772ad
comparison
equal deleted inserted replaced
123:3ae999b0c53b 124:9c18250972d5
84 qs[i].delete() 84 qs[i].delete()
85 else: 85 else:
86 error = True 86 error = True
87 87
88 if error: 88 if error:
89 err_msgs.append('%s - (%d) %s' % \ 89 err_msgs.append('%s - (%d) %s' % (
90 (qs[i].title, code, entry.batch_status.reason)) 90 qs[i].what, code, entry.batch_status.reason))
91 91
92 if len(err_msgs) > 0: 92 if len(err_msgs) > 0:
93 raise CalendarError(', '.join(err_msgs)) 93 raise CalendarError(', '.join(err_msgs))
94 94
95 def _retrieve_event(self, model): 95 def _retrieve_event(self, model):