def updateRss(request) : try: for ac in Account.objects.filter(active=True, account_type='rss'): utils.parseRSSEntries(ac.server_url) except Exception as ex: return HttpResponse("Exception: %s" %ex) return HttpResponse("udpateRss")
def updateRss(request): try: for ac in Account.objects.filter(active=True, account_type='rss'): utils.parseRSSEntries(ac.server_url) except Exception as ex: return HttpResponse("Exception: %s" % ex) return HttpResponse("udpateRss")
def index(request): try: for ac in Account.objects.filter(active=True): if ac.account_type == 'tw': utils.parseTweets(ac.username, ac.content_filter) elif ac.account_type == 'tt': links = utils.parseCoursesLink(ac.server_url) for link in links: utils.parseTimeTable(link) elif ac.account_type == 'rss': utils.parseRSSEntries(ac.server_url) elif ac.account_type == 'mail': utils.parsePOPMail(ac.server_url, ac.username, ac.password, ac.content_filter) except Exception, e: return HttpResponse("UpdateException: %s" %e)
def index(request): try: for ac in Account.objects.filter(active=True): if ac.account_type == 'tw': utils.parseTweets(ac.username, ac.content_filter) elif ac.account_type == 'tt': links = utils.parseCoursesLink(ac.server_url) for link in links: utils.parseTimeTable(link) elif ac.account_type == 'rss': utils.parseRSSEntries(ac.server_url) elif ac.account_type == 'mail': utils.parsePOPMail(ac.server_url, ac.username, ac.password, ac.content_filter) except Exception, e: return HttpResponse("UpdateException: %s" % e)