Esempio n. 1
0
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")
Esempio n. 2
0
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")
Esempio n. 3
0
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)
Esempio n. 4
0
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)