All pastes #799083 Raw Edit

Someone

public text v1 · immutable
#799083 ·published 2007-11-27 09:00 UTC
rendered paste body
Index: calendar.py
===================================================================
--- calendar.py (revision 527)
+++ calendar.py (working copy)
@@ -393,6 +393,9 @@
         
         id = int(id)
         calendar = model.db.get_calendar_by_id(id)
+        
+        c.users_pictures = model.db.get_pictures_of_user(c.current_user.id)
+        
         if not c.current_user.can_edit_calendar(calendar):
             log.error('%s tried to edit calendar %d', self.user_login, id)
             self.add_info(_(u'You do not have rights to edit calendar %s') % str(id))
@@ -896,6 +899,9 @@
         
         For now, only the first step before actually creating the calendar
         will be implemented (ticket 170)."""
+        
+        c.users_pictures = model.db.get_pictures_of_user(c.current_user.id)
+        
         return render('calendar_wizard')
     
     @require_published