# Path: resources/lib/controller/basecontroller.py
# class BaseController(object):
#     def render(self, name, args=None):
#         if args:
#             return router.render(name, args=args)
#         else:
#             return router.render(name)
# 
#     def route_exists(self, name):
#         return router.route_exists(name)
# 
#     def cleanup(self):
#         raise NotImplementedError("Cleanup needs to be implemented.")
# 
# def route(name):
#     def decorator(func):
#         xbmc.log("[script.luna.router]: Adding route with name %s to cache" % name)
#         assert name not in router._routes_cache, "Route with name %s already exists on the same class" % name
#         router._routes_cache[name] = func
#         return func
# 
#     return decorator


from resources.lib.controller.basecontroller import BaseController, route
        import xbmcgui


class CacheController(BaseController):
    def __init__(self, core, scraper_chain):
        self.core = core
        self.base_path = core.storage_path
        self.scraper_chain = scraper_chain

    @route("reset")
    def reset_cache(self):
        confirmed = xbmcgui.Dialog().yesno(

# Path: resources/lib/controller/basecontroller.py
# class BaseController(object):
#     def render(self, name, args=None):
#         if args:
#             return router.render(name, args=args)
#         else:
#             return router.render(name)
# 
#     def route_exists(self, name):
#         return router.route_exists(name)
# 
#     def cleanup(self):
#         raise NotImplementedError("Cleanup needs to be implemented.")
# 
# def route(name):
#     def decorator(func):
#         xbmc.log("[script.luna.router]: Adding route with name %s to cache" % name)
#         assert name not in router._routes_cache, "Route with name %s already exists on the same class" % name
#         router._routes_cache[name] = func
#         return func
# 
#     return decorator


# Path: resources/lib/controller/cachecontroller.py
from resources.lib.controller.basecontroller import BaseController, route
        import xbmcgui



class CacheController(BaseController):
    def __init__(self, core, scraper_chain):
        self.core = core
        self.base_path = core.storage_path
        self.scraper_chain = scraper_chain

    @route("reset")
    def reset_cache(self):
        confirmed = xbmcgui.Dialog().yesno(

            self.core.string('name'),