def get_shows_old(self): show_dict = Show.get_all_dict() return [ show_dict[str(sub_item._show)] for sub_item in self.subscriptionitem_set if str(sub_item._show) in show_dict ]
def update_show(request): key = None show = None try: key = request.POST.get("key", None) if key is None: raise Http404 show = Show.get_all_dict().get(key, None) if show is None: raise Http404 show.update() except Http404: raise Http404 except Exception, e: logging.error("Error Updating Show (%s)%s: %s" % (show, key, e)) return HttpResponse("Done (with errors, %s(%s))" % (show,key))
def update_show(request): key = None show = None try: key = request.POST.get("key", None) if key is None: raise Http404 show = Show.get_all_dict().get(key, None) if show is None: raise Http404 show.update() except Http404: raise Http404 except Exception, e: logging.error("Error Updating Show (%s)%s: %s" % (show, key, e)) return HttpResponse("Done (with errors, %s(%s))" % (show, key))
def get_shows_old(self): show_dict = Show.get_all_dict() return [show_dict[str(sub_item._show)] for sub_item in self.subscriptionitem_set if str(sub_item._show) in show_dict]
def get_shows(self): show_dict = Show.get_all_dict() return [show_dict[show_key] for show_key in self.get_show_cache() if show_key in show_dict]
def get_shows(self): show_dict = Show.get_all_dict() return [ show_dict[show_key] for show_key in self.get_show_cache() if show_key in show_dict ]