#from urllib2 import urlopen

#THIS FILE IS NOT CURRENTLY USED

class checkupdates:
	def checkupdate(self):
#TO DO:
# This function for some reason doesn't work and needs to be fixed. It hangs if not connected to Internet.
# The problem is that I can not timeout the DSN request. :-(
		try:
			version_file = urlopen('http://taof.sourceforge.net/version')
			if int(version_file.read())> taof_version:
				return '1'
			else:
				return '0'
		except:
			return '0'

