Пример #1
0
 def _do_update(self, request, appcache_registry):
     """ Actual update function """
     if (request.user.is_authenticated() and
             request.user.has_perm('html5_appcache.can_update_manifest')):
         appcache_registry.extract_urls()
         return appcache_registry.get_manifest(update=True)
     else:
         return None
Пример #2
0
 def _do_update(self, request, appcache_registry):
     """ Actual update function """
     if (request.user.is_authenticated() and
             request.user.has_perm('html5_appcache.can_update_manifest')):
         appcache_registry.extract_urls()
         return appcache_registry.get_manifest(update=True)
     else:
         return None
Пример #3
0
 def get_urls(self):
     clear_cache_manifest()
     appcache_registry.extract_urls()
     appcache_registry.get_manifest(update=True)