Commits

Andriy Kornatskyy committed 1598d92

Fixed cache dependency contract due to refactoring in up stream package.

Comments (0)

Files changed (1)

demos/guestbook/views.py

 from validation import greeting_validator
 
 
-list_cache_dependency = CacheDependency('list', time=15 * 60)
+list_cache_dependency = CacheDependency(cache, 'list', time=15 * 60)
 
 
 class ListHandler(BaseHandler):
                 self.error('Sorry, can not add your greeting.')
                 return self.get(greeting)
             db.commit()
-        list_cache_dependency.delete(cache)
+        list_cache_dependency.delete()
         return self.see_other_for('list')