Lines Matching refs:depot
74 def init(depot):
80 __clear_cache(depot, None)
82 def set_title(depot, doc, feed, update_ts):
91 ti.replaceWholeText(depot.cfg.get_property("pkg_bui", "feed_name"))
122 it.replaceWholeText(depot.cfg.get_property("pkg_bui", "feed_icon"))
129 lt.replaceWholeText(depot.cfg.get_property("pkg_bui", "feed_logo"))
245 def update(request, depot, last, cf, pub):
247 file is written to depot.tmp_root/CACHE_FILENAME.
251 hours = depot.cfg.get_property("pkg_bui", "feed_window")
261 cat = depot.repo.get_catalog(pub)
262 set_title(depot, d, feed, cat.last_modified)
293 for name in reversed(get_updates_needed(depot.repo, feed_ts, pub)):
306 def __get_cache_pathname(depot, pub):
308 return os.path.join(depot.tmp_root, CACHE_FILENAME)
309 return os.path.join(depot.tmp_root, "publisher", pub, CACHE_FILENAME)
311 def __clear_cache(depot, pub):
313 shutil.rmtree(os.path.join(depot.tmp_root, "feed"), True)
315 pathname = __get_cache_pathname(depot, pub)
324 def __cache_needs_update(depot, pub):
330 cfpath = __get_cache_pathname(depot, pub)
340 __clear_cache(depot, pub)
364 cat = depot.repo.get_catalog(pub)
370 __clear_cache(depot, pub)
372 __clear_cache(depot, pub)
375 def handle(depot, request, response, pub):
381 cfpath = __get_cache_pathname(depot, pub)
384 need_update, last = __cache_needs_update(depot, pub)
396 update(request, depot, last, cf, pub)